c92156ca9c56ccf3f69305073777e9f273f29309
[gnulib.git] / ChangeLog
1 2012-05-12  Bruno Haible  <bruno@clisp.org>
2
3         sh-quote, system-quote: Add comments about wildcards.
4         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5         * lib/system-quote.h: Likewise.
6         Reported by Eli Zaretskii <eliz@gnu.org>.
7
8 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
9
10         fsusage: check for GNU/Linux statvfs problem dynamically
11         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
12         Define STAT_STATFS2_BSIZE too, since in this case the code now
13         checks dynamically whether statvfs is reliable, falling back on
14         Linux-style statfs otherwise.
15         (statvfs_works): New function, for dynamically testing statvfs.
16         (get_fs_usage) [STAT_STATVFS]: Use it.
17         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
18         statvfs on GNU/Linux hosts, since it's now done dynamically.
19
20 2012-05-10  Bruno Haible  <bruno@clisp.org>
21
22         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
24         '?' character.
25         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
26         * tests/test-system-quote-main.c (check_all): Check also strings like
27         "??????????".
28         Reported by Eli Zaretskii <eliz@gnu.org>.
29
30 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
31
32         _Noreturn: port config.h to gcc -Wundef
33         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
34         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
36
37 2012-05-10  Bruno Haible  <bruno@clisp.org>
38
39         system-quote: Refactor.
40         * lib/system-quote.h (system_quote_copy): Fix comment.
41         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
42         New functions, extracted from system_quote_copy.
43         (system_quote_length, system_quote_copy): Use these functions.
44         Reported by Paul Eggert.
45
46 2012-05-08  Bruno Haible  <bruno@clisp.org>
47
48         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
49         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
50
51 2012-05-08  Bruno Haible  <bruno@clisp.org>
52
53         Tests for module 'system-quote'.
54         * modules/system-quote-tests: New file.
55         * tests/test-system-quote.sh: New file.
56         * tests/test-system-quote-main.c: New file.
57         * tests/test-system-quote-child.c: New file.
58
59         New module 'system-quote'.
60         * lib/system-quote.h: New file.
61         * lib/system-quote.c: New file.
62         * modules/system-quote: New file.
63
64 2012-05-08  Bruno Haible  <bruno@clisp.org>
65
66         sh-quote: Make C++ safe and allow multiple inclusion.
67         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
68         declarations in extern "C".
69
70 2012-05-08  Bruno Haible  <bruno@clisp.org>
71
72         sh-quote tests: Make tests stricter.
73         * tests/test-sh-quote.c (check_one): Check the return value of
74         shell_quote_copy.
75         (main): Check a string with a CR character. Check a string that
76         contains UCHAR_MAX.
77
78 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
79
80         warnings.m4: provide a means to specify the program to compile.
81         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
82         (gl_WARN_ADD): here.
83         Use gl_AS_VAR_APPEND.
84         Support an argument to specify the program to compile.
85         (gl_WARN_ADD): Accept an argument to specify the program to compile.
86         AC_SUBST the WARN_CFLAGS when they are used.
87         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
88         leave this to gl_WARN_ADD.
89
90 2012-05-08  Eric Blake  <eblake@redhat.com>
91
92         doc: recommendations on gettext version
93         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
94         choice between versions.
95         * DEPENDENCIES (gettext): Cover both approaches.
96
97 2012-05-08  Jim Meyering  <meyering@redhat.com>
98
99         init.sh: explain why EXEEXT support uses aliases rather than functions
100         * tests/init.sh: Add a comment.
101
102         init.sh: don't let bash aliases interfere with tests
103         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
104         is bash.  This avoids problems for those who alias standard commands to
105         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
106         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
107
108 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
109
110         stdint: be more consistent with glibc, SunOS libc
111         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
112         (gl_int_fast16_t, gl_uint_fast16_t)
113         (gl_int_fast32_t, gl_uint_fast32_t)
114         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
115         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
116         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
117         Be consistent with glibc by default, and with SunOS 5.10 and later
118         if __sun is defined.  This lessens the likelihood of clashes if
119         code compiled for older hosts is combined with code compiled for
120         newer ones.  Problem reported by Niels Möller in
121         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
122
123 2012-05-07  Eric Blake  <eblake@redhat.com>
124
125         isatty: relax license to LGPLv2+
126         * modules/isatty (License): Relax license.
127
128 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
129
130         stat-size: comment fix
131         * lib/stat-size.h: Remove obsolete comment about indenting.
132
133 2012-05-06  Bruno Haible  <bruno@clisp.org>
134
135         Tests for module 'sh-quote'.
136         * modules/sh-quote-tests: New file.
137         * tests/test-sh-quote.c: New file.
138
139 2012-05-06  Bruno Haible  <bruno@clisp.org>
140
141         sh-quote: Improve shell_quote_argv's signature.
142         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
143         * lib/sh-quote.c (shell_quote_argv): Likewise.
144
145 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
146
147         stdint: document issues with int_fast8_t etc.
148         * doc/posix-headers/stdint.texi (stdint.h): Say that other
149         stdint.h substitutes may define these types differently.  See
150         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
151
152 2012-05-05  Bruno Haible  <bruno@clisp.org>
153
154         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
156         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
157         or 'guessing no (mishandles large arguments)'.
158
159 2012-05-05  Bruno Haible  <bruno@clisp.org>
160
161         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
162         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
163         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
164         set gl_cv_func_link_follows_symlink to "guessing no".
165
166 2012-05-05  Bruno Haible  <bruno@clisp.org>
167
168         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
169         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
170         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
171         "guessing no".
172         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
173
174 2012-05-05  Bruno Haible  <bruno@clisp.org>
175
176         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
177         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
178         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
179         set gl_cv_struct_dirent_d_ino to "guessing yes".
180
181 2012-05-05  Bruno Haible  <bruno@clisp.org>
182
183         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
184         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
185         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
186         "guessing yes".
187
188 2012-05-05  Bruno Haible  <bruno@clisp.org>
189
190         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
191         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
192         compiling to a glibc system, set gl_cv_func_signbit and
193         gl_cv_func_signbit_gcc to "guessing yes".
194
195 2012-05-05  Bruno Haible  <bruno@clisp.org>
196
197         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
198         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
199         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
200         to "guessing yes".
201         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
202         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
203
204 2012-05-05  Bruno Haible  <bruno@clisp.org>
205
206         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
208         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
209         gl_cv_func_realpath_works to "guessing yes".
210
211 2012-05-05  Bruno Haible  <bruno@clisp.org>
212
213         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
214         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
215         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
216
217 2012-05-04  Bruno Haible  <bruno@clisp.org>
218
219         Tweak last commit.
220         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
221         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
222
223 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
224
225         unistd_h: make it easier to avoid sys_types_h
226         This is useful for Emacs, which has its own method of porting to
227         Windows, and which therefore does not need the sys_types_h module.
228         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
229         code moved here from gl_SYS_TYPES_H.
230         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
231         using the code directly.
232         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
233         gl_SYS_TYPES_H.
234         * modules/sys_types (Files):
235         * modules/unistd (Files): Add m4/off_t.m4.
236
237 2012-05-03  Bruno Haible  <bruno@clisp.org>
238
239         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
240         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
241         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
242         "guessing yes" or "guessing no".
243         (gl_FUNC_LSTAT): Update.
244         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
245         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
246         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
247
248 2012-05-03  Bruno Haible  <bruno@clisp.org>
249
250         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
251         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
252         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
253         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
254         cross-compiling, choose the first alternative on glibc systems.
255         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
256
257 2012-05-03  Bruno Haible  <bruno@clisp.org>
258
259         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
260         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
261         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
262
263 2012-05-03  Bruno Haible  <bruno@clisp.org>
264
265         chown: Avoid "guessing no" when cross-compiling to glibc systems.
266         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
267
268 2012-05-03  Bruno Haible  <bruno@clisp.org>
269
270         Avoid "guessing no" guesses when cross-compiling to glibc systems.
271         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
272         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
273         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
274         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
275         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
276         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
277         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
278         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
279         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
280         compiling to glibc systems, set gl_cv_func_chown_slash_works,
281         gl_cv_func_chown_ctime_works to "guessing yes".
282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
283         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
284         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
285         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
286         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
288         compiling to glibc systems, set gl_cv_func_open_directory_works to
289         "guessing yes".
290         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
291         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
292         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
293         "guessing yes".
294         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
295         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
296         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
297         compiling to glibc systems, set gl_cv_func_floorf_ieee to
298         "guessing yes".
299         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
300         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
301         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
302         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
303         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
304         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
305         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
306         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
307         "guessing yes".
308         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
309         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
310         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
311         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
312         "guessing yes".
313         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
314         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
315         "guessing yes".
316         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
317         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
318         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
319         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
320         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
321         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
322         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
323         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
324         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
325         compiling to glibc systems, set gl_cv_func_log10f_ieee to
326         "guessing yes".
327         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
328         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
329         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
330         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
331         "guessing yes".
332         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
333         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
334         "guessing yes".
335         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
336         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
337         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
338         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
339         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
340         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
341         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
342         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
343         compiling to glibc systems, set gl_cv_func_mkfifo_works to
344         "guessing yes".
345         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
346         compiling to glibc systems, set gl_cv_func_mknod_works to
347         "guessing yes".
348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
349         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
350         "guessing yes".
351         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
352         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
353         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
354         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
355         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
356         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
357         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
358         compiling to glibc systems, set gl_cv_func_svid_putenv to
359         "guessing yes".
360         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
361         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
362         "guessing yes".
363         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
364         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
365         "guessing yes".
366         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
367         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
368         to "guessing yes".
369         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
370         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
371         to "guessing yes".
372         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
373         compiling to glibc systems, set gl_cv_func_rmdir_works to
374         "guessing yes".
375         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
376         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
377         gl_cv_func_unlink_parent_fails to "guessing yes".
378         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
379         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
380         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
381         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
382         gl_cv_func_rename_dest_works to "guessing yes".
383         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
384         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
386         compiling to glibc systems, set gl_cv_func_roundf_ieee to
387         "guessing yes".
388         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
389         compiling to glibc systems, set gl_cv_func_roundl_ieee to
390         "guessing yes".
391         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
392         compiling to glibc systems, set gl_cv_func_setenv_works to
393         "guessing yes".
394         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
395         compiling to glibc systems, set gl_cv_func_unsetenv_works to
396         "guessing yes".
397         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
398         compiling to glibc systems, set gl_cv_func_sleep_works to
399         "guessing yes".
400         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
401         compiling to glibc systems, set gl_cv_func_stat_file_slash to
402         "guessing yes".
403         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
404         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
405         "guessing yes".
406         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
407         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
408         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
409         compiling to glibc systems, set gl_cv_func_truncf_ieee to
410         "guessing yes".
411         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
412         compiling to glibc systems, set gl_cv_func_truncl_ieee to
413         "guessing yes".
414         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
415         compiling to glibc systems, set gl_cv_func_usleep_works to
416         "guessing yes".
417         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
418         compiling to glibc systems, set gl_cv_func_futimesat_works to
419         "guessing yes".
420
421 2012-05-03  Bruno Haible  <bruno@clisp.org>
422
423         Say "guessing yes" or "guessing no" when cross-compiling.
424         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
425         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
427         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
428         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
429         am_cv_func_working_getline to "guessing yes" or "guessing no".
430         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
431         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
432         (gl_FUNC_MEMMEM): When cross-compiling, set
433         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
435         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
437         set gl_cv_func_strcasestr_works_always to "guessing yes" or
438         "guessing no".
439         (gl_FUNC_STRCASESTR): When cross-compiling, set
440         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
441         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
442         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
443         (gl_FUNC_STRSTR): When cross-compiling, set
444         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
445         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
446         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
447         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
448         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
449
450 2012-05-01  Bruno Haible  <bruno@clisp.org>
451
452         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
453         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
454         * build-aux/reloc-ldflags: Likewise.
455         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
456
457 2012-05-01  Bruno Haible  <bruno@clisp.org>
458
459         gnulib-tool: Remove transitional code.
460         * gnulib-tool: Don't warn about --import with 0 arguments any more.
461         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
462
463 2012-05-01  Bruno Haible  <bruno@clisp.org>
464
465         getcwd: Fix misindentation.
466         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
467
468 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
469
470         exclude: process exclude and include directives in order
471         This restores the pre-2009 behavior, and is part of a fix of a
472         grep bug reported by Quentin Arce in
473         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
474         * lib/exclude.c (struct exclude): Remove 'tail' member.
475         (new_exclude_segment): Prepend the new segment instead of appending.
476         Return void, since that's now more convenient.
477         (file_pattern_matches): Renamed from excluded_file_pattern_p.
478         (file_name_matches): Renamed from excluded_file_name_p.
479         (file_pattern_matches, file_name_matches):
480         Return true if the pattern matches, not if it excludes.
481         All callers changed.
482         (excluded_file_name): Process the list in reverse order;
483         since the list is now reversed this restores the pre-2009 behavior.
484         (add_exclude): Adjust to new reversed-order list.  Use local var
485         rather than macro, for clarity.
486         * tests/test-exclude7.sh: Adjust to corrected behavior.
487
488         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
489         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
490         it's not possible here.  Handle the case of \ at end of pattern
491         without dumping core.
492         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
493
494         _Noreturn: future-proof non-GNU and non-MSVC compilers
495         * build-aux/snippet/_Noreturn.h (_Noreturn):
496         * m4/gnulib-common.m4 (gl_COMMON_BODY):
497         Do not define _Noreturn if __STDC_VERSION__ indicates this is
498         C11 or later.  This is more likely to work with random future C
499         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
500         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
501
502         exclude: handle wildcards with FNM_EXTMATCH
503         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
504         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
505         comment that "has wildcards" really means "has or may have
506         wildcards".  Simplify by avoiding the need to call strcspn.
507
508 2012-04-29  Bruno Haible  <bruno@clisp.org>
509
510         gnulib-tool: Fix list of authors.
511         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
512
513 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
514
515         bootstrap: support Automake-NG in $buildreq
516         * bootstrap (check_versions): Handle automake and aclocal from
517         Automake-NG specially.  They can be specified as respectively
518         the "automake-ng" and "aclocal-ng" requirements.
519
520 2012-04-25  Eric Blake  <eblake@redhat.com>
521
522         bootstrap: only force latest Makefile.in.in for gettext module
523         * build-aux/bootstrap (with_gettext): Only install latest
524         Makefile.in.in for projects requesting bleeding edge gettext.
525
526 2012-04-22  Bruno Haible  <bruno@clisp.org>
527
528         doc: Mention reason for replacement on glibc/Linux systems.
529         * doc/posix-functions/dprintf.texi: Mention the problem with special
530         'long double' values.
531         * doc/posix-functions/fprintf.texi: Likewise.
532         * doc/posix-functions/printf.texi: Likewise.
533         * doc/posix-functions/snprintf.texi: Likewise.
534         * doc/posix-functions/sprintf.texi: Likewise.
535         * doc/posix-functions/vdprintf.texi: Likewise.
536         * doc/posix-functions/vfprintf.texi: Likewise.
537         * doc/posix-functions/vprintf.texi: Likewise.
538         * doc/posix-functions/vsnprintf.texi: Likewise.
539         * doc/posix-functions/vsprintf.texi: Likewise.
540         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
541         platforms with F_DUPFD_CLOEXEC problems.
542         * doc/posix-functions/glob.texi: Mention which platforms are affected
543         by the problem with symbolic links.
544         * doc/posix-functions/linkat.texi: Mention the problem with
545         AT_SYMLINK_FOLLOW on Linux.
546
547 2012-04-22  Bruno Haible  <bruno@clisp.org>
548
549         pwrite: Don't replace on all platforms.
550         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
551
552 2012-04-22  Bruno Haible  <bruno@clisp.org>
553
554         rint* tests: Avoid gcc warnings.
555         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
556         * tests/test-rintf.c (INFINITY, NAN): Likewise.
557         * tests/test-rintl.c (INFINITY, NAN): Likewise.
558
559 2012-04-21  Bruno Haible  <bruno@clisp.org>
560
561         users.txt: Update.
562         * users.txt: Add freedink, wdiff. Update URLs for projects that have
563         switched from CVS to git, bzr, or svn.
564
565 2012-04-21  Bruno Haible  <bruno@clisp.org>
566
567         Large File Support for native Windows platforms.
568
569         * m4/largefile.m4 (gl_LARGEFILE): New macro.
570         * modules/largefile (configure.ac): Require gl_LARGEFILE.
571
572         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
573         type.
574         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
575         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
576         * doc/posix-headers/sys_types.texi: Mention the effect of the
577         'largefile' module.
578
579         * lib/fcntl.in.h: Add comments about off_t.
580         * modules/fcntl-h (Depends-on): Add sys_types.
581
582         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
583         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
584         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
585         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
586         * modules/unistd (Depends-on): Add sys_types.
587         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
588
589         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
590         instead of lseek.
591         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
592         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
593         * modules/lseek (Depends-on): Add sys_types.
594
595         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
596         msvc-nothrow.h.
597         (SetFileSize): New function.
598         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
599         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
600         if Large File Support is requested.
601         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
602         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
603
604         * lib/stdio.in.h: Add comments about off_t.
605         * modules/stdio (Depends-on): Add sys_types.
606
607         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
608         instead of ftello.
609         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
610         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
611         (gl_PREREQ_FTELLO): New macro.
612         * modules/ftello (Depends-on): Add sys_types.
613         (configure.ac): Incoke gl_PREREQ_FTELLO.
614
615         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
616         instead of fseeko.
617         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
618         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
619         (gl_PREREQ_FSEEKO): New macro.
620         * modules/fseeko (Depends-on): Add sys_types.
621         (configure.ac): Invoke gl_PREREQ_FSEEKO.
622
623         * lib/sys_stat.in.h: Add comments about off_t.
624         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
625         64-bit integer for st_size in 'struct stat'.
626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
627         Define _GL_WINDOWS_64_BIT_ST_SIZE.
628         * modules/sys_stat (Depends-on): Add sys_types.
629         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
630
631         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
632         instead of stat or _stat.
633
634         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
635         'struct _stati64' instead of fstat and 'struct stat'.
636         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
637         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
638
639         Reported by Ray Satiro <raysatiro@yahoo.com>.
640
641 2012-04-19  Eric Blake  <eblake@redhat.com>
642
643         bootstrap: accommodate older libtool
644         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
645         Reported by Daniel P. Berrange.
646
647 2012-04-19  Jim Meyering  <meyering@redhat.com>
648
649         announce-gen: avoid failure due to lack of Digest::SHA1
650         Even with the preferred Digest::SHA available, this script
651         would fail when the backup module, Digest::SHA1, was not installed.
652         * build-aux/announce-gen: Quote the conditional use of "use".
653         Reported by Reuben Thomas in:
654         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
655
656         bootstrap: don't let a user's CDPATH setting affect this script
657         When CDPATH is set, cd will sometimes generate output.
658         When "cd" is run in a subshell whose output matters, that
659         surprising-to-some output can cause malfunction.
660         Unsetting CDPATH turns off this shell "feature."
661         * build-aux/bootstrap (CDPATH): Unset.
662         Reported by Reuben Thomas in:
663         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
664         and inspired by his patch here:
665         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
666
667 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
668         and Jim Meyering  <meyering@redhat.com>
669
670         maint.mk: catch "see @xref{}" and similar
671         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
672         prohibit "See also @xref{", "Also see @pxref{", and similar.
673
674 2012-04-16  Jim Meyering  <meyering@redhat.com>
675
676         bootstrap: really use gnulib's po/Makefile.in.in
677         * build-aux/bootstrap: Correct the source file name in previous change.
678         Reported by Akim Demaille.
679
680         configmake: correct minor inconsistency in Makefile rule
681         * modules/configmake (Makefile.am): All other rules like this one
682         run the final "mv -f ..." in the same backslash-continued command
683         as the one that does everything else.  This one put the mv -f ...
684         command on a separate, non-backslash-continued line.
685         Make it like the others.
686
687         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
688         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
689         the one from gettext.  Reported by Akim Demaille.
690
691 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
692
693         Fix recursion of install-* into po directories.
694         Bison's install-pdf bug reported by Hans Aberg at
695         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
696         * build-aux/po/Makefile.in.in (install-dvi, install-html)
697         (install-info, install-pdf, install-ps): New targets.
698
699 2012-04-16  Jim Meyering  <meyering@redhat.com>
700
701         maint: avoid spurious "make sc_maint" failure
702         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
703         exempt all *.class file names, for lib/javaversion.class.
704
705 2012-04-15  Bruno Haible  <bruno@clisp.org>
706
707         lseek: Make configure test independent of environment.
708         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
709         Windows, we know that lseek() on pipes is broken; skip the runtime
710         test.
711
712 2012-04-14  Bruno Haible  <bruno@clisp.org>
713
714         stat: Bypass buggy override in mingw64.
715         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
716         * lib/stat.c (stat) [mingw64]: Define to _stat.
717         * doc/posix-functions/stat.texi: Mention mingw64 bug.
718
719 2012-04-14  Bruno Haible  <bruno@clisp.org>
720
721         pathmax: Fix compilation error on MSVC 9.
722         * modules/pathmax (Depends-on): Add unistd.
723
724 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
725
726         README: document pointer comparison assumption
727         * README (Portability guidelines): Document assumption about
728         pointer comparisons, in response to a recent bug-gnulib comment by
729         Jeffrey Kegler.
730
731 2012-04-12  Bruno Haible  <bruno@clisp.org>
732
733         Tests for module 'getrusage'.
734         * modules/getrusage-tests: New file.
735         * tests/test-getrusage.c: New file.
736
737         New module 'getrusage'.
738         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
739         warn-on-use.h.
740         (getrusage): New declaration.
741         * lib/getrusage.c: New file.
742         * m4/getrusage.m4: New file.
743         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
744         is declared.
745         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
746         HAVE_GETRUSAGE.
747         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
748         snippet/c++defs, snippet/warn-on-use.
749         (Makefile.am): Update generation of sys/resource.h. Substitute
750         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
751         * modules/getrusage: New file.
752         * doc/posix-functions/getrusage.texi: Mention the new module.
753
754 2012-04-12  Bruno Haible  <bruno@clisp.org>
755
756         Tests for module 'sys_resource'.
757         * modules/sys_resource-tests: New file.
758         * tests/test-sys_resource.c: New file.
759
760         New module 'sys_resource'.
761         * lib/sys_resource.in.h: New file.
762         * m4/sys_resource_h.m4: New file.
763         * modules/sys_resource: New file.
764         * doc/posix-headers/sys_resource.texi: Mention the new module.
765
766 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
767
768         ioctl: Fix compilation error on mingw.
769         * lib/ioctl.c: Include <windows.h>.
770         Also reported by Ray Satiro <raysatiro@yahoo.com>.
771
772 2012-04-04  Jim Meyering  <meyering@redhat.com>
773
774         regex: correct #pragma guard expression
775         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
776         not 4.3.  Correct its cpp guard expression.
777
778 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
779
780         regex: remove unnecessary type punning
781         Problem reported by Vladimir Serbinenko in
782         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
783         * lib/regex.h (struct re_pattern_buffer): Change the type of
784         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
785         Fix comment to match code.
786         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
787         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
788         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
789         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
790         (set_regs):
791         Omit no-longer-necessary casts.
792
793 2012-04-03  Bruno Haible  <bruno@clisp.org>
794
795         Tests for module 'ilogbl'.
796         * modules/ilogbl-tests: New file.
797         * tests/test-ilogbl.c: New file.
798
799         New module 'ilogbl'.
800         * lib/math.in.h (ilogbl): New declaration.
801         * lib/ilogbl.c: New file.
802         * m4/ilogbl.m4: New file.
803         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
805         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
806         Split sed invocation, to avoid the limit of 100 substitutions of
807         HP-UX 'sed'.
808         * modules/ilogbl: New file.
809         * tests/test-math-c++.cc: Check the declaration of ilogbl.
810         * doc/posix-functions/ilogbl.texi: Mention the new module.
811
812 2012-04-03  Bruno Haible  <bruno@clisp.org>
813
814         Tests for module 'ilogbf'.
815         * modules/ilogbf-tests: New file.
816         * tests/test-ilogbf.c: New file.
817
818         New module 'ilogbf'.
819         * lib/math.in.h (ilogbf): New declaration.
820         * lib/ilogbf.c: New file.
821         * m4/ilogbf.m4: New file.
822         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
824         REPLACE_ILOGBF.
825         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
826         REPLACE_ILOGBF.
827         * modules/ilogbf: New file.
828         * tests/test-math-c++.cc: Check the declaration of ilogbf.
829         * doc/posix-functions/ilogbf.texi: Mention the new module.
830
831 2012-04-03  Bruno Haible  <bruno@clisp.org>
832
833         Tests for module 'ilogb'.
834         * modules/ilogb-tests: New file.
835         * tests/test-ilogb.c: New file.
836         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
837         tests/test-logb-ieee.h.
838
839         New module 'ilogb'.
840         * lib/math.in.h (ilogb): New declaration.
841         * lib/ilogb.c: New file.
842         * m4/ilogb.m4: New file.
843         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
845         REPLACE_ILOGB.
846         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
847         REPLACE_ILOGB.
848         * modules/ilogb: New file.
849         * tests/test-math-c++.cc: Check the declaration of ilogb.
850         * doc/posix-functions/ilogb.texi: Mention the new module.
851
852 2012-04-03  Bruno Haible  <bruno@clisp.org>
853
854         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
855         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
856         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
857         (main): Check their values.
858         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
859         problem.
860
861 2012-04-03  Bruno Haible  <bruno@clisp.org>
862
863         Tests for module 'logbl-ieee'.
864         * modules/logbl-ieee-tests: New file.
865         * tests/test-logbl-ieee.c: New file.
866
867         New module 'logbl-ieee'.
868         * modules/logbl-ieee: New file.
869
870         Tests for module 'logb-ieee'.
871         * modules/logb-ieee-tests: New file.
872         * tests/test-logb-ieee.c: New file.
873
874         New module 'logb-ieee'.
875         * modules/logb-ieee: New file.
876
877         Tests for module 'logbf-ieee'.
878         * modules/logbf-ieee-tests: New file.
879         * tests/test-logbf-ieee.c: New file.
880         * tests/test-logb-ieee.h: New file.
881
882         New module 'logbf-ieee'.
883         * modules/logbf-ieee: New file.
884
885 2012-04-03  Bruno Haible  <bruno@clisp.org>
886
887         Tests for module 'logbl'.
888         * modules/logbl-tests: New file.
889         * tests/test-logbl.c: New file.
890
891         New module 'logbl'.
892         * lib/math.in.h (logbl): New declaration.
893         * lib/logbl.c: New file.
894         * m4/logbl.m4: New file.
895         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
897         REPLACE_LOGBL.
898         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
899         REPLACE_LOGBL.
900         * modules/logbl: New file.
901         * tests/test-math-c++.cc: Check the declaration of logbl.
902         * doc/posix-functions/logbl.texi: Mention the new module.
903
904 2012-04-02  Bruno Haible  <bruno@clisp.org>
905
906         Tests for module 'logbf'.
907         * modules/logbf-tests: New file.
908         * tests/test-logbf.c: New file.
909
910         New module 'logbf'.
911         * lib/math.in.h (logbf): New declaration.
912         * lib/logbf.c: New file.
913         * m4/logbf.m4: New file.
914         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
916         REPLACE_LOGBF.
917         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
918         REPLACE_LOGBF.
919         * modules/logbf: New file.
920         * tests/test-math-c++.cc: Check the declaration of logbf.
921         * doc/posix-functions/logbf.texi: Mention the new module.
922
923 2012-04-02  Bruno Haible  <bruno@clisp.org>
924
925         logb tests: More tests.
926         * tests/test-logb.h: New file, based on tests/test-logb.c and
927         tests/test-frexp.h.
928         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
929         (main): Just invoke test_function.
930         * modules/logb-tests (Files): Add tests/test-logb.h,
931         tests/minus-zero.h, tests/randomd.c.
932         (Makefile.am): Add randomd.c to test_logb_SOURCES.
933
934         logb: Provide replacement and workarounds.
935         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
936         is 1.
937         * lib/logb.c: New file.
938         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
939         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
941         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
942         * modules/logb (Files): Add lib/logb.c.
943         (Depends-on): Add isfinite, frexp, isnand.
944         (configure.ac): Compile the replacement code logb.c if needed.
945         * tests/test-math-c++.cc: Check the declaration of logb.
946         * doc/posix-functions/logb.texi: Mention the replacement and the bug
947         with subnormal numbers.
948
949 2012-04-02  Bruno Haible  <bruno@clisp.org>
950
951         log10* tests: Speed up.
952         * tests/test-log10.h (test_function): Reduce amount of random numbers
953         to test.
954
955 2012-04-01  Bruno Haible  <bruno@clisp.org>
956
957         logf-ieee: Fix test whether logf works.
958         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
959
960 2012-04-01  Bruno Haible  <bruno@clisp.org>
961
962         log10l: Work around log10l-ieee test failure on IRIX 6.5.
963         * lib/log10l.c: Include <float.h>
964         (log10l): On IRIX, normalize the +Infinity value.
965         * modules/log10l (Depends-on): Add 'float'.
966         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
967         +Infinity.
968
969         log10f-ieee: Work around test failure on NetBSD 5.1.
970         * m4/log10f-ieee.m4: New file.
971         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
972         test whether log10f works with a negative argument. Replace it if not.
973         * lib/log10f.c (log10f): For negative arguments, return NaN.
974         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
975         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
976         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
977
978         log10f-ieee: Work around test failure on Solaris 9.
979         * modules/log10f-ieee (Depends-on): Add log10-ieee.
980         (configure.ac): Require gl_FUNC_LOG10F.
981
982         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
983         * m4/log10-ieee.m4: New file.
984         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
985         whether log10 works with a negative argument. Replace it if not.
986         * lib/log10.c (log10): For negative arguments, return NaN.
987         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
988         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
989         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
990
991         Tests for module 'log10l-ieee'.
992         * modules/log10l-ieee-tests: New file.
993         * tests/test-log10l-ieee.c: New file.
994
995         New module 'log10l-ieee'.
996         * modules/log10l-ieee: New file.
997
998         Tests for module 'log10-ieee'.
999         * modules/log10-ieee-tests: New file.
1000         * tests/test-log10-ieee.c: New file.
1001
1002         New module 'log10-ieee'.
1003         * modules/log10-ieee: New file.
1004
1005         Tests for module 'log10f-ieee'.
1006         * modules/log10f-ieee-tests: New file.
1007         * tests/test-log10f-ieee.c: New file.
1008         * tests/test-log10-ieee.h: New file.
1009
1010         New module 'log10f-ieee'.
1011         * modules/log10f-ieee: New file.
1012
1013 2012-04-01  Bruno Haible  <bruno@clisp.org>
1014
1015         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1016         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1017         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1018         workaround.
1019         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1020         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1022         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1023         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1024         (Depends-on): Update conditions.
1025         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1026         IRIX 6.5, OSF/1 5.1 problems.
1027
1028 2012-04-01  Bruno Haible  <bruno@clisp.org>
1029
1030         log10f: Work around OSF/1 5.1 bug.
1031         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1032         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1033         workaround.
1034         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1035         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1037         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1038         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1039         (Depends-on): Update conditions.
1040         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1041
1042 2012-04-01  Bruno Haible  <bruno@clisp.org>
1043
1044         log10: Work around OSF/1 5.1 bug.
1045         * lib/math.in.h (log10): New declaration.
1046         * lib/log10.c: New file.
1047         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1048         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1049         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1051         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1052         * modules/log10 (Files): Add lib/log10.c.
1053         (Depends-on): Add math.
1054         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1055         * tests/test-math-c++.cc: Check the declaration of log10.
1056         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1057
1058 2012-03-31  Bruno Haible  <bruno@clisp.org>
1059
1060         log10l tests: More tests.
1061         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1062         tests/minus-zero.h, tests/randoml.c.
1063         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1064         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1065         (main): Invoke test_function.
1066
1067         log10f tests: More tests.
1068         * modules/log10f-tests (Files): Add tests/test-log10.h,
1069         tests/minus-zero.h, tests/randomf.c.
1070         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1071         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1072         (main): Invoke test_function.
1073
1074         log10 tests: More tests.
1075         * tests/test-log10.h: New file.
1076         * modules/log10-tests (Files): Add tests/test-log10.h,
1077         tests/minus-zero.h, tests/randomd.c.
1078         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1079         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1080         (main): Invoke test_function.
1081
1082 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1083
1084         fflush: Fix syntax error.
1085         * lib/fflush.c: Include unused-parameter.h, needed for
1086         _GL_UNUSED_PARAMETER.
1087         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1088
1089 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1090
1091         regex: pacify GCC when compiling GRUB
1092         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1093         a diagnostic.  Reported by Vladimir Serbinenko in
1094         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1095
1096 2012-03-29  Eric Blake  <eblake@redhat.com>
1097
1098         stdio: don't assume gets any more
1099         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1100         support.
1101         * modules/stdio (Makefile.am): Likewise.
1102         * lib/stdio-read.c (gets): Likewise.
1103         * tests/test-stdio-c++.cc: Likewise.
1104         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1105         * lib/stdio.in.h (gets): Make warning occur in more places.
1106         * doc/posix-functions/gets.texi (gets): Update documentation.
1107         Reported by Christer Solskogen.
1108
1109         maint.mk: fix syntax checks without exclusions
1110         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1111         Reported by Daniel P. Berrange.
1112
1113         strerror_r: avoid compiler warning
1114         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1115         level.
1116
1117         fflush: avoid compiler warning
1118         * lib/fflush.c (update_fpos_cache): Mark variables that are
1119         potentially unused.
1120
1121 2012-03-25  Bruno Haible  <bruno@clisp.org>
1122
1123         Tests for module 'localeconv'.
1124         * modules/localeconv-tests: New file.
1125         * tests/test-localeconv.c: New file.
1126
1127         New module 'localeconv'.
1128         * lib/locale.in.h (localeconv): New declaration.
1129         * lib/localeconv.c: New file.
1130         * m4/localeconv.m4: New file.
1131         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1132         REPLACE_LOCALECONV.
1133         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1134         REPLACE_LOCALECONV.
1135         * modules/localeconv: New file.
1136         * modules/nl_langinfo (Depends-on): Add localeconv.
1137         * modules/human (Depends-on): Likewise.
1138         * doc/posix-functions/localeconv.texi: Mention the new module.
1139
1140 2012-03-25  Bruno Haible  <bruno@clisp.org>
1141
1142         locale: Provide a complete 'struct lconv'.
1143         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1144         'struct lconv' does not contain int_p_cs_precedes.
1145         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1146         * doc/posix-headers/locale.texi: Update.
1147
1148         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1149         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1150         * doc/posix-headers/locale.texi: Update.
1151
1152         locale: Provide a working 'struct lconv'.
1153         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1154         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1155         'struct lconv' does not even contain decimal_point.
1156         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1157         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1158         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1159         * doc/posix-headers/locale.texi: Mention the problems with
1160         'struct lconv'.
1161         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1162
1163 2012-03-24  Bruno Haible  <bruno@clisp.org>
1164
1165         Enable common subexpression optimization in GCC.
1166         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1167         macros.
1168         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1169         GCC attribute 'const'.
1170         (uc_locale_language): Declare with GCC attribute 'pure'.
1171         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1172         with GCC attribute 'const'.
1173         * lib/unictype.in.h (uc_is_general_category_withtable,
1174         uc_combining_class, uc_combining_class_name,
1175         uc_combining_class_long_name, uc_bidi_class_name,
1176         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1177         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1178         uc_decimal_value, uc_digit_value, uc_numeric_value,
1179         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1180         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1181         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1182         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1183         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1184         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1185         Declare with GCC attribute 'const'.
1186         (uc_general_category_name, uc_general_category_long_name,
1187         uc_general_category_byname, uc_general_category,
1188         uc_is_general_category, uc_combining_class_byname,
1189         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1190         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1191         Declare with GCC attribute 'pure'.
1192         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1193         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1194         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1195         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1196         with GCC attribute 'pure'.
1197         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1198         'const'.
1199         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1200         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1201         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1202         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1203         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1204         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1205         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1206         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1207         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1208         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1209         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1210         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1211         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1212         GCC attribute 'pure'.
1213         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1214         'const'.
1215         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1216         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1217         u32_strwidth): Declare with GCC attribute 'pure'.
1218
1219         Enable common subexpression optimization in GCC.
1220         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1221         (alphasort): Declare with GCC attribute 'pure'.
1222         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1223         (atoll): Declare with GCC attribute 'pure'.
1224         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1225         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1226         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1227         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1228         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1229         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1230         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1231
1232 2012-03-24  Bruno Haible  <bruno@clisp.org>
1233
1234         gnulib-tool: Avoid unintended error output from 'cmp'.
1235         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1236         "cmp -s", not "cmp > /dev/null".
1237
1238 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1239
1240         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1241
1242         It's not just Automake versions < 1.9b that creates an empty
1243         pkgdatadir at installation time if pkgdata_DATA is specified
1244         to empty; modern automake versions do this as well, at least
1245         until automake 1.11.4 (not yet released at the moment of writing,
1246         but soon to appear).  That behaviour was generally considered a
1247         feature rather than a bug, at least until this discussion:
1248         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1249
1250         See also automake bugs #10997 and #11030.
1251
1252         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1253         reference to relevant automake bug numbers.
1254         (func_emit_tests_Makefile_am): Likewise.
1255
1256 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1257
1258         announce-gen: use Digest::SHA when possible
1259         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1260         back to Digest::SHA1 if necessary.
1261
1262 2012-03-20  Jim Meyering  <meyering@redhat.com>
1263
1264         tests: avoid gcc warnings about argv vs. const initializers
1265         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1266         warnings about discarding 'const' qualifier from pointer target type.
1267         * tests/test-posix_spawn2.c (main): Likewise.
1268
1269 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1270
1271         README-release: simplify slightly
1272         * top/README-release: Run "git checkout master" only once.
1273
1274 2012-03-15  Mark Wielaard  <mark@klomp.org>
1275
1276         git-merge-changelog: add specific example on how to use with hg.
1277         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1278
1279 2012-03-18  Mark Wielaard  <mark@klomp.org>
1280
1281         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1282
1283 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1284
1285         git-version-gen: don't let "prefix" envvar cause trouble
1286         * build-aux/git-version-gen (prefix): Initialize properly,
1287         so as not to use a value specified via the environment.
1288         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1289
1290 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1291
1292         regex: diagnose too-large repeat counts in EREs
1293         Previously, the code did not diagnose the too-large repeat count
1294         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1295         as if it were 'b\{1000000000}', which is unexpected.
1296         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1297         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1298         is a reasonable one for this problem.  Another option would be to
1299         create a new REG_OVERFLOW error for repeat counts that are too large.
1300         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1301         count is too large, so that the caller can distinguish the two cases.
1302         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1303         "Too large" return code, and that repeat counts are one example of this.
1304
1305 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1306
1307         doc: some glibc x32 integer width issues
1308         * doc/posix-headers/sys_types.texi (sys/types.h):
1309         * doc/posix-headers/time.texi (time.h):
1310         Mention that glibc x32 does not conform to POSIX in a couple of
1311         areas related to integer widths.
1312
1313 2012-03-15  Bruno Haible  <bruno@clisp.org>
1314
1315         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1316         * lib/fma.c (VOLATILE): New macro.
1317         (FUNC): Use it to work around a GCC compiler bug.
1318
1319 2012-03-13  Bruno Haible  <bruno@clisp.org>
1320
1321         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1322         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1323         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1324         REPLACE_HYPOTL to 1.
1325         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1326
1327 2012-03-13  Bruno Haible  <bruno@clisp.org>
1328
1329         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1330         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1331         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1332         REPLACE_REMAINDERL to 1.
1333         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1334         bug.
1335
1336 2012-03-13  Bruno Haible  <bruno@clisp.org>
1337
1338         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1339         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1340         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1341         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1342         too big rounding errors.
1343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1344         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1345         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1346         (Depends-on): Update conditions.
1347         * tests/test-sqrtl.c (my_ldexpl): New function.
1348         (main): Add test of a particular value.
1349         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1350
1351 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1352
1353         doc: Update timer_* platform portability notes.
1354         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1355         that always return ENOSYS.
1356         * doc/posix-functions/timer_delete.texi: Likewise.
1357         * doc/posix-functions/timer_gettime.texi: Likewise.
1358         * doc/posix-functions/timer_settime.texi: Likewise.
1359
1360 2012-03-13  Bruno Haible  <bruno@clisp.org>
1361
1362         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1363         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1364         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1365         REPLACE_CBRTL to 1.
1366         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1367
1368 2012-03-13  Bruno Haible  <bruno@clisp.org>
1369
1370         remainderl: Avoid compilation error on AIX >= 5.2.
1371         * lib/math.in.h (remainderl): Undefine macro from the system header.
1372
1373 2012-03-13  Bruno Haible  <bruno@clisp.org>
1374
1375         Avoid compilation errors with MSVC option -fp:strict.
1376         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1377         * lib/cbrtf.c: Likewise.
1378         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1379
1380 2012-03-12  Bruno Haible  <bruno@clisp.org>
1381
1382         uninorm: Don't crash in out-of-memory conditions.
1383         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1384         gracefully.
1385         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1386         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1387
1388 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1389
1390         quote: fix syntax-check
1391         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1392         also exports quote_quoting_options.
1393
1394 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1395
1396         Collapse list of copyright years to ranges.  See
1397         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1398         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1399         build-aux/csharpexec.sh.in, build-aux/gnupload,
1400         build-aux/install-reloc, build-aux/javacomp.sh.in,
1401         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1402         build-aux/move-if-change, build-aux/reloc-ldflags,
1403         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1404
1405 2012-03-11  Bruno Haible  <bruno@clisp.org>
1406
1407         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1408         * m4/log2f-ieee.m4: New file.
1409         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1410         whether log2f works with a minus zero argument. Replace it if not.
1411         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1412         (Depends-on): Add log2-ieee.
1413         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1414         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1415
1416         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1417         * m4/log2-ieee.m4: New file.
1418         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1419         whether log2 works with a minus zero argument. Replace it if not.
1420         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1421         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1422         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1423
1424         Tests for module 'log2l-ieee'.
1425         * modules/log2l-ieee-tests: New file.
1426         * tests/test-log2l-ieee.c: New file.
1427
1428         New module 'log2l-ieee'.
1429         * modules/log2l-ieee: New file.
1430
1431         Tests for module 'log2-ieee'.
1432         * modules/log2-ieee-tests: New file.
1433         * tests/test-log2-ieee.c: New file.
1434
1435         New module 'log2-ieee'.
1436         * modules/log2-ieee: New file.
1437
1438         Tests for module 'log2f-ieee'.
1439         * modules/log2f-ieee-tests: New file.
1440         * tests/test-log2f-ieee.c: New file.
1441         * tests/test-log2-ieee.h: New file.
1442
1443         New module 'log2f-ieee'.
1444         * modules/log2f-ieee: New file.
1445
1446 2012-03-11  Bruno Haible  <bruno@clisp.org>
1447
1448         Tests for module 'log2l'.
1449         * modules/log2l-tests: New file.
1450         * tests/test-log2l.c: New file.
1451
1452         New module 'log2l'.
1453         * lib/math.in.h (log2l): New declaration.
1454         * lib/log2l.c: New file.
1455         * m4/log2l.m4: New file.
1456         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1458         REPLACE_LOG2L.
1459         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1460         REPLACE_LOG2L.
1461         * modules/log2l: New file.
1462         * tests/test-math-c++.cc: Check the declaration of log2l.
1463         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1464         and OSF/1 problems.
1465
1466 2012-03-11  Bruno Haible  <bruno@clisp.org>
1467
1468         Tests for module 'log2f'.
1469         * modules/log2f-tests: New file.
1470         * tests/test-log2f.c: New file.
1471
1472         New module 'log2f'.
1473         * lib/math.in.h (log2f): New declaration.
1474         * lib/log2f.c: New file.
1475         * m4/log2f.m4: New file.
1476         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1478         REPLACE_LOG2F.
1479         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1480         REPLACE_LOG2F.
1481         * modules/log2f: New file.
1482         * tests/test-math-c++.cc: Check the declaration of log2f.
1483         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1484         and OSF/1 and Cygwin problems.
1485
1486 2012-03-11  Bruno Haible  <bruno@clisp.org>
1487
1488         Tests for module 'log2'.
1489         * modules/log2-tests: New file.
1490         * tests/test-log2.c: New file.
1491         * tests/test-log2.h: New file.
1492
1493         New module 'log2'.
1494         * lib/math.in.h (log2): New declaration.
1495         * lib/log2.c: New file.
1496         * m4/log2.m4: New file.
1497         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1499         REPLACE_LOG2.
1500         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1501         REPLACE_LOG2.
1502         * modules/log2: New file.
1503         * tests/test-math-c++.cc: Check the declaration of log2.
1504         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1505         and OSF/1 and Cygwin problems.
1506
1507 2012-03-11  Bruno Haible  <bruno@clisp.org>
1508
1509         exp2* tests: More tests.
1510         * tests/test-exp2.h (test_function): Test all integral arguments that
1511         don't need to overflow or denormalized numbers.
1512         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1513         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1514         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1515
1516 2012-03-10  Bruno Haible  <bruno@clisp.org>
1517
1518         log1pl-ieee: Work around test failure on AIX 7.1.
1519         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1520
1521         log1pl-ieee: Work around test failure on IRIX 6.5.
1522         * m4/log1pl-ieee.m4: New file.
1523         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1524         test whether log1pl works with a minus zero argument. Replace it if
1525         not.
1526         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1528         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1529         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1530         (Depends-on): Update conditions.
1531         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1532         m4/signbit.m4.
1533         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1534         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1535
1536         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1537         * m4/log1pf-ieee.m4: New file.
1538         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1539         test whether log1pf works with a minus zero argument. Replace it if
1540         not.
1541         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1542         m4/signbit.m4.
1543         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1544         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1545
1546         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1547         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1548         (configure.ac): Require gl_FUNC_LOG1PF.
1549
1550         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1551         * m4/log1p-ieee.m4: New file.
1552         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1553         whether log1p works with a minus zero argument. Replace it if not.
1554         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1556         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1557         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1558         (Depends-on): Update conditions.
1559         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1560         m4/signbit.m4.
1561         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1562         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1563
1564         Tests for module 'log1pl-ieee'.
1565         * modules/log1pl-ieee-tests: New file.
1566         * tests/test-log1pl-ieee.c: New file.
1567
1568         New module 'log1pl-ieee'.
1569         * modules/log1pl-ieee: New file.
1570
1571         Tests for module 'log1p-ieee'.
1572         * modules/log1p-ieee-tests: New file.
1573         * tests/test-log1p-ieee.c: New file.
1574
1575         New module 'log1p-ieee'.
1576         * modules/log1p-ieee: New file.
1577
1578         Tests for module 'log1pf-ieee'.
1579         * modules/log1pf-ieee-tests: New file.
1580         * tests/test-log1pf-ieee.c: New file.
1581         * tests/test-log1p-ieee.h: New file.
1582
1583         New module 'log1pf-ieee'.
1584         * modules/log1pf-ieee: New file.
1585
1586 2012-03-10  Bruno Haible  <bruno@clisp.org>
1587
1588         Tests for module 'log1pl'.
1589         * modules/log1pl-tests: New file.
1590         * tests/test-log1pl.c: New file.
1591
1592         New module 'log1pl'.
1593         * lib/math.in.h (log1pl): New declaration.
1594         * lib/log1pl.c: New file.
1595         * m4/log1pl.m4: New file.
1596         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1598         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1599         * modules/log1pl: New file.
1600         * tests/test-math-c++.cc: Check the declaration of log1pl.
1601         * doc/posix-functions/log1pl.texi: Mention the new module.
1602
1603 2012-03-10  Bruno Haible  <bruno@clisp.org>
1604
1605         Tests for module 'log1pf'.
1606         * modules/log1pf-tests: New file.
1607         * tests/test-log1pf.c: New file.
1608
1609         New module 'log1pf'.
1610         * lib/math.in.h (log1pf): New declaration.
1611         * lib/log1pf.c: New file.
1612         * m4/log1pf.m4: New file.
1613         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1615         REPLACE_LOG1PF.
1616         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1617         REPLACE_LOG1PF.
1618         * modules/log1pf: New file.
1619         * tests/test-math-c++.cc: Check the declaration of log1pf.
1620         * doc/posix-functions/log1pf.texi: Mention the new module.
1621
1622 2012-03-10  Bruno Haible  <bruno@clisp.org>
1623
1624         log1p tests: More tests.
1625         * tests/test-log1p.h: New file.
1626         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1627         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1628         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1629         (main): Invoke test_function.
1630
1631         log1p: Provide replacement for Minix and MSVC.
1632         * lib/math.in.h (log1p): New declaration.
1633         * lib/log1p.c: New file.
1634         * m4/log1p.m4: New file.
1635         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1637         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1638         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1639         (Depends-on): Add math, isnand, log, round.
1640         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1641         HAVE_LOG1P is 0.
1642         * tests/test-math-c++.cc: Check the declaration of log1p.
1643         * doc/posix-functions/log1p.texi: Mention the replacement.
1644
1645 2012-03-10  Bruno Haible  <bruno@clisp.org>
1646
1647         math tests: Small simplification.
1648         * tests/test-exp.h (test_function): Use the same err_bound for
1649         'double' on platforms with sizeof (long double) == sizeof (double)
1650         than on platforms with sizeof (long double) > sizeof (double).
1651         * tests/test-exp2.h (test_function): Likewise.
1652         * tests/test-expm1.h (test_function): Likewise.
1653         * tests/test-log.h (test_function): Likewise.
1654
1655 2012-03-10  Bruno Haible  <bruno@clisp.org>
1656
1657         Fix some comments.
1658         * lib/expl.c: Fix an ambiguous comment.
1659         * lib/expm1.c: Likewise.
1660         * lib/expm1l.c: Likewise.
1661         * lib/exp2.c: Likewise.
1662         * lib/exp2l.c: Likewise.
1663
1664 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1665
1666         regex: allow inclusion of <regex.h> before <limits.h>
1667         Without this patch, portable programs had to include <limits.h> before
1668         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1669         I ran into this problem with a test version of GNU grep on Solaris 8.
1670         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1671         This is done conditionally so that this change can be merged
1672         back to glibc.
1673         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1674         using the included regex.
1675
1676         fts: depend on fdopendir
1677         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1678         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1679         problem was introduced when fdopendir was split out.
1680
1681 2012-03-10  Bruno Haible  <bruno@clisp.org>
1682
1683         Remove unused variables.
1684         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1685         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1686
1687 2012-03-10  Bruno Haible  <bruno@clisp.org>
1688
1689         isnanf-nolibm: Fix last commit.
1690         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1691
1692         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1693         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1694
1695 2012-03-10  Bruno Haible  <bruno@clisp.org>
1696
1697         logf-ieee: Work around test failure on NetBSD 5.1.
1698         * m4/logf-ieee.m4: New file.
1699         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1700         whether logf works with a negative argument. Replace it if not.
1701         * lib/logf.c (logf): For negative arguments, return NaN.
1702         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1703         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1704         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1705
1706         logf-ieee: Work around test failure on Solaris 9.
1707         * modules/logf-ieee (Depends-on): Add log-ieee.
1708         (configure.ac): Require gl_FUNC_LOGF.
1709
1710         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1711         * m4/log-ieee.m4: New file.
1712         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1713         log works with a negative argument. Replace it if not.
1714         * lib/log.c (log): For negative arguments, return NaN.
1715         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1716         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1717         * doc/posix-functions/log.texi: Mention the log-ieee module.
1718
1719         Tests for module 'logl-ieee'.
1720         * modules/logl-ieee-tests: New file.
1721         * tests/test-logl-ieee.c: New file.
1722
1723         New module 'logl-ieee'.
1724         * modules/logl-ieee: New file.
1725
1726         Tests for module 'log-ieee'.
1727         * modules/log-ieee-tests: New file.
1728         * tests/test-log-ieee.c: New file.
1729
1730         New module 'log-ieee'.
1731         * modules/log-ieee: New file.
1732
1733         Tests for module 'logf-ieee'.
1734         * modules/logf-ieee-tests: New file.
1735         * tests/test-logf-ieee.c: New file.
1736         * tests/test-log-ieee.h: New file.
1737
1738         New module 'logf-ieee'.
1739         * modules/logf-ieee: New file.
1740
1741 2012-03-10  Bruno Haible  <bruno@clisp.org>
1742
1743         log: Fix bug introduced on 2012-03-09.
1744         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1745
1746 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1747
1748         timer-time: link explicitly with pthreads on glibc
1749         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1750         to support static linking, when newer glibc is
1751         detected, as that contains pthread emulation of
1752         POSIX timer functions where required.
1753         * modules/timer-time: Depend on threadlib to
1754         pull in the appropriate library to link.
1755
1756 2012-03-10  Bruno Haible  <bruno@clisp.org>
1757
1758         log* tests: More tests.
1759         * tests/test-log.h: New file.
1760         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1761         (main): Invoke test_function.
1762         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1763         (main): Invoke test_function.
1764         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1765         (main): Invoke test_function.
1766         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1767         tests/randomd.c.
1768         (Makefile.am): Add randomd.c to test_log_SOURCES.
1769         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1770         tests/randomf.c.
1771         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1772         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1773         tests/randoml.c.
1774         (Depends-on): Add 'float'.
1775         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1776
1777 2012-03-09  Bruno Haible  <bruno@clisp.org>
1778
1779         logl: Work around OSF/1 5.1 bug.
1780         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1781         * lib/logl.c (logl): If logl exists, use it and provide just the
1782         workaround.
1783         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1784         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1786         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1787         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1788         (Depends-on): Update conditions.
1789         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1790
1791 2012-03-09  Bruno Haible  <bruno@clisp.org>
1792
1793         logf: Work around OSF/1 5.1 bug.
1794         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1795         * lib/logf.c (logf): If logf exists, use it and provide just the
1796         workaround.
1797         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1798         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1800         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1801         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1802         (Depends-on): Update conditions.
1803         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1804
1805 2012-03-09  Bruno Haible  <bruno@clisp.org>
1806
1807         log: Work around OSF/1 5.1 bug.
1808         * lib/math.in.h (log): New declaration.
1809         * lib/log.c: New file.
1810         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1811         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1812         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1814         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1815         * modules/log (Files): Add lib/log.c.
1816         (Depends-on): Add math.
1817         (configure.ac): If REPLACE_LOG is 1, compile an override.
1818         * tests/test-math-c++.cc: Check the declaration of log.
1819         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1820
1821 2012-03-09  Jim Meyering  <meyering@redhat.com>
1822
1823         readtokens.c: adjust wording in a comment
1824         * lib/readtokens.c: Insert omitted "that" in a comment.
1825
1826 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         modechange: add notations +40, 00440, etc.
1829         * lib/modechange.c (mode_compile): Support new notations
1830         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1831
1832 2012-03-08  Bruno Haible  <bruno@clisp.org>
1833
1834         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1835         * m4/exp2l-ieee.m4: New file.
1836         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1837         test whether exp2l works with a NaN argument and with a negative
1838         infinity argument. Replace it if not.
1839         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1841         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1842         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1843         (Depends-on): Update conditions.
1844         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1845         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1846         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1847
1848         Tests for module 'exp2l-ieee'.
1849         * modules/exp2l-ieee-tests: New file.
1850         * tests/test-exp2l-ieee.c: New file.
1851
1852         New module 'exp2l-ieee'.
1853         * modules/exp2l-ieee: New file.
1854
1855         Tests for module 'exp2-ieee'.
1856         * modules/exp2-ieee-tests: New file.
1857         * tests/test-exp2-ieee.c: New file.
1858
1859         New module 'exp2-ieee'.
1860         * modules/exp2-ieee: New file.
1861
1862         Tests for module 'exp2f-ieee'.
1863         * modules/exp2f-ieee-tests: New file.
1864         * tests/test-exp2f-ieee.c: New file.
1865         * tests/test-exp2-ieee.h: New file.
1866
1867         New module 'exp2f-ieee'.
1868         * modules/exp2f-ieee: New file.
1869
1870 2012-03-08  Bruno Haible  <bruno@clisp.org>
1871
1872         Tests for module 'exp2l'.
1873         * modules/exp2l-tests: New file.
1874         * tests/test-exp2l.c: New file.
1875
1876         New module 'exp2l'.
1877         * lib/math.in.h (exp2l): New declaration.
1878         * lib/exp2l.c: New file.
1879         * lib/expl-table.c: New file, extracted from lib/expl.c.
1880         * lib/expl.c (gl_expl_table): New declaration.
1881         (expl): Remove expl_table. Update reference.
1882         * m4/exp2l.m4: New file.
1883         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1885         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1886         * modules/exp2l: New file.
1887         * modules/expl (Files): Add lib/expl-table.c.
1888         (configure.ac): Compile also expl-table.c.
1889         * tests/test-math-c++.cc: Check the declaration of exp2l.
1890         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1891         problem.
1892
1893 2012-03-08  Bruno Haible  <bruno@clisp.org>
1894
1895         Tests for module 'exp2f'.
1896         * modules/exp2f-tests: New file.
1897         * tests/test-exp2f.c: New file.
1898
1899         New module 'exp2f'.
1900         * lib/math.in.h (exp2f): New declaration.
1901         * lib/exp2f.c: New file.
1902         * m4/exp2f.m4: New file.
1903         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1905         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1906         * modules/exp2f: New file.
1907         * tests/test-math-c++.cc: Check the declaration of exp2f.
1908         * doc/posix-functions/exp2f.texi: Mention the new module and the
1909         IRIX problem.
1910
1911 2012-03-08  Bruno Haible  <bruno@clisp.org>
1912
1913         Tests for module 'exp2'.
1914         * modules/exp2-tests: New file.
1915         * tests/test-exp2.c: New file.
1916         * tests/test-exp2.h: New file.
1917
1918         New module 'exp2'.
1919         * lib/math.in.h (exp2): New declaration.
1920         * lib/exp2.c: New file.
1921         * m4/exp2.m4: New file.
1922         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1924         REPLACE_EXP2.
1925         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1926         REPLACE_EXP2.
1927         * modules/exp2: New file.
1928         * tests/test-math-c++.cc: Check the declaration of exp2.
1929         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1930         and OpenBSD problems.
1931
1932 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1933
1934         savedir: fix comment typo
1935         * lib/savedir.c (savedirstream): Fix typo in comment.
1936
1937 2012-03-08  Bruno Haible  <bruno@clisp.org>
1938
1939         test-readtokens.c: use const; remove unwarranted cast
1940         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1941
1942 2012-03-08  Bruno Haible  <bruno@clisp.org>
1943
1944         fmal: Avoid compilation error on AIX.
1945         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1946         AIX 5.2..7.1.
1947
1948 2012-03-08  Bruno Haible  <bruno@clisp.org>
1949
1950         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1951         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1952         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1953         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1954         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1955         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1956         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1957
1958 2012-03-08  Bruno Haible  <bruno@clisp.org>
1959
1960         remainderf: Override buggy system function on IRIX 6.5.
1961         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1962         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1963         when it exists.
1964         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1965
1966 2012-03-08  Jim Meyering  <meyering@redhat.com>
1967
1968         test-readtokens.c: avoid const-related compilation warnings
1969         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1970
1971 2012-03-07  Jim Meyering  <meyering@redhat.com>
1972             Bruno Haible  <bruno@clisp.org>
1973
1974         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1975         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1976         tests/randomd.c.
1977         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1978         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1979         tests/randoml.c.
1980         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1981
1982 2012-03-07  Bruno Haible  <bruno@clisp.org>
1983
1984         expm1l: Avoid compilation error on AIX.
1985         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1986         AIX 5.2..7.1.
1987
1988 2012-03-07  Bruno Haible  <bruno@clisp.org>
1989
1990         expm1l: Don't override undeclared system function on IRIX 6.5.
1991         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1992         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1993         it exists. Set HAVE_DECL_EXPM1L.
1994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1995         HAVE_EXPM1L.
1996         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1997         HAVE_EXPM1L.
1998         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1999
2000 2012-03-07  Bruno Haible  <bruno@clisp.org>
2001
2002         remainderl: Don't override undeclared system function on IRIX 6.5.
2003         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2004         HAVE_REMAINDERL.
2005         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2006         declared when it exists. Set HAVE_DECL_REMAINDERL.
2007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2008         not HAVE_REMAINDERL.
2009         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2010         HAVE_REMAINDERL.
2011         * doc/posix-functions/remainderl.texi: Mention missing declaration
2012         problem.
2013
2014 2012-03-07  Bruno Haible  <bruno@clisp.org>
2015
2016         rintf: Don't override undeclared system function on IRIX 6.5.
2017         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2018         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2019         exists. Set HAVE_DECL_RINTF.
2020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2021         HAVE_RINTF.
2022         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2023         HAVE_RINTF.
2024         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2025
2026 2012-03-07  Bruno Haible  <bruno@clisp.org>
2027
2028         roundl: Avoid compilation error on AIX.
2029         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2030         AIX 5.2..7.1.
2031
2032 2012-03-07  Bruno Haible  <bruno@clisp.org>
2033
2034         roundl: Don't override undeclared system function on IRIX 6.5.
2035         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2036         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2037         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2038         * modules/roundl (configure.ac): For replacement code, test
2039         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2040         (Depends-on): Update conditions.
2041         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2042
2043 2012-03-07  Bruno Haible  <bruno@clisp.org>
2044
2045         roundf: Don't override undeclared system function on IRIX 6.5.
2046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2047         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2048         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2049         * modules/roundf (configure.ac): For replacement code, test
2050         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2051         (Depends-on): Update conditions.
2052         * modules/roundf-ieee (Depends-on): Update conditions.
2053         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2054
2055 2012-03-07  Bruno Haible  <bruno@clisp.org>
2056
2057         round: Don't override undeclared system function on IRIX 6.5.
2058         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2059         argument.
2060         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2061         also when it is not declared. Set HAVE_ROUND. For replacement code,
2062         test HAVE_ROUND, not HAVE_DECL_ROUND.
2063         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2064         not HAVE_DECL_ROUND.
2065         (Depends-on): Update conditions.
2066         * modules/round-ieee (Depends-on): Update conditions.
2067         * doc/posix-functions/round.texi: Mention the IRIX problem.
2068
2069 2012-03-07  Bruno Haible  <bruno@clisp.org>
2070
2071         copysignf: Don't override undeclared system function on IRIX 6.5.
2072         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2073         HAVE_COPYSIGNF.
2074         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2075         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2077         not HAVE_COPYSIGNF.
2078         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2079         HAVE_COPYSIGNF.
2080         * doc/posix-functions/copysignf.texi: Mention missing declaration
2081         problem.
2082
2083 2012-03-07  Jim Meyering  <meyering@redhat.com>
2084
2085         readtokens: add tests
2086         * modules/readtokens-tests: New file.
2087         * tests/test-readtokens.c: New file.
2088
2089 2012-03-07  Jim Meyering  <meyering@redhat.com>
2090
2091         quotearg: the module must now include quote.h
2092         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2093         So must the module.
2094         * modules/quotearg (Files): Add quote.h.
2095
2096 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2097
2098         readtokens: avoid core dumps with unusual calling patterns
2099         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2100         * lib/readtokens.c: Include limits.h.
2101         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2102         (readtoken): Don't cache the delimiters; the cache code was buggy
2103         if !delim && saved_delim, or if the new n_delim differs from the old.
2104         Also, it wasn't thread-safe.
2105
2106 2012-03-07  Bruno Haible  <bruno@clisp.org>
2107
2108         quote: Adhere to common module description layout.
2109         * modules/quote (Makefile.am): Add back empty section.
2110
2111 2012-03-06  Akim Demaille  <demaille@gostai.com>
2112
2113         quote: fuse into quotearg
2114         This patch is made for the benefit of Bison.
2115         quote does not leave the choice of the quoting style to the user.
2116         quoting_style provides poor customizability, yet quoting_options,
2117         which is very rich, is hidden inside quotearg.c.  So in order to
2118         allow quote customization, move its implementation to quotearg.c.
2119         * lib/quote.c: Remove.
2120         * modules/quote: Adjust.
2121         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2122         warning: provide all the members of literal structs.
2123         (quote_quoting_options): New.
2124         (quote, quote_n): Import implementation from quote.c.
2125         * lib/quote.h: Import the comments from quote.c.
2126         (quote_quoting_options): New.
2127
2128 2012-03-06  Bruno Haible  <bruno@clisp.org>
2129
2130         Tests for module 'expm1l-ieee'.
2131         * modules/expm1l-ieee-tests: New file.
2132         * tests/test-expm1l-ieee.c: New file.
2133
2134         New module 'expm1l-ieee'.
2135         * modules/expm1l-ieee: New file.
2136
2137         Tests for module 'expm1f-ieee'.
2138         * modules/expm1f-ieee-tests: New file.
2139         * tests/test-expm1f-ieee.c: New file.
2140
2141         New module 'expm1f-ieee'.
2142         * modules/expm1f-ieee: New file.
2143
2144         Tests for module 'expm1-ieee'.
2145         * modules/expm1-ieee-tests: New file.
2146         * tests/test-expm1-ieee.c: New file.
2147         * tests/test-expm1-ieee.h: New file.
2148
2149         New module 'expm1-ieee'.
2150         * modules/expm1-ieee: New file.
2151         * m4/expm1-ieee.m4: New file.
2152         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2153         whether expm1 works with a minus zero argument. Replace it if not.
2154         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2156         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2157         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2158         (Depends-on): Update conditions.
2159         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2160         AIX problem.
2161
2162 2012-03-06  Bruno Haible  <bruno@clisp.org>
2163
2164         Work around expm1f bug on IRIX 6.5.
2165         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2166         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2167         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2168         not work.
2169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2170         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2171         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2172         (Depends-on): Update conditions.
2173         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2174
2175 2012-03-06  Bruno Haible  <bruno@clisp.org>
2176
2177         Tests for module 'expm1l'.
2178         * modules/expm1l-tests: New file.
2179         * tests/test-expm1l.c: New file.
2180
2181         New module 'expm1l'.
2182         * lib/math.in.h (expm1l): New declaration.
2183         * lib/expm1l.c: New file.
2184         * m4/expm1l.m4: New file.
2185         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2187         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2188         * modules/expm1l: New file.
2189         * tests/test-math-c++.cc: Check the declaration of expm1l.
2190         * doc/posix-functions/expm1l.texi: Mention the new module.
2191
2192 2012-03-06  Bruno Haible  <bruno@clisp.org>
2193
2194         Tests for module 'expm1f'.
2195         * modules/expm1f-tests: New file.
2196         * tests/test-expm1f.c: New file.
2197
2198         New module 'expm1f'.
2199         * lib/math.in.h (expm1f): New declaration.
2200         * lib/expm1f.c: New file.
2201         * m4/expm1f.m4: New file.
2202         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2204         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2205         * modules/expm1f: New file.
2206         * tests/test-math-c++.cc: Check the declaration of expm1f.
2207         * doc/posix-functions/expm1f.texi: Mention the new module.
2208
2209 2012-03-06  Bruno Haible  <bruno@clisp.org>
2210
2211         Tests for module 'expm1'.
2212         * modules/expm1-tests: New file.
2213         * tests/test-expm1.c: New file.
2214         * tests/test-expm1.h: New file.
2215
2216         New module 'expm1'.
2217         * lib/math.in.h (expm1): New declaration.
2218         * lib/expm1.c: New file.
2219         * m4/expm1.m4: New file.
2220         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2222         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2223         * modules/expm1: New file.
2224         * tests/test-math-c++.cc: Check the declaration of expm1.
2225         * doc/posix-functions/expm1.texi: Mention the new module.
2226
2227 2012-03-06  Bruno Haible  <bruno@clisp.org>
2228
2229         math: Ensure declarations of math functions.
2230         * modules/acosf (Depends-on): Add 'extensions'.
2231         * modules/asinf (Depends-on): Likewise.
2232         * modules/atan2f (Depends-on): Likewise.
2233         * modules/atanf (Depends-on): Likewise.
2234         * modules/cbrt (Depends-on): Likewise.
2235         * modules/cbrtf (Depends-on): Likewise.
2236         * modules/cbrtl (Depends-on): Likewise.
2237         * modules/copysignf (Depends-on): Likewise.
2238         * modules/copysignl (Depends-on): Likewise.
2239         * modules/cosf (Depends-on): Likewise.
2240         * modules/coshf (Depends-on): Likewise.
2241         * modules/expf (Depends-on): Likewise.
2242         * modules/fabsf (Depends-on): Likewise.
2243         * modules/fabsl (Depends-on): Likewise.
2244         * modules/fmaf (Depends-on): Likewise.
2245         * modules/fmal (Depends-on): Likewise.
2246         * modules/fmodf (Depends-on): Likewise.
2247         * modules/fmodl (Depends-on): Likewise.
2248         * modules/frexpf (Depends-on): Likewise.
2249         * modules/frexpl (Depends-on): Likewise.
2250         * modules/hypot (Depends-on): Likewise.
2251         * modules/hypotf (Depends-on): Likewise.
2252         * modules/hypotl (Depends-on): Likewise.
2253         * modules/ldexpf (Depends-on): Likewise.
2254         * modules/ldexpl (Depends-on): Likewise.
2255         * modules/log10f (Depends-on): Likewise.
2256         * modules/log10l (Depends-on): Likewise.
2257         * modules/log1p (Depends-on): Likewise.
2258         * modules/logb (Depends-on): Likewise.
2259         * modules/logf (Depends-on): Likewise.
2260         * modules/modff (Depends-on): Likewise.
2261         * modules/modfl (Depends-on): Likewise.
2262         * modules/powf (Depends-on): Likewise.
2263         * modules/remainderf (Depends-on): Likewise.
2264         * modules/remainderl (Depends-on): Likewise.
2265         * modules/rintf (Depends-on): Likewise.
2266         * modules/rintl (Depends-on): Likewise.
2267         * modules/sinf (Depends-on): Likewise.
2268         * modules/sinhf (Depends-on): Likewise.
2269         * modules/sqrtf (Depends-on): Likewise.
2270         * modules/tanf (Depends-on): Likewise.
2271         * modules/tanhf (Depends-on): Likewise.
2272         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2273         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2274         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2275         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2276         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2277         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2278         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2279         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2280         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2281         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2282         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2283         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2284         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2285         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2286         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2287         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2288         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2289         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2290         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2291         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2292         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2293         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2294         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2295         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2296         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2297         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2298         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2299         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2300         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2301         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2302         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2303         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2304         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2305         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2306         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2307         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2308         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2309         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2310         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2311         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2312         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2313
2314 2012-03-06  Bruno Haible  <bruno@clisp.org>
2315
2316         math: Update module names in warnings.
2317         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2318         tanl): Use specific module name in warn-on-use warning.
2319
2320 2012-03-06  Bruno Haible  <bruno@clisp.org>
2321
2322         expl: Simplify computation.
2323         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2324
2325 2012-03-05  Bruno Haible  <bruno@clisp.org>
2326
2327         exp* tests: More tests.
2328         * tests/test-exp.h: New file.
2329         * tests/test-exp.c: Include <float.h> and test-exp.h.
2330         (main): Invoke test_function.
2331         * tests/test-expf.c: Include <float.h> and test-exp.h.
2332         (main): Invoke test_function.
2333         * tests/test-expl.c: Include <float.h> and test-exp.h.
2334         (main): Invoke test_function.
2335         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2336         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2337         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2338         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2339         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2340         (Depends-on): Add 'float'.
2341         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2342
2343         expl: Fix precision of computed result.
2344         * lib/expl.c: Completely rewritten.
2345         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2346         (Maintainer): Add me.
2347         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2348
2349 2012-03-05  Bruno Haible  <bruno@clisp.org>
2350
2351         cbrt* tests: More tests.
2352         * tests/test-cbrt.h: New file.
2353         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2354         (main): Invoke test_function.
2355         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2356         (main): Invoke test_function.
2357         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2358         (main): Invoke test_function.
2359         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2360         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2361         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2362         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2363         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2364         (Depends-on): Add 'float'.
2365         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2366
2367 2012-03-05  Bruno Haible  <bruno@clisp.org>
2368
2369         hypot* tests: More tests.
2370         * tests/test-hypot.h: New file, partially extracted from
2371         tests/test-hypotl.c.
2372         * tests/test-hypot.c: Include test-hypot.h.
2373         (main): Invoke test_function.
2374         * tests/test-hypotf.c: Include test-hypot.h.
2375         (main): Invoke test_function.
2376         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2377         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2378         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2379         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2380         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2381         tests/randomf.c.
2382         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2383         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2384         tests/randoml.c.
2385         (Depends-on): Add 'fpucw', 'float'.
2386         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2387
2388 2012-03-05  Bruno Haible  <bruno@clisp.org>
2389
2390         fpucw: Doc about FreeBSD.
2391         * lib/fpucw.h: Mention FreeBSD in comments.
2392
2393 2012-03-04  Bruno Haible  <bruno@clisp.org>
2394
2395         sqrt* tests: More tests.
2396         * tests/test-sqrt.h: New file.
2397         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2398         (main): Invoke test_function.
2399         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2400         (main): Invoke test_function.
2401         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2402         (main): Invoke test_function.
2403         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2404         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2405         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2406         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2407         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2408         (Depends-on): Add 'float'.
2409         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2410
2411 2012-03-04  Bruno Haible  <bruno@clisp.org>
2412
2413         remainder* tests: More tests.
2414         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2415         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2416         (main): Invoke test_function.
2417         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2418         (main): Invoke test_function.
2419         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2420         (main): Invoke test_function.
2421         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2422         tests/randomd.c.
2423         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2424         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2425         tests/randomf.c.
2426         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2427         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2428         tests/randoml.c.
2429         (Depends-on): Add 'float'.
2430         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2431
2432 2012-03-04  Bruno Haible  <bruno@clisp.org>
2433
2434         remainder, remainderf, remainderl: Fix computation for large quotients.
2435         * lib/remainder.c: Completely rewritten.
2436         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2437         USE_FLOAT.
2438         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2439         USE_LONG_DOUBLE.
2440         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2441         isnand, isinf. Remove round, fma.
2442         * modules/remainderf (Files): Add lib/remainder.c.
2443         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2444         Remove roundf, fmaf.
2445         * modules/remainderl (Files): Add lib/remainder.c.
2446         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2447         isinf. Remove roundl, fmal.
2448         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2449         REMAINDER_LIBM.
2450         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2451         REMAINDERF_LIBM.
2452         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2453         REMAINDERL_LIBM.
2454
2455 2012-03-04  Bruno Haible  <bruno@clisp.org>
2456
2457         fmod* tests: More tests.
2458         * tests/test-fmod.h (my_ldexp): New function.
2459         (test_function): Reduce amount of random numbers to test. Add tests
2460         of very large quotients x / y.
2461         * tests/test-fmod.c (MAX_EXP): New macro.
2462         * tests/test-fmodf.c (MAX_EXP): Likewise.
2463         * tests/test-fmodl.c (MAX_EXP): Likewise.
2464
2465 2012-03-04  Bruno Haible  <bruno@clisp.org>
2466
2467         fmod, fmodl: Fix computation for large quotients x / y.
2468         * lib/fmod.c: Completely rewritten.
2469         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2470         USE_LONG_DOUBLE.
2471         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2472         isnand. Remove fma.
2473         * modules/fmodl (Files): Add lib/fmod.c.
2474         (Depends-on): Add float, isfinite, signbit, fabsl,
2475         frexpl, ldexpl, isnanl. Remove fma.
2476         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2477         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2478
2479 2012-03-03  Bruno Haible  <bruno@clisp.org>
2480
2481         fmod* tests: More tests.
2482         * tests/test-fmod.h: New file.
2483         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2484         (main): Invoke test_function.
2485         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2486         (main): Invoke test_function.
2487         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2488         (main): Invoke test_function.
2489         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2490         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2491         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2492         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2493         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2494         (Depends-on): Add 'float'.
2495         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2496
2497 2012-03-03  Bruno Haible  <bruno@clisp.org>
2498
2499         rint* tests: More tests.
2500         * tests/test-rint.h: New file, partially extracted from
2501         tests/test-rintl.c.
2502         * tests/test-rint.c: Include test-rint.h.
2503         (main): Invoke test_function.
2504         * tests/test-rintf.c: Include test-rint.h.
2505         (main): Invoke test_function.
2506         * tests/test-rintl.c: Include test-rint.h.
2507         (main): Invoke test_function.
2508         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2509         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2510         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2511         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2512         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2513         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2514
2515 2012-03-03  Bruno Haible  <bruno@clisp.org>
2516
2517         modf* tests: More tests.
2518         * tests/test-modf.h: New file.
2519         * tests/test-modf.c: Include <float.h> and test-modf.h.
2520         (main): Invoke test_function.
2521         * tests/test-modff.c: Include <float.h> and test-modf.h.
2522         (main): Invoke test_function.
2523         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2524         (main): Invoke test_function.
2525         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2526         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2527         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2528         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2529         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2530         (Depends-on): Add 'float'.
2531         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2532
2533 2012-03-03  Bruno Haible  <bruno@clisp.org>
2534
2535         fabs* tests: More tests.
2536         * tests/test-fabs.h: New file, partially extracted from
2537         tests/test-fabsl.c.
2538         * tests/test-fabs.c (RANDOM): New macro.
2539         * tests/test-fabsf.c (RANDOM): New macro.
2540         * tests/test-fabsl.c (RANDOM): New macro.
2541         * modules/fabs-tests (Files): Add tests/randomd.c.
2542         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2543         * modules/fabsf-tests (Files): Add tests/randomf.c.
2544         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2545         * modules/fabsl-tests (Files): Add tests/randoml.c.
2546         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2547
2548 2012-03-03  Bruno Haible  <bruno@clisp.org>
2549
2550         ldexp* tests: More tests.
2551         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2552         * tests/test-ldexp.c (RANDOM): New macro.
2553         * tests/test-ldexpf.c (RANDOM): New macro.
2554         * tests/test-ldexpl.c (RANDOM): New macro.
2555         * modules/ldexp-tests (Files): Add tests/randomd.c.
2556         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2557         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2558         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2559         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2560         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2561
2562 2012-03-03  Bruno Haible  <bruno@clisp.org>
2563
2564         frexp* tests: More tests.
2565         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2566         * tests/test-frexp.c (RANDOM): New macro.
2567         * tests/test-frexpf.c (RANDOM): New macro.
2568         * tests/test-frexpl.c (RANDOM): New macro.
2569         * modules/frexp-tests (Files): Add tests/randomd.c.
2570         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2571         * modules/frexpf-tests (Files): Add tests/randomf.c.
2572         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2573         * modules/frexpl-tests (Files): Add tests/randoml.c.
2574         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2575
2576 2012-03-03  Bruno Haible  <bruno@clisp.org>
2577
2578         Support for pseudo-random numbers in tests.
2579         * tests/randomf.c: New file.
2580         * tests/randomd.c: New file.
2581         * tests/randoml.c: New file.
2582         * tests/macros.h (randomf, randomd, randoml): New declarations.
2583
2584 2012-03-03  Bruno Haible  <bruno@clisp.org>
2585
2586         frexp* tests: Refactor.
2587         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2588         * tests/test-frexp.c: Include and use it.
2589         * tests/test-frexpf.c: Likewise.
2590         * tests/test-frexpl.c: Likewise.
2591         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2592         * modules/frexpf-tests (Files): Likewise.
2593         * modules/frexpl-tests (Files): Likewise.
2594
2595 2012-03-02  Jim Meyering  <meyering@redhat.com>
2596
2597         maint: don't specify XZ_OPT=-9ev in dist-related rule
2598         Using xz's -9 option is warranted only if you have a very large
2599         tarball (see xz's documentation for the sizes vs. presets), and
2600         requires 64MiB of memory at decompression time.
2601         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2602         Automake's default of just "-e" is fine.  Override on a
2603         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2604
2605 2012-03-01  Eric Blake  <eblake@redhat.com>
2606
2607         maint.mk: allow announcement for non-gnulib project
2608         * maint.mk (announcement): Skip gnulib version if not used.
2609
2610 2012-03-01  Jim Meyering  <meyering@redhat.com>
2611
2612         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2613         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2614         envvar settings cannot interfere.  Otherwise, setting envvars like
2615         prohibit=foo require=bar, etc. would cause spurious test failures.
2616
2617 2012-03-01  Eric Blake  <eblake@redhat.com>
2618
2619         maint.mk: add per-line exclusions to prohibitions
2620         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2621         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2622         (sc_const_long_option): Use it.
2623
2624 2012-03-01  Bruno Haible  <bruno@clisp.org>
2625
2626         Tests for module 'expl-ieee'.
2627         * modules/expl-ieee-tests: New file.
2628         * tests/test-expl-ieee.c: New file.
2629
2630         New module 'expl-ieee'.
2631         * modules/expl-ieee: New file.
2632
2633         Tests for module 'exp-ieee'.
2634         * modules/exp-ieee-tests: New file.
2635         * tests/test-exp-ieee.c: New file.
2636
2637         New module 'exp-ieee'.
2638         * modules/exp-ieee: New file.
2639
2640         Tests for module 'expf-ieee'.
2641         * modules/expf-ieee-tests: New file.
2642         * tests/test-expf-ieee.c: New file.
2643         * tests/test-exp-ieee.h: New file.
2644
2645         New module 'expf-ieee'.
2646         * modules/expf-ieee: New file.
2647
2648 2012-02-29  Bruno Haible  <bruno@clisp.org>
2649
2650         cbrtl-ieee: Work around test failure on IRIX 6.5.
2651         * m4/cbrtl-ieee.m4: New file.
2652         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2653         test whether cbrtl works with a minus zero argument. Replace it if not.
2654         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2656         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2657         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2658         (Depends-on): Update conditions.
2659         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2660         m4/signbit.m4.
2661         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2662         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2663         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2664
2665         Tests for module 'cbrtl-ieee'.
2666         * modules/cbrtl-ieee-tests: New file.
2667         * tests/test-cbrtl-ieee.c: New file.
2668
2669         New module 'cbrtl-ieee'.
2670         * modules/cbrtl-ieee: New file.
2671
2672         Tests for module 'cbrt-ieee'.
2673         * modules/cbrt-ieee-tests: New file.
2674         * tests/test-cbrt-ieee.c: New file.
2675
2676         New module 'cbrt-ieee'.
2677         * modules/cbrt-ieee: New file.
2678
2679         Tests for module 'cbrtf-ieee'.
2680         * modules/cbrtf-ieee-tests: New file.
2681         * tests/test-cbrtf-ieee.c: New file.
2682         * tests/test-cbrt-ieee.h: New file.
2683
2684         New module 'cbrtf-ieee'.
2685         * modules/cbrtf-ieee: New file.
2686
2687 2012-02-29  Bruno Haible  <bruno@clisp.org>
2688
2689         cbrtf: Work around bug in IRIX 6.5 system function.
2690         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2691         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2692         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2693         work.
2694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2695         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2696         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2697         (Depends-on): Update conditions.
2698         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2699
2700 2012-02-29  Bruno Haible  <bruno@clisp.org>
2701
2702         Tests for module 'cbrtl'.
2703         * modules/cbrtl-tests: New file.
2704         * tests/test-cbrtl.c: New file.
2705
2706         New module 'cbrtl'.
2707         * lib/math.in.h (cbrtl): New declaration.
2708         * lib/cbrtl.c: New file.
2709         * m4/cbrtl.m4: New file.
2710         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2712         HAVE_DECL_CBRTL.
2713         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2714         HAVE_DECL_CBRTL.
2715         * modules/cbrtl: New file.
2716         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2717         * doc/posix-functions/cbrtl.texi: Mention the new module.
2718
2719 2012-02-29  Bruno Haible  <bruno@clisp.org>
2720
2721         Tests for module 'cbrtf'.
2722         * modules/cbrtf-tests: New file.
2723         * tests/test-cbrtf.c: New file.
2724
2725         New module 'cbrtf'.
2726         * lib/math.in.h (cbrtf): New declaration.
2727         * lib/cbrtf.c: New file.
2728         * m4/cbrtf.m4: New file.
2729         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2731         HAVE_DECL_CBRTF.
2732         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2733         HAVE_DECL_CBRTF.
2734         * modules/cbrtf: New file.
2735         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2736         * doc/posix-functions/cbrtf.texi: Mention the new module.
2737
2738 2012-02-29  Bruno Haible  <bruno@clisp.org>
2739
2740         cbrt: Provide replacement on MSVC and Minix.
2741         * lib/math.in.h (cbrt): New declaration.
2742         * lib/cbrt.c: New file.
2743         * m4/cbrt.m4: New file.
2744         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2746         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2747         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2748         (Depends-on): Add dependencies.
2749         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2750         * tests/test-math-c++.cc: Check the declaration of cbrt.
2751         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2752         replacement.
2753
2754 2012-02-29  Bruno Haible  <bruno@clisp.org>
2755
2756         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2757         * m4/hypotl-ieee.m4: New file.
2758         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2759         test whether hypotl works with mixed NaN and Infinity arguments.
2760         Replace it if not.
2761         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2763         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2764         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2765         (Depends-on): Update conditions.
2766         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2767         (Depends-on): Add hypot-ieee.
2768         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2769         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2770
2771         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2772         * m4/hypotf-ieee.m4: New file.
2773         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2774         test whether hypotf works with mixed NaN and Infinity arguments.
2775         Replace it if not.
2776         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2777         (Depends-on): Add hypot-ieee.
2778         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2779         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2780
2781         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2782         * lib/math.in.h (hypot): New declaration.
2783         * lib/hypot.c: New file.
2784         * m4/hypot-ieee.m4: New file.
2785         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2786         whether hypot works with mixed NaN and Infinity arguments. Replace it
2787         if not.
2788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2789         REPLACE_HYPOT.
2790         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2791         * modules/hypot (Files): Add lib/hypot.c.
2792         (Depends-on): Add dependencies.
2793         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2794         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2795         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2796         * tests/test-math-c++.cc: Check the declaration of hypot.
2797         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2798
2799         Tests for module 'hypotl-ieee'.
2800         * modules/hypotl-ieee-tests: New file.
2801         * tests/test-hypotl-ieee.c: New file.
2802
2803         New module 'hypotl-ieee'.
2804         * modules/hypotl-ieee: New file.
2805
2806         Tests for module 'hypot-ieee'.
2807         * modules/hypot-ieee-tests: New file.
2808         * tests/test-hypot-ieee.c: New file.
2809
2810         New module 'hypot-ieee'.
2811         * modules/hypot-ieee: New file.
2812
2813         Tests for module 'hypotf-ieee'.
2814         * modules/hypotf-ieee-tests: New file.
2815         * tests/test-hypotf-ieee.c: New file.
2816         * tests/test-hypot-ieee.h: New file.
2817
2818         New module 'hypotf-ieee'.
2819         * modules/hypotf-ieee: New file.
2820
2821 2012-02-29  Bruno Haible  <bruno@clisp.org>
2822
2823         Remove unused variables.
2824         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2825         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2826         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2827         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2828
2829 2012-02-29  Eric Blake  <eblake@redhat.com>
2830
2831         termios: fix pid_t always, not just for tcgetsid
2832         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2833         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2834         just when building tcgetsid.
2835
2836 2012-02-29  Bruno Haible  <bruno@clisp.org>
2837
2838         Tests for module 'hypotl'.
2839         * modules/hypotl-tests: New file.
2840         * tests/test-hypotl.c: New file.
2841
2842         New module 'hypotl'.
2843         * lib/math.in.h (hypotl): New declaration.
2844         * lib/hypotl.c: New file.
2845         * m4/hypotl.m4: New file.
2846         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2848         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2849         * modules/hypotl: New file.
2850         * tests/test-math-c++.cc: Check the hypotl declaration.
2851         * doc/posix-functions/hypotl.texi: Mention the new module.
2852
2853 2012-02-29  Eric Blake  <eblake@redhat.com>
2854
2855         tcgetsid: fix cygwin header bug
2856         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2857
2858         docs: update cygwin progress
2859         * doc/posix-functions/llround.texi (llround): Added in cygwin
2860         1.7.8.
2861         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2862         * doc/glibc-functions/program_invocation_name.texi
2863         (program_invocation_name): Likewise.
2864         * doc/glibc-functions/program_invocation_short_name.texi
2865         (program_invocation_short_name): Likewise.
2866         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2867         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2868         Likewise.
2869         * doc/posix-functions/pthread_spin_destroy.texi
2870         (pthread_spin_destroy): Added in cygwin 1.7.10.
2871         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2872         Likewise.
2873         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2874         Likewise.
2875         * doc/posix-functions/pthread_spin_trylock.texi
2876         (pthread_spin_trylock): Likewise.
2877         * doc/posix-functions/pthread_spin_unlock.texi
2878         (pthread_spin_unlock): Likewise.
2879         * doc/posix-functions/pthread_setschedprio.texi
2880         (pthread_setschedprio): Likewise.
2881         * doc/posix-functions/pthread_attr_getstack.texi
2882         (pthread_attr_getstack): Likewise.
2883         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2884         (pthread_attr_getstackaddr): Likewise.
2885         * doc/glibc-functions/pthread_getattr_np.texi
2886         (pthread_getattr_np): Likewise.
2887         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2888         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2889         * doc/posix-functions/clock_settime.texi (clock_settime):
2890         Likewise.
2891         * doc/posix-functions/pthread_attr_getguardsize.texi
2892         (pthread_attr_getguardsize): Likewise.
2893         * doc/posix-functions/pthread_attr_setguardsize.texi
2894         (pthread_attr_setguardsize): Likewise.
2895         * doc/posix-functions/pthread_attr_setstack.texi
2896         (pthread_attr_setstack): Likewise.
2897         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2898         (pthread_attr_setstackaddr): Likewise.
2899         * doc/posix-functions/clock_getcpuclockid.texi
2900         (clock_getcpuclockid): Likewise.
2901         * doc/posix-functions/pthread_getcpuclockid.texi
2902         (pthread_getcpuclockid): Likewise.
2903         * doc/glibc-functions/error.texi (error): Likewise.
2904         * doc/glibc-functions/error_at_line.texi (error_at_line):
2905         Likewise.
2906         * doc/glibc-functions/error_message_count.texi
2907         (error_message_count): Likewise.
2908         * doc/glibc-functions/error_one_per_line.texi
2909         (error_one_per_line): Likewise.
2910         * doc/glibc-functions/error_print_progname.texi
2911         (error_print_progname): Likewise.
2912         * doc/posix-functions/pthread_condattr_getclock.texi
2913         (pthread_condattr_getclock): Likewise.
2914         * doc/posix-functions/pthread_condattr_setclock.texi
2915         (pthread_condattr_setclock): Likewise.
2916         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2917         Likewise.
2918         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2919         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2920         * doc/glibc-functions/get_current_dir_name.texi
2921         (get_current_dir_name): Likewise.
2922         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2923         Likewise.
2924         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2925         wrong return type.
2926         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2927         1.7.11.
2928
2929 2012-02-29  Bruno Haible  <bruno@clisp.org>
2930
2931         Tests for module 'hypotf'.
2932         * modules/hypotf-tests: New file.
2933         * tests/test-hypotf.c: New file.
2934
2935         New module 'hypotf'.
2936         * lib/math.in.h (hypotf): New declaration.
2937         * lib/hypotf.c: New file.
2938         * m4/hypotf.m4: New file.
2939         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2941         REPLACE_HYPOTF.
2942         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2943         REPLACE_HYPOTF.
2944         * modules/hypotf: New file.
2945         * tests/test-math-c++.cc: Check the hypotf declaration.
2946         * doc/posix-functions/hypotf.texi: Mention the new module.
2947
2948         hypot: Prepare for hypotf module.
2949         * m4/hypot.m4: New file.
2950         * modules/hypot (Files): Add m4/hypot.m4.
2951         (configure.ac): Invoke gl_FUNC_HYPOT.
2952
2953 2012-02-29  Bruno Haible  <bruno@clisp.org>
2954
2955         hypot tests: More tests.
2956         * tests/test-hypot.c: Include <float.h>.
2957         (main): Add tests about overflow and underflow.
2958
2959 2012-02-29  Bruno Haible  <bruno@clisp.org>
2960
2961         math code: Add comments.
2962         * lib/acosl.c: Add comment about related glibc source files.
2963         * lib/asinl.c: Likewise.
2964         * lib/atanl.c: Likewise.
2965         * lib/expl.c: Likewise.
2966         * lib/logl.c: Likewise.
2967         * lib/sincosl.c: Likewise.
2968         * lib/sinl.c: Likewise.
2969         * lib/tanl.c: Likewise.
2970         * lib/trigl.c: Likewise.
2971         * lib/cosl.c: Likewise. Fix comments.
2972
2973 2012-02-28  Bruno Haible  <bruno@clisp.org>
2974
2975         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2976         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2977         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2978         HUGE_VALL are defined.
2979         (numeric_equald): Renamed from numeric_equal.
2980         (numeric_equalf, numeric_equall): New functions.
2981         (main): Check also HUGE_VALF, HUGE_VALL.
2982         * modules/math-tests (Files): Add tests/macros.h.
2983         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2984         HUGE_VALL.
2985
2986 2012-02-28  Bruno Haible  <bruno@clisp.org>
2987
2988         doc: Move ISO C11 feature notes into POSIX chapters.
2989         * doc/posix-functions/aligned_alloc.texi: Renamed from
2990         doc/glibc-functions/aligned_alloc.texi.
2991         * doc/posix-functions/quick_exit.texi: Renamed from
2992         doc/glibc-functions/quick_exit.texi.
2993         * doc/posix-headers/uchar.texi: Renamed from
2994         doc/glibc-headers/uchar.texi.
2995         * doc/posix-functions/c16rtomb.texi: Renamed from
2996         doc/glibc-functions/c16rtomb.texi.
2997         * doc/posix-functions/c32rtomb.texi: Renamed from
2998         doc/glibc-functions/c32rtomb.texi.
2999         * doc/posix-functions/mbrtoc16.texi: Renamed from
3000         doc/glibc-functions/mbrtoc16.texi.
3001         * doc/posix-functions/mbrtoc32.texi: Renamed from
3002         doc/glibc-functions/mbrtoc32.texi.
3003         * doc/gnulib.texi: Update.
3004         (Glibc uchar.h): Remove section.
3005         Suggested by Eric Blake.
3006
3007 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3008
3009         stdnoreturn: port to MSVC better
3010         MSVC standard headers use __declspec(noreturn), so #define noreturn
3011         to empty on that platform.  Reported by Bruno Haible in
3012         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3013         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3014         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3015
3016 2012-02-28  Bruno Haible  <bruno@clisp.org>
3017
3018         doc: Mention new glibc headers and functions.
3019         * doc/glibc-headers/uchar.texi: New file.
3020         * doc/glibc-functions/aligned_alloc.texi: New file.
3021         * doc/glibc-functions/c16rtomb.texi: New file.
3022         * doc/glibc-functions/c32rtomb.texi: New file.
3023         * doc/glibc-functions/clock_adjtime.texi: New file.
3024         * doc/glibc-functions/fanotify_init.texi: New file.
3025         * doc/glibc-functions/fanotify_mark.texi: New file.
3026         * doc/glibc-functions/inet6_opt_append.texi: New file.
3027         * doc/glibc-functions/inet6_opt_find.texi: New file.
3028         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3029         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3030         * doc/glibc-functions/inet6_opt_init.texi: New file.
3031         * doc/glibc-functions/inet6_opt_next.texi: New file.
3032         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3033         * doc/glibc-functions/inet6_rth_add.texi: New file.
3034         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3035         * doc/glibc-functions/inet6_rth_init.texi: New file.
3036         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3037         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3038         * doc/glibc-functions/inet6_rth_space.texi: New file.
3039         * doc/glibc-functions/login.texi: New file.
3040         * doc/glibc-functions/mbrtoc16.texi: New file.
3041         * doc/glibc-functions/mbrtoc32.texi: New file.
3042         * doc/glibc-functions/name_to_handle_at.texi: New file.
3043         * doc/glibc-functions/ntp_gettimex.texi: New file.
3044         * doc/glibc-functions/open_by_handle_at.texi: New file.
3045         * doc/glibc-functions/prlimit.texi: New file.
3046         * doc/glibc-functions/process_vm_readv.texi: New file.
3047         * doc/glibc-functions/process_vm_writev.texi: New file.
3048         * doc/glibc-functions/recvmmsg.texi: New file.
3049         * doc/glibc-functions/scandirat.texi: New file.
3050         * doc/glibc-functions/sendmmsg.texi: New file.
3051         * doc/glibc-functions/setns.texi: New file.
3052         * doc/glibc-functions/timespec_get.texi: New file.
3053         * doc/gnulib.texi: Include them.
3054         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3055         sections.
3056         Reported by Eric Blake.
3057
3058 2012-02-28  Bruno Haible  <bruno@clisp.org>
3059
3060         Avoid compilation errors with MSVC option -fp:strict.
3061         * lib/floor.c: Use MSVC specific pragma fenv_access.
3062         * lib/ceil.c: Likewise.
3063         * lib/trunc.c: Likewise.
3064         * lib/round.c: Likewise.
3065         * lib/rint.c: Likewise.
3066         * lib/fma.c: Likewise.
3067         * lib/integer_length.c: Likewise.
3068         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3070         * tests/test-floor2.c: Likewise.
3071         * tests/test-floorf2.c: Likewise.
3072         * tests/test-ceil2.c: Likewise.
3073         * tests/test-ceilf2.c: Likewise.
3074         * tests/test-trunc2.c: Likewise.
3075         * tests/test-truncf2.c: Likewise.
3076         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3077
3078 2012-02-27  Bruno Haible  <bruno@clisp.org>
3079
3080         Tests for module 'sqrtl-ieee'.
3081         * modules/sqrtl-ieee-tests: New file.
3082         * tests/test-sqrtl-ieee.c: New file.
3083
3084         New module 'sqrtl-ieee'.
3085         * modules/sqrtl-ieee: New file.
3086
3087         Tests for module 'sqrt-ieee'.
3088         * modules/sqrt-ieee-tests: New file.
3089         * tests/test-sqrt-ieee.c: New file.
3090
3091         New module 'sqrt-ieee'.
3092         * modules/sqrt-ieee: New file.
3093
3094         Tests for module 'sqrtf-ieee'.
3095         * modules/sqrtf-ieee-tests: New file.
3096         * tests/test-sqrtf-ieee.c: New file.
3097         * tests/test-sqrt-ieee.h: New file.
3098
3099         New module 'sqrtf-ieee'.
3100         * modules/sqrtf-ieee: New file.
3101
3102 2012-02-27  Bruno Haible  <bruno@clisp.org>
3103
3104         remainderl-ieee: Work around test failure on OSF/1.
3105         * m4/remainderl-ieee.m4: New file.
3106         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3107         present, test whether remainderl works with a zero second argument.
3108         Replace it if not.
3109         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3111         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3112         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3113         (Depends-on): Update conditions.
3114         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3115         (Depends-on): Add remainder-ieee.
3116         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3117         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3118         module.
3119
3120         remainderf-ieee: Work around test failure on OSF/1.
3121         * m4/remainderf-ieee.m4: New file.
3122         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3123         present, test whether remainderf works with a zero second argument.
3124         Replace it if not.
3125         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3127         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3128         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3129         (Depends-on): Update conditions.
3130         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3131         (Depends-on): Add remainder-ieee.
3132         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3133         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3134         module.
3135
3136         remainder-ieee: Work around test failure on OSF/1.
3137         * m4/remainder-ieee.m4: New file.
3138         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3139         present, test whether remainder works with a zero second argument.
3140         Replace it if not.
3141         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3143         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3144         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3145         (Depends-on): Update dependencies.
3146         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3147         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3148         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3149
3150         Tests for module 'remainderl-ieee'.
3151         * modules/remainderl-ieee-tests: New file.
3152         * tests/test-remainderl-ieee.c: New file.
3153
3154         New module 'remainderl-ieee'.
3155         * modules/remainderl-ieee: New file.
3156
3157         Tests for module 'remainder-ieee'.
3158         * modules/remainder-ieee-tests: New file.
3159         * tests/test-remainder-ieee.c: New file.
3160
3161         New module 'remainder-ieee'.
3162         * modules/remainder-ieee: New file.
3163
3164         Tests for module 'remainderf-ieee'.
3165         * modules/remainderf-ieee-tests: New file.
3166         * tests/test-remainderf-ieee.c: New file.
3167         * tests/test-remainder-ieee.h: New file.
3168
3169         New module 'remainderf-ieee'.
3170         * modules/remainderf-ieee: New file.
3171
3172 2012-02-27  Bruno Haible  <bruno@clisp.org>
3173
3174         modff, modfl: Fix configure syntax error.
3175         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3176         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3177
3178 2012-02-27  Bruno Haible  <bruno@clisp.org>
3179
3180         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3181         * m4/fmodl-ieee.m4: New file.
3182         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3183         whether fmodl works with zero arguments. Replace it if not.
3184         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3185         (Depends-on): Add fmod-ieee.
3186         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3187         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3188
3189         fmodf-ieee: Work around test failure on OSF/1.
3190         * m4/fmodf-ieee.m4: New file.
3191         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3192         whether fmodf works with zero arguments. Replace it if not.
3193         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3195         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3196         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3197         (Depends-on): Update dependencies.
3198         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3199         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3200         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3201
3202         fmodf-ieee: Work around test failure on MSVC 9.
3203         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3204         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3205
3206         fmod-ieee: Work around test failures on OSF/1, mingw.
3207         * m4/fmod-ieee.m4: New file.
3208         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3209         whether fmod works with zero arguments. Replace it if not.
3210         * lib/math.in.h (fmod): New declaration.
3211         * lib/fmod.c: New file.
3212         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3214         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3215         * modules/fmod (Files): Add lib/fmod.c.
3216         (Depends-on): Add math, isinf, trunc, fma.
3217         (configure.ac): Arrange to compile lib/fmod.c if needed.
3218         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3219         m4/signbit.m4.
3220         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3221         * tests/test-math-c++.cc: Check the declaration of fmod.
3222         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3223
3224         fmodl-ieee: Fix test failures.
3225         * lib/fmodl.c (fmodl): Treat Inf specially.
3226         * modules/fmodl (Depends-on): Add isinf.
3227
3228         Tests for module 'fmodl-ieee'.
3229         * modules/fmodl-ieee-tests: New file.
3230         * tests/test-fmodl-ieee.c: New file.
3231
3232         New module 'fmodl-ieee'.
3233         * modules/fmodl-ieee: New file.
3234
3235         Tests for module 'fmod-ieee'.
3236         * modules/fmod-ieee-tests: New file.
3237         * tests/test-fmod-ieee.c: New file.
3238
3239         New module 'fmod-ieee'.
3240         * modules/fmod-ieee: New file.
3241
3242         Tests for module 'fmodf-ieee'.
3243         * modules/fmodf-ieee-tests: New file.
3244         * tests/test-fmodf-ieee.c: New file.
3245         * tests/test-fmod-ieee.h: New file.
3246
3247         New module 'fmodf-ieee'.
3248         * modules/fmodf-ieee: New file.
3249
3250 2012-02-27  Bruno Haible  <bruno@clisp.org>
3251
3252         Tests for module 'rintl-ieee'.
3253         * modules/rintl-ieee-tests: New file.
3254         * tests/test-rintl-ieee.c: New file.
3255
3256         New module 'rintl-ieee'.
3257         * modules/rintl-ieee: New file.
3258
3259         Tests for module 'rint-ieee'.
3260         * modules/rint-ieee-tests: New file.
3261         * tests/test-rint-ieee.c: New file.
3262
3263         New module 'rint-ieee'.
3264         * modules/rint-ieee: New file.
3265
3266         Tests for module 'rintf-ieee'.
3267         * modules/rintf-ieee-tests: New file.
3268         * tests/test-rintf-ieee.c: New file.
3269         * tests/test-rint-ieee.h: New file.
3270
3271         New module 'rintf-ieee'.
3272         * modules/rintf-ieee: New file.
3273
3274 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3275
3276         regex: re_search etc. should return -2 when memory exhausted
3277         This bug was uncovered when testing 'grep'.  Without the fix,
3278         re_search and friends return -1 when memory is exhausted, but -1
3279         means no match, and this causes grep to falsely report no-match
3280         instead of memory-exhaustion.  See
3281         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3282         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3283         trouble; this can occur if re_search_internal ran out of memory.
3284
3285 2012-02-26  Bruno Haible  <bruno@clisp.org>
3286
3287         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3288         * m4/modfl-ieee.m4: New file.
3289         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3290         whether modfl works with Inf. Replace it if not.
3291         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3293         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3294         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3295         (Depends-on): Update dependencies.
3296         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3297         m4/signbit.m4.
3298         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3299         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3300
3301         modfl-ieee: Fix dependencies.
3302         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3303
3304         modfl-ieee: Fix test failures.
3305         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3306         * modules/modfl (Depends-on): Add isfinite, isinf.
3307
3308         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3309         * m4/modff-ieee.m4: New file.
3310         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3311         whether modff works with NaN and Inf. Replace it if not.
3312         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3314         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3315         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3316         (Depends-on): Update dependencies.
3317         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3318         m4/signbit.m4.
3319         (Depends-on): Add modf-ieee.
3320         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3321         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3322
3323         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3324         * m4/modf-ieee.m4: New file.
3325         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3326         whether modf works with NaN and Inf. Replace it if not.
3327         * lib/math.in.h (modf): New declaration.
3328         * lib/modf.c: New file.
3329         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3331         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3332         * modules/modf (Files): Add lib/modf.c.
3333         (Depends-on): Add math, isfinite, trunc, isinf.
3334         (configure.ac): Addrange to compile lib/modf.c if needed.
3335         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3336         m4/signbit.m4.
3337         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3338         * tests/test-math-c++.cc: Check the declaration of modf.
3339         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3340
3341         Tests for module 'modfl-ieee'.
3342         * modules/modfl-ieee-tests: New file.
3343         * tests/test-modfl-ieee.c: New file.
3344
3345         New module 'modfl-ieee'.
3346         * modules/modfl-ieee: New file.
3347
3348         Tests for module 'modf-ieee'.
3349         * modules/modf-ieee-tests: New file.
3350         * tests/test-modf-ieee.c: New file.
3351
3352         New module 'modf-ieee'.
3353         * modules/modf-ieee: New file.
3354
3355         Tests for module 'modff-ieee'.
3356         * modules/modff-ieee-tests: New file.
3357         * tests/test-modff-ieee.c: New file.
3358         * tests/test-modf-ieee.h: New file.
3359
3360         New module 'modff-ieee'.
3361         * modules/modff-ieee: New file.
3362
3363 2012-02-26  Bruno Haible  <bruno@clisp.org>
3364
3365         Tests for module 'fabsl-ieee'.
3366         * modules/fabsl-ieee-tests: New file.
3367         * tests/test-fabsl-ieee.c: New file.
3368
3369         New module 'fabsl-ieee'.
3370         * modules/fabsl-ieee: New file.
3371
3372         Tests for module 'fabs-ieee'.
3373         * modules/fabs-ieee-tests: New file.
3374         * tests/test-fabs-ieee.c: New file.
3375
3376         New module 'fabs-ieee'.
3377         * modules/fabs-ieee: New file.
3378
3379         Tests for module 'fabsf-ieee'.
3380         * modules/fabsf-ieee-tests: New file.
3381         * tests/test-fabsf-ieee.c: New file.
3382         * tests/test-fabs-ieee.h: New file.
3383
3384         New module 'fabsf-ieee'.
3385         * modules/fabsf-ieee: New file.
3386
3387 2012-02-26  Bruno Haible  <bruno@clisp.org>
3388
3389         Tests for module 'fmal-ieee'.
3390         * modules/fmal-ieee-tests: New file.
3391         * tests/test-fmal-ieee.c: New file.
3392
3393         New module 'fmal-ieee'.
3394         * modules/fmal-ieee: New file.
3395
3396         Tests for module 'fma-ieee'.
3397         * modules/fma-ieee-tests: New file.
3398         * tests/test-fma-ieee.c: New file.
3399
3400         New module 'fma-ieee'.
3401         * modules/fma-ieee: New file.
3402
3403         Tests for module 'fmaf-ieee'.
3404         * modules/fmaf-ieee-tests: New file.
3405         * tests/test-fmaf-ieee.c: New file.
3406         * tests/test-fma-ieee.h: New file.
3407
3408         New module 'fmaf-ieee'.
3409         * modules/fmaf-ieee: New file.
3410
3411 2012-02-26  Bruno Haible  <bruno@clisp.org>
3412
3413         Tests for module 'ldexpl-ieee'.
3414         * modules/ldexpl-ieee-tests: New file.
3415         * tests/test-ldexpl-ieee.c: New file.
3416
3417         New module 'ldexpl-ieee'.
3418         * modules/ldexpl-ieee: New file.
3419
3420         Tests for module 'ldexp-ieee'.
3421         * modules/ldexp-ieee-tests: New file.
3422         * tests/test-ldexp-ieee.c: New file.
3423
3424         New module 'ldexp-ieee'.
3425         * modules/ldexp-ieee: New file.
3426
3427         Tests for module 'ldexpf-ieee'.
3428         * modules/ldexpf-ieee-tests: New file.
3429         * tests/test-ldexpf-ieee.c: New file.
3430         * tests/test-ldexp-ieee.h: New file.
3431
3432         New module 'ldexpf-ieee'.
3433         * modules/ldexpf-ieee: New file.
3434
3435 2012-02-26  Bruno Haible  <bruno@clisp.org>
3436
3437         Refactor frexp*-ieee tests.
3438         * tests/test-frexp-ieee.h: New file.
3439         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3440         (main): Just call test_function.
3441         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3442         (main): Just call test_function.
3443         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3444         (main): Just call test_function.
3445         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3446         * modules/frexp-ieee-tests (Files): Likewise.
3447         * modules/frexpl-ieee-tests (Files): Likewise.
3448
3449         Tests for module 'frexpl-ieee'.
3450         * modules/frexpl-ieee-tests: New file.
3451         * tests/test-frexpl-ieee.c: New file.
3452
3453         New module 'frexpl-ieee'.
3454         * modules/frexpl-ieee: New file.
3455
3456         Tests for module 'frexp-ieee'.
3457         * modules/frexp-ieee-tests: New file.
3458         * tests/test-frexp-ieee.c: New file.
3459
3460         New module 'frexp-ieee'.
3461         * modules/frexp-ieee: New file.
3462
3463         Tests for module 'frexpf-ieee'.
3464         * modules/frexpf-ieee-tests: New file.
3465         * tests/test-frexpf-ieee.c: New file.
3466
3467         New module 'frexpf-ieee'.
3468         * modules/frexpf-ieee: New file.
3469
3470 2012-02-26  Bruno Haible  <bruno@clisp.org>
3471
3472         roundl-ieee tests: More tests.
3473         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3474         (main): Add tests for [MX] shaded specification in POSIX.
3475         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3476         (Depends-on): Add isnanl-nolibm.
3477
3478         round-ieee tests: More tests.
3479         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3480         (main): Add tests for [MX] shaded specification in POSIX.
3481         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3482         (Depends-on): Add isnand-nolibm.
3483
3484         roundf-ieee tests: More tests.
3485         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3486         (main): Add tests for [MX] shaded specification in POSIX.
3487         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3488         (Depends-on): Add isnanf-nolibm.
3489
3490         truncl-ieee tests: More tests.
3491         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3492         (main): Add tests for [MX] shaded specification in POSIX.
3493         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3494         (Depends-on): Add isnanl-nolibm.
3495
3496         trunc-ieee tests: More tests.
3497         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3498         (main): Add tests for [MX] shaded specification in POSIX.
3499         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3500         (Depends-on): Add isnand-nolibm.
3501
3502         truncf-ieee tests: More tests.
3503         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3504         (main): Add tests for [MX] shaded specification in POSIX.
3505         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3506         (Depends-on): Add isnanf-nolibm.
3507
3508         ceill-ieee tests: More tests.
3509         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3510         (main): Add tests for [MX] shaded specification in POSIX.
3511         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3512         (Depends-on): Add isnanl-nolibm.
3513
3514         ceil-ieee tests: More tests.
3515         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3516         (main): Add tests for [MX] shaded specification in POSIX.
3517         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3518         (Depends-on): Add isnand-nolibm.
3519
3520         ceilf-ieee tests: More tests.
3521         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3522         (main): Add tests for [MX] shaded specification in POSIX.
3523         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3524         (Depends-on): Add isnanf-nolibm.
3525
3526         floorl-ieee tests: More tests.
3527         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3528         (main): Add tests for [MX] shaded specification in POSIX.
3529         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3530         (Depends-on): Add isnanl-nolibm.
3531
3532         floor-ieee tests: More tests.
3533         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3534         (main): Add tests for [MX] shaded specification in POSIX.
3535         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3536         (Depends-on): Add isnand-nolibm.
3537
3538         floorf-ieee tests: More tests.
3539         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3540         (main): Add tests for [MX] shaded specification in POSIX.
3541         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3542         (Depends-on): Add isnanf-nolibm.
3543
3544 2012-02-26  Bruno Haible  <bruno@clisp.org>
3545
3546         fpieee: More comments.
3547         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3548
3549 2012-02-25  Bruno Haible  <bruno@clisp.org>
3550
3551         Tests for module 'log10l'.
3552         * modules/log10l-tests: New file.
3553         * tests/test-log10l.c: New file.
3554         * tests/test-math-c++.cc: Check the declaration of log10l.
3555
3556         New module 'log10l'.
3557         * lib/math.in.h (log10l): New declaration.
3558         * lib/log10l.c: New file.
3559         * m4/log10l.m4: New file.
3560         * modules/log10l: New file.
3561         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3563         HAVE_DECL_LOG10L.
3564         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3565         HAVE_DECL_LOG10L.
3566         * doc/posix-functions/log10l.texi: Mention the new module.
3567
3568 2012-02-25  Bruno Haible  <bruno@clisp.org>
3569
3570         fmodl, remainder*: Avoid wrong results due to rounding errors.
3571         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3572         expected bounds.
3573         * lib/remainderf.c (remainderf): Likewise.
3574         * lib/remainder.c (remainder): Likewise.
3575         * lib/remainderl.c (remainderl): Likewise.
3576
3577 2012-02-25  Bruno Haible  <bruno@clisp.org>
3578
3579         Tests for module 'remainderl'.
3580         * modules/remainderl-tests: New file.
3581         * tests/test-remainderl.c: New file.
3582         * tests/test-math-c++.cc: Check the declaration of remainderl.
3583
3584         New module 'remainderl'.
3585         * lib/math.in.h (remainderl): New declaration.
3586         * lib/remainderl.c: New file.
3587         * m4/remainderl.m4: New file.
3588         * modules/remainderl: New file.
3589         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3591         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3592         HAVE_REMAINDERL.
3593         * doc/posix-functions/remainderl.texi: Mention the new module.
3594
3595 2012-02-25  Bruno Haible  <bruno@clisp.org>
3596
3597         Tests for module 'remainderf'.
3598         * modules/remainderf-tests: New file.
3599         * tests/test-remainderf.c: New file.
3600         * tests/test-math-c++.cc: Check the declaration of remainderf.
3601
3602         New module 'remainderf'.
3603         * lib/math.in.h (remainderf): New declaration.
3604         * lib/remainderf.c: New file.
3605         * m4/remainderf.m4: New file.
3606         * modules/remainderf: New file.
3607         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3609         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3610         HAVE_REMAINDERF.
3611         * doc/posix-functions/remainderf.texi: Mention the new module.
3612
3613 2012-02-25  Bruno Haible  <bruno@clisp.org>
3614
3615         remainder: Support for MSVC.
3616         * lib/math.in.h (remainder): New declaration.
3617         * lib/remainder.c: New file.
3618         * m4/remainder.m4: New file.
3619         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3620         (Depends-on): Add math, round, fma.
3621         (configure.ac): Use results of gl_FUNC_REMAINDER.
3622         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3624         HAVE_DECL_REMAINDER.
3625         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3626         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3627         * tests/test-math-c++.cc: Check the declaration of remainder.
3628         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3629         problems are fixed.
3630
3631 2012-02-25  Bruno Haible  <bruno@clisp.org>
3632
3633         Tests for module 'fmodl'.
3634         * modules/fmodl-tests: New file.
3635         * tests/test-fmodl.c: New file.
3636         * tests/test-math-c++.cc: Check the declaration of fmodl.
3637
3638         New module 'fmodl'.
3639         * lib/math.in.h (fmodl): New declaration.
3640         * lib/fmodl.c: New file.
3641         * m4/fmodl.m4: New file.
3642         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3644         REPLACE_FMODL.
3645         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3646         REPLACE_FMODL.
3647         * modules/fmodl: New file.
3648         * doc/posix-functions/fmodl.texi: Mention the new module.
3649
3650 2012-02-25  Bruno Haible  <bruno@clisp.org>
3651
3652         Tests for module 'modfl'.
3653         * modules/modfl-tests: New file.
3654         * tests/test-modfl.c: New file.
3655         * tests/test-math-c++.cc: Check the declaration of modfl.
3656
3657         New module 'modfl'.
3658         * lib/math.in.h (modfl): New declaration.
3659         * lib/modfl.c: New file.
3660         * m4/modfl.m4: New file.
3661         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3663         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3664         * modules/modfl: New file.
3665         * doc/posix-functions/modfl.texi: Mention the new module.
3666
3667 2012-02-25  Bruno Haible  <bruno@clisp.org>
3668
3669         Tests for module 'fabsl'.
3670         * modules/fabsl-tests: New file.
3671         * tests/test-fabsl.c: New file.
3672         * tests/test-math-c++.cc: Check the declaration of fabsl.
3673
3674         New module 'fabsl'.
3675         * lib/math.in.h (fabsl): New declaration.
3676         * lib/fabsl.c: New file.
3677         * m4/fabsl.m4: New file.
3678         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3680         REPLACE_FABSL.
3681         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3682         REPLACE_FABSL.
3683         * modules/fabsl: New file.
3684         * doc/posix-functions/fabsl.texi: Mention the new module.
3685
3686 2012-02-25  Bruno Haible  <bruno@clisp.org>
3687
3688         fabs tests: More tests.
3689         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3690         (zero): New variable.
3691         (main): Add tests for signed zero.
3692         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3693
3694         fabsf tests: More tests.
3695         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3696         (zero): New variable.
3697         (main): Add tests for signed zero.
3698         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3699
3700 2012-02-24  Bruno Haible  <bruno@clisp.org>
3701
3702         atanl: Provide function definition on MSVC.
3703         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3704         function pointer.
3705         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3706
3707 2012-02-24  Bruno Haible  <bruno@clisp.org>
3708
3709         acosl: Provide function definition on MSVC.
3710         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3711         function pointer.
3712         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3713
3714 2012-02-24  Bruno Haible  <bruno@clisp.org>
3715
3716         asinl: Provide function definition on MSVC.
3717         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3718         function pointer.
3719         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3720
3721 2012-02-24  Bruno Haible  <bruno@clisp.org>
3722
3723         tanl: Provide function definition on MSVC.
3724         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3725         function pointer.
3726         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3727
3728 2012-02-24  Bruno Haible  <bruno@clisp.org>
3729
3730         cosl: Provide function definition on MSVC.
3731         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3732         function pointer.
3733         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3734
3735 2012-02-24  Bruno Haible  <bruno@clisp.org>
3736
3737         sinl: Provide function definition on MSVC.
3738         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3739         function pointer.
3740         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3741
3742 2012-02-24  Bruno Haible  <bruno@clisp.org>
3743
3744         logl: Provide function definition on MSVC.
3745         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3746         function pointer.
3747         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3748
3749 2012-02-24  Bruno Haible  <bruno@clisp.org>
3750
3751         expl: Provide function definition on MSVC.
3752         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3753         function pointer.
3754         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3755
3756 2012-02-24  Bruno Haible  <bruno@clisp.org>
3757
3758         sqrtl: Provide function definition on MSVC.
3759         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3760         a function pointer.
3761         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3762
3763 2012-02-24  Bruno Haible  <bruno@clisp.org>
3764
3765         ceill: Provide function definition on MSVC.
3766         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3767         used as a function pointer.
3768         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3769
3770 2012-02-24  Bruno Haible  <bruno@clisp.org>
3771
3772         floorl: Provide function definition on MSVC.
3773         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3774         used as a function pointer.
3775         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3776
3777 2012-02-24  Bruno Haible  <bruno@clisp.org>
3778
3779         ceilf: Provide function definition on MSVC.
3780         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3781         used as a function pointer.
3782         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3783
3784 2012-02-24  Bruno Haible  <bruno@clisp.org>
3785
3786         floorf: Provide function definition on MSVC.
3787         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3788         used as a function pointer.
3789         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3790
3791 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3792
3793         stdnoreturn: new module
3794         This implements a replacement for C11's <stdnoreturn.h>.
3795         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3796         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3797         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3798         * tests/test-stdnoreturn.c: New files.
3799
3800 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3801
3802         regex: fix false multibyte matches in some regular expressions
3803         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3804         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3805         * lib/regex_internal.c (re_string_skip_chars):
3806         Fix miscomputation of remain_len that may cause incomplete
3807         multi-byte character and false match.
3808
3809 2012-02-24  Jim Meyering  <meyering@redhat.com>
3810
3811         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3812         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3813         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3814         Remove now-unnecessary str''cmp obfuscation.
3815         Suggested by Akim Demaille.
3816
3817 2012-02-24  Bruno Haible  <bruno@clisp.org>
3818
3819         streq: Rename macro.
3820         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3821         * NEWS: Mention the change.
3822         * lib/mbrtowc.c (mbrtowc): Update.
3823         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3824         * lib/wcwidth.c (wcwidth): Update.
3825         Suggested by Akim Demaille and Jim Meyering.
3826
3827 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3828
3829         regex: fix typo in definition of MIN
3830         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3831         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3832
3833 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3834             Bruno Haible  <bruno@clisp.org>
3835
3836         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3837         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3838         entries into a stack-allocated buffer directly.
3839         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3840
3841 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3842             Bruno Haible  <bruno@clisp.org>
3843
3844         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3845
3846          - There were several instances of this pattern:
3847
3848              for (;;) {
3849                n = acl (f, GETACLCNT, 0, NULL);
3850                [ allocate an array A of size N ]
3851                if (acl (f, GETACL, n, a) == n)
3852                  break;
3853              }
3854
3855            This loop might never terminate if some other process is constantly
3856            manipulating the file's ACL.  The loop should be rewritten to
3857            terminate.
3858
3859          - The acl (... GETACLNT ...) call is merely an optimization; its value
3860            is merely a hint as to how big to make the array.  A better
3861            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3862            and just guess a reasonably-big size, growing the size and trying
3863            again if it's not large enough.  This guarantees termination, and
3864            saves a system call.
3865
3866         * lib/acl-internal.h: Include <limits.h>.
3867         (MIN, SIZE_MAX): New macros.
3868         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3869         a stack-allocated buffer, and use malloc if it does not fit. Don't
3870         use GETACLCNT.
3871         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3872
3873 2012-02-19  Bruno Haible  <bruno@clisp.org>
3874
3875         acl: Fix endless loop on Solaris with vxfs.
3876         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3877         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3878         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3879         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3880         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3881         Reported by Bill Jones in
3882         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3883
3884 2012-02-19  Bruno Haible  <bruno@clisp.org>
3885
3886         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3887         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3888         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3889         that this function returns 0 in some more cases.
3890
3891 2012-02-19  Bruno Haible  <bruno@clisp.org>
3892
3893         acl: Update doc references.
3894         * doc/acl-resources.txt: Update links to Solaris documentation.
3895
3896 2012-02-19  Bruno Haible  <bruno@clisp.org>
3897
3898         Fix test failure in many locales on Solaris 11.
3899         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3900         'tr' arguments.
3901         * tests/test-pipe-filter-ii1.c (main): Likewise.
3902         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3903         expressions in the C locale.
3904         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3905         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3906
3907 2012-02-19  Bruno Haible  <bruno@clisp.org>
3908
3909         gnulib-tool: Improve usage message.
3910         * gnulib-tool (func_usage): Move doc of --help and --version to the
3911         section "Operation modes".
3912
3913 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3914
3915         README-release: make it easier to execute commands
3916         * top/README-release: break commands out on to separate lines.
3917
3918 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3919
3920         GNUmakefile: simplify detection of unconfigured trees
3921         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3922         whether the tree make is being run from is already configured or
3923         not.  Related simplifications.
3924
3925 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3926
3927         * gnulib-tool (func_usage): Document --help and --version.
3928
3929 2012-02-11  Jim Meyering  <meyering@redhat.com>
3930
3931         bootstrap: don't exit 0 upon gnulib-tool failure
3932         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3933         its exit status, not 0.
3934
3935 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3936
3937         README-release: various improvements
3938         * top/README-release: Give a command to push changes for the
3939         release.  Add "distcheck" to list of other pre-release checks.
3940         Fix instance of "make stable" which should be "make TYPE".
3941
3942 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3943
3944         maint: replace FSF snail-mail addresses with URLs
3945         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3946         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3947         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3948         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3949         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3950         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3951         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3952         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3953         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3954         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3955         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3956         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3957         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3958         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3959         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3960         * lib/glthread/thread.c, lib/glthread/thread.h:
3961         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3962         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3963         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3964         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3965         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3966         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3967         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3968         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3969         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3970         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3971         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3972         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3973         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3974         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3975         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3976         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3977         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3978         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3979         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3980         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3981         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3982         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3983         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3984         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3985         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3986         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3987         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3988         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3989         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3990         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3991         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3992         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3993         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3994         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3995         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3996         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3997         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3998         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3999         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4000         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4001         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4002         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4003         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4004         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4005         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4006         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4007         * tests/test-poll.c, tests/test-quotearg-simple.c:
4008         * tests/test-quotearg.c, tests/test-quotearg.h:
4009         * tests/test-round-ieee.c, tests/test-round1.c:
4010         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4011         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4012         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4013         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4014         * tests/test-strerror.c, tests/test-strerror_r.c:
4015         * tests/test-strsignal.c, tests/test-strverscmp.c:
4016         * tests/test-xmemdup0.c:
4017         Replace FSF snail mail addresses with URLs, as per GNU coding
4018         standards.  See glibc bug
4019         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4020
4021 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4022
4023         README-release: capitalize a word and split a line
4024         * top/README-release: Fix punctuation and spacing.
4025
4026 2012-02-08  Akim Demaille  <demaille@gostai.com>
4027
4028         fatal-signal: use C prototypes (with explicit void).
4029         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4030         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4031
4032 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         regex: spelling fix
4035         * lib/regexec.c: spelling fix
4036
4037         regex: rely on stdint.h for SIZE_MAX
4038         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4039
4040 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4041
4042         regex: merge glibc changes
4043
4044         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4045         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4046         (init_word_char): Work even if bitset words are not exactly 32 or
4047         64 bits wide.  Don't assume there are no padding bits.
4048         * lib/regex.c [_LIBC]: Do not include <config.h>.
4049         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4050         and -Wtype-limits.
4051         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4052         needless disagreement with glibc.  All uses changed.  Define it to
4053         1 only if _GNU_SOURCE, to match glibc.
4054         (_REG_RM_NAME): Remove; no longer needed, since the names in
4055         question are now all protected by __USE_GNU.
4056         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4057         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4058         * lib/regex_internal.h (MIN): New macro.
4059
4060         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4061         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4062
4063         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4064         * lib/regex_internal.c (re_string_fetch_byte_case):
4065         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4066         is miscompiled, and it turns out it is because of an incorrect
4067         attribute on re_string_fetch_byte_case.  Unlike
4068         re_string_peek_byte_case, this one is really not pure, it modifies
4069         memory (increments pstr->cur_idx), and with the pure attribute GCC
4070         assumed it doesn't and it cached the presumed value of
4071         regexp->cur_idx in a variable across the
4072          for (;; ++i)
4073            {
4074              if (i >= BRACKET_NAME_BUF_SIZE)
4075                return REG_EBRACK;
4076              if (token->type == OP_OPEN_CHAR_CLASS)
4077                ch = re_string_fetch_byte_case (regexp);
4078              else
4079                ch = re_string_fetch_byte (regexp);
4080              if (re_string_eoi(regexp))
4081                return REG_EBRACK;
4082              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4083                break;
4084              elem->opr.name[i] = ch;
4085            }
4086
4087         2011-11-29 Andreas Schwab <schwab@redhat.com>
4088         * lib/regcomp.c (build_equiv_class):
4089         Fix access after end of search string in regex matcher.
4090
4091         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4092         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4093
4094         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4095         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4096
4097         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4098         * lib/regcomp.c (parse_branch, parse_sub_exp):
4099         More regex memory leak fixes and tests.
4100         (parse_sub_exp, parse_bracket_exp):
4101         Fix memory leak for some invalid regular expressions.
4102
4103         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4104         * lib/regex_internal.c, lib/regexec.c:
4105         Fix unnecessary overallocation due to incomplete character.  When
4106         incomplete characters are found at the end of a string the code
4107         ran amok and allocated lots of memory.  Stricter limits are now in
4108         place.
4109
4110         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4111         * lib/regex.h: Update documentation.
4112
4113         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4114         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4115
4116         2010-05-05 Andreas Schwab <schwab@redhat.com>
4117         * lib/regexec.c (find_collation_sequence_value):
4118         Fix lookup of collation sequence value during regexp matching.
4119
4120         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4121         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4122
4123         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4124         * lib/regex.h: Cleanup namespace.
4125
4126         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4127         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4128
4129         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4130         * lib/regex_internal.h: Prevent some declarations and definitions
4131         to be seen when used in tests.
4132
4133         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4134         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4135         __libc_lock_* macros if not _LIBC.
4136         (struct re_dfa_t): Add lock.
4137
4138 2012-02-07  Eric Blake  <eblake@redhat.com>
4139
4140         maint.mk: also prohibit lower-case @var@
4141         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4142         lower case, like @top_srcdir@.
4143
4144 2012-02-04  Eric Blake  <eblake@redhat.com>
4145
4146         canonicalize: avoid uninitialized memory use
4147         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4148         random '/' left in dest.
4149         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4150
4151 2012-02-04  Bruno Haible  <bruno@clisp.org>
4152
4153         isatty: Fix test failure of ptsname_r on native Windows.
4154         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4155         and don't set errno.
4156         (isatty): Test first whether fd is valid. Set errno when returning 0.
4157
4158 2012-02-04  Bruno Haible  <bruno@clisp.org>
4159
4160         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4161         * tests/test-spawn-pipe-main.c: Include progname.h.
4162         (main): Invoke set_program_name.
4163         * modules/spawn-pipe-tests (Depends-on): Add progname.
4164
4165         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4166         * tests/test-nonblocking-socket-main.c: Include progname.h.
4167         (main): Invoke set_program_name.
4168         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4169
4170         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4171         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4172         (main): Invoke set_program_name.
4173         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4174
4175 2012-02-04  Eric Blake  <eblake@redhat.com>
4176
4177         canonicalize-lgpl: fix // handling
4178         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4179
4180         canonicalize: fix // handling
4181         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4182         /// to //, since only // is special.
4183
4184 2012-02-04  Bruno Haible  <bruno@clisp.org>
4185
4186         ioctl: Fix test failure on native Windows.
4187         * lib/ioctl.c: Include msvc-nothrow.h.
4188         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4189
4190 2012-02-04  Bruno Haible  <bruno@clisp.org>
4191
4192         fsync: Avoid test failure on native Windows.
4193         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4194         read-only.
4195
4196 2012-02-04  Bruno Haible  <bruno@clisp.org>
4197
4198         sys_select: Avoid syntax error on OpenBSD 5.0.
4199         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4200         currently being included, just include the system's <sys/select.h>.
4201
4202 2012-02-04  Bruno Haible  <bruno@clisp.org>
4203
4204         sys_select: Avoid syntax error on OpenBSD 5.0.
4205         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4206         <sys/select.h>, not before.
4207         Reported by Jiri B <jirib@devio.us>.
4208
4209 2012-02-04  Bruno Haible  <bruno@clisp.org>
4210
4211         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4212         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4213         global variables.
4214         * tests/test-get-rusage-data.c (main): Likewise.
4215         Reported by Jim Meyering.
4216
4217 2012-02-04  Bruno Haible  <bruno@clisp.org>
4218
4219         stdioext: Fix last commit.
4220         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4221
4222 2012-02-03  Bruno Haible  <bruno@clisp.org>
4223
4224         stdioext: Add tentative support for Plan9.
4225         * lib/stdio-impl.h: Include <errno.h>.
4226         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4227         * lib/freadable.c (freadable): Likewise.
4228         * lib/fwritable.c (fwritable): Likewise.
4229         * lib/fbufmode.c (fbufmode): Likewise.
4230         * lib/freading.c (freading): Likewise.
4231         * lib/fwriting.c (fwriting): Likewise.
4232         * lib/freadptr.c (freadptr): Likewise.
4233         * lib/freadseek.c (freadptrinc): Likewise.
4234         * lib/freadahead.c (freadahead): Likewise.
4235         * lib/fpurge.c (fpurge): Likewise.
4236         * lib/fseeko.c (rpl_fseeko): Likewise.
4237         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4238         Reported by Jens Staal <staal1978@gmail.com>.
4239
4240 2012-02-02  Jim Meyering  <meyering@redhat.com>
4241
4242         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4243         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4244         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4245         not even to try to add the attribute.  Instead, add a pragma to suppress
4246         the suggestion/warning.
4247
4248 2012-01-31  Karl Berry  <karl@gnu.org>
4249
4250         setstate doc: typo.
4251         * doc/posix-functions/setstate.texi (setstate): { not (.
4252
4253 2012-01-31  Bruno Haible  <bruno@clisp.org>
4254
4255         popen: Make more robust on Windows.
4256         * lib/popen.c: On native Windows, use the _popen based code even if
4257         HAVE_POPEN is set.
4258         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4259         environment variable on native Windows.
4260
4261 2012-01-30  Bruno Haible  <bruno@clisp.org>
4262
4263         pclose: Fix typo.
4264         * lib/stdio.in.h (pclose): Fix typo in warning message.
4265
4266 2012-01-30  Bruno Haible  <bruno@clisp.org>
4267
4268         doc about getlogin_r, setstate.
4269         * doc/posix-functions/getlogin_r.texi: List the incompatible
4270         declaration problem under "not fixed by gnulib".
4271         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4272         problem on Solaris 11 and other platforms.
4273
4274 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4275             Bruno Haible  <bruno@clisp.org>
4276
4277         poll tests: Make test more robust.
4278         * tests/test-poll.c: Include macros.h.
4279         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4280         return value of various I/O operations.
4281         * modules/poll-tests (Files): Add tests/macros.h.
4282
4283 2012-01-30  Bruno Haible  <bruno@clisp.org>
4284
4285         sys_stat: Fix support for mingw64 and MSVC.
4286         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4287         header files already do it.
4288         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4289         stat itself.
4290         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4291
4292 2012-01-30  Bruno Haible  <bruno@clisp.org>
4293
4294         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4296         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4297
4298 2012-01-29  Bruno Haible  <bruno@clisp.org>
4299
4300         quotearg: Fix test failure on MacOS X 10.5.
4301         * tests/test-quotearg-simple.c: Include localcharset.h.
4302         (main): If the locale encoding is not ASCII, bypass the tests of
4303         locale_quoting_style and clocale_quoting_style.
4304         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4305
4306 2012-01-29  Jim Meyering  <meyering@redhat.com>
4307
4308         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4309         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4310         detect uses of canonicalize_file_name.
4311
4312 2012-01-28  Bruno Haible  <bruno@clisp.org>
4313
4314         test-framework-sh: Fix test failure with AIX 7.1 diff.
4315         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4316         in column 1, like 'diff -c' does.
4317         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4318         whether 'diff -u' is used. Instead, test whether the output contains
4319         some '@' character.
4320
4321 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4322
4323         strtoimax: eliminate need for stdint.h, inttypes.h checks
4324         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4325         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4326         the prerequisites for a recently-introduced strtoimax test.
4327         I guess this might cause strtoimax to be replaced when not
4328         strictly necessary on older hosts, but this shouldn't introduce
4329         any bugs and it should make Emacs 'configure' faster on typical
4330         modern hosts.  Problem discovered when importing the latest gnulib
4331         to an Emacs test version.
4332         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4333
4334 2012-01-28  Bruno Haible  <bruno@clisp.org>
4335
4336         sys_time: Override 'struct timeval' on some native Windows platforms.
4337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4338         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4339         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4340         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4341         needs to be overridden.
4342         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4343         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4344         * tests/test-sys_select.c: Check that the tv_sec member has the same
4345         size as a 'time_t'.
4346         * tests/test-sys_time.c: Likewise.
4347         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4348         is set, set also REPLACE_GETTIMEOFDAY.
4349         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4350         convert the resulting 'struct timeval' before returning.
4351         * lib/select.c: Include <sys/time.h>.
4352         (select, timeval): Undefine at the right place.
4353         * modules/select (Depends-on): Add sys_time.
4354         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4355         some Windows platforms.
4356         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4357
4358 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4359
4360         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4361         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4362         an integer.
4363         * lib/fcntl.c (dupfd): Likewise.
4364         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4365
4366 2012-01-28  Bruno Haible  <bruno@clisp.org>
4367
4368         fcntl: Avoid compilation error on native Windows.
4369         * modules/fcntl (Depends-on): Add 'close'.
4370
4371 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4372
4373         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4374         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4375         pointer to an integer.
4376         * lib/poll.c (IsConsoleHandle): Likewise.
4377         * lib/isatty.c (IsConsoleHandle): Likewise.
4378
4379 2012-01-28  Jim Meyering  <meyering@redhat.com>
4380
4381         doc: clarify README-release
4382         * top/README-release: Clarify: you should make a point to have
4383         the latest stable versions of build tools in your PATH, and the
4384         reference to buildreq is solely for its list of tool names, not
4385         for its minimal-functional version numbers.
4386         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4387
4388         maint.mk: use more readable (yet functionally equivalent) quoting
4389         It is common to quote a single quote in a single quoted string like
4390         this:  '...'\''...'.  Unless you know the idiom, that looks like
4391         gibberish, so prefer to double-quote the string when possible.
4392         Then you can use a more readable, lone single quote: "...'..."
4393         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4394         "don't" is more readable than the equivalent 'don'\''t'.
4395         (sc_cast_of_x_alloc_return_value): Likewise.
4396         (sc_cast_of_alloca_return_value): Likewise.
4397         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4398         rather than '\'':'\''.
4399
4400 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4401
4402         stdalign: relax _Alignof and tighten _Alignas test
4403         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4404         as it was too strict: alignof must divide offsetof, but it need
4405         not equal offsetof.  Inspired by Joseph S. Myers's comment
4406         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4407         Conversely, tighten the _Alignas test a bit, as the resulting
4408         alignment must be exactly 8.
4409
4410 2012-01-27  Bruno Haible  <bruno@clisp.org>
4411
4412         stdalign: Document the last change.
4413         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4414
4415 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4416
4417         stdalign: check that alignof and offsetof are consistent
4418         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4419         Problem reported for gnulib by Richard W.M. Jones in
4420         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4421
4422 2012-01-27  Jim Meyering  <meyering@redhat.com>
4423
4424         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4425         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4426         convert a sequence with gaps to the minimal containing range.
4427         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4428         * tests/test-update-copyright.sh: Test for this.
4429         The FSF confirmed it is ok to do this, assuming there is at
4430         least one significant change per year in the affected range:
4431         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4432
4433 2012-01-26  Bruno Haible  <bruno@clisp.org>
4434
4435         pipe2: refine doc about thread-safety
4436         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4437         multithread-safety problem.
4438         * doc/glibc-functions/accept4.texi: Likewise.
4439
4440 2012-01-26  Bruno Haible  <bruno@clisp.org>
4441
4442         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4443         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4444         In the test program, include <fcntl.h>, for O_RDONLY.
4445
4446 2012-01-26  Eric Blake  <eblake@redhat.com>
4447
4448         pipe2: document lack of thread-safety in replacement
4449         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4450         issue in replacement.
4451         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4452         Based on a report by Eric Wong.
4453
4454 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4455             Bruno Haible  <bruno@clisp.org>
4456
4457         malloca: Avoid warnings on x86_64 mingw64.
4458         * lib/malloca.c: Include <stdint.h>.
4459         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4460         * modules/malloca (Depends-on): Add stdint.
4461         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4462
4463 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4464
4465         obstack: remove __STDC__ conditionals
4466         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4467         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4468         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4469         m4/include_next.m4 as the only gnulib-maintained places that still
4470         refer to __STDC__.
4471
4472 2012-01-24  Bruno Haible  <bruno@clisp.org>
4473
4474         havelib: Modern quoting.
4475         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4476         the recent change to the GNU coding standards.
4477
4478 2012-01-24  Bruno Haible  <bruno@clisp.org>
4479
4480         stdint: Improve support for Android.
4481         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4482         Reported by Simon Josefsson <simon@josefsson.org>.
4483
4484 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4485
4486         doc: omit trailing empty lines from INSTALL etc.
4487         * doc/Makefile (INSTALL): Omit trailing empty lines.
4488         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4489         omit trailing empty lines.  This simplifies the build procedure.
4490
4491 2012-01-23  Jim Meyering  <meyering@redhat.com>
4492
4493         tests: avoid spurious warnings about gl_sockets_startup
4494         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4495         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4496         reporting a "statement with no effect".
4497         * tests/test-accept.c (main): Mark as "(void)".
4498         * tests/test-accept4.c (main): Likewise.
4499         * tests/test-bind.c (main): Likewise.
4500         * tests/test-connect.c (main): Likewise.
4501         * tests/test-getpeername.c (main): Likewise.
4502         * tests/test-getsockname.c (main): Likewise.
4503         * tests/test-getsockopt.c (main): Likewise.
4504         * tests/test-listen.c (main): Likewise.
4505         * tests/test-recv.c (main): Likewise.
4506         * tests/test-recvfrom.c (main): Likewise.
4507         * tests/test-send.c (main): Likewise.
4508         * tests/test-sendto.c (main): Likewise.
4509         * tests/test-setsockopt.c (main): Likewise.
4510         * tests/test-shutdown.c (main): Likewise.
4511
4512 2012-01-21  Bruno Haible  <bruno@clisp.org>
4513
4514         locale-fr.m4: Fix for Android.
4515         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4516         failure of the test program on Bionic libc.
4517
4518 2012-01-21  Jim Meyering  <meyering@redhat.com>
4519
4520         bootstrap: fail when bootstrap_post_import_hook fails
4521         Otherwise, it's far too easy to miss diagnostics emitted
4522         between gnulib-tool's output and that of running configure.
4523         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4524
4525 2012-01-17  Jim Meyering  <meyering@redhat.com>
4526
4527         maint: enable sc_trailing_blank
4528         * build-aux/pmccabe.css: Remove trailing blanks.
4529         * doc/acl-cygwin.txt: Likewise.
4530         * doc/gnu-oids.texi: Likewise
4531         * cfg.mk: Enable sc_trailing_blank.
4532         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4533
4534 2012-01-17  Jim Meyering  <meyering@redhat.com>
4535
4536         maint: enable sc_prohibit_openat_without_use
4537         * cfg.mk: Enable sc_prohibit_openat_without_use.
4538         Exempt lib/selinux-at.c.
4539
4540 2012-01-17  Jim Meyering  <meyering@redhat.com>
4541
4542         maint: enable sc_prohibit_cloexec_without_use
4543         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4544         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4545
4546 2012-01-17  Jim Meyering  <meyering@redhat.com>
4547
4548         maint: enable sc_prohibit_intprops_without_use
4549         * cfg.mk: Enable sc_prohibit_intprops_without_use
4550         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4551
4552 2012-01-17  Jim Meyering  <meyering@redhat.com>
4553
4554         maint: enable sc_prohibit_hash_pjw_without_use
4555         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4556         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4557         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4558         following " (".
4559
4560 2012-01-17  Jim Meyering  <meyering@redhat.com>
4561
4562         maint: enable double-word-prohibiting rule
4563         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4564         Exempt three files.
4565
4566 2012-01-17  Jim Meyering  <meyering@redhat.com>
4567
4568         maint: remove empty lines at EOF, but excluding modules/*
4569         Apply syntax rules at home as well as abroad.  Most changes
4570         were induced by running this:
4571           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4572             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4573             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4574         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4575         Exempt modules/* and two binary files.
4576         Also exempt doc/INSTALL*, per request from Bruno Haible.
4577         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4578         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4579         * doc/Copyright/request-assign.future: Likewise.
4580         * doc/Copyright/request-disclaim.changes: Likewise.
4581         * doc/INSTALL: Likewise.
4582         * doc/INSTALL.ISO: Likewise.
4583         * doc/INSTALL.UTF-8: Likewise.
4584         * doc/acl-cygwin.txt: Likewise.
4585         * doc/acl-resources.txt: Likewise.
4586         * doc/fdl-1.2.texi: Likewise.
4587         * doc/fdl-1.3.texi: Likewise.
4588         * doc/fdl.texi: Likewise.
4589         * lib/argp-pin.c: Likewise.
4590         * lib/round.c: Likewise.
4591         * lib/unicase/u16-totitle.c: Likewise.
4592         * lib/unictype/block_test.c: Likewise.
4593         * lib/uninorm/canonical-decomposition.c: Likewise.
4594         * m4/README: Likewise.
4595         * m4/relocatable-lib.m4: Likewise.
4596         * tests/test-isnand-nolibm.c: Likewise.
4597         * tests/test-isnand.c: Likewise.
4598         * tests/uninorm/NormalizationTest.txt: Likewise.
4599
4600 2012-01-17  Jim Meyering  <meyering@redhat.com>
4601
4602         maint: add framework to run syntax-check rules against gnulib sources
4603         * cfg.mk: New file, to disable all currently-failing tests.
4604         We'll enable them one by one, as they are made to pass.
4605         * Makefile (sc_maint): New rule.
4606
4607 2012-01-21  Bruno Haible  <bruno@clisp.org>
4608
4609         stdint: Add support for Android.
4610         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4611         include the system's <stdint.h>.
4612         Reported by Simon Josefsson <simon@josefsson.org>.
4613
4614 2012-01-19  Jim Meyering  <meyering@redhat.com>
4615
4616         bootstrap: add bootstrap_post_import_hook
4617         Bison does still need something like the gnulib_mk_hook whose
4618         invocation I had to remove along with slurp in commit 767ccd40.
4619         Technically, we could get along without it, but doing so would
4620         have required living with a warning and a mandatory post-bootstrap
4621         automake rerun.
4622         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4623         (bootstrap_post_import_hook): New function.
4624         Invoke it after gnulib-tool --import and before autoreconf.
4625
4626 2012-01-18  Jim Meyering  <meyering@redhat.com>
4627
4628         gitlog-to-changelog: don't use "no_"-prefixed variable name
4629         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4630         to enable both --cluster and --no-cluster.  Change variable name,
4631         s/\$no_cluster/$cluster/, and reverse usage to match.
4632
4633         gitlog-to-changelog: use "||", not "or" in expressions
4634         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4635         expressions.
4636
4637 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4638
4639         gitlog-to-changelog: new option --no-cluster
4640         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4641         clustering of adjacent commit messages.
4642
4643 2012-01-17  Jim Meyering  <meyering@redhat.com>
4644
4645         maint: spell file systems with two words, not one
4646         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4647         two words, not one.
4648
4649 2012-01-16  Jim Meyering  <meyering@redhat.com>
4650
4651         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4652         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4653
4654 2012-01-16  Eric Blake  <eblake@redhat.com>
4655
4656         bootstrap: cater to autoconf 2.59
4657         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4658         is not available.
4659
4660         bootstrap: properly check for libtool
4661         * build-aux/bootstrap (libtoolize): Also run libtool when older
4662         usage is detected.
4663
4664 2012-01-15  Bruno Haible  <bruno@clisp.org>
4665
4666         Improve support for MSVC 9.
4667         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4668         clashes on MSVC.
4669         * lib/fcntl.in.h: Likewise.
4670         * lib/stdlib.in.h: Likewise.
4671         * lib/sys_stat.in.h: Likewise.
4672
4673 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4674
4675         gnupload: we hold the master copy of this script now
4676         For motivation and more information, see:
4677         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4678         * build-aux/gnupload: Make it clear in the heading comments that the
4679         master copy of this file is maintained by gnulib.  Since we are at
4680         it, bump its copyright year and ...
4681         ($scriptversion): ... the date in its version.
4682         ($usage): Patches and bug reports should be sent to the gnulib list,
4683         not the automake one.
4684         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4685         anymore.
4686
4687 2012-01-15  Bruno Haible  <bruno@clisp.org>
4688
4689         Fix module 'random'.
4690         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4691         initstate, setstate are declared.
4692
4693 2012-01-14  Bruno Haible  <bruno@clisp.org>
4694
4695         Tests for module 'random'.
4696         * modules/random-tests: New file.
4697         * tests/test-random.c: New file, based on tests/test-random_r.c.
4698
4699         New module 'random'.
4700         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4701         declarations.
4702         * lib/random.c: New file, based on glibc/stdlib/random.c.
4703         * m4/random.m4: New file.
4704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4705         HAVE_RANDOM.
4706         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4707         * modules/random: New file.
4708         * config/srclist.txt: Add an entry for random.c.
4709         * doc/posix-functions/random.texi: Mention the 'random' module.
4710         * doc/posix-functions/initstate.texi: Likewise.
4711         * doc/posix-functions/setstate.texi: Likewise.
4712         * doc/posix-functions/srandom.texi: Likewise.
4713
4714 2012-01-12  Bruno Haible  <bruno@clisp.org>
4715
4716         random_r: Use common idioms.
4717         * lib/random_r.c: Include <stdlib.h> first.
4718
4719         random_r: Override incompatible API on AIX, OSF/1.
4720         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4721         Override the system function if REPLACE_RANDOM_R is 1.
4722         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4723         and OSF/1, set REPLACE_RANDOM_R.
4724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4725         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4726         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4727         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4728         * doc/glibc-functions/random_r.texi: Likewise.
4729         * doc/glibc-functions/setstate_r.texi: Likewise.
4730
4731         random_r: Support for MSVC 9.
4732         * lib/random_r.c: Include stdint.h, not inttypes.h.
4733
4734 2012-01-12  Eric Blake  <eblake@redhat.com>
4735
4736         inet_ntop: guard extra work by IF_LINT
4737         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4738         better code generation when not checking for warnings.
4739         Suggested by Paul Eggert and Jim Meyering.
4740
4741         strptime: fix regression on mingw
4742         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4743         Fix regression.  Reported by Bruno Haible.
4744
4745 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4746             Bruno Haible  <bruno@clisp.org>
4747
4748         copy-file: add error-code-returning variant.
4749         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4750         (qcopy_file_preserving): New declaration.
4751         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4752         copy_file_preserving. Change return type to 'int'. Don't emit an error
4753         message here.
4754         (copy_file_preserving): New function.
4755         * tests/test-copy-file.c: Include <stdlib.h>.
4756         (main): Test qcopy_file_preserving if the environment variable
4757         NO_STDERR_OUTPUT is set.
4758         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4759         with NO_STDERR_OUTPUT
4760         * tests/test-copy-file-2.sh: Likewise.
4761
4762 2012-01-10  Bruno Haible  <bruno@clisp.org>
4763
4764         copy-file: Use 'quote' module consistently.
4765         * lib/copy-file.c (copy_file_preserving): Use quote().
4766
4767         copy-file: Refactor.
4768         * lib/copy-file.c: Include quote.h.
4769         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4770         message here.
4771         * modules/copy-file (Depends-on): Add quote.
4772
4773         acl: Export qcopy_acl.
4774         * lib/acl.h (qcopy_acl): New declaration.
4775         * lib/copy-acl.c (qcopy_acl): Make non-static.
4776
4777         acl: Rename a local variable.
4778         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4779
4780         acl: Align return values of copy_acl and qcopy_acl.
4781         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4782         maybe < -1.
4783
4784 2012-01-11  Eric Blake  <eblake@redhat.com>
4785
4786         strptime: silence gcc warnings
4787         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4788         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4789         Reported by Daniel P. Berrange.
4790
4791         inet_ntop: silence gcc warning
4792         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4793         Reported by Daniel P. Berrange.
4794
4795 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4796
4797         getloadavg test: skip the test on GNU/Linux without /proc mounted
4798         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4799         file.  When /proc is not mounted, it always fails with ENOENT.
4800         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4801         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4802
4803 2012-01-10  Bruno Haible  <bruno@clisp.org>
4804
4805         regex: Avoid link error on MSVC 9.
4806         * modules/regex (Depends-on): Add wctype.
4807
4808 2012-01-10  Bruno Haible  <bruno@clisp.org>
4809
4810         doc: Mention --with-tests option.
4811         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4812         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4813         --with-tests.
4814         Reported by Reuben Thomas.
4815
4816 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4817
4818         users.txt: order package names lexicographically.
4819         * users.txt: Order package names lexicographically.
4820
4821 2012-01-10  Jim Meyering  <meyering@redhat.com>
4822
4823         maint.mk: fix description in comment
4824         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4825
4826         ignore-value: remove deprecated ignore_ptr function
4827         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4828         * NEWS: Note this.
4829
4830 2012-01-09  Jim Meyering  <meyering@redhat.com>
4831
4832         test-init.sh: avoid a subshell
4833         * tests/test-init.sh: Remove protective subshell.
4834         Suggested by Bernhard Voelker.  While a subshell is normally
4835         required to protect against older shells (Solaris, FreeBSD) that
4836         warn about a missing program before performing redirection, the
4837         shell-selection tests performed by init.sh probably exclude any
4838         offending shell.
4839
4840 2012-01-08  Bruno Haible  <bruno@clisp.org>
4841
4842         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4843         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4844         variable.
4845
4846 2012-01-08  Bruno Haible  <bruno@clisp.org>
4847
4848         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4849         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4851         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4852         macro.
4853         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4855         * lib/spawn_faction_addopen.c: Add workaround implementation if
4856         HAVE_WORKING_POSIX_SPAWN.
4857         * modules/spawn (Makefile): Substitute
4858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4859         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4860         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4861         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4862         (Depends-on): Update conditions.
4863         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4864         the Solaris 11 bug.
4865
4866 2012-01-08  Bruno Haible  <bruno@clisp.org>
4867
4868         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4869         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4870         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4871         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4872         macro.
4873         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4874         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4875         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4876         HAVE_WORKING_POSIX_SPAWN.
4877         * modules/spawn (Makefile): Substitute
4878         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4879         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4880         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4881         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4882         (Depends-on): Update conditions.
4883         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4884         the Solaris 11 bug.
4885
4886 2012-01-08  Bruno Haible  <bruno@clisp.org>
4887
4888         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4889         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4890         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4892         HAVE_WORKING_POSIX_SPAWN.
4893         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4894         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4895         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4896         * lib/spawn_faction_addclose.c: Add workaround implementation if
4897         HAVE_WORKING_POSIX_SPAWN.
4898         * modules/spawn (Makefile): Substitute
4899         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4900         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4901         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4902         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4903         (Depends-on): Update conditions.
4904         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4905         the Solaris 11 bug.
4906
4907 2012-01-08  Bruno Haible  <bruno@clisp.org>
4908
4909         doc: Update for Solaris 11 2011-11.
4910         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4911         * m4/printf.m4: Update comments.
4912
4913 2012-01-08  Bruno Haible  <bruno@clisp.org>
4914
4915         mktime: Avoid compilation error on Solaris 11.
4916         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4917
4918 2012-01-08  Bruno Haible  <bruno@clisp.org>
4919
4920         doc: Small fix.
4921         * doc/posix-headers/nl_types.texi: Correct platforms list.
4922
4923 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4924
4925         Add lgpl-3.0 module.
4926         * MODULES.html.sh (Support for building documentation): Add
4927         lgpl-3.0.
4928         * modules/lgpl-3.0: New file.
4929
4930 2012-01-08  Jim Meyering  <meyering@redhat.com>
4931
4932         select.c: indent with spaces, not TABs
4933         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4934
4935 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4936
4937         quotearg: do not use grave accent for left quote
4938         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4939         locale_quoting_style.
4940         (quotearg_buffer_restyled): Fix example.
4941         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4942
4943 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4944
4945         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4946         Most programs do not have translation catalogs for English and much
4947         less separate catalogs for British and American English.  Drop the
4948         suggestion to translators about these two, and provide it
4949         automatically for Unicode locales.  Like most programs, even those
4950         using American English, we use single quotation marks.  This conflicts
4951         with the American typographic convention, but works better when you
4952         cite the entire error message within double quotes.  It also tries not
4953         to clash with established practice and with what non-gnulib programs
4954         will usually do.
4955         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4956         using an UTF-8 or GB-18030 locale.  The list of other locales with
4957         quotes was provided by Bruno Haible.
4958         (quotearg_buffer_restyled): Adjust instructions to translators.
4959         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4960         text, since this would be wrong when using Unicode.
4961         * modules/quotearg: Depend on c-strcaseeq.
4962
4963 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4964
4965         quotearg: fix Wikipedia link
4966         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4967
4968 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4969
4970         Fix for mingw with MSVC9.
4971         * m4/ld-version-script.m4: Check that compiler rejects version
4972         scripts with syntax errors.  Reported by Bruno Haible
4973         <bruno@clisp.org>.
4974
4975 2012-01-06  Bruno Haible  <bruno@clisp.org>
4976
4977         Talk about "native Windows API", not "Woe32".
4978         * lib/accept4.c: Update comments to mention native Windows.
4979         * lib/execute.c: Likewise.
4980         * lib/fatal-signal.c: Likewise.
4981         * lib/localcharset.c: Likewise.
4982         * lib/nanosleep.c: Likewise.
4983         * lib/nl_langinfo.c: Likewise.
4984         * lib/pclose.c: Likewise.
4985         * lib/pipe-filter-gi.c: Likewise.
4986         * lib/pipe-filter-ii.c: Likewise.
4987         * lib/pipe.c: Likewise.
4988         * lib/pipe2.c: Likewise.
4989         * lib/popen.c: Likewise.
4990         * lib/progreloc.c: Likewise.
4991         * lib/relocatable.c: Likewise.
4992         * lib/sigaction.c: Likewise.
4993         * lib/sigprocmask.c: Likewise.
4994         * lib/spawn-pipe.h: Likewise.
4995         * lib/spawn-pipe.c: Likewise.
4996         * lib/spawni.c: Likewise.
4997         * lib/stat-time.h: Likewise.
4998         * lib/w32spawn.h: Likewise.
4999         * tests/test-isatty.c: Likewise.
5000         * lib/config.charset: More comments.
5001         * doc/gnulib-intro.texi: Mention native Windows.
5002         * doc/posix-functions/_Exit_C99.texi: Likewise.
5003         * doc/posix-headers/fcntl.texi: Likewise.
5004
5005 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5006
5007         argp: Avoid crash if translator uses % characters in a translation.
5008         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5009         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5010
5011 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5012
5013         doc: C11 and C++11 are now official
5014         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5015         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5016         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5017         * modules/stdalign:
5018         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5019
5020 2012-01-06  Bruno Haible  <bruno@clisp.org>
5021
5022         uc-is-grapheme-break tests: Tweak.
5023         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5024         message.
5025
5026 2012-01-06  Bruno Haible  <bruno@clisp.org>
5027
5028         test-init.sh: correct the test for diff -u
5029         * tests/test-init.sh: Also redirect stdout to /dev/null.
5030
5031 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5032
5033         Use ', not `, for quoting output.
5034         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5035         (print_changelog_deltas, get_tool_versions, main program):
5036         * build-aux/git-version-gen:
5037         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5038         * build-aux/move-if-change (help):
5039         * build-aux/useless-if-before-free (usage, main program):
5040         * check-module (parse_module_file, usage)
5041         (find_included_lib_files, check_module):
5042         * lib/argmatch.c (main) [TEST]:
5043         * lib/argp-help.c (_help):
5044         * lib/getopt1.c (main) [TEST]:
5045         * lib/git-merge-changelog.c (usage):
5046         * lib/xstrtol-error.c (xstrtol_error):
5047         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5048         * m4/argz.m4 (gl_FUNC_ARGZ):
5049         * m4/bison.m4 (gl_BISON):
5050         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5051         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5052         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5053         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5054         * m4/gc-random.m4 (gl_GC_RANDOM):
5055         * m4/intl.m4 (gt_CHECK_DECL):
5056         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5057         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5058         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5059         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5060         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5061         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5062         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5063         * tests/test-dirname.c (main):
5064         * tests/test-getpass.c (main):
5065         * tests/test-iconvme.c (main):
5066         * tests/test-parse-datetime.c (LOG):
5067         * tests/test-xstrtoimax.sh:
5068         * tests/test-xstrtol.sh:
5069         * tests/test-xstrtoll.sh:
5070         * tests/test-xstrtoumax.sh:
5071         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5072         * top/GNUmakefile (abort-due-to-no-makefile):
5073         Quote 'like this', not `like this', as per the recent change to
5074         the GNU coding standards.
5075
5076 2012-01-05  Bruno Haible  <bruno@clisp.org>
5077
5078         strtoimax: Don't force a replacement on systems where intmax_t is int.
5079         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5080         'intmax_t' is not larger than 'int'.
5081         Reported by Pádraig Brady <P@draigBrady.com>.
5082
5083 2012-01-05  Bruno Haible  <bruno@clisp.org>
5084
5085         doc: Mention NetBSD bugs.
5086         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5087         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5088
5089 2012-01-05  Bruno Haible  <bruno@clisp.org>
5090
5091         strtoumax tests: Enhance tests.
5092         * tests/test-strtoumax.c (main): Add tests for large values.
5093
5094 2012-01-05  Bruno Haible  <bruno@clisp.org>
5095
5096         strtoimax: Work around AIX 5.1 bug.
5097         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5098         definition.
5099         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5100         Set HAVE_STRTOIMAX.
5101         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5102         REPLACE_STRTOIMAX.
5103         * modules/inttypes-incomplete (Makefile.am): Substitute
5104         REPLACE_STRTOIMAX.
5105         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5106         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5107         (Depends-on): Update conditions.
5108         * tests/test-strtoimax.c (main): Add tests for large values.
5109         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5110
5111 2012-01-05  Bruno Haible  <bruno@clisp.org>
5112
5113         inttypes: Modernize.
5114         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5115         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5116         (Makefile.am): Update inttypes.h rule.
5117
5118 2012-01-05  Jim Meyering  <meyering@redhat.com>
5119
5120         init.sh: don't waste a subshell just to redirect stderr
5121         * tests/init.sh: In testing for diff -u and diff -c, use a
5122         stderr-redirecting exec inside `...` rather than a subshell.
5123
5124         test-init.sh: avoid failure on HP-UX 11.00
5125         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5126         resolves to diff -c or cmp.  Reported by Bruno Haible.
5127
5128 2012-01-05  Bruno Haible  <bruno@clisp.org>
5129
5130         Tests for module 'strtoull'.
5131         * modules/strtoull-tests: New file.
5132         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5133
5134 2012-01-05  Bruno Haible  <bruno@clisp.org>
5135
5136         Tests for module 'strtoll'.
5137         * modules/strtoll-tests: New file.
5138         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5139
5140 2012-01-05  Bruno Haible  <bruno@clisp.org>
5141
5142         Tests for module 'strtoul'.
5143         * modules/strtoul-tests: New file.
5144         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5145
5146 2012-01-05  Bruno Haible  <bruno@clisp.org>
5147
5148         Tests for module 'strtol'.
5149         * modules/strtol-tests: New file.
5150         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5151
5152 2012-01-04  Jim Meyering  <meyering@redhat.com>
5153
5154         test-init.sh: accommodate Solaris 5.10's different diff -u output
5155         * tests/test-init.sh: Also exempt @@ lines from the comparison
5156         of diff output, since Solaris 5.10 and GNU diff formats differ.
5157         Reported by Stefano Lattarini.
5158
5159 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5160
5161         test-posixtm: don't assume signed integer wraparound
5162         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5163         after signed integer overflow.  Inspired by (though it may not
5164         fix) Bruno Haible's bug report in
5165         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5166
5167         Spell out "Windows 9x" and "Windows XP".
5168         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5169         "Windows 9x" and "WinXP" with "Windows XP".
5170
5171 2012-01-04  Jim Meyering  <meyering@redhat.com>
5172
5173         test-vc-list-files-cvs.sh: remove obsolete comment
5174         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5175         double exit.  Now that's all encapsulated via skip_ and Exit.
5176
5177 2012-01-04  Bruno Haible  <bruno@clisp.org>
5178
5179         Talk about "native Windows API", not "Win32".
5180         * lib/classpath.c: Update comments to mention native Windows.
5181         * lib/csharpexec.c: Likewise.
5182         * lib/dup2.c: Likewise.
5183         * lib/error.c: Likewise.
5184         * lib/fcntl.c: Likewise.
5185         * lib/filename.h: Likewise.
5186         * lib/findprog.c: Likewise.
5187         * lib/get-rusage-as.c: Likewise.
5188         * lib/get-rusage-data.c: Likewise.
5189         * lib/getpagesize.c: Likewise.
5190         * lib/javaexec.c: Likewise.
5191         * lib/msvc-inval.c: Likewise.
5192         * lib/msvc-nothrow.c: Likewise.
5193         * lib/nanosleep.c: Likewise.
5194         * lib/nonblocking.c: Likewise.
5195         * lib/printf-parse.c: Likewise.
5196         * lib/setlocale.c: Likewise.
5197         * lib/sigaction.c: Likewise.
5198         * lib/strerror_r.c: Likewise.
5199         * lib/tmpdir.c: Likewise.
5200         * lib/vasnprintf.c: Likewise.
5201         * lib/w32spawn.h: Likewise.
5202         * lib/waitpid.c: Likewise.
5203         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5204         * m4/locale-ar.m4: Likewise.
5205         * m4/locale-fr.m4: Likewise.
5206         * m4/locale-ja.m4: Likewise.
5207         * m4/locale-tr.m4: Likewise.
5208         * m4/locale-zh.m4: Likewise.
5209         * m4/printf.m4: Likewise.
5210         * tests/test-cloexec.c: Likewise.
5211         * tests/test-copy-acl.sh: Likewise.
5212         * tests/test-copy-file.sh: Likewise.
5213         * tests/test-file-has-acl.sh: Likewise.
5214         * tests/test-set-mode-acl.sh: Likewise.
5215         * tests/test-dup-safer.c: Likewise.
5216         * tests/test-dup2.c: Likewise.
5217         * tests/test-dup3.c: Likewise.
5218         * tests/test-fcntl.c: Likewise.
5219         * tests/test-nonblocking-pipe.h: Likewise.
5220         * tests/test-nonblocking-socket.h: Likewise.
5221         * tests/test-pipe.c: Likewise.
5222         * tests/test-pipe2.c: Likewise.
5223         * tests/test-spawn-pipe-child.c: Likewise.
5224         * doc/acl-resources.txt: Likewise.
5225         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5226         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5227         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5228         * lib/localcharset.c: Update comments to mention native Windows.
5229         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5230         * lib/localename.c: Likewise.
5231         * lib/progreloc.c: Likewise.
5232         * lib/relocatable.c: Likewise.
5233         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5234         (windows_compute_revents): Renamed from win32_compute_revents.
5235         (windows_compute_revents_socket): Renamed from
5236         win32_compute_revents_socket.
5237         * lib/select.c: Update comments to mention native Windows.
5238         (windows_poll_handle): Renamed from win32_poll_handle.
5239         * m4/threadlib.m4: Update comments to mention native Windows.
5240         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5241         --enable-threads=windows instead of --enable-threads=win32. Set
5242         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5243         * lib/glthread/lock.h: Update comments to mention native Windows.
5244         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5245         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5246         USE_WIN32_THREADS.
5247         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5248         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5249         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5250         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5251         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5252         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5253         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5254         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5255         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5256         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5257         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5258         * tests/test-tls.c: Likewise.
5259         Rationale:
5260         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5261         on both 32-bit and 64-bit Windows systems.
5262         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5263         line of distinction is between "native Windows" on one side and Unix/
5264         POSIX systems on the other side. More details in
5265         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5266         Suggested by Paul Eggert.
5267
5268 2012-01-03  Bruno Haible  <bruno@clisp.org>
5269
5270         isatty: Support for MSVC 9.
5271         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5272         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5273         (_isatty_nothrow): New function.
5274         (isatty): Use it instead of _isatty.
5275         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5276         * lib/poll.c (IsConsoleHandle): Likewise.
5277         * lib/select.c (IsConsoleHandle): Likewise.
5278         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5279         (gl_PREREQ_ISATTY): New macro.
5280         * modules/isatty (Depends-on): Add msvc-inval.
5281         (configure.ac): Invoke gl_PREREQ_ISATTY.
5282
5283 2012-01-03  Jim Meyering  <meyering@redhat.com>
5284
5285         maint.mk: remove temporary transition aid from over 1.5 years ago
5286         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5287         purpose was to aid in the transition (avoiding silent malfunction)
5288         from that old name to the new _sc_search_regexp.  This shim was
5289         added by commit 219c504b.
5290
5291         init.sh: do not try to accommodate compare arguments starting with "-"
5292         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5293         compare arguments that start with "-".  Besides, we do not worry
5294         about this when invoking diff or cmp; why start now with sed?
5295         Using "--" to separate options from argument would trigger sed
5296         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5297         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5298
5299 2012-01-02  Bruno Haible  <bruno@clisp.org>
5300
5301         Enhance tests for module 'isatty'.
5302         * modules/isatty-tests (Depends-on): Add pipe-posix.
5303         * tests/test-isatty.c: Include <fcntl.h>.
5304         (DEV_NULL): New macro.
5305         (main): Test the resut of isatty() also on regular files, pipes, and
5306         /dev/null.
5307
5308         New module 'isatty'.
5309         * lib/unistd.in.h (isatty): New declaration.
5310         * lib/isatty.c: New file, based on an idea of
5311         Bastien Roucariès <roucaries.bastien@gmail.com>.
5312         * m4/isatty.m4: New file.
5313         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5314         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5315         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5316         REPLACE_ISATTY.
5317         * modules/isatty: New file.
5318         * doc/posix-functions/isatty.texi: Mention the new module.
5319         Suggested by Paolo Bonzini.
5320
5321 2012-01-02  Bruno Haible  <bruno@clisp.org>
5322
5323         canonicalize: Tweak 2011-12-29 commit.
5324         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5325         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5326
5327 2012-01-02  Jim Meyering  <meyering@redhat.com>
5328
5329         gitlog-to-changelog: describe input syntax in --help output
5330         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5331
5332         gitlog-to-changelog: fix typo in --help: show backslash before email @
5333         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5334         in sources, but not in actual output.
5335
5336 2011-12-30  Jim Meyering  <meyering@redhat.com>
5337
5338         gitlog-to-changelog: don't malfunction when name contains %-directive
5339         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5340         in a name string cause trouble.  E.g., with a user name of "%s",
5341         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5342
5343 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5344
5345         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5346         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5347         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5348         the "  (tiny change)" notation that is appended to the standard
5349         ChangeLog "date  name  email" header line.
5350
5351 2012-01-01  Jim Meyering  <meyering@redhat.com>
5352
5353         test-framework-sh: init.sh: fix "make dist" failure
5354         When using gnulib-tool's --with-tests option and any module that
5355         depends on test-framework-sh, "make dist" would fail due to the
5356         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5357         in the gltests directory, and not in the gllib/ directory.
5358         One way to work around that is to move the EXTRA_DIST += init.sh
5359         from the primary module to the -tests one:
5360         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5361         * modules/test-framework-sh (Makefile.am): ...not here.
5362         Reported by Tom G. Christensen in
5363         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5364
5365         version-etc: update copyright year reported by --version
5366         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5367
5368 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5369
5370         canonicalize: only stat() if required
5371         * lib/canonicalize.c (canonicalize_filename_mode):
5372         Avoid calling l?stat() when both CAN_MISSING,
5373         and CAN_NOLINKS are set, as we neither need
5374         to resolve symlinks or test component existence.
5375
5376 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5377
5378         doc: cover st_ino issues once; add OpenVMS etc.
5379         * doc/posix-functions/stat.texi (stat):
5380         * doc/posix-functions/lstat.texi (lstat):
5381         * doc/posix-functions/fstatat.texi (fstatat):
5382         * doc/posix-functions/fstat.texi (fstat):
5383         Move general 'struct stat' stuff to sys_stat.texi,
5384         leaving behind a pointer.
5385         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5386         Merge duplicate info about 'struct stat' problems into here.
5387         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5388         and suggest partial workarounds.
5389
5390         same-inode: port to OpenVMS
5391         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5392         three st_ino values.
5393
5394 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5395
5396         canonicalize: fix references to stat() and lstat()
5397         * lib/canonicalize.c (canonicalize_filename_mode):
5398         Ensure references always resolve to a replacement
5399         function if required (even via a macro).
5400
5401 2011-12-30  Jim Meyering  <meyering@redhat.com>
5402
5403         gitlog-to-changelog: remove a little duplication
5404         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5405         rather than twice.
5406
5407 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5408
5409         canonicalize: add support for not resolving symlinks
5410         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5411         indicate we don't want to follow symlinks.  Also
5412         provide CAN_MODE_MASK to aid setting these existing
5413         mutually exclusive values.
5414         * lib/canonicalize.c (canonicalize_filename_mode):
5415         Extract the flags from can_mode parameter, which
5416         are currently just used to select between stat()
5417         and lstat().  Also ensure that mutually exclusive
5418         values are flagged immediately as invalid.
5419         * tests/test-canonicalize.c: Verify symlinks are
5420         not followed, and that invalid flag combinations
5421         are diagnosed.
5422
5423 2011-12-25  Jim Meyering  <meyering@redhat.com>
5424
5425         gitlog-to-changelog: do not clump multi-paragraph entries
5426         Identical header lines (date,name,email+coauthors) are suppressed,
5427         thus putting all entries with those same characteristics under
5428         a single header.  However, when a log entry consists of two or
5429         more paragraphs, it may not be clear where it starts and ends.
5430         This change makes it so that such an entry is always separated
5431         from others by a header line, even when that header would
5432         otherwise be suppressed.
5433         * build-aux/gitlog-to-changelog: Implement the above.
5434         Inspired by a related request from Stefano Lattarini in
5435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5436
5437 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5438
5439         announce-gen: fix `cmd' typo in diagnostic
5440         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5441         diagnostic: a missing '$' meant that the command was not output.
5442
5443 2011-12-23  Jim Meyering  <meyering@redhat.com>
5444
5445         test-framework-sh: distribute init.sh
5446         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5447         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5448         fail due to the lack of init.sh.
5449
5450         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5451         * modules/atexit-tests: Rather than listing tests/init.sh,
5452         now that there's a module for it, simply depend on that new module.
5453         * modules/closein-tests: Likewise.
5454         * modules/exclude-tests: Likewise.
5455         * modules/getcwd-tests: Likewise.
5456         * modules/perror-tests: Likewise.
5457         * modules/pread-tests: Likewise.
5458         * modules/pwrite-tests: Likewise.
5459         * modules/vc-list-files-tests: Likewise.
5460         * modules/verify-tests: Likewise.
5461         * modules/xalloc-die-tests: Likewise.
5462         * modules/xstrtoimax-tests: Likewise.
5463         * modules/xstrtol-tests: Likewise.
5464         * modules/xstrtoll-tests: Likewise.
5465         * modules/xstrtoumax-tests: Likewise.
5466         * modules/yesno-tests: Likewise.
5467
5468 2011-12-22  Jim Meyering  <meyering@redhat.com>
5469
5470         test-framework-sh: add minimal tests of init.sh's compare function
5471         * modules/test-framework-sh-tests: New file.
5472         * tests/test-init.sh: New file.
5473
5474         test-framework-sh: new module
5475         * modules/test-framework-sh: New file.
5476         * MODULES.html.sh (Support for maintaining and releasing projects):
5477         List it.
5478
5479         init.sh: do not emit simulated diff output to stderr
5480         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5481
5482 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5483
5484         .gitignore: ignore gnulib.dvi and regex.info
5485         * doc/.gitignore:add gnulib.dvi and regex.info
5486
5487 2011-12-22  Jim Meyering  <meyering@redhat.com>
5488
5489         init.sh: correct previous change
5490         * tests/init.sh (compare): My previous change was wrong.
5491         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5492
5493         init.sh: avoid unwarranted test failure when using "set -e"
5494         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5495         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5496         a use like "compare exp out" would get evoke an unconditional failure.
5497
5498 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5499
5500         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5501         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5502         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5503         autoreconf that did not.
5504         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5505         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5506
5507 2011-12-17  Jim Meyering  <meyering@redhat.com>
5508
5509         bootstrap: remove some now-unneeded code
5510         This script arose back when gnulib-tool was young.
5511         Since then, it has seen improvements that render much of this
5512         script unnecessary.  In particular, it can now make symlinks
5513         to the files it uses.  Also, I no longer see as much value in
5514         marking files as read-only via comments.
5515         If you relied on the symlink-creation feature of the preceding
5516         version of this script, you can get most of that functionality
5517         by adding the --symlink option to the definition of
5518         gnulib_tool_option_extras in your bootstrap.conf file.
5519         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5520         Run autopoint and libtoolize *before* gnulib-tool.
5521         After it, run an abbreviated autoreconf, rather than a loop around
5522         all tools.
5523         (slirp, bt_mark_as_generated): Remove functions.
5524
5525 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5526
5527         ftoastr: fix typo
5528         * lib/ftoastr.h: Fix misspelling in comment.
5529
5530 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5531
5532         * top/README-release: fix punctuation.
5533
5534 2011-12-17  Jim Meyering  <meyering@redhat.com>
5535
5536         bootstrap: correct the recent buildreq change
5537         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5538         had no effect.
5539         * build-aux/bootstrap (buildreq): Bracket each search term with
5540         "*...*", so that the shell "case" statement works as intended.
5541         Add comments.
5542
5543 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5544
5545         build: let bootstrap resort to wget when downloading .po files
5546         * build-aux/bootstrap (download_po_files): Fallback to wget when
5547         downloading the .po files via rsync fails.  This is necessary to
5548         bootstrap from behind a strict firewall.
5549
5550 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         stdint: don't assume C++11 when compiling with g++
5553         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5555         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5556         work also in C++ before C++11, as that improperly inhibits
5557         generating a substitute stdint.h for that case.
5558
5559 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5560
5561         alloca: protect comment from gnulib-tool
5562         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5563         that gnulib-tool doesn't think it's a license, and munge it to
5564         say "GCC version 3".
5565
5566 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5567
5568         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5569         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5570         $(abs_top_builddir) instead of $(top_builddir).
5571
5572 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5573
5574         strftime-tests: also test nanoseconds
5575         * tests/test-strftime.c (T): Add a test of %N.
5576
5577 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5578
5579         inttypes, stdint: add C++11 support
5580         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5581         when including inttypes.h and stdint.h.  Support this change to
5582         the standard.
5583         * doc/posix-headers/inttypes.texi (inttypes.h):
5584         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5585         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5586         Define if not defined already, for the benefit of pre-C++11 hosts.
5587         Define the standard format macros (e.g., PRId8) always.
5588         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5589         Likewise, if __cpluspus.  Define the standard constant and limit
5590         macros (e.g., INT8_C, INT8_MAX) always.
5591         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5592         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5593         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5594         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5595         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5596         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5597         Likewise.
5598
5599 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5600
5601         nonblocking tests: Fix test failure on Linux/PPC.
5602         Suggested by Prerna Saxena in
5603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5604         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5605         Set to 1100000.
5606
5607 2011-12-12  Jim Meyering  <meyering@redhat.com>
5608
5609         argmatch: don't hard-code `' when listing valid option arguments
5610         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5611         use the quote function to add quotes.  Use fputs rather than
5612         fprintf for the format string with no format directive.
5613
5614 2011-12-07  Eric Blake  <eblake@redhat.com>
5615
5616         bootstrap: detect tools required by gnulib-tool
5617         * build-aux/bootstrap (buildreq): Provide minimum implicit
5618         dependencies.
5619         * DEPENDENCIES: Mention patch as a prereq.
5620
5621 2011-12-04  Bruno Haible  <bruno@clisp.org>
5622
5623         sethostname: Port to Windows platforms.
5624         * lib/sethostname.c: Provide an alternate implementation for Windows
5625         platforms.
5626         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5627         (main): Skip the test if sethostname() fails with EPERM. On Windows
5628         platforms, don't check the result of gethostname().
5629
5630 2011-12-04  Bruno Haible  <bruno@clisp.org>
5631             Jim Meyering  <meyering@redhat.com>
5632
5633         tests: Avoid spurious error message on platforms without mktemp program.
5634         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5635
5636 2011-12-04  Bruno Haible  <bruno@clisp.org>
5637
5638         sethostname: Fix documentation.
5639         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5640         "not fixed" section.
5641
5642 2011-12-03  Bruno Haible  <bruno@clisp.org>
5643
5644         gnulib-tool: Verify that the License field is present and non-empty.
5645         * gnulib-tool (func_get_license_raw): New function, extracted from
5646         func_get_license.
5647         (func_get_license): Use it. Warn if the module is not a test module and
5648         has no license.
5649         Suggested by Jim Meyering.
5650
5651 2011-12-03  Bruno Haible  <bruno@clisp.org>
5652
5653         sethostname tests: Fix link error on mingw.
5654         * tests/test-sethostname1.c: New file, extracted from
5655         tests/test-sethostname.c.
5656         * tests/test-sethostname2.c: New file, extracted from
5657         tests/test-sethostname.c.
5658         * tests/test-sethostname.c: Remove file.
5659         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5660         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5661         (Depends-on): Add gethostname.
5662         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5663         Link the latter with $(GETHOSTNAME_LIB).
5664
5665         sethostname tests: Fix compilation error on mingw.
5666         * tests/test-sethostname.c: Don't include <sys/types.h>.
5667         (geteuid): Use a dummy value without uid_t.
5668         * modules/sethostname-tests (Depends-on): Remove sys_types.
5669
5670         sethostname tests: Avoid a gcc warning.
5671         * tests/test-sethostname.c (main): Remove an unused variable.
5672
5673         Tweak last commit.
5674         * modules/sethostname-tests (Files): Sort by decreasing importance.
5675         (configure.ac): Check for geteuid.
5676         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5677         the test when there's nothing to test. Drop an unnecessary cast.
5678         Improve an error message. Verify that the final sethostname() call
5679         succeeds.
5680
5681 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5682
5683         Add a test suite for the sethostname module.
5684         * modules/sethostname-tests: New file.  A test program
5685         for the sethostname module.
5686         * tests/test-sethostname.c: Likewise.
5687
5688 2011-12-03  Bruno Haible  <bruno@clisp.org>
5689
5690         Tweak last commit.
5691         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5692         Fix preprocessor directives indentation. Fix typos.
5693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5694         * modules/unistd (Makefile): Likewise.
5695
5696 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5697
5698         Integrate the sethostname module into unistd.
5699         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5700         into the unistd.h header.
5701         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5702         preprocessor directives.
5703         * modules/unistd: Setup the Makefile substitutions of the
5704         SETHOSTNAME preprocessor directives.
5705
5706 2011-12-03  Bruno Haible  <bruno@clisp.org>
5707
5708         Tweak last commit.
5709         * lib/sethostname.c: Don't include <string.h>.
5710         (sethostname): No need to copy the argument string to the stack. Don't
5711         call clearerr. Preserve errno when fprintf failed.
5712         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5713         Don't invoke AC_REPLACE_FUNCS.
5714         * modules/sethostname (Link): Remove empty section.
5715         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5716         failure problem.
5717
5718 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5719
5720         New module 'sethostname'.
5721         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5722         for systems that lack it.
5723         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5724         sethostname declaration and function.
5725         * modules/sethostname: New file.  Define the sethostname module.
5726
5727 2011-12-03  Bruno Haible  <bruno@clisp.org>
5728
5729         Tweak last commit.
5730         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5731
5732 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5733
5734         Split the HOST_NAME_MAX detection into a separate m4 macro.
5735         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5736         macro so it can be used by the pending sethostname module.
5737
5738 2011-12-03  Bruno Haible  <bruno@clisp.org>
5739
5740         Fix module descriptions syntax.
5741         * modules/argv-iter (License): Fix syntax.
5742         * modules/di-set (License): Likewise.
5743         * modules/ino-map (License): Likewise.
5744         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5745
5746 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5747
5748         stdalign: port to Clang 3.0
5749         Problem reported by Simon Josefsson in
5750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5751         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5752         which has <stdalign.h> but which does not define alignof.
5753         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5754
5755 2011-12-01  Eric Blake  <eblake@redhat.com>
5756
5757         mktempd: silence dd usage
5758         * build-aux/mktempd (rand_bytes): Silence dd.
5759
5760 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5761
5762         manywarnings: Don't mention gcc version in docstring.
5763         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5764         Jim Meyering <meyering@redhat.com>.
5765
5766 2011-11-30  Jim Meyering  <meyering@redhat.com>
5767
5768         hash: mark a few floating point constants with "f" suffix
5769         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5770         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5771         floating point constants with "f", since they're destined to be
5772         saved/used as "float"s.
5773
5774 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5775
5776         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5777         * tests/test-float.c (test_long_double): Correct and re-enable the
5778         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5779
5780 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5781
5782         Avoid subtracting two pointers that don't point into the same block.
5783         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5784         only pointers into the same memory block are subtracted. We cannot
5785         assume that sizeof (ptrdiff_t) == sizeof (void *).
5786
5787 2011-11-29  Eric Blake  <eblake@redhat.com>
5788
5789         maint.mk: add syntax check for use of compare from init.sh
5790         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5791         moved here from coreutils.
5792
5793         manywarnings: drop -Wunsuffixed-float-constants
5794         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5795         '1.0D', which is the only way to silence this warning for 'double'.
5796
5797 2011-11-29  Jim Meyering  <meyering@redhat.com>
5798
5799         hash: mark compute_bucket_size with the pure attribute
5800         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5801
5802         quotearg, propername: correct pragma guard expression
5803         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5804         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5805
5806 2011-11-28  Jim Meyering  <meyering@redhat.com>
5807
5808         propername: do not mark proper_name with the const attribute
5809         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5810         since it examines data pointed to by its parameter.
5811         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5812         the suggestion from -Wsuggest-attribute=const.
5813
5814         propername: mark one more function as const
5815         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5816
5817 2011-11-27  Jim Meyering  <meyering@redhat.com>
5818
5819         mark functions with const and pure attributes
5820
5821         Mark functions per suggestions from gcc-4.6 when using these options:
5822         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5823         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5824         Follow these guidelines: when possible, apply the attribute to
5825         an extern declaration, not to its definition.  Apply it to the
5826         definition only when the definition is static.
5827         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5828         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5829         * lib/base64.h (isbase64): Likewise.
5830         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5831         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5832         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5833         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5834         (c_tolower, c_toupper): Likewise.
5835         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5836         * lib/chdir-long.c (find_non_slash): Likewise.
5837         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5838         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5839         * lib/file-type.h (file_type): Likewise.
5840         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5841         * lib/filevercmp.c (verrevcmp): Likewise.
5842         * lib/freadahead.h (freadahead): Likewise.
5843         * lib/fts.c (fts_maxarglen): Likewise.
5844         * lib/hash-pjw.h (hash_pjw): Likewise.
5845         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5846         * lib/hash.c (is_prime, next_prime): Likewise.
5847         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5848         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5849         (hash_table_ok, hash_get_first, hash_string): Likewise.
5850         (compute_bucket_size): Likewise.
5851         * lib/i-ring.h (i_ring_empty): Likewise.
5852         * lib/isnan.c (isnanl): Likewise.
5853         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5854         * lib/memcasecmp.h (memcasecmp): Likewise.
5855         * lib/memchr2.h (memchr2): Likewise.
5856         * lib/memcmp2.h (memcmp2): Likewise.
5857         * lib/parse-datetime.y (lookup_zone): Likewise.
5858         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5859         [!WINDOWS_SOCKETS]: Likewise.
5860         * lib/strnlen1.h (strnlen1): Likewise.
5861         * lib/uniwidth.in.h (uc_width): Likewise.
5862         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5863         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5864         (quoting_options_from_style): Add a comment.
5865         * lib/propername.h (proper_name): Add a comment.
5866
5867 2011-11-27  Bruno Haible  <bruno@clisp.org>
5868
5869         Remove unused macros from !_LIBC code in glibc-borrowed files.
5870         * lib/fnmatch.c (STRCOLL): Remove macro.
5871         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5872         * lib/glob.c (__stat, __readdir64): Remove macros.
5873         * lib/tempname.c (__open64, __xstat64): Remove macros.
5874         Suggested by Paul Eggert.
5875
5876 2011-11-27  Bruno Haible  <bruno@clisp.org>
5877
5878         getcwd: Fix link error on MSVC 9.
5879         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5880
5881 2011-11-27  Bruno Haible  <bruno@clisp.org>
5882
5883         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5884         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5885         HAVE_OPENDIR is 0.
5886         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5887         HAVE_CLOSEDIR is 0.
5888         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5889         is 0.
5890         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5891
5892 2011-11-27  Bruno Haible  <bruno@clisp.org>
5893
5894         getcwd: Fix bug from 2011-08-17.
5895         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5896         platforms that need it.
5897         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5898         code of 4 to be a failure, not a success. This ensures that
5899         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5900
5901 2011-11-27  Bruno Haible  <bruno@clisp.org>
5902
5903         binary-io tests: Avoid test failure on mingw when libtool is used.
5904         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5905         Don't verify the size of t-bin-out1.tmp here.
5906         * tests/test-binary-io.sh: Verify it here.
5907         Reported by Simon Josefsson.
5908
5909 2011-11-26  Bruno Haible  <bruno@clisp.org>
5910
5911         Fix conflict between two instantiations of module 'unistd'.
5912         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5913         ${include_guard_prefix} also in the autoconf snippet.
5914         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5916         GNULIB_UNISTD_H_GETOPT.
5917         * modules/getopt-posix (configure.ac): Set the
5918         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5919         * modules/getopt-gnu (configure.ac): Likewise.
5920         * modules/unistd (Makefile.am): Change the substitution value of
5921         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5922         Reported by Simon Josefsson.
5923
5924 2011-11-25  Bruno Haible  <bruno@clisp.org>
5925
5926         pagealign_alloc: Doc and comments.
5927         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5928         module.
5929         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5930
5931 2011-11-25  Jim Meyering  <meyering@redhat.com>
5932
5933         test-update-copyright.sh: avoid false-positive failure
5934         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5935         around false positive failure on Cygwin/Windows.  The latter was
5936         matching erroneously-created files with names like
5937         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5938
5939 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5940
5941         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5942         * m4/valgrind-tests.m4: Check that the parameters that will be
5943         used works, not just a subset of them.  Reported by Bruno Haible
5944         <bruno@clisp.org>.
5945
5946 2011-11-24  Jim Meyering  <meyering@redhat.com>
5947
5948         test-stdalign.c: comment out long double tests
5949         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5950         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5951         error: '_Alignas' specifiers cannot reduce alignment of \
5952         'static_longdouble_alignas'.
5953
5954 2011-11-22  Jim Meyering  <meyering@redhat.com>
5955
5956         init.sh: make "compare /dev/null FILE" output more readable
5957         * tests/init.sh (compare_): Document the preferred order of arguments.
5958         (emit_diff_u_header_): New function.
5959         (compare_dev_null_): Emit a simulated diff, rather than just the
5960         contents of the unexpected file.  Suggestion from Bruno Haible.
5961
5962 2011-11-21  Jim Meyering  <meyering@redhat.com>
5963             Eric Blake  <eblake@redhat.com>
5964
5965         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5966         * tests/init.sh: Make our compare function slightly more portable.
5967         Reported by Bruno Haible in
5968         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5969
5970 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5971
5972         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5973         before using it, in code that ends up in config.h.
5974
5975 2011-11-20  Bruno Haible  <bruno@clisp.org>
5976
5977         getcwd: Work around getcwd bug on AIX 5..7.
5978         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5979         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5980         Use a different value for gl_cv_func_getcwd_path_max. Move the
5981         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5982         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5983         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5984         Define HAVE_MINIMALLY_WORKING_GETCWD.
5985         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5986         where it is not even minimally working, that is, on AIX.
5987         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5988         m4/getcwd-path-max.m4.
5989         (main): Update exit code computation.
5990         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5991         getcwd does not handle long file names.
5992
5993 2011-11-20  Bruno Haible  <bruno@clisp.org>
5994
5995         getcwd: Fix bug from 2009-09-10.
5996         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5997         like "no".
5998
5999 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6000
6001         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6002
6003 2011-11-20  Bruno Haible  <bruno@clisp.org>
6004
6005         fma tests: Avoid shadowing local variables.
6006         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6007         expected.
6008
6009 2011-11-20  Bruno Haible  <bruno@clisp.org>
6010
6011         copysignf tests: Fix.
6012         * tests/test-copysignf.c: Fix signature check.
6013
6014 2011-11-20  Bruno Haible  <bruno@clisp.org>
6015
6016         fma: Remove unused code.
6017         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6018         unused macros.
6019
6020 2011-11-20  Bruno Haible  <bruno@clisp.org>
6021
6022         sethostname: Fix doc about AIX.
6023         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6024         sethostname; it has it.
6025
6026         sethostname: Mention more portability problems.
6027         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6028         problem.
6029         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6030
6031 2011-11-19  Bruno Haible  <bruno@clisp.org>
6032
6033         Depend on module fcntl-h when AT_FDCWD is used.
6034         * modules/utimens (Depends-on): Add fcntl-h.
6035         * modules/areadlinkat (Depends-on): Likewise.
6036         * modules/areadlinkat-with-size (Depends-on): Likewise.
6037         * modules/faccessat (Depends-on): Likewise.
6038         * modules/fchmodat (Depends-on): Likewise.
6039         * modules/fchownat (Depends-on): Likewise.
6040         * modules/getcwd (Depends-on): Likewise.
6041         * modules/mkdirat (Depends-on): Likewise.
6042         * modules/mkfifoat (Depends-on): Likewise.
6043         * modules/readlinkat (Depends-on): Likewise.
6044         * modules/symlinkat (Depends-on): Likewise.
6045         * modules/dup2-tests (Depends-on): Likewise.
6046         * modules/fdutimensat-tests (Depends-on): Likewise.
6047         * modules/futimens-tests (Depends-on): Likewise.
6048
6049 2011-11-19  Bruno Haible  <bruno@clisp.org>
6050
6051         euidaccess: Update a comment.
6052         * lib/euidaccess.c: Update comment about platforms with faccessat.
6053
6054 2011-11-19  Bruno Haible  <bruno@clisp.org>
6055
6056         openat: Fix file list.
6057         * modules/openat (Files): Remove lib/at-func.c.
6058
6059 2011-11-19  Bruno Haible  <bruno@clisp.org>
6060
6061         fstatat: Simplify.
6062         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6063         gnulib should define rpl_fstatat, there is a
6064         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6065
6066 2011-11-19  Bruno Haible  <bruno@clisp.org>
6067
6068         Ensure 'inline' can be used in tests/test-utimens-common.h.
6069         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6070         * modules/futimens-tests (configure.ac): Likewise.
6071         * modules/utimens-tests (configure.ac): Likewise.
6072         * modules/utimensat-tests (configure.ac): Likewise.
6073
6074 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6075
6076         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6077         not hash_insert0.
6078         (hash_insert_if_absent): Doc fix.
6079
6080 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6081
6082         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6083
6084 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6085
6086         test-getcwd: disambiguate exit status
6087         * tests/test-getcwd.c (test_long_name): Return 0..7.
6088         (main): Exit with an unambiguous exit status.  The old
6089         code yielded a mysterious mixture of two failure codes.
6090
6091         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6092         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6093         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6094         rpl_fstatat or fstatat.  This should fix the other problem
6095         reported by Kai Habel in
6096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6097         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6099         and I reproduced it on a Solaris 8 host we still have in production.
6100
6101 2011-11-18  Jim Meyering  <meyering@redhat.com>
6102
6103         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6104         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6105         Add a sentence to the comment.
6106         (hash_insert0): New function that simply calls hash_insert_if_absent.
6107         * lib/hash.h (hash_insert_if_absent): Declare it.
6108         (hash_insert0): Add deprecation attribute.
6109         (_GL_ATTRIBUTE_DEPRECATED): Define.
6110         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6111         not hash_insert0.
6112         * NEWS: Mention it, even though it's not really an incompatible change.
6113
6114 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6115
6116         openat: avoid compilation failure due to lack of <errno.h> inclusion
6117         * lib/openat.c: Include <errno.h>.
6118
6119 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6120
6121         * modules/getcwd (Depends-on): Add fdopendir.
6122         This fixes one of the two problems reported by Kai Habel in
6123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6124
6125         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6126         stdalign problem reported by Ian Beckwith in
6127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6128         * modules/crypto/gc-arcfour (Depends-on):
6129         Depend conditionally on crypto/arcfour.
6130         * modules/crypto/gc-arctwo (Depends-on):
6131         Depend conditionally on crypto/arctwo.
6132         * modules/crypto/gc-des (Depends-on):
6133         Depend conditionally on crypto/des.
6134         * modules/crypto/gc-hmac-md5 (Depends-on):
6135         Depend conditionally on crypto/hmac-md5.
6136         * modules/crypto/gc-hmac-sha1 (Depends-on):
6137         Depend conditionally on crypto/hmac-sha1.
6138         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6139         * modules/crypto/gc-md4 (Depends-on):
6140         Depend conditionally on crypto/md4.
6141         * modules/crypto/gc-md5 (Depends-on):
6142         Depend conditionally on crypto/md5.
6143         * modules/crypto/gc-rijndael (Depends-on):
6144         Depend conditionally on crypto/rijndael.
6145         * modules/crypto/gc-sha1 (Depends-on):
6146         Depend conditionally on crypto/sha1.
6147         * modules/crypto/gc-arcfour:
6148         * modules/crypto/gc-arctwo:
6149         * modules/crypto/gc-des:
6150         * modules/crypto/gc-hmac-md5:
6151         * modules/crypto/gc-hmac-sha1:
6152         * modules/crypto/gc-md2:
6153         * modules/crypto/gc-md4:
6154         * modules/crypto/gc-md5:
6155         * modules/crypto/gc-rijndael:
6156         * modules/crypto/gc-sha1:
6157         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6158         now that the conditional dependencies do the work for us.
6159
6160 2011-11-17  Jim Meyering  <meyering@redhat.com>
6161
6162         tests: factor st_ctime-comparison out of two headers
6163         * tests/test-utimens-common.h (ctime_compare): Define.
6164         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6165         * tests/test-lutimens.h (test_lutimens): Likewise.
6166         * tests/test-utimens.h (test_utimens): Likewise.
6167
6168         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6169         Invoke the test program via an init.sh-using wrapper.
6170         * tests/test-getcwd.sh: New file.
6171         * modules/getcwd-tests (Files): Add it.
6172         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6173
6174 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6175
6176         gitlog-to-changelog: support multi-author commits.
6177         The FSF cares about keeping track of all authors of patches to its
6178         projects, but Git doesn't provide obvious support for multi-author
6179         changesets. Consensus seems to be forming around the use of extra
6180         Signed-off-by inspired lines in the log message formatted as
6181         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6182         multi-author commits between version control systems.
6183         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6184         log message and output in standard ChangeLog multi-author format.
6185         Reported by Peter Rosin <peda@lysator.liu.se>
6186
6187 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6188             Bruno Haible  <bruno@clisp.org>
6189
6190         Fix some modules' file list.
6191         * modules/fstatat (Files): Add m4/lstat.m4.
6192         * modules/openat (Files): Likewise.
6193         * modules/unlinkat (Files): Likewise.
6194
6195 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6196
6197         maint.mk: fix tight-scope.mk generation in VPATH builds.
6198         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6199         reference with $(srcdir) so that the file is found correctly even
6200         when running `make syntax-check' in a VPATH build.
6201
6202 2011-11-13  Bruno Haible  <bruno@clisp.org>
6203             Jim Meyering  <meyering@redhat.com>
6204
6205         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6206         * tests/init.sh (compare): Remove "No differences encountered" or
6207         synonymous output from the 'diff' program.
6208
6209 2011-11-13  Bruno Haible  <bruno@clisp.org>
6210
6211         Makefile: Tweak indentation.
6212         * Makefile: Use tab as first character in every line that contains rule
6213         commands.
6214
6215 2011-11-13  Bruno Haible  <bruno@clisp.org>
6216
6217         Syntax check for copyright statements.
6218         * check-copyright: New file.
6219         * Makefile (sc_check_copyright): New rule.
6220
6221 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6222
6223         * build-aux/git-version-gen: Add --prefix to configure the tag
6224         match string.
6225
6226 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6227
6228         * build-aux/git-version-gen: Add --help and --version.
6229
6230 2011-11-12  Jim Meyering  <meyering@redhat.com>
6231
6232         revamp the other test-exclude?.sh scripts to use init.sh, too
6233         * tests/test-exclude1.sh: Use init.sh.
6234         * tests/test-exclude2.sh: Likewise.
6235         * tests/test-exclude3.sh: Likewise.
6236         * tests/test-exclude4.sh: Likewise.
6237         * tests/test-exclude5.sh: Likewise.
6238         * tests/test-exclude6.sh: Likewise.
6239         * tests/test-exclude7.sh: Likewise.
6240         * tests/test-exclude8.sh: Likewise.
6241         * modules/exclude-tests (Files): List init.sh.
6242
6243         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6244         These shell scripts ignored failure of the binary test-exclude,
6245         so making the latter return 77 didn't cause them to be skipped.
6246         * tests/test-exclude5.sh: Exit with test-exclude's error status
6247         when that program fails.  Revamp to use init.sh.
6248         * tests/test-exclude2.sh: Likewise.
6249
6250         test-exclude: fix a typo
6251         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6252
6253 2011-11-11  Bruno Haible  <bruno@clisp.org>
6254
6255         obstack: Fix compilation error on MSVC 9.
6256         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6257
6258 2011-11-11  Jim Meyering  <meyering@redhat.com>
6259
6260         test-exclude: skip tests rather than failing on deficient systems
6261         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6262         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6263         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6264         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6265
6266 2011-11-10  Bruno Haible  <bruno@clisp.org>
6267
6268         ptsname_r test: Avoid gcc warning on glibc systems.
6269         * tests/test-ptsname_r.c (null_ptr): New function.
6270         (test_errors): Use it.
6271
6272 2011-11-10  Bruno Haible  <bruno@clisp.org>
6273
6274         ptsname_r: Avoid compilation error on OSF/1 5.1.
6275         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6277         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6278         function is not declared or incompatibly declared.
6279         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6280         * modules/ptsname_r (Depends-on, configure.ac): Update.
6281         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6282
6283 2011-11-10  Bruno Haible  <bruno@clisp.org>
6284
6285         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6286         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6287         When cross-compiling, guess yes on all platforms except AIX.
6288         Reported by Ludovic Courtès <ludo@gnu.org>.
6289
6290 2011-11-09  Bruno Haible  <bruno@clisp.org>
6291
6292         ptsname_r tests: Fix bugs.
6293         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6294         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6295
6296 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6297
6298         fstatat: work with cross-compilation
6299         Problem reported by Ludovic Courtès in
6300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6301         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6302         "cross-compiling" and assume the bug is present.  Replace
6303         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6304         an inverted sense, to be more conservative about our assumptions.
6305         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6306
6307 2011-11-09  Bruno Haible  <bruno@clisp.org>
6308
6309         Improve MODULES.html output.
6310         * modules/mkfifoat (Description): Use the word "function".
6311         * modules/readlinkat (Description): Likewise.
6312         * modules/symlinkat (Description): Likewise.
6313
6314 2011-11-09  Eric Blake  <eblake@redhat.com>
6315
6316         ptsname_r-tests: new test module
6317         * modules/ptsname_r-tests: New module.
6318         * tests/test-ptsname_r.c: New file.
6319
6320         ptsname_r: new module
6321         * modules/ptsname_r: New module.
6322         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6323         * lib/ptsname.c (__ptsname_r): Split...
6324         * lib/ptsname_r.c: ...into new file.
6325         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6326         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6327         * modules/stdlib (Makefile.am): Substitute witnesses.
6328         * lib/stdlib.in.h (ptsname_r): Declare it.
6329         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6330         * MODULES.html.sh (Misc): Likewise.
6331         * modules/ptsname (Depends-on): Alter dependency.
6332         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6333
6334 2011-11-09  Jim Meyering  <meyering@redhat.com>
6335
6336         announce-gen: be more concise when there's only one URL+tarball
6337         * build-aux/announce-gen (get_tool_versions): When you distribute
6338         only one type of tarball, combine the first two "Here are..."
6339         sections and make the key-checking grammar independent of
6340         how many tarballs there are.
6341
6342 2011-11-09  Eric Blake  <eblake@redhat.com>
6343
6344         openpty: provide a stub on mingw
6345         * lib/pty.in.h (includes): Provide forward declarations.
6346         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6347
6348         raise: fix mingw handling of SIGPIPE
6349         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6350
6351 2011-11-08  Bruno Haible  <bruno@clisp.org>
6352
6353         More conditional dependencies.
6354         * modules/faccessat (Depends-on): Add conditions.
6355         * modules/fchmodat (Depends-on): Likewise.
6356         * modules/fchownat (Depends-on): Likewise.
6357         * modules/fstatat (Depends-on): Likewise.
6358         * modules/mkfifoat (Depends-on): Likewise.
6359         * modules/readlinkat (Depends-on): Likewise.
6360         * modules/symlinkat (Depends-on): Likewise.
6361         * modules/unlinkat (Depends-on): Likewise.
6362         * modules/utimensat (Depends-on): Likewise.
6363         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6364         * modules/linkat (Depends-on): Refine the conditions.
6365         * modules/renameat (Depends-on): Likewise.
6366
6367 2011-11-08  Bruno Haible  <bruno@clisp.org>
6368
6369         faccessat: Move AC_LIBOBJ invocation to module description.
6370         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6371         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6372         invocation from here...
6373         * modules/faccessat (configure.ac): ... to here. Invoke
6374         gl_PREREQ_FACCESSAT.
6375
6376 2011-11-08  Bruno Haible  <bruno@clisp.org>
6377
6378         faccessat: Simplify autoconf macro.
6379         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6380         gl_FUNC_EUIDACCESS.
6381
6382 2011-11-08  Bruno Haible  <bruno@clisp.org>
6383
6384         renameat: Fix dependencies.
6385         * modules/renameat (Depends-on): Add stdbool.
6386
6387 2011-11-08  Bruno Haible  <bruno@clisp.org>
6388
6389         mkfifoat: Fix module description.
6390         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6391         not gl_UNISTD_MODULE_INDICATOR.
6392
6393 2011-11-08  Bruno Haible  <bruno@clisp.org>
6394
6395         fstatat: Remove unused dependency.
6396         * modules/fstatat (Depends-on): Remove fstat.
6397
6398 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6399
6400         GNUmakefile: behave when Makefile is missing.
6401         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6402
6403 2011-11-08  Bruno Haible  <bruno@clisp.org>
6404
6405         openat: Conditionalize dependencies.
6406         * lib/openat.c: Reduce the scope of some #includes.
6407         * modules/openat (Depends-on): Add conditions.
6408
6409 2011-11-07  Jim Meyering  <meyering@redhat.com>
6410
6411         maint.mk: extract GPG key ID without using a temporary file
6412         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6413         without using a temporary file.  Based on a suggestion from Werner Koch
6414         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6415
6416 2011-11-07  Eric Blake  <eblake@redhat.com>
6417
6418         grantpt: fix typo
6419         * lib/stdlib.in.h (grantpt): Check correct function.
6420
6421         maint.mk: silence new syntax check
6422         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6423
6424 2011-11-06  Bruno Haible  <bruno@clisp.org>
6425
6426         Doc about floating-point and math API.
6427         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6428         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6429
6430 2011-11-06  Bruno Haible  <bruno@clisp.org>
6431
6432         stdalign tests: Skip the test when compiled by Sun C.
6433         * tests/test-stdalign.c (main): Skip the test on Sun C.
6434
6435 2011-11-06  Bruno Haible  <bruno@clisp.org>
6436
6437         ansi-c++-opt: Complete the 2011-06-05 change.
6438         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6439         does not support namespaces, set the variable to "no", not to ":".
6440
6441 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6442
6443         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6444
6445 2011-11-06  Bruno Haible  <bruno@clisp.org>
6446
6447         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6448         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6449         (minus_zerol) [HP-UX]: New macro.
6450         (unary_minus) [HP-UX]: New function.
6451         (copysignl) [HP-UX]: Use unary_minus function.
6452
6453 2011-11-06  Bruno Haible  <bruno@clisp.org>
6454
6455         ldexp, ldexpf, ldexpl: Enhance tests.
6456         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6457         and tests/test-ldexpl.c.
6458         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6459         LDEXP, MIN_EXP, MAX_EXP): New macros.
6460         Include test-ldexp.h.
6461         (main): Just call test_function.
6462         * tests/test-ldexp.c: Include float.h, isnand-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         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6470         infinity.h, nan.h.
6471         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6472         MAX_EXP): New macros.
6473         Include test-ldexp.h.
6474         (x, y): Remove variables.
6475         (main): Just call test_function.
6476         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6477         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6478         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6479         (Depends-on): Add isnand-nolibm, signbit, float.
6480         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6481         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6482         (Depends-on): Add isnanf-nolibm, signbit, float.
6483
6484 2011-11-06  Bruno Haible  <bruno@clisp.org>
6485
6486         math tests: Cosmetics.
6487         * tests/test-math-c++.cc: Reorder declarations.
6488
6489 2011-11-05  Bruno Haible  <bruno@clisp.org>
6490
6491         fma*: Simplify test.
6492         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6493         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6494
6495         Tests for module 'fmal'.
6496         * modules/fmal-tests: New file.
6497         * tests/test-fmal1.c: New file.
6498         * tests/test-fmal2.c: New file.
6499
6500         New module 'fmal'.
6501         * lib/math.in.h (fmal): New declaration.
6502         * lib/fmal.c: New file.
6503         * m4/fmal.m4: New file.
6504         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6506         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6507         REPLACE_FMAL.
6508         * modules/fmal: New file.
6509         * doc/posix-functions/fmal.texi: Mention the new module and the various
6510         bugs.
6511
6512         Tests for module 'fmaf'.
6513         * modules/fmaf-tests: New file.
6514         * tests/test-fmaf1.c: New file.
6515         * tests/test-fmaf2.c: New file.
6516
6517         New module 'fmaf'.
6518         * lib/math.in.h (fmaf): New declaration.
6519         * lib/fmaf.c: New file.
6520         * m4/fmaf.m4: New file.
6521         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6523         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6524         REPLACE_FMAF.
6525         * modules/fmaf: New file.
6526         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6527         bugs.
6528
6529         Tests for module 'fma'.
6530         * modules/fma-tests: New file.
6531         * tests/test-fma1.c: New file.
6532         * tests/test-fma1.h: New file.
6533         * tests/test-fma2.c: New file.
6534         * tests/test-fma2.h: New file.
6535
6536         New module 'fma'.
6537         * lib/math.in.h (fma): New declaration.
6538         * lib/fma.c: New file.
6539         * m4/fma.m4: New file.
6540         * m4/fegetround.m4: New file.
6541         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6543         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6544         REPLACE_FMA.
6545         * modules/fma: New file.
6546         * doc/posix-functions/fma.texi: Mention the new module and the various
6547         bugs.
6548
6549         Extend gl_MATHFUNC.
6550         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6551         Support 'void' as argument type.
6552         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6553
6554 2011-11-05  Jim Meyering  <meyering@redhat.com>
6555
6556         maint.mk: also prohibit inclusion of dirent.h without use
6557         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6558
6559 2011-11-05  Bruno Haible  <bruno@clisp.org>
6560
6561         ldexpl tests: Avoid test failure on MSVC 9.
6562         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6563         value. Needed in order to enforce the conversion from a value greater
6564         than LDBL_MAX to Infinity.
6565
6566 2011-11-05  Bruno Haible  <bruno@clisp.org>
6567
6568         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6569         * modules/at-internal: New file, extracted from modules/openat.
6570         * modules/openat-h: New file.
6571         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6572         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6573         * modules/openat (Description): Add reference to POSIX function.
6574         (Files): Remove lib/openat.h, lib/openat-proc.c.
6575         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6576         intprops, unistd.
6577         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6578         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6579         gl_FCNTL_MODULE_INDICATOR.
6580         (Include): Remove unistd.h, openat.h.
6581         * modules/areadlinkat (Files): Add lib/at-func.c.
6582         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6583         openat-die, openat-h, save-cwd.
6584         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6585         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6586         openat-die, openat-h, save-cwd, unistd.
6587         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6588         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6589         openat-h, save-cwd. Remove fcntl-h, openat.
6590         * modules/fchmodat (Files): Remove lib/openat.h.
6591         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6592         openat, stdbool, unistd.
6593         * modules/fchownat (Files): Remove lib/openat.h.
6594         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6595         openat, stdbool, sys_stat.
6596         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6597         lib/openat-proc.c.
6598         (Depends-on): Add at-internal.
6599         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6600         * modules/fstatat (Files): Remove lib/openat.h.
6601         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6602         stdbool, unistd.
6603         * modules/fts (Depends-on): Add openat-h.
6604         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6605         openat.
6606         * modules/mkdirat (Files): Remove lib/openat.h.
6607         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6608         openat, stdbool, sys_stat.
6609         * modules/mkfifoat (Files): Add lib/at-func.c.
6610         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6611         openat-h, save-cwd. Remove fcntl-h, openat.
6612         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6613         * modules/readlinkat (Files): Add lib/at-func.c.
6614         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6615         openat-h, save-cwd. Remove fcntl-h, openat.
6616         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6617         openat.
6618         * modules/selinux-at (Files): Add lib/at-func.c.
6619         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6620         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6621         * modules/symlinkat (Files): Add lib/at-func.c.
6622         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6623         openat-h, save-cwd. Remove fcntl-h, openat.
6624         * modules/unlinkat (Files): Remove lib/openat.h.
6625         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6626         stdbool.
6627         * modules/utimensat (Files): Add lib/at-func.c.
6628         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6629         openat-die, openat-h, save-cwd.
6630         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6631         * modules/fdutimensat-tests (Depends-on): Add openat.
6632         * modules/fstatat-tests (Depends-on): Add openat-h.
6633         * modules/readlinkat-tests (Depends-on): Add openat.
6634         * modules/symlinkat-tests (Depends-on): Add openat.
6635
6636 2011-11-05  Bruno Haible  <bruno@clisp.org>
6637
6638         openat: Include <stdbool.h>.
6639         * lib/openat.c: Include <stdbool.h>.
6640
6641 2011-11-04  Bruno Haible  <bruno@clisp.org>
6642
6643         fchownat, renameat, unlinkat: Fix dependencies.
6644         * modules/fchownat (Depends-on): Add fstatat.
6645         * modules/renameat (Depends-on): Likewise.
6646         * modules/unlinkat (Depends-on): Likewise.
6647
6648 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6649
6650         openat: remove direct dependency on dirent
6651         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6652         and hasn't been needed ever since fdopendir was split into its own
6653         module on 2009-08-31.
6654         * modules/openat (Depends-on): Remove dirent.
6655
6656 2011-11-04  Bruno Haible  <bruno@clisp.org>
6657
6658         renameat: Optimize code size.
6659         * modules/renameat (configure.ac): Don't compile at-func2.c if
6660         REPLACE_RENAMEAT is 1.
6661
6662 2011-11-04  Bruno Haible  <bruno@clisp.org>
6663
6664         openat tests: Fix file list.
6665         * modules/openat-tests (Files): Add tests/test-open.h.
6666
6667 2011-11-04  Bruno Haible  <bruno@clisp.org>
6668
6669         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6670         * modules/fchmodat (Depends-on): Add openat-die.
6671         * modules/fchownat (Depends-on): Likewise.
6672         * modules/linkat (Depends-on): Likewise.
6673         * modules/renameat (Depends-on): Likewise.
6674         * modules/openat (Depends-on): Add dirent.
6675
6676 2011-11-04  Jim Meyering  <meyering@redhat.com>
6677
6678         at-func*.c: fix comments
6679         * lib/at-func2.c: Correct/improve first-line comment.
6680         * lib/at-func.c: Correct grammar in first-line comment.
6681
6682 2011-11-04  Bruno Haible  <bruno@clisp.org>
6683
6684         New module 'mkdirat', split off from module 'openat'.
6685         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6686         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6687         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6688         * modules/mkdirat: New file, extracted from modules/openat.
6689         * modules/openat (Files): Remove lib/mkdirat.c.
6690         (Depends-on): Remove mkdir.
6691         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6692         (Include): Remove <sys/stat.h>.
6693         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6694         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6695         tests/test-mkdir.h.
6696         (Depends-on): Remove ignore-value.
6697         (Makefile.am): Remove rules for test-mkdirat.
6698         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6699         of module 'openat'.
6700         * NEWS: Mention the change.
6701
6702 2011-11-04  Bruno Haible  <bruno@clisp.org>
6703
6704         closedir: Avoid warning on mingw.
6705         * lib/closedir.c: Include <unistd.h>.
6706
6707 2011-11-04  Bruno Haible  <bruno@clisp.org>
6708
6709         New module 'fstatat', split off from module 'openat'.
6710         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6711         defined.
6712         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6713         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6714         gl_FUNC_FSTATAT.
6715         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6716         * modules/fstatat: New file, extracted from modules/openat.
6717         * modules/openat (Files): Remove lib/fstatat.c.
6718         (Depends-on): Remove lstat.
6719         (configure.ac): Remove AC_LIBOBJ of fstatat.
6720         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6721         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6722         tests/test-lstat.h, tests/test-stat.h.
6723         (Depends-on): Remove getcwd-lgpl.
6724         (Makefile.am): Remove rules for test-fstatat.
6725         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6726         of module 'openat'.
6727         * NEWS: Mention the change.
6728         * modules/getcwd (Depends-on): Add fstatat.
6729         * modules/linkat (Depends-on): Likewise.
6730         * modules/mkfifoat-tests (Depends-on): Likewise.
6731         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6732
6733 2011-11-03  Bruno Haible  <bruno@clisp.org>
6734
6735         New module 'unlinkat', split off from module 'openat'.
6736         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6737         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6738         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6739         * modules/unlinkat: New file, extracted from modules/openat. Correct
6740         the dependency conditions.
6741         * modules/openat (Files): Remove lib/unlinkat.c.
6742         (Depends-on): Remove rmdir, unlink.
6743         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6744         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6745         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6746         tests/test-rmdir.h, tests/test-unlink.h.
6747         (Depends-on): Remove unlinkdir.
6748         (Makefile.am): Remove rules for test-unlinkat.
6749         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6750         of module 'openat'.
6751         * NEWS: Mention the change.
6752         * modules/linkat-tests (Depends-on): Add unlinkat.
6753         * modules/mkfifoat-tests (Depends-on): Likewise.
6754         * modules/readlinkat-tests (Depends-on): Likewise.
6755
6756 2011-11-02  Bruno Haible  <bruno@clisp.org>
6757
6758         New module 'fchmodat', split off from module 'openat'.
6759         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6760         defined.
6761         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6762         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6763         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6764         * modules/fchmodat: New file, extracted from modules/openat.
6765         * modules/openat (Files): Remove lib/fchmodat.c.
6766         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6767         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6768         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6769         (Makefile.am): Remove rules for test-fchmodat.
6770         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6771         of module 'openat'.
6772         * NEWS: Mention the change.
6773
6774 2011-11-02  Jim Meyering  <meyering@redhat.com>
6775
6776         putenv: indent #definition of "environ" to placate cppi
6777         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6778
6779         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6780         Git logs are often treated as immutable, because editing them
6781         changes the SHA1 checksums of all descendants.  Thus, errors in
6782         git logs tend to stay there forever.  However, when we generate
6783         a ChangeLog file -- typically for distribution -- from that git log,
6784         we can actually make corrections in the generated file.  The key
6785         lies in recording in machine-readable/applicable form the desired
6786         corrections.  See --help for description and an example.
6787         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6788         (usage): Describe it; alphabetize option descriptions.
6789         (main): Honor the new option, carefully.
6790
6791 2011-11-01  Jim Meyering  <meyering@redhat.com>
6792
6793         gitlog-to-changelog: avoid an infloop
6794         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6795         that ends up being empty.
6796
6797 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6798
6799         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6800         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6801         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6802         contains (possibly-quoted) backslashes.  This should avoid
6803         all-too-common shell bugs if COMPLICATED contains backslashes in
6804         the "wrong" places.  Reported by David Evans in
6805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6806         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6807         because we want ASCII ranges.  Is there some reason we don't use
6808         the C locale everywhere in this script?
6809         (func_module, top level): Avoid unwanted pathname expansion when
6810         $repo_url_prefix or $repo_url_suffix_repl contain shell
6811         metacharacters like '?' and '*'.
6812
6813 2011-11-01  Bruno Haible  <bruno@clisp.org>
6814
6815         fchownat: Improve description.
6816         * modules/fchownat (Description): Add link to function.
6817
6818 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6819
6820         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6821         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6823         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6824
6825 2011-11-01  Bruno Haible  <bruno@clisp.org>
6826
6827         alignof: Avoid collision with stdalign module.
6828         * lib/alignof.h (alignof): Remove macro.
6829         * NEWS: Mention the change.
6830         Reported by Paul Eggert.
6831
6832 2011-11-01  Bruno Haible  <bruno@clisp.org>
6833
6834         New module 'fchownat', split off from module 'openat'.
6835         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6836         defined.
6837         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6838         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6839         invoke gl_FUNC_FCHOWNAT.
6840         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6841         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6842         * modules/fchownat: New file, extracted from modules/openat.
6843         * modules/openat (Files): Remove lib/fchownat.c.
6844         (Depends-on): Remove lchown.
6845         (configure.ac): Remove AC_LIBOBJ of fchownat.
6846         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6847         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6848         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6849         (Depends-on): Remove mgetgroups, usleep, stat-time.
6850         (configure.ac): Remove test for getegid.
6851         (Makefile.am): Remove rules for test-fchownat.
6852         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6853         of module 'openat'.
6854         * NEWS: Mention the change.
6855
6856 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6857
6858         stdalign: port better to MSVC and to Sun C 5.11
6859         This fixes some of the problems reported by Bruno Haible in
6860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6861         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6862         shortcomings of MSVC and of Sun C 5.11.
6863         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6864         around __declspec arg.
6865         * modules/stdalign-tests (Files): Add tests/macros.h.
6866         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6867         Include macros.h, for ASSERT.
6868         (DECLARE_ALIGNED): Remove.
6869         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6870         to catch bug), and to 1 if not (simplifies the rest of the code).
6871         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6872         (CHECK_AUTO): Remove.
6873         (CHECK_ALIGNED): Check only the alignment of the static vars,
6874         since auto var alignment isn't supported by Sun C 5.11.
6875         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6876         ASSERT failures are easier to diagnose.
6877
6878 2011-10-31  Bruno Haible  <bruno@clisp.org>
6879
6880         doc about some IRIX 5.3 problems.
6881         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6882         on IRIX 5.3.
6883         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6884         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6885         5.3.
6886         * doc/posix-functions/grantpt.texi: Likewise.
6887         * doc/posix-functions/unlockpt.texi: Likewise.
6888         * doc/posix-functions/lgamma.texi: Likewise.
6889         * doc/posix-functions/nextafter.texi: Likewise.
6890         * doc/posix-functions/remainder.texi: Likewise.
6891         * doc/posix-functions/select.texi: Mention misplaced declaration on
6892         IRIX 5.3.
6893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6894
6895 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6896
6897         gitlog-to-changelog: fix git-log invocation.
6898         git-log mishandles date strings before 1970-01-01 UTC, and there is
6899         no use to specify --since=1970-01-01 by default anyway.
6900         * build-aux/gitlog-to-changelog: By default, when no --since option
6901         was given, do not specify explicit --since option to git-log.
6902
6903 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6904
6905         gitlog-to-changelog: new option --append-dot.
6906         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6907         first non-blank line of each commit message terminated with a dot.
6908
6909 2011-10-30  Bruno Haible  <bruno@clisp.org>
6910
6911         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6912         * lib/ffsl.h: Include <config.h>.
6913         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6914
6915 2011-10-30  Jim Meyering  <meyering@redhat.com>
6916
6917         GNUmakefile: reenable "make syntax-check" for most projects
6918         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6919         build-aux variable", "syntax-check" would do nothing but succeed with
6920         the "No version control files detected..." diagnostic (unless you
6921         happened to override _build-aux via cfg.mk).
6922         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6923         to precede inclusion of maint.mk.  Otherwise, these variables would
6924         be used undefined in any project that does not override the default.
6925
6926 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6927
6928         gitlog-to-changelog: treat a message with only blank lines as empty.
6929         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6930         trailing blank lines before the code that issues a warning about an
6931         empty commit message.
6932
6933 2011-10-30  Jim Meyering  <meyering@redhat.com>
6934
6935         test-parse-datetime.c: avoid new DST-related false positive test failure
6936         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6937         based on the time/date we'll convert, not the current time.
6938         Otherwise, the moment we cross a DST boundary like today's in
6939         Europe, (CEST to CET), that offset ends up being one hour off.
6940
6941 2011-10-27  Bruno Haible  <bruno@clisp.org>
6942
6943         fstat: Tweak documentation.
6944         * modules/fstat (Description): More precise description.
6945
6946 2011-10-27  Bruno Haible  <bruno@clisp.org>
6947
6948         Update documentation regarding 'largefile' module.
6949         * doc/posix-functions/fstat.texi: Tweak wording.
6950         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6951         problems with huge directories and/or small ino_t types.
6952         * doc/posix-functions/readdir.texi: Likewise.
6953         * doc/posix-functions/rewinddir.texi: Likewise.
6954
6955 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6956
6957         maint.mk: don't maintain a second build-aux variable.
6958         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6959         depends on GNUmakefile, which already maintains a cfg.mk
6960         overridable $(_build-aux) for projects with a non-standard
6961         build-aux directory location, although without the $(srcdir)
6962         prefix.  Use that variable consistently instead of introducing a
6963         second one.  Adjust all call sites.
6964
6965 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6966
6967         Add stdalign module and use it in other modules.
6968         This is based on a previous proposal by Bruno Haible
6969         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6970
6971         stdalign: new module
6972         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6973         * modules/stdalign: New files.
6974         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6975         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6976
6977         stdalign-tests: new module
6978         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6979
6980         argp: use stdalign
6981         * lib/argp-parse.c: Include <stdalign.h>.
6982         (alignof): Remove.
6983         * modules/argp (Depends-on): Add stdalign.
6984
6985         crypto libraries: use stdalign
6986         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6987         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6988         Do not include <stdlib.h> twice, in md4.c.
6989         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6990         because we are accessing a pointer's bit-pattern, not a size.
6991         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6992         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6993         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6994         * modules/crypto/sha512: Likewise.
6995
6996         sys_socket: use stdalign, not alignof
6997         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6998         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6999
7000 2011-10-27  Bruno Haible  <bruno@clisp.org>
7001
7002         raise test: Avoid a test failure on Linux/MIPS.
7003         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7004         because 99 is a valid signal on Linux/MIPS.
7005
7006 2011-10-27  Bruno Haible  <bruno@clisp.org>
7007
7008         nonblocking tests: Fix test failure on Linux/MIPS.
7009         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7010         Set to 270000.
7011
7012 2011-10-27  Bruno Haible  <bruno@clisp.org>
7013
7014         utimensat: Work around problem on Linux/hppa.
7015         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7016         values.
7017         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7018
7019 2011-10-25  Jim Meyering  <meyering@redhat.com>
7020
7021         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7022         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7023         after symbols like NULL, size_t, etc.
7024         Reported by Alfred M. Szmidt.
7025
7026         maint.mk: exempt ENODATA from a syntax-check rule
7027         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7028         from the sc_prohibit_always-defined_macros syntax-check rule.
7029         Add a comment.  See this for more details:
7030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7031
7032 2011-10-23  Jim Meyering  <meyering@redhat.com>
7033
7034         fts: close parent dir FD before returning from post-traversal fts_read
7035         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7036         unlink A, even though an FD open on A remained.  This is suboptimal
7037         (holding a file descriptor open longer than needed), but otherwise not
7038         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7039         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7040         that represents a real problem: it causes the removal of A to fail
7041         with e.g., "rm: cannot remove `A': Device or resource busy"
7042
7043         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7044         directory file descriptors.  After completing the final, FTS_DP,
7045         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7046         cache, but then proceeded to add a new FD to it via the subsequent
7047         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7048         final file descriptor would be closed only via fts_close's call to
7049         fd_ring_clear.  Now, it is usually closed earlier, via the final
7050         FTS_DP-returning fts_read call.
7051         * lib/fts.c (restore_initial_cwd): New function, converted from
7052         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7053         Update callers.
7054         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7055         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7056
7057 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7058             Bruno Haible  <bruno@clisp.org>
7059             Jim Meyering  <jim@meyering.net>
7060
7061         readme-release: improve safety of release prep instructions.
7062         * README-release: Don't git pull all branches when only master
7063         is needed for the release process.
7064         Run make maintainer-clean before changing trees and merging.
7065         Don't try to run ./configure right after git pull in case files
7066         that influence the bootstrap process have changed, move the
7067         ./configure step to after running ./bootstrap.
7068         Don't bootstrap "one last time"... it's the first time!
7069
7070 2011-10-22  Bruno Haible  <bruno@clisp.org>
7071
7072         errno, strerror-override: Support for MSVC 10.
7073         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7074         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7075         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7076         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7077         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7078         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7079         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7080         Assign values compatible with MSVC 10.
7081         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7082         New macros.
7083         (GNULIB_defined_EWINSOCK): New macro.
7084         * lib/strerror-override.c (strerror_override): Update accordingly.
7085         * lib/strerror-override.h: Likewise.
7086         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7087         longer equal to the corresponding errno value.
7088         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7089
7090 2011-10-22  Bruno Haible  <bruno@clisp.org>
7091
7092         perror: Recognize when test program crashes.
7093         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7094         strerror, set gl_cv_func_perror_works to no.
7095         Reported by Daniel Richard G. <skunk@iskunk.org>.
7096
7097         perror: Fix indentation.
7098         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7099
7100 2011-10-22  Bruno Haible  <bruno@clisp.org>
7101
7102         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7103         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7104         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7105         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7106         functions, not as a macro.
7107         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7108         macros.
7109         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7110         absence of macro.
7111         Suggested by Eric Blake.
7112         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7113
7114 2011-10-21  Bruno Haible  <bruno@clisp.org>
7115
7116         relocatable-prog-wrapper: Don't leave object files behind.
7117         * build-aux/install-reloc: Re-synchronize list of .o files to be
7118         removed with list of compilation units.
7119
7120 2011-10-20  Bruno Haible  <bruno@clisp.org>
7121
7122         openpty, posix_openpt: Remove code duplication.
7123         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7124         * lib/openpty.c: Include <stdlib.h>.
7125         (openpty): Use posix_openpt on all platforms except IRIX.
7126         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7127
7128 2011-10-20  Bruno Haible  <bruno@clisp.org>
7129
7130         unlockpt: Detect invalid argument.
7131         * lib/unlockpt.c: Include <fcntl.h>.
7132         (unlockpt): Check whether fd is valid, using fcntl().
7133         * modules/unlockpt (Depends-on): Add fcntl-h.
7134
7135 2011-10-20  Bruno Haible  <bruno@clisp.org>
7136
7137         openpty: Avoid compilation error on AIX 6.1.
7138         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7139
7140 2011-10-20  Bruno Haible  <bruno@clisp.org>
7141
7142         posix_openpt: Support for OpenBSD.
7143         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7144         (posix_openpt) [OpenBSD]: New code.
7145         * lib/grantpt.c: Include <fcntl.h>.
7146         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7147         * modules/grantpt (Depends-on): Add fcntl-h.
7148
7149 2011-10-20  Bruno Haible  <bruno@clisp.org>
7150
7151         posix_openpt test: Coding style.
7152         * tests/test-posix_openpt.c: Use GNU coding style.
7153
7154 2011-10-20  Bruno Haible  <bruno@clisp.org>
7155
7156         grantpt: Support --avoid=pt_chown.
7157         * modules/grantpt (Files): Add lib/pty-private.h.
7158
7159 2011-10-20  Bruno Haible  <bruno@clisp.org>
7160
7161         posix_openpt: Fix autoconf macro.
7162         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7163         unneeded check for _getpty.
7164
7165 2011-10-20  Bruno Haible  <bruno@clisp.org>
7166
7167         openpty: Update comments.
7168         * lib/openpty.c: Add comments about Minix.
7169
7170 2011-10-19  Eric Blake  <eblake@redhat.com>
7171
7172         openpty: relax license
7173         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7174
7175         pt_chown: use configmake to simplify build
7176         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7177
7178         ptsname and others: relax license
7179         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7180         * modules/unlockpt (License): Likewise.
7181         * modules/pt_chown (License): Likewise.
7182         * modules/ptsname (License): Likewise.
7183         * modules/ttyname_r (License): Likewise.
7184
7185 2011-10-19  Jim Meyering  <meyering@redhat.com>
7186
7187         posix_openpt: remove spurious #endif
7188         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7189
7190 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7191
7192         maint.mk: Respect $(build_aux) in web-manual rule.
7193         * top/maint.mk (web-manual): Find gen-announce script in user's
7194         $(build_aux) directory instead of hard-coding 'build-aux'.
7195
7196 2011-10-19  Bruno Haible  <bruno@clisp.org>
7197
7198         posix_openpt: Fix compilation error.
7199         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7200         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7201         Mention the openpty module as an alternative.
7202
7203 2011-10-19  Bruno Haible  <bruno@clisp.org>
7204
7205         Support for old NeXTstep 3.3 frexp().
7206         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7207         execution time of the test to 5 seconds.
7208         Reported by Daniel Richard G. <skunk@iskunk.org>.
7209
7210 2011-10-19  Bruno Haible  <bruno@clisp.org>
7211
7212         Support for old NeXTstep 3.3 sed.
7213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7214         part, use /.../, not \|...|. Escape periods in the header file name.
7215         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7216         Reported by Daniel Richard G. <skunk@iskunk.org>.
7217
7218 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7219
7220         Support for old NeXTstep 3.3 gcc.
7221         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7222         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7223         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7224         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7225         * lib/regex.h (_Restrict_arr_): Likewise.
7226         * lib/regex_internal.h (re_token_t): Likewise.
7227         * lib/regexec.c (check_node_accept_bytes): Likewise.
7228         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7229
7230 2011-10-18  Eric Blake  <eblake@redhat.com>
7231
7232         posix_openpt: new module
7233         * modules/posix_openpt: New module.
7234         * m4/posix_openpt.m4: New file.
7235         * lib/posix_openpt.c: Likewise.
7236         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7237         (gl_STDLIB_H_DEFAULTS): Set defaults.
7238         * modules/stdlib (Makefile.am): Substitute macros.
7239         * lib/stdlib.in.h (posix_openpt): Declare.
7240         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7241         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7242         * modules/posix_openpt-tests: New test module.
7243         * tests/test-posix_openpt.c: New test.
7244
7245 2011-10-15  Bruno Haible  <bruno@clisp.org>
7246
7247         xstrtoll: Fix compilation failure.
7248         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7249         from lib/strtol.c.
7250         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7251         some platforms.
7252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7253
7254 2011-10-15  Bruno Haible  <bruno@clisp.org>
7255
7256         vasnprintf: Optimize bit search operation.
7257         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7259         gl_DOUBLE_EXPONENT_LOCATION.
7260         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7261         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7262         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7263         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7264         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7265         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7266         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7267         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7268         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7269
7270 2011-10-15  Bruno Haible  <bruno@clisp.org>
7271
7272         vasnprintf: Fix comments.
7273         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7274
7275 2011-10-14  Bruno Haible  <bruno@clisp.org>
7276
7277         Tests for module 'integer_length_ll'.
7278         * modules/integer_length_ll-tests: New file.
7279         * tests/test-integer_length_ll.c: New file.
7280
7281         New module 'integer_length_ll'.
7282         * lib/integer_length_ll.c: New file.
7283         * modules/integer_length_ll: New file.
7284
7285 2011-10-14  Bruno Haible  <bruno@clisp.org>
7286
7287         Tests for module 'integer_length_l'.
7288         * modules/integer_length_l-tests: New file.
7289         * tests/test-integer_length_l.c: New file.
7290
7291         New module 'integer_length_l'.
7292         * lib/integer_length_l.c: New file.
7293         * modules/integer_length_l: New file.
7294
7295 2011-10-14  Bruno Haible  <bruno@clisp.org>
7296
7297         Tests for module 'integer_length'.
7298         * modules/integer_length-tests: New file.
7299         * tests/test-integer_length.c: New file.
7300
7301         New module 'integer_length'.
7302         * lib/integer_length.h: New file.
7303         * lib/integer_length.c: New file.
7304         * modules/integer_length: New file.
7305
7306 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7307
7308         popen: Fix dependency conditions.
7309         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7310
7311 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7312
7313         perror: Fix autoconf test.
7314         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7315         <stdlib.h> and <string.h>.
7316
7317 2011-10-14  Bruno Haible  <bruno@clisp.org>
7318
7319         ffsl: Optimize on 64-bit platforms.
7320         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7321         unrolling.
7322
7323 2011-10-13  Bruno Haible  <bruno@clisp.org>
7324
7325         ffsl: Optimize on 32-bit platforms.
7326         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7327         use ffs() without a loop.
7328
7329         ffsl, ffsll: Optimize for GCC.
7330         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7331         * lib/ffsl.c (GCC_BUILTIN): New macro.
7332         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7333
7334 2011-10-13  Bruno Haible  <bruno@clisp.org>
7335
7336         ffs, bcopy, memset: Support symbol renaming via config.h.
7337         * lib/ffs.c: Include <config.h>.
7338         * lib/bcopy.c: Likewise.
7339         * lib/memset.c: Likewise.
7340
7341 2011-10-10  Bruno Haible  <bruno@clisp.org>
7342
7343         atanl: Simplify for platforms where 'long double' == 'double'.
7344         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7345         alternative implementation.
7346         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7347         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7348         * modules/atanl (Depends-on): Add atan. Update conditions.
7349
7350 2011-10-10  Bruno Haible  <bruno@clisp.org>
7351
7352         acosl: Simplify for platforms where 'long double' == 'double'.
7353         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7354         alternative implementation.
7355         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7356         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7357         * modules/acosl (Depends-on): Add acos. Update conditions.
7358
7359 2011-10-10  Bruno Haible  <bruno@clisp.org>
7360
7361         asinl: Simplify for platforms where 'long double' == 'double'.
7362         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7363         alternative implementation.
7364         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7365         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7366         * modules/asinl (Depends-on): Add asin. Update conditions.
7367
7368 2011-10-10  Bruno Haible  <bruno@clisp.org>
7369
7370         tanl: Simplify for platforms where 'long double' == 'double'.
7371         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7372         implementation.
7373         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7374         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7375         * modules/tanl (Depends-on): Add tan. Update conditions.
7376         (configure.ac): Don't compile trigl.c if
7377         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7378
7379 2011-10-10  Bruno Haible  <bruno@clisp.org>
7380
7381         cosl: Simplify for platforms where 'long double' == 'double'.
7382         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7383         implementation.
7384         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7385         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7386         * modules/cosl (Depends-on): Add cos. Update conditions.
7387         (configure.ac): Don't compile sincosl.c and trigl.c if
7388         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7389
7390 2011-10-10  Bruno Haible  <bruno@clisp.org>
7391
7392         sinl: Simplify for platforms where 'long double' == 'double'.
7393         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7394         implementation.
7395         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7396         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7397         * modules/sinl (Depends-on): Add sin. Update conditions.
7398         (configure.ac): Don't compile sincosl.c and trigl.c if
7399         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7400
7401 2011-10-10  Bruno Haible  <bruno@clisp.org>
7402
7403         logl: Simplify for platforms where 'long double' == 'double'.
7404         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7405         implementation.
7406         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7407         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7408         * modules/logl (Depends-on): Add log. Update conditions.
7409
7410 2011-10-10  Bruno Haible  <bruno@clisp.org>
7411
7412         expl: Simplify for platforms where 'long double' == 'double'.
7413         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7414         implementation.
7415         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7416         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7417         * modules/expl (Depends-on): Add exp. Update conditions.
7418
7419 2011-10-10  Bruno Haible  <bruno@clisp.org>
7420
7421         sqrtl: Simplify for platforms where 'long double' == 'double'.
7422         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7423         alternative implementation.
7424         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7425         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7426         * modules/sqrtl (Depends-on): Update conditions.
7427
7428 2011-10-10  Bruno Haible  <bruno@clisp.org>
7429
7430         ldexpl: Simplify for platforms where 'long double' == 'double'.
7431         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7432         alternative implementation.
7433         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7434         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7435         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7436
7437 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7438
7439         ffsll: set correct witness
7440         * modules/ffsll (configure.ac): Fix typo.
7441
7442 2011-10-10  Bruno Haible  <bruno@clisp.org>
7443
7444         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7445         * lib/printf-frexpl.c: Include <config.h>.
7446         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7447         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7448         second time.
7449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7450         gl_LONG_DOUBLE_VS_DOUBLE.
7451         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7452         conditions.
7453
7454 2011-10-10  Bruno Haible  <bruno@clisp.org>
7455
7456         frexpl: Simplify for platforms where 'long double' == 'double'.
7457         * lib/frexpl.c: Include <config.h>.
7458         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7459         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7460         time.
7461         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7462         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7463         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7464         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7465         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7466         conditions.
7467
7468 2011-10-10  Jim Meyering  <meyering@redhat.com>
7469
7470         test-renameat: don't leave behind a temporary file
7471         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7472           ERROR: files left in build directory after distclean:
7473           ./gltests/test-renameat.too
7474           make[1]: *** [distcleancheck] Error 1
7475         Reported by Tom G. Christensen.
7476
7477 2011-10-09  Bruno Haible  <bruno@clisp.org>
7478
7479         rint: Determine RINT_LIBM correctly on AIX 7.
7480         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7481         directly, not only through a function pointer. Also accept an optional
7482         4th argument with extra code.
7483         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7484         rintf() call by gcc when optimizing.
7485
7486         mathfunc.m4: Refactor.
7487         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7488         m4 variable.
7489
7490 2011-10-09  Bruno Haible  <bruno@clisp.org>
7491
7492         rintl: Simplify for platforms where 'long double' == 'double'.
7493         * lib/rintl.c: Include <config.h>.
7494         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7495         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7496         time.
7497         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7498         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7499         * modules/rintl (Depends-on): Add rint. Update conditions.
7500
7501 2011-10-09  Bruno Haible  <bruno@clisp.org>
7502
7503         roundl: Simplify for platforms where 'long double' == 'double'.
7504         * lib/roundl.c: Include <config.h>.
7505         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7506         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7507         time.
7508         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7509         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7510         * modules/roundl (Depends-on): Add round. Update conditions.
7511
7512 2011-10-09  Bruno Haible  <bruno@clisp.org>
7513
7514         truncl: Simplify for platforms where 'long double' == 'double'.
7515         * lib/truncl.c: Include <config.h>.
7516         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7517         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7518         time.
7519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7520         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7521         * modules/truncl (Depends-on): Add trunc. Update conditions.
7522
7523 2011-10-09  Bruno Haible  <bruno@clisp.org>
7524
7525         ceill: Simplify for platforms where 'long double' == 'double'.
7526         * lib/ceill.c: Include <config.h>.
7527         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7528         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7529         time.
7530         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7531         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7532         * modules/ceill (Depends-on): Add ceil. Update conditions.
7533
7534 2011-10-09  Bruno Haible  <bruno@clisp.org>
7535
7536         floorl: Simplify for platforms where 'long double' == 'double'.
7537         * lib/floorl.c: Include <config.h>.
7538         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7539         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7540         time.
7541         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7542         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7543         * modules/floorl (Depends-on): Add floor. Update conditions.
7544
7545 2011-10-09  Bruno Haible  <bruno@clisp.org>
7546
7547         rint: Fix ordering constraints.
7548         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7549         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7550         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7551
7552 2011-10-09  Bruno Haible  <bruno@clisp.org>
7553
7554         copysignl: Simplify for platforms where 'long double' == 'double'.
7555         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7556         alternative.
7557         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7558         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7559         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7560
7561 2011-10-09  Bruno Haible  <bruno@clisp.org>
7562
7563         Tests for module 'rintl'.
7564         * modules/rintl-tests: New file.
7565         * tests/test-rintl.c: New file.
7566
7567         New module 'rintl'.
7568         * lib/math.in.h (rintl): New declaration.
7569         * lib/rintl.c: New file.
7570         * m4/rintl.m4: New file.
7571         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7573         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7574         * modules/rintl: New file.
7575         * tests/test-math-c++.cc: Check the declaration of rintl.
7576         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7577         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7578         * doc/posix-functions/rintl.texi: Mention the new module.
7579
7580 2011-10-09  Bruno Haible  <bruno@clisp.org>
7581
7582         Tests for module 'rintf'.
7583         * modules/rintf-tests: New file.
7584         * tests/test-rintf.c: New file.
7585
7586         New module 'rintf'.
7587         * lib/math.in.h (rintf): New declaration.
7588         * lib/rintf.c: New file.
7589         * m4/rintf.m4: New file.
7590         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7592         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7593         * modules/rintf: New file.
7594         * tests/test-math-c++.cc: Check the declaration of rintf.
7595         * doc/posix-functions/rintf.texi: Mention the new module.
7596
7597 2011-10-09  Bruno Haible  <bruno@clisp.org>
7598
7599         rint: Support for MSVC.
7600         * lib/math.in.h (rint): New declaration.
7601         * lib/rint.c: New file.
7602         * m4/rint.m4: New file.
7603         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7605         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7606         * modules/rint (Description): Fix.
7607         (Files): Add lib/rint.c, m4/rint.m4.
7608         (Depends-on): Add math.
7609         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7610         gl_MATH_MODULE_INDICATOR.
7611         * tests/test-math-c++.cc: Check the declaration of rint.
7612         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7613         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7614         * doc/posix-functions/rint.texi: Mention the replacement provided by
7615         the module.
7616
7617         rint tests: More tests.
7618         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7619         minus-zero.h, infinity.h, nan.h.
7620         (main): Skip the test if the current rounding mode is not standard. Add
7621         tests for negative numbers, minus zero, infinity, NaN.
7622         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7623         tests/nan.h.
7624         (Depends-on): Add isnand-nolibm.
7625
7626 2011-10-09  Bruno Haible  <bruno@clisp.org>
7627
7628         Tests for module 'copysignl'.
7629         * modules/copysignl-tests: New file.
7630         * tests/test-copysignl.c: New file.
7631
7632         New module 'copysignl'.
7633         * lib/math.in.h (copysignl): New declaration.
7634         * lib/copysignl.c: New file.
7635         * m4/copysignl.m4: New file.
7636         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7638         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7639         HAVE_COPYSIGNL.
7640         * modules/copysignl: New file.
7641         * tests/test-math-c++.cc: Check the declaration of copysignl.
7642         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7643         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7644         * doc/posix-functions/copysignl.texi: Mention the new module.
7645
7646 2011-10-09  Bruno Haible  <bruno@clisp.org>
7647
7648         Tests for module 'copysignf'.
7649         * modules/copysignf-tests: New file.
7650         * tests/test-copysignf.c: New file.
7651
7652         New module 'copysignf'.
7653         * lib/math.in.h (copysignf): New declaration.
7654         * lib/copysignf.c: New file.
7655         * m4/copysignf.m4: New file.
7656         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7658         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7659         HAVE_COPYSIGNF.
7660         * modules/copysignf: New file.
7661         * tests/test-math-c++.cc: Check the declaration of copysignf.
7662         * doc/posix-functions/copysignf.texi: Mention the new module.
7663
7664 2011-10-09  Bruno Haible  <bruno@clisp.org>
7665
7666         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7667         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7668         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7669         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7670         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7671         gl_SIGNAL_H_DEFAULTS.
7672
7673 2011-10-09  Bruno Haible  <bruno@clisp.org>
7674
7675         poll: Make macro safer.
7676         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7677         ac_cv_header_poll_h is not set.
7678
7679 2011-10-09  Bruno Haible  <bruno@clisp.org>
7680
7681         copysign: Provide replacement.
7682         * lib/math.in.h (copysign): New declaration.
7683         * lib/copysign.c: New file.
7684         * m4/copysign.m4: New file.
7685         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7687         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7688         HAVE_COPYSIGN.
7689         * modules/copysign (Description): Clarify.
7690         (Files): Add lib/copysign.c, m4/copysign.m4.
7691         (Depends-on): Add math, signbit.
7692         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7693         gl_MATH_MODULE_INDICATOR.
7694         * tests/test-math-c++.cc: Check the declaration of copysign.
7695         * doc/posix-functions/copysign.texi: Mention the effects of the module
7696         on Minix and MSVC.
7697
7698 2011-10-09  Bruno Haible  <bruno@clisp.org>
7699
7700         isinf: Ensure macro on AIX 5.1.
7701         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7702         macro.
7703         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7704
7705 2011-10-09  Bruno Haible  <bruno@clisp.org>
7706
7707         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7708         * modules/snprintf-posix-tests (configure.ac): Require
7709         gl_LONG_DOUBLE_VS_DOUBLE.
7710         * modules/sprintf-posix-tests (configure.ac): Likewise.
7711         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7712         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7713         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7714         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7715         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7716         tests on platforms where 'long double' is the same as 'double'.
7717         * tests/test-sprintf-posix.h (test_function): Likewise.
7718         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7719         * tests/test-vasprintf-posix.c (test_function): Likewise.
7720
7721         *printf: Fix for platforms where 'long double' == 'double'.
7722         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7723         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7724         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7725         * modules/fprintf-posix (Files): Likewise.
7726         * modules/obstack-printf-posix (Files): Likewise.
7727         * modules/snprintf-posix (Files): Likewise.
7728         * modules/sprintf-posix (Files): Likewise.
7729         * modules/vasnprintf (Files): Likewise.
7730         * modules/vasnprintf-posix (Files): Likewise.
7731         * modules/vasprintf-posix (Files): Likewise.
7732         * modules/vdprintf-posix (Files): Likewise.
7733         * modules/vfprintf-posix (Files): Likewise.
7734         * modules/vsnprintf-posix (Files): Likewise.
7735         * modules/vsprintf-posix (Files): Likewise.
7736         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7737         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7738         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7739         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7740         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7741         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7742         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7743
7744         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7745         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7746         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7747         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7748         'long double'.
7749         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7750
7751         isinf: Fix for platforms where 'long double' == 'double'.
7752         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7753         Don't blindly assume 80-bit 'long double'.
7754
7755         isfinite: Fix for platforms where 'long double' == 'double'.
7756         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7757         Don't blindly assume 80-bit 'long double'.
7758
7759         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7760         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7761         * modules/isfinite-tests (configure.ac): Require
7762         gl_LONG_DOUBLE_VS_DOUBLE.
7763         * modules/isinf-tests (configure.ac): Likewise.
7764         * modules/isnan-tests (configure.ac): Likewise.
7765         * modules/isnanl-tests (configure.ac): Likewise.
7766         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7767         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7768         tests on platforms where 'long double' is the same as 'double'.
7769         * tests/test-isinf.c (test_isinfl): Likewise.
7770         * tests/test-isnan.c (test_long_double): Likewise.
7771         * tests/test-isnanl.h (main): Likewise.
7772
7773 2011-10-08  Bruno Haible  <bruno@clisp.org>
7774
7775         Tests for module 'tanhf'.
7776         * modules/tanhf-tests: New file.
7777         * tests/test-tanhf.c: New file.
7778
7779         New module 'tanhf'.
7780         * lib/math.in.h (tanhf): New declaration.
7781         * lib/tanhf.c: New file.
7782         * m4/tanhf.m4: New file.
7783         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7785         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7786         * modules/tanhf: New file.
7787         * tests/test-math-c++.cc: Check the declaration of tanhf.
7788         * doc/posix-functions/tanhf.texi: Mention the new module.
7789
7790         tanh: Use a .m4 file.
7791         * m4/tanh.m4: New file.
7792         * modules/tanh (Files): Add it.
7793         (configure.ac): Just invoke gl_FUNC_TANH.
7794
7795 2011-10-08  Bruno Haible  <bruno@clisp.org>
7796
7797         Tests for module 'coshf'.
7798         * modules/coshf-tests: New file.
7799         * tests/test-coshf.c: New file.
7800
7801         New module 'coshf'.
7802         * lib/math.in.h (coshf): New declaration.
7803         * lib/coshf.c: New file.
7804         * m4/coshf.m4: New file.
7805         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7807         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7808         * modules/coshf: New file.
7809         * tests/test-math-c++.cc: Check the declaration of coshf.
7810         * doc/posix-functions/coshf.texi: Mention the new module.
7811
7812         cosh: Use a .m4 file.
7813         * m4/cosh.m4: New file.
7814         * modules/cosh (Files): Add it.
7815         (configure.ac): Just invoke gl_FUNC_COSH.
7816
7817 2011-10-08  Bruno Haible  <bruno@clisp.org>
7818
7819         Tests for module 'sinhf'.
7820         * modules/sinhf-tests: New file.
7821         * tests/test-sinhf.c: New file.
7822
7823         New module 'sinhf'.
7824         * lib/math.in.h (sinhf): New declaration.
7825         * lib/sinhf.c: New file.
7826         * m4/sinhf.m4: New file.
7827         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7829         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7830         * modules/sinhf: New file.
7831         * tests/test-math-c++.cc: Check the declaration of sinhf.
7832         * doc/posix-functions/sinhf.texi: Mention the new module.
7833
7834         sinh: Use a .m4 file.
7835         * m4/sinh.m4: New file.
7836         * modules/sinh (Files): Add it.
7837         (configure.ac): Just invoke gl_FUNC_SINH.
7838
7839 2011-10-08  Bruno Haible  <bruno@clisp.org>
7840
7841         Tests for module 'atan2f'.
7842         * modules/atan2f-tests: New file.
7843         * tests/test-atan2f.c: New file.
7844
7845         New module 'atan2f'.
7846         * lib/math.in.h (atan2f): New declaration.
7847         * lib/atan2f.c: New file.
7848         * m4/atan2f.m4: New file.
7849         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7851         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7852         * modules/atan2f: New file.
7853         * tests/test-math-c++.cc: Check the declaration of atan2f.
7854         * doc/posix-functions/atan2f.texi: Mention the new module.
7855
7856         atan2: Use a .m4 file.
7857         * m4/atan2.m4: New file.
7858         * modules/atan2 (Files): Add it.
7859         (configure.ac): Just invoke gl_FUNC_ATAN2.
7860
7861 2011-10-08  Bruno Haible  <bruno@clisp.org>
7862
7863         Tests for module 'atanf'.
7864         * modules/atanf-tests: New file.
7865         * tests/test-atanf.c: New file.
7866
7867         New module 'atanf'.
7868         * lib/math.in.h (atanf): New declaration.
7869         * lib/atanf.c: New file.
7870         * m4/atanf.m4: New file.
7871         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7873         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7874         * modules/atanf: New file.
7875         * tests/test-math-c++.cc: Check the declaration of atanf.
7876         * doc/posix-functions/atanf.texi: Mention the new module.
7877
7878         atan: Use a .m4 file.
7879         * m4/atan.m4: New file.
7880         * modules/atan (Files): Add it.
7881         (configure.ac): Just invoke gl_FUNC_ATAN.
7882
7883 2011-10-08  Bruno Haible  <bruno@clisp.org>
7884
7885         Tests for module 'acosf'.
7886         * modules/acosf-tests: New file.
7887         * tests/test-acosf.c: New file.
7888
7889         New module 'acosf'.
7890         * lib/math.in.h (acosf): New declaration.
7891         * lib/acosf.c: New file.
7892         * m4/acosf.m4: New file.
7893         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7895         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7896         * modules/acosf: New file.
7897         * tests/test-math-c++.cc: Check the declaration of acosf.
7898         * doc/posix-functions/acosf.texi: Mention the new module.
7899
7900         acos: Use a .m4 file.
7901         * m4/acos.m4: New file.
7902         * modules/acos (Files): Add it.
7903         (configure.ac): Just invoke gl_FUNC_ACOS.
7904
7905 2011-10-08  Bruno Haible  <bruno@clisp.org>
7906
7907         Tests for module 'asinf'.
7908         * modules/asinf-tests: New file.
7909         * tests/test-asinf.c: New file.
7910
7911         New module 'asinf'.
7912         * lib/math.in.h (asinf): New declaration.
7913         * lib/asinf.c: New file.
7914         * m4/asinf.m4: New file.
7915         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7917         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7918         * modules/asinf: New file.
7919         * tests/test-math-c++.cc: Check the declaration of asinf.
7920         * doc/posix-functions/asinf.texi: Mention the new module.
7921
7922         asin: Use a .m4 file.
7923         * m4/asin.m4: New file.
7924         * modules/asin (Files): Add it.
7925         (configure.ac): Just invoke gl_FUNC_ASIN.
7926
7927 2011-10-08  Bruno Haible  <bruno@clisp.org>
7928
7929         Tests for module 'tanf'.
7930         * modules/tanf-tests: New file.
7931         * tests/test-tanf.c: New file.
7932
7933         New module 'tanf'.
7934         * lib/math.in.h (tanf): New declaration.
7935         * lib/tanf.c: New file.
7936         * m4/tanf.m4: New file.
7937         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7939         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7940         * modules/tanf: New file.
7941         * tests/test-math-c++.cc: Check the declaration of tanf.
7942         * doc/posix-functions/tanf.texi: Mention the new module.
7943
7944         tan: Use a .m4 file.
7945         * m4/tan.m4: New file.
7946         * modules/tan (Files): Add it.
7947         (configure.ac): Just invoke gl_FUNC_TAN.
7948
7949 2011-10-08  Bruno Haible  <bruno@clisp.org>
7950
7951         Tests for module 'cosf'.
7952         * modules/cosf-tests: New file.
7953         * tests/test-cosf.c: New file.
7954
7955         New module 'cosf'.
7956         * lib/math.in.h (cosf): New declaration.
7957         * lib/cosf.c: New file.
7958         * m4/cosf.m4: New file.
7959         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7961         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7962         * modules/cosf: New file.
7963         * tests/test-math-c++.cc: Check the declaration of cosf.
7964         * doc/posix-functions/cosf.texi: Mention the new module.
7965
7966         cos: Use a .m4 file.
7967         * m4/cos.m4: New file.
7968         * modules/cos (Files): Add it.
7969         (configure.ac): Just invoke gl_FUNC_COS.
7970
7971 2011-10-08  Bruno Haible  <bruno@clisp.org>
7972
7973         Tests for module 'sinf'.
7974         * modules/sinf-tests: New file.
7975         * tests/test-sinf.c: New file.
7976
7977         New module 'sinf'.
7978         * lib/math.in.h (sinf): New declaration.
7979         * lib/sinf.c: New file.
7980         * m4/sinf.m4: New file.
7981         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7983         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7984         * modules/sinf: New file.
7985         * tests/test-math-c++.cc: Check the declaration of sinf.
7986         * doc/posix-functions/sinf.texi: Mention the new module.
7987
7988         sin: Use a .m4 file.
7989         * m4/sin.m4: New file.
7990         * modules/sin (Files): Add it.
7991         (configure.ac): Just invoke gl_FUNC_SIN.
7992
7993 2011-10-08  Bruno Haible  <bruno@clisp.org>
7994
7995         Tests for module 'powf'.
7996         * modules/powf-tests: New file.
7997         * tests/test-powf.c: New file.
7998
7999         New module 'powf'.
8000         * lib/math.in.h (powf): New declaration.
8001         * lib/powf.c: New file.
8002         * m4/powf.m4: New file.
8003         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8005         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8006         * modules/powf: New file.
8007         * tests/test-math-c++.cc: Check the declaration of powf.
8008         * doc/posix-functions/powf.texi: Mention the new module.
8009
8010         pow: Use a .m4 file.
8011         * m4/pow.m4: New file.
8012         * modules/pow (Files): Add it.
8013         (configure.ac): Just invoke gl_FUNC_POW.
8014
8015 2011-10-08  Bruno Haible  <bruno@clisp.org>
8016
8017         Tests for module 'log10f'.
8018         * modules/log10f-tests: New file.
8019         * tests/test-log10f.c: New file.
8020
8021         New module 'log10f'.
8022         * lib/math.in.h (log10f): New declaration.
8023         * lib/log10f.c: New file.
8024         * m4/log10f.m4: New file.
8025         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8027         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8028         * modules/log10f: New file.
8029         * tests/test-math-c++.cc: Check the declaration of log10f.
8030         * doc/posix-functions/log10f.texi: Mention the new module.
8031
8032         log10: Use a .m4 file.
8033         * m4/log10.m4: New file.
8034         * modules/log10 (Files): Add it.
8035         (configure.ac): Just invoke gl_FUNC_LOG10.
8036
8037 2011-10-08  Bruno Haible  <bruno@clisp.org>
8038
8039         Tests for module 'logf'.
8040         * modules/logf-tests: New file.
8041         * tests/test-logf.c: New file.
8042
8043         New module 'logf'.
8044         * lib/math.in.h (logf): New declaration.
8045         * lib/logf.c: New file.
8046         * m4/logf.m4: New file.
8047         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8049         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8050         * modules/logf: New file.
8051         * tests/test-math-c++.cc: Check the declaration of logf.
8052         * doc/posix-functions/logf.texi: Mention the new module.
8053
8054         log: Use a .m4 file.
8055         * m4/log.m4: New file.
8056         * modules/log (Files): Add it.
8057         (configure.ac): Just invoke gl_FUNC_LOG.
8058
8059 2011-10-08  Bruno Haible  <bruno@clisp.org>
8060
8061         Tests for module 'expf'.
8062         * modules/expf-tests: New file.
8063         * tests/test-expf.c: New file.
8064
8065         New module 'expf'.
8066         * lib/math.in.h (expf): New declaration.
8067         * lib/expf.c: New file.
8068         * m4/expf.m4: New file.
8069         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8071         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8072         * modules/expf: New file.
8073         * tests/test-math-c++.cc: Check the declaration of expf.
8074         * doc/posix-functions/expf.texi: Mention the new module.
8075
8076         exp: Use a .m4 file.
8077         * m4/exp.m4: New file.
8078         * modules/exp (Files): Add it.
8079         (configure.ac): Just invoke gl_FUNC_EXP.
8080
8081 2011-10-08  Bruno Haible  <bruno@clisp.org>
8082
8083         Tests for module 'sqrtf'.
8084         * modules/sqrtf-tests: New file.
8085         * tests/test-sqrtf.c: New file.
8086
8087         New module 'sqrtf'.
8088         * lib/math.in.h (sqrtf): New declaration.
8089         * lib/sqrtf.c: New file.
8090         * m4/sqrtf.m4: New file.
8091         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8093         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8094         * modules/sqrtf: New file.
8095         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8096         * doc/posix-functions/sqrtf.texi: Mention the new module.
8097
8098 2011-10-08  Bruno Haible  <bruno@clisp.org>
8099
8100         Tests: Avoid link failures w.r.t. libintl.
8101         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8102         $(LIBINTL).
8103         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8104         $(LIBINTL).
8105         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8106         against $(LIBINTL).
8107         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8108         $(LIBINTL).
8109         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8110         $(LIBINTL).
8111         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8112
8113 2011-10-08  Bruno Haible  <bruno@clisp.org>
8114
8115         pow tests: Defeat compiler optimizations.
8116         * tests/test-pow.c (main): Assign arguments to x and y before use.
8117
8118 2011-10-08  Bruno Haible  <bruno@clisp.org>
8119
8120         gnulib-tool: Improve last commit.
8121         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8122         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8123         ignore dependencies that are not among the modules list.
8124
8125 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8126
8127         gnulib-tool: don't follow dependencies to avoided modules
8128         This fixes a bug that is related to the previous one.
8129         * gnulib-tool (func_modules_transitive_closure)
8130         (func_emit_autoconf_snippets):
8131         Check whether a dependency is acceptable before using it.
8132         (--extract-dependencies): Report an error if --avoid is also used,
8133         since this combination of options is not yet supported.
8134
8135         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8136         Problem reported by Peter Dyballa in
8137         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8138         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8139         when echoing "$condition".
8140
8141 2011-10-07  Bruno Haible  <bruno@clisp.org>
8142
8143         Fix documentation about math functions on MacOS X.
8144         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8145         MacOS X 10.5.
8146         * doc/posix-functions/fdim.texi: Likewise.
8147         * doc/posix-functions/feclearexcept.texi: Likewise.
8148         * doc/posix-functions/fegetenv.texi: Likewise.
8149         * doc/posix-functions/fegetround.texi: Likewise.
8150         * doc/posix-functions/feholdexcept.texi: Likewise.
8151         * doc/posix-functions/feraiseexcept.texi: Likewise.
8152         * doc/posix-functions/fesetenv.texi: Likewise.
8153         * doc/posix-functions/fesetround.texi: Likewise.
8154         * doc/posix-functions/fetestexcept.texi: Likewise.
8155         * doc/posix-functions/feupdateenv.texi: Likewise.
8156         * doc/posix-functions/fmax.texi: Likewise.
8157         * doc/posix-functions/fmin.texi: Likewise.
8158         * doc/posix-functions/log2.texi: Likewise.
8159         * doc/posix-functions/modff.texi: Likewise.
8160         * doc/posix-functions/nan.texi: Likewise.
8161         * doc/posix-functions/nanf.texi: Likewise.
8162         * doc/posix-functions/nextafterf.texi: Likewise.
8163         * doc/posix-functions/remquo.texi: Likewise.
8164
8165 2011-10-07  Bruno Haible  <bruno@clisp.org>
8166
8167         modff: Drop assumption about library that defines modff.
8168         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8169         AC_CHECK_FUNCS.
8170         * modules/modff (Files): Add m4/mathfunc.m4.
8171
8172 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8173
8174         raise tests: Avoid a GCC warning.
8175         * tests/test-raise.c (handler): Use _Noreturn.
8176
8177 2011-10-07  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests for module 'ldexpf'.
8180         * modules/ldexpf-tests: New file.
8181         * tests/test-ldexpf.c: New file.
8182
8183         New module 'ldexpf'.
8184         * lib/math.in.h (ldexpf): New declaration.
8185         * lib/ldexpf.c: New file.
8186         * m4/ldexpf.m4: New file.
8187         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8189         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8190         * modules/ldexpf: New file.
8191         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8192         * doc/posix-functions/ldexpf.texi: Mention the new module.
8193
8194 2011-10-06  Bruno Haible  <bruno@clisp.org>
8195
8196         frexpf: Work around problems on IRIX and mingw.
8197         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8199         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8200         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8201         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8202         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8203         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8204
8205 2011-10-06  Bruno Haible  <bruno@clisp.org>
8206
8207         fabsf: Drop assumption about library that defines fabsf.
8208         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8209         AC_CHECK_FUNCS.
8210         * modules/fabsf (Files): Add m4/mathfunc.m4.
8211
8212 2011-10-06  Bruno Haible  <bruno@clisp.org>
8213
8214         frexpf: Drop assumption about library that defines frexpf.
8215         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8216         'int *', 'float *', 'long double *', 'float', 'long double'.
8217         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8218         AC_CHECK_FUNCS.
8219         * modules/frexpf (Files): Add m4/mathfunc.m4.
8220
8221         Tests for module 'frexpf'.
8222         * modules/frexpf-tests: New file.
8223         * tests/test-frexpf.c: New file.
8224
8225         New module 'frexpf'.
8226         * lib/math.in.h (frexpf): New declaration.
8227         * lib/frexpf.c: New file.
8228         * m4/frexpf.m4: New file.
8229         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8231         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8232         * modules/frexpf: New file.
8233         * tests/test-math-c++.cc: Check the declaration of frexpf.
8234         * doc/posix-functions/frexpf.texi: Mention the new module.
8235
8236 2011-10-06  Bruno Haible  <bruno@clisp.org>
8237
8238         math: Sort function declarations of math.in.h.
8239         * lib/math.in.h (frexp, logb): Move declarations.
8240
8241 2011-10-05  Bruno Haible  <bruno@clisp.org>
8242
8243         Tests for module 'modff'.
8244         * modules/modff-tests: New file.
8245         * tests/test-modff.c: New file.
8246
8247         New module 'modff'.
8248         * lib/math.in.h (modff): New declaration.
8249         * lib/modff.c: New file.
8250         * m4/modff.m4: New file.
8251         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8253         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8254         * modules/modff: New file.
8255         * tests/test-math-c++.cc: Check the declaration of modff.
8256         * doc/posix-functions/modff.texi: Mention the new module.
8257
8258         modf tests: Make test sharper.
8259         * tests/test-modf.c (main): Strengthen upper bound.
8260
8261         modf: Use a .m4 file.
8262         * m4/modf.m4: New file.
8263         * modules/modf (Files): Add it.
8264         (configure.ac): Just invoke gl_FUNC_MODF.
8265
8266 2011-10-05  Bruno Haible  <bruno@clisp.org>
8267
8268         Tests for module 'fmodf'.
8269         * modules/fmodf-tests: New file.
8270         * tests/test-fmodf.c: New file.
8271
8272         New module 'fmodf'.
8273         * lib/math.in.h (fmodf): New declaration.
8274         * lib/fmodf.c: New file.
8275         * m4/fmodf.m4: New file.
8276         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8278         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8279         * modules/fmodf: New file.
8280         * tests/test-math-c++.cc: Check the declaration of fmodf.
8281         * doc/posix-functions/fmodf.texi: Mention the new module.
8282
8283         fmod: Use a .m4 file.
8284         * m4/fmod.m4: New file.
8285         * modules/fmod (Files): Add it.
8286         (configure.ac): Just invoke gl_FUNC_FMOD.
8287
8288 2011-10-05  Bruno Haible  <bruno@clisp.org>
8289
8290         Tests for module 'fabsf'.
8291         * modules/fabsf-tests: New file.
8292         * tests/test-fabsf.c: New file.
8293
8294         New module 'fabsf'.
8295         * lib/math.in.h (fabsf): New declaration.
8296         * lib/fabsf.c: New file.
8297         * m4/fabsf.m4: New file.
8298         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8300         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8301         * modules/fabsf: New file.
8302         * tests/test-math-c++.cc: Check the declaration of fabsf.
8303         * doc/posix-functions/fabsf.texi: Mention the new module.
8304
8305         fabs: Use a .m4 file.
8306         * m4/fabs.m4: New file.
8307         * modules/fabs (Files): Add it.
8308         (configure.ac): Just invoke gl_FUNC_FABS.
8309
8310 2011-10-05  Jim Meyering  <meyering@redhat.com>
8311
8312         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8313         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8314         ls -lL regression introduced in coreutils-8.12, it does so at the
8315         cost of an additional stat call in the common case.  Besides, now
8316         that the kernel change that prompted commit 95f7c57f has been reverted
8317         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8318         we have no use for commit 95f7c57f, "file-has-acl: use
8319         acl_extended_file_nofollow if available".
8320
8321 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8322
8323         file-has-acl: revert unintended change in behavior of ls -L
8324         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8325         derived from...
8326         (file_has_acl): ...code here.  Call it.
8327         This problem was introduced with 2011-07-22 commit 95f7c57f,
8328         "file-has-acl: use acl_extended_file_nofollow if available".
8329         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8330
8331 2011-10-03  Bruno Haible  <bruno@clisp.org>
8332
8333         poll: Avoid link errors on MSVC.
8334         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8335         * modules/poll (Depends-on): Add sockets.
8336         (Link): New section.
8337         * NEWS: Mention the change.
8338         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8339         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8340         $(LIB_POLL) instead of $(LIBSOCKET).
8341
8342 2011-10-03  Bruno Haible  <bruno@clisp.org>
8343
8344         sys_select tests: Fix link error on MSVC 9.
8345         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8346         with $(LIB_SELECT) instead of $(LIBSOCKET).
8347
8348 2011-10-03  Bruno Haible  <bruno@clisp.org>
8349
8350         sys_select: Fix compilation error on mingw.
8351         * lib/sys_select.in.h: On native Windows, include <io.h>.
8352
8353 2011-10-03  Bruno Haible  <bruno@clisp.org>
8354
8355         wmemset: Support for MSVC.
8356         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8357         whether wmemset() exists.
8358
8359 2011-10-03  Bruno Haible  <bruno@clisp.org>
8360
8361         wmemmove: Support for MSVC.
8362         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8363         whether wmemmove() exists.
8364
8365 2011-10-03  Bruno Haible  <bruno@clisp.org>
8366
8367         wmemcpy: Support for MSVC.
8368         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8369         whether wmemcpy() exists.
8370
8371 2011-10-03  Bruno Haible  <bruno@clisp.org>
8372
8373         wmemcmp: Support for MSVC.
8374         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8375         whether wmemcmp() exists.
8376
8377 2011-10-03  Bruno Haible  <bruno@clisp.org>
8378
8379         wmemchr: Support for MSVC.
8380         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8381         whether wmemchr() exists.
8382
8383 2011-10-03  Bruno Haible  <bruno@clisp.org>
8384
8385         glthread/*, strsignal: Support for MSVC.
8386         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8387         including <winsock.h> on MSVC 9.
8388         * lib/glthread/lock.h: Likewise.
8389         * lib/glthread/thread.h: Likewise.
8390         * lib/glthread/tls.h: Likewise.
8391         * lib/glthread/yield.h: Likewise.
8392         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8393         if HAVE_UNISTD_H is false.
8394         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8395
8396 2011-10-03  Bruno Haible  <bruno@clisp.org>
8397
8398         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8399         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8400         Set to 100000.
8401
8402 2011-10-03  Bruno Haible  <bruno@clisp.org>
8403
8404         acl: Fix specification.
8405         * lib/file-has-acl.c (file_has_acl): Fix specification.
8406
8407 2011-10-03  Bruno Haible  <bruno@clisp.org>
8408
8409         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8410         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8411         (compute_curr_prefix, shared_library_fullname,
8412         find_shared_library_fullname, get_shared_library_fullname, relocate):
8413         Use it together with PIC && INSTALLDIR.
8414         Reported by <jojelino@gmail.com>
8415         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8416
8417 2011-10-01  Jim Meyering  <meyering@redhat.com>
8418
8419         maint.mk: adjust a release-related rule not to require use of gzip
8420         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8421         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8422         projects that build only .tar.xz files.  Also fix an erroneous test.
8423
8424         test-linkat: don't leave behind a temporary file
8425         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8426         Otherwise, coreutils' "make distcheck" would fail with this:
8427           Only in /c/cu/tests/torture/coreutils/test/\
8428             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8429           make[2]: *** [my-distcheck] Error 1
8430
8431         float, math: add omitted file
8432         * lib/itold.c: Add file, required for yesterday's float change.
8433
8434 2011-10-01  Bruno Haible  <bruno@clisp.org>
8435
8436         isinf: Fix for OpenBSD/x86.
8437         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8438         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8439         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8440
8441 2011-10-01  Bruno Haible  <bruno@clisp.org>
8442
8443         isfinite: Fix syntax error in configure test.
8444         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8445
8446         isfinite: Fix typo.
8447         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8448         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8449
8450 2011-10-01  Bruno Haible  <bruno@clisp.org>
8451
8452         nonblocking tests: Fix test failure on Linux/IA-64.
8453         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8454         Set to 270000.
8455
8456 2011-10-01  Bruno Haible  <bruno@clisp.org>
8457
8458         mkfifoat tests: Fix a test failure on mingw.
8459         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8460         with error ENOSYS.
8461
8462 2011-09-30  Bruno Haible  <bruno@clisp.org>
8463
8464         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8465         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8466         'long double'. Set REPLACE_ITOLD.
8467         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8468         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8469         * lib/itold.c: New file.
8470         * modules/float (Files): Add lib/itold.c.
8471         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8472         (Makefile.am): Substitute REPLACE_ITOLD.
8473         * modules/math (Depends-on): Add float.
8474         (Makefile.am): Substitute REPLACE_ITOLD.
8475         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8476         * doc/posix-headers/math.texi: Likewise.
8477         * doc/posix-functions/logl.texi: Likewise.
8478
8479 2011-09-30  Bruno Haible  <bruno@clisp.org>
8480
8481         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8482         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8483         Set to 140000.
8484
8485 2011-09-30  Bruno Haible  <bruno@clisp.org>
8486
8487         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8488         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8489         invocation, say "right after AC_PROG_CC_STDC", not "right after
8490         AC_PROG_CC".
8491         Reported by Gary V. Vaughan <gary@gnu.org>.
8492
8493 2011-09-30  Bruno Haible  <bruno@clisp.org>
8494
8495         Centralize C99 requirement.
8496         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8497         * modules/stdarg (configure.ac-early): Invoke it instead of
8498         AC_PROG_CC_STDC.
8499         Reported by Gary V. Vaughan and Paul Eggert.
8500
8501 2011-09-29  Bruno Haible  <bruno@clisp.org>
8502
8503         float: Fix LDBL_MAX value on Linux/PowerPC.
8504         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8505         on Linux/PowerPC.
8506         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8507         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8508         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8509         platform.
8510         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8511
8512 2011-09-29  Bruno Haible  <bruno@clisp.org>
8513
8514         doc: Improve doc about gl_EARLY.
8515         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8516         AC_PROG_CC_STDC invocation.
8517         Reported by Gary V. Vaughan <gary@gnu.org>.
8518
8519 2011-09-28  Bruno Haible  <bruno@clisp.org>
8520
8521         fgetc, fputc, fread, fwrite tests: Fix link error.
8522         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8523         on non-MSVC platforms.
8524         * tests/test-fputc.c (main): Likewise.
8525         * tests/test-fread.c (main): Likewise.
8526         * tests/test-fwrite.c (main): Likewise.
8527         Reported by Jim Meyering.
8528
8529 2011-09-27  Bruno Haible  <bruno@clisp.org>
8530
8531         fputc, fwrite tests: Avoid test failure on MSVC.
8532         * tests/test-fgetc.c: Include msvc-inval.h.
8533         (main): Invoke gl_msvc_inval_ensure_handler.
8534         * tests/test-fputc.c: Include msvc-inval.h.
8535         (main): Invoke gl_msvc_inval_ensure_handler.
8536         * tests/test-fread.c: Include msvc-inval.h.
8537         (main): Invoke gl_msvc_inval_ensure_handler.
8538         * tests/test-fwrite.c: Include msvc-inval.h.
8539         (main): Invoke gl_msvc_inval_ensure_handler.
8540         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8541         * modules/fputc-tests (Depends-on): Likewise.
8542         * modules/fread-tests (Depends-on): Likewise.
8543         * modules/fwrite-tests (Depends-on): Likewise.
8544
8545 2011-09-27  Bruno Haible  <bruno@clisp.org>
8546
8547         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8548         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8549         (raise): Remove older, duplicated declaration.
8550         (_gl_raise_SIGPIPE): New declaration.
8551         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8552         (rpl_raise): Remove function.
8553         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8554         a gnulib-defined SIGPIPE here.
8555         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8556         'sigprocmask' has detected missing signal-blocking and the module
8557         'sigpipe' is enabled.
8558         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8559
8560 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8561
8562         base64-tests: avoid memory leak
8563         * tests/test-base64.c (main): Plug memory leak.
8564
8565         base32: new module
8566         * modules/base32: New module.
8567         * lib/base32.c: New file.
8568         * lib/base32.h: Likewise.
8569         * m4/base32.m4: Likewise.
8570         * modules/base32-tests: New test.
8571         * tests/test-base32.c: Likewise.
8572         * MODULES.html.sh (Misc): Mention it.
8573
8574 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         gnulib: use more-standard license notice wording
8577         * gnulib-tool (func_emit_copyright_notice): When emitting a
8578         license notice into a file, use the standard wording as suggested
8579         by the current information for GNU maintainers, except say "file"
8580         rather than "program".  The new wording gives a license version
8581         number, which addresses an issue raised by Glenn Morris in
8582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8583         * m4/onceonly.m4: Use that same wording here, too.
8584
8585         dup2: minor simplification
8586         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8587         as lib/dup2.c no longer uses 'inline'.
8588
8589 2011-09-25  Bruno Haible  <bruno@clisp.org>
8590
8591         strings: Fix compilation error on MSVC.
8592         * lib/strings.in.h: Include <stddef.h> for size_t.
8593
8594 2011-09-25  Bruno Haible  <bruno@clisp.org>
8595
8596         fflush et al.: Document limitation on MSVC.
8597         * doc/posix-functions/fflush.texi: Document possible crash in handling
8598         mode other than DEFAULT_HANDLING.
8599         * doc/posix-functions/fgetc.texi: Likewise.
8600         * doc/posix-functions/fputc.texi: Likewise.
8601         * doc/posix-functions/fread.texi: Likewise.
8602         * doc/posix-functions/fwrite.texi: Likewise.
8603
8604 2011-09-25  Bruno Haible  <bruno@clisp.org>
8605
8606         msvc-inval: Allow three invalid parameter handling modes.
8607         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8608         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8609         macros.
8610         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8611         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8612         SANE_LIBRARY_HANDLING as a no-op.
8613         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8614         <stdlib.h>.
8615         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8616
8617 2011-09-25  Bruno Haible  <bruno@clisp.org>
8618
8619         msvc-inval: Make handler multithread-safe.
8620         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8621         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8622         declarations.
8623         (gl_msvc_inval_current): New declaration.
8624         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8625         Operate on the structure returned by gl_msvc_inval_current().
8626         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8627         Remove varaiables.
8628         (tls_index, tls_initialized): New variables.
8629         (not_per_thread): New variable.
8630         (gl_msvc_inval_current): New function.
8631         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8632         returned by gl_msvc_inval_current().
8633
8634 2011-09-25  Bruno Haible  <bruno@clisp.org>
8635
8636         msvc-inval: Install handler globally.
8637         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8638         !_MSC_VER.
8639         (gl_msvc_invalid_parameter_handler): Remove declaration.
8640         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8641         declarations.
8642         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8643         Install the handler globally, don't uninstall it.
8644         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8645         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8646         currently valid, call RaiseException instead.
8647         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8648         for !_MSC_VER.
8649
8650 2011-09-25  Bruno Haible  <bruno@clisp.org>
8651
8652         strerror_r-posix: Fix for MSVC 9.
8653         * lib/strerror_r.c (local_snprintf): New function.
8654         (snprintf): Define to local_snprintf, not to _snprintf.
8655
8656 2011-09-25  Bruno Haible  <bruno@clisp.org>
8657
8658         ftruncate: Support for MSVC 9.
8659         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8660         (chsize_nothrow): New function.
8661         (chsize): Redefine as a macro.
8662         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8663         * modules/ftruncate (Depends-on): Add msvc-inval.
8664
8665 2011-09-25  Bruno Haible  <bruno@clisp.org>
8666
8667         New module 'fstat'.
8668         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8669         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8670         * lib/fchdir.c (rpl_fstat): Remove function.
8671         * m4/fstat.m4: New file.
8672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8674         declared.
8675         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8676         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8677         * modules/fstat: New file.
8678         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8679         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8680         is set.
8681         * doc/posix-functions/fstat.texi: Mention the new module and the
8682         problem on MSVC.
8683         * NEWS: Mention the change.
8684         * modules/acl (Depends-on): Add fstat.
8685         * modules/chdir-safer (Depends-on): Likewise.
8686         * modules/chown (Depends-on): Likewise.
8687         * modules/copy-file (Depends-on): Likewise.
8688         * modules/fchdir (Depends-on): Likewise.
8689         * modules/fdopendir (Depends-on): Likewise.
8690         * modules/fopen (Depends-on): Likewise.
8691         * modules/fts (Depends-on): Likewise.
8692         * modules/getcwd (Depends-on): Likewise.
8693         * modules/isapipe (Depends-on): Likewise.
8694         * modules/linkat (Depends-on): Likewise.
8695         * modules/lseek (Depends-on): Likewise.
8696         * modules/mkdir-p (Depends-on): Likewise.
8697         * modules/open (Depends-on): Likewise.
8698         * modules/openat (Depends-on): Likewise.
8699         * modules/read-file (Depends-on): Likewise.
8700         * modules/renameat (Depends-on): Likewise.
8701         * modules/utimens (Depends-on): Likewise.
8702
8703 2011-09-25  Bruno Haible  <bruno@clisp.org>
8704
8705         linkat: Fix compilation on MSVC 9.
8706         * lib/linkat.c: Don't include <stdint.h>.
8707
8708 2011-09-25  Bruno Haible  <bruno@clisp.org>
8709
8710         fclose: Support for MSVC 9.
8711         * lib/fclose.c: Include msvc-inval.h.
8712         (fclose_nothrow): New function.
8713         (rpl_fclose): Use it.
8714         * modules/fclose (Depends-on): Add msvc-inval.
8715         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8716
8717 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8718
8719         dup2: minor simplifications
8720         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8721         that it's a performance win.
8722         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8723         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8724
8725 2011-09-24  Jim Meyering  <meyering@redhat.com>
8726
8727         test-futimens: avoid a warning from gcc -Wshadow
8728         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8729         to avoid a shadowing warning.
8730
8731 2011-09-24  Bruno Haible  <bruno@clisp.org>
8732
8733         fdopen: Support for MSVC 9.
8734         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8735         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8736         * lib/fdopen.c: Include msvc-inval.h.
8737         (fdopen_nothrow): New function.
8738         (rpl_fdopen): Use it.
8739         * modules/fdopen (Depends-on): Add msvc-inval.
8740         * modules/fclose-tests (Depends-on): Add fdopen.
8741         * modules/fflush-tests (Depends-on): Likewise.
8742         * modules/fgetc-tests (Depends-on): Likewise.
8743         * modules/fputc-tests (Depends-on): Likewise.
8744         * modules/fread-tests (Depends-on): Likewise.
8745         * modules/freopen-tests (Depends-on): Likewise.
8746         * modules/fseeko-tests (Depends-on): Likewise.
8747         * modules/ftello-tests (Depends-on): Likewise.
8748         * modules/fwrite-tests  (Depends-on): Likewise.
8749         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8750
8751 2011-09-24  Bruno Haible  <bruno@clisp.org>
8752
8753         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8754         * modules/fgetc-tests (Depends-on): Add unistd.
8755         * modules/fputc-tests (Depends-on): Likewise.
8756         * modules/fread-tests (Depends-on): Likewise.
8757         * modules/fwrite-tests (Depends-on): Likewise.
8758
8759 2011-09-24  Bruno Haible  <bruno@clisp.org>
8760
8761         dup: Simplify autoconf test.
8762         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8763         on gl_MSVC_INVAL's result.
8764
8765 2011-09-24  Bruno Haible  <bruno@clisp.org>
8766
8767         Tests for function fwrite().
8768         * modules/fwrite-tests: New file.
8769         * tests/test-fwrite.c: New file.
8770         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8771
8772         Tests for function fread().
8773         * modules/fread-tests: New file.
8774         * tests/test-fread.c: New file.
8775         * modules/stdio-tests (Depends-on): Add fread-tests.
8776
8777         Activate fputc tests.
8778         * modules/stdio-tests (Depends-on): Add fputc-tests.
8779
8780         Enhance fgetc, fputc tests.
8781         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8782         * tests/test-fputc.c (main): Likewise.
8783
8784 2011-09-24  Bruno Haible  <bruno@clisp.org>
8785
8786         write: Support for MSVC 9.
8787         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8788         is not 1.
8789         * lib/write.c (write_nothrow): New function.
8790         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8791         not 1. Use write_nothrow.
8792         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8793         invalid parameter handler.
8794         (gl_PREREQ_WRITE): New macro.
8795         * modules/write (Depends-on): Add msvc-inval.
8796         (configure.ac): Invoke gl_PREREQ_WRITE.
8797         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8798
8799 2011-09-24  Bruno Haible  <bruno@clisp.org>
8800
8801         read: Fix last commit.
8802         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8803
8804 2011-09-24  Bruno Haible  <bruno@clisp.org>
8805
8806         dup2: Fix last commit.
8807         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8808         (rpl_dup2): Disable fcntl workaround on native Windows.
8809
8810         sigprocmask: Make code safer.
8811         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8812         section that changes macro definitions for this compilation unit.
8813
8814 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8815
8816         dup2: clarify by coalescing Windows-specific material
8817         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8818         "msvc-nothrow.h"' to the Windows-specific section, so that the
8819         Emacs source need not contain these include files.
8820         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8821         Windows-specific fixes into this function rather than just the
8822         nothrow fix, as this shortens and clarifies the code.  Always
8823         define as a function, as that's a bit cleaner than having it be
8824         sometimes a function and sometimes a macro.
8825         (rpl_dup2): Move the Windows-specific stuff out of here and into
8826         ms_windows_dup2.  Don't protect the Haiku-related fix with
8827         "#if !defined __linux__", as the same code also works around
8828         a Linux kernel bug, and it doesn't add any system calls on any
8829         platform.  Add comment about FreeBSD 6.1.
8830
8831         sigprocmask: move #include directive
8832         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8833         Windows-specific section, so that the Emacs source need not
8834         contain msvc-inval.h.
8835
8836 2011-09-23  Bruno Haible  <bruno@clisp.org>
8837
8838         read: Support for MSVC 9.
8839         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8840         is not 1.
8841         * lib/read.c (read_nothrow): New function.
8842         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8843         read_nothrow.
8844         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8845         invalid parameter handler.
8846         (gl_PREREQ_READ): New macro.
8847         * modules/read (Depends-on): Add msvc-inval.
8848         (configure.ac): Invoke gl_PREREQ_READ.
8849         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8850
8851 2011-09-23  Bruno Haible  <bruno@clisp.org>
8852
8853         close: Support for MSVC 9.
8854         * lib/close.c: Include <errno.h>, msvc-inval.h.
8855         (close_nothrow): New function.
8856         (rpl_close): Use it.
8857         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8858         invalid parameter handler.
8859         * modules/close (Depends-on): Add msvc-inval.
8860         * modules/dup2-tests (Depends-on): Add close.
8861         * modules/dup3-tests (Depends-on): Likewise.
8862         * modules/fcntl-tests (Depends-on): Likewise.
8863         * modules/spawn-pipe-tests (Depends-on): Likewise.
8864         * modules/unistd-safer-tests (Depends-on): Likewise.
8865         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8866
8867 2011-09-23  Bruno Haible  <bruno@clisp.org>
8868
8869         New module 'dup'.
8870         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8871         Allow replacement.
8872         * lib/dup.c: New file.
8873         * lib/fchdir.c (rpl_dup): Remove function.
8874         * m4/dup.m4: New file.
8875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8876         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8877         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8878         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8879         * modules/dup: New file.
8880         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8881         'dup' module is in use.
8882         * modules/fdopendir (Depends-on): Add dup.
8883         * modules/fdutimensat-tests (Depends-on): Likewise.
8884         * modules/fts (Depends-on): Likewise.
8885         * modules/futimens-tests (Depends-on): Likewise.
8886         * modules/posix_spawnp-tests (Depends-on): Likewise.
8887         * modules/unistd-safer-tests (Depends-on): Likewise.
8888         * modules/utimens-tests (Depends-on): Likewise.
8889         * doc/posix-functions/dup.texi: Mention the new module and the problem
8890         on MSVC.
8891
8892 2011-09-23  Bruno Haible  <bruno@clisp.org>
8893
8894         getdtablesize: Support for MSVC 9.
8895         * lib/getdtablesize.c: Include msvc-inval.h.
8896         (_setmaxstdio_nothrow): New function.
8897         (_setmaxstdio): Redefine it.
8898         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8899         * modules/getdtablesize (Depends-on): Add msvc-inval.
8900         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8901
8902 2011-09-23  Bruno Haible  <bruno@clisp.org>
8903
8904         signal-h: Rename from signal.
8905         * modules/signal-h: Renamed from modules/signal.
8906         * modules/pthread_sigmask (Depends-on): Update.
8907         * modules/raise (Depends-on): Likewise.
8908         * modules/sigaction (Depends-on): Likewise.
8909         * modules/sigpipe (Depends-on): Likewise.
8910         * modules/sigprocmask (Depends-on): Likewise.
8911         * modules/sys_select (Depends-on): Likewise.
8912         * modules/signal-h-tests: Renamed from modules/signal-tests.
8913         (Files, Depends-on, Makefile.am): Update.
8914         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8915         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8916         (Files, Makefile.am): Update.
8917         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8918         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8919         * modules/signal: New placeholder file.
8920         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8921         * doc/posix-headers/signal.texi: Update.
8922         * NEWS: Mention the change.
8923
8924 2011-09-23  Bruno Haible  <bruno@clisp.org>
8925
8926         sigprocmask: Avoid crashes through signal() on MSVC 9.
8927         * lib/sigprocmask.c: Include msvc-inval.h.
8928         (signal_nothrow): New function.
8929         (signal): Redefine it.
8930         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8931         * modules/sigprocmask (Depends-on): Add msvc-inval.
8932         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8933
8934 2011-09-23  Bruno Haible  <bruno@clisp.org>
8935
8936         Tests for module 'raise'.
8937         * modules/raise-tests: New file.
8938         * tests/test-raise.c: New file.
8939
8940         raise: Support for MSVC.
8941         * lib/signal.in.h (raise): New declaration.
8942         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8943         for native Windows platforms.
8944         * m4/raise.m4: New file.
8945         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8946         HAVE_RAISE, REPLACE_RAISE.
8947         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8948         REPLACE_RAISE.
8949         * modules/raise (Status, Notice): Remove fields.
8950         (Files): Add m4/raise.m4.
8951         (Depends-on): Add signal, msvc-inval.
8952         (configure.ac): Use the common idioms.
8953         (Maintainer): Add me.
8954         * tests/test-signal-c++.cc: Check the signature of raise.
8955         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8956
8957 2011-09-23  Bruno Haible  <bruno@clisp.org>
8958
8959         pipe2: Fix compilation on pre-C99 compilers.
8960         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8961
8962 2011-09-23  Bruno Haible  <bruno@clisp.org>
8963
8964         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8965         * lib/msvc-nothrow.h: New file.
8966         * lib/msvc-nothrow.c: New file.
8967         * m4/msvc-nothrow.m4: New file.
8968         * modules/msvc-nothrow: New file.
8969         * lib/dup2.c: Include msvc-nothrow.h.
8970         (rpl_dup2): No need to protect _get_osfhandle call here.
8971         * lib/accept4.c: Include msvc-nothrow.h.
8972         * lib/error.c: Likewise.
8973         * lib/fcntl.c: Likewise.
8974         * lib/lseek.c: Likewise.
8975         * lib/nonblocking.c: Likewise.
8976         * lib/poll.c: Likewise.
8977         * lib/read.c: Likewise.
8978         * lib/select.c: Likewise.
8979         * lib/sockets.h: Likewise.
8980         * lib/sockets.c: Likewise.
8981         * lib/stdio-read.c: Likewise.
8982         * lib/stdio-write.c: Likewise.
8983         * lib/write.c: Likewise.
8984         * lib/w32sock.h: Likewise.
8985         * lib/w32spawn.h: Likewise.
8986         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8987         * lib/fsync.c: Likewise.
8988         * lib/isapipe.c: Likewise.
8989         * modules/dup2 (Depends-on): Add msvc-nothrow.
8990         * modules/accept4 (Depends-on): Likewise.
8991         * modules/error (Depends-on): Likewise.
8992         * modules/fcntl (Depends-on): Likewise.
8993         * modules/lseek (Depends-on): Likewise.
8994         * modules/nonblocking (Depends-on): Likewise.
8995         * modules/poll (Depends-on): Likewise.
8996         * modules/read (Depends-on): Likewise.
8997         * modules/select (Depends-on): Likewise.
8998         * modules/sockets (Depends-on): Likewise.
8999         * modules/sigpipe (Depends-on): Likewise.
9000         * modules/write (Depends-on): Likewise.
9001         * modules/accept (Depends-on): Likewise.
9002         * modules/bind (Depends-on): Likewise.
9003         * modules/connect (Depends-on): Likewise.
9004         * modules/gethostname (Depends-on): Likewise.
9005         * modules/getpeername (Depends-on): Likewise.
9006         * modules/getsockname (Depends-on): Likewise.
9007         * modules/getsockopt (Depends-on): Likewise.
9008         * modules/ioctl (Depends-on): Likewise.
9009         * modules/listen (Depends-on): Likewise.
9010         * modules/recv (Depends-on): Likewise.
9011         * modules/recvfrom (Depends-on): Likewise.
9012         * modules/send (Depends-on): Likewise.
9013         * modules/sendto (Depends-on): Likewise.
9014         * modules/setsockopt (Depends-on): Likewise.
9015         * modules/shutdown (Depends-on): Likewise.
9016         * modules/socket (Depends-on): Likewise.
9017         * modules/execute (Depends-on): Likewise.
9018         * modules/spawn-pipe (Depends-on): Likewise.
9019         * modules/flock (Depends-on): Likewise.
9020         * modules/fsync (Depends-on): Likewise.
9021         * modules/isapipe (Depends-on): Likewise.
9022         * tests/test-cloexec.c: Include msvc-nothrow.h.
9023         * tests/test-dup-safer.c: Likewise.
9024         * tests/test-dup2.c: Likewise.
9025         * tests/test-dup3.c: Likewise.
9026         * tests/test-fcntl.c: Likewise.
9027         * tests/test-pipe.c: Likewise.
9028         * tests/test-pipe2.c: Likewise.
9029         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9030         * modules/unistd-safer-tests (Depends-on): Likewise.
9031         * modules/dup2-tests (Depends-on): Likewise.
9032         * modules/dup3-tests (Depends-on): Likewise.
9033         * modules/fcntl-tests (Depends-on): Likewise.
9034         * modules/pipe-posix-tests (Depends-on): Likewise.
9035         * modules/pipe2-tests (Depends-on): Likewise.
9036
9037 2011-09-23  Bruno Haible  <bruno@clisp.org>
9038
9039         dup2: Make code more maintainable.
9040         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9041         (rpl_dup2): Use it.
9042         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9043         * modules/dup2 (configure.ac): Invoke it.
9044         Reported by Paul Eggert.
9045
9046 2011-09-23  Bruno Haible  <bruno@clisp.org>
9047
9048         msvc-inval: Fix compilation error.
9049         * lib/msvc-inval.h: Include <excpt.h>.
9050
9051 2011-09-23  Bruno Haible  <bruno@clisp.org>
9052
9053         mkdir: Tweak for MSVC 9.
9054         * lib/sys_stat.in.h: Update comments.
9055         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9056
9057         Tests for module 'chdir'.
9058         * modules/chdir-tests: New file.
9059         * tests/test-chdir.c: New file.
9060
9061         New module 'chdir'.
9062         * modules/chdir: New file.
9063         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9064         (chdir): New declaration.
9065         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9066         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9067         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9068         * tests/test-unistd-c++.cc: Check signature of chdir.
9069         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9070         * modules/chdir-long (Depends-on): Add chdir.
9071         * modules/fchdir (Depends-on): Likewise.
9072         * modules/rename (Depends-on): Likewise.
9073         * modules/savewd (Depends-on): Likewise.
9074
9075         rmdir: Support for mingw, MSVC 9.
9076         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9077         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9078
9079         getcwd: Tweak for MSVC 9.
9080         * lib/unistd.in.h: Update comments.
9081         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9082
9083 2011-09-22  Bruno Haible  <bruno@clisp.org>
9084
9085         strerror_r-posix: Avoid a link error on MSVC.
9086         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9087         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9088
9089 2011-09-22  Bruno Haible  <bruno@clisp.org>
9090
9091         select: Avoid link errors on MSVC.
9092         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9093         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9094         * modules/pselect (Link): Likewise.
9095         * NEWS: Mention the change.
9096         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9097         test-select-stdin against $(LIB_SELECT).
9098         * modules/pselect-tests (Makefile.am): Link test-pselect against
9099         $(LIB_SELECT).
9100
9101 2011-09-22  Bruno Haible  <bruno@clisp.org>
9102
9103         select: Avoid compilation error on MSVC.
9104         * lib/select.c: Don't include <stdbool.h>.
9105
9106 2011-09-21  Bruno Haible  <bruno@clisp.org>
9107
9108         Consolidate all uses of PATH_MAX in *.m4 files.
9109         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9110         macros.
9111         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9112         and gl_PATHMAX_SNIPPET.
9113         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9115         * modules/chdir-long (Files): Add m4/pathmax.m4.
9116         * modules/getcwd (Files): Likewise.
9117
9118 2011-09-21  Bruno Haible  <bruno@clisp.org>
9119
9120         ftruncate: Un-deprecate, concentrate on Win32 support.
9121         * modules/ftruncate (Status, Notice): Remove sections.
9122         (Depends-on): Add largefile.
9123         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9124         non-mingw platforms.
9125         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9126         include <io.h>.
9127         * modules/perror-tests (Depends-on): Add ftruncate.
9128         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9129         'ftruncate' module.
9130
9131 2011-09-21  Bruno Haible  <bruno@clisp.org>
9132
9133         Add dependencies to new dirent related modules.
9134         * modules/opendir (Depends-on): Add closedir.
9135         * modules/getcwd (Depends-on): Add opendir, closedir.
9136         * modules/dirent-safer-tests (Depends-on): Likewise.
9137         * modules/fdopendir-tests (Depends-on): Likewise.
9138         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9139         * modules/renameat-tests (Depends-on): Likewise.
9140
9141 2011-09-21  Bruno Haible  <bruno@clisp.org>
9142
9143         opendir: Avoid compilation error on mingw.
9144         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9145         * modules/opendir (Depends-on): Add unistd.
9146
9147 2011-09-21  Bruno Haible  <bruno@clisp.org>
9148
9149         ftruncate tests: Avoid a test failure on mingw.
9150         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9151
9152 2011-09-21  Bruno Haible  <bruno@clisp.org>
9153
9154         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9155         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9156         native Windows.
9157
9158 2011-09-21  Bruno Haible  <bruno@clisp.org>
9159
9160         New module 'fdopen'.
9161         * lib/stdio.in.h (fdopen): New declaration.
9162         * lib/fdopen.c: New file.
9163         * m4/fdopen.m4: New file.
9164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9165         REPLACE_FDOPEN.
9166         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9167         REPLACE_FDOPEN.
9168         * modules/fdopen: New file.
9169         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9170         * tests/test-stdio-c++.cc: Check signature of fdopen.
9171         * doc/posix-functions/fdopen.texi: Mention the new module.
9172
9173 2011-09-21  Bruno Haible  <bruno@clisp.org>
9174
9175         unlockpt tests: Avoid test failure on NetBSD 5.1.
9176         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9177         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9178
9179 2011-09-21  Bruno Haible  <bruno@clisp.org>
9180
9181         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9182         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9183         * tests/test-getlogin_r.c (main): Likewise.
9184
9185 2011-09-20  Bruno Haible  <bruno@clisp.org>
9186
9187         time tests: Don't require pid_t.
9188         * doc/posix-headers/time.texi: Revert last change.
9189         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9190         * tests/test-time.c: Comment out the check for pid_t.
9191
9192 2011-09-20  Bruno Haible  <bruno@clisp.org>
9193
9194         fsync tests: Avoid a test failure on mingw.
9195         * tests/test-fsync.c (main): Allow a failure with EIO.
9196
9197 2011-09-20  Bruno Haible  <bruno@clisp.org>
9198
9199         euidaccess: Update comments.
9200         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9201
9202 2011-09-20  Bruno Haible  <bruno@clisp.org>
9203
9204         Ensure EBADF returns for socket functions on mingw.
9205         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9206         descriptor is invalid.
9207         * lib/bind.c (rpl_bind): Likewise.
9208         * lib/connect.c (rpl_connect): Likewise.
9209         * lib/getpeername.c (rpl_getpeername): Likewise.
9210         * lib/getsockname.c (rpl_getsockname): Likewise.
9211         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9212         * lib/listen.c (rpl_listen): Likewise.
9213         * lib/recv.c (rpl_recv): Likewise.
9214         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9215         * lib/send.c (rpl_send): Likewise.
9216         * lib/sendto.c (rpl_sendto): Likewise.
9217         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9218         * lib/shutdown.c (rpl_shutdown): Likewise.
9219
9220 2011-09-20  Bruno Haible  <bruno@clisp.org>
9221
9222         select tests: EBADF tests.
9223         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9224         test_bad_fd): New functions.
9225         (test_function): Invoke also test_bad_fd.
9226
9227 2011-09-20  Bruno Haible  <bruno@clisp.org>
9228
9229         Tests for module 'posix_spawn_file_actions_addopen.
9230         * modules/posix_spawn_file_actions_addopen-tests: New file.
9231         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9232
9233         Tests for module 'posix_spawn_file_actions_adddup2'.
9234         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9235         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9236
9237         Tests for module 'posix_spawn_file_actions_addclose'.
9238         * modules/posix_spawn_file_actions_addclose-tests: New file.
9239         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9240
9241 2011-09-20  Bruno Haible  <bruno@clisp.org>
9242
9243         Tests for module 'unlockpt'.
9244         * modules/unlockpt-tests: New file.
9245         * tests/test-unlockpt.c: New file.
9246         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9247
9248         Tests for module 'grantpt'.
9249         * modules/grantpt-tests: New file.
9250         * tests/test-grantpt.c: New file.
9251         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9252
9253 2011-09-20  Bruno Haible  <bruno@clisp.org>
9254
9255         freopen tests: EBADF tests.
9256         * tests/test-freopen.c: Include errno.h, unistd.h.
9257         (main): Add tests for EBADF, commented out for the moment.
9258
9259         fclose tests: EBADF tests.
9260         * tests/test-fclose.c (main): Add tests for EBADF.
9261
9262         fflush tests: EBADF tests.
9263         * tests/test-fflush.c: Include errno.h, macros.h.
9264         (main): Add tests for EBADF.
9265
9266         ftello tests: EBADF tests.
9267         * tests/test-ftello4.sh: New file.
9268         * tests/test-ftello4.c: New file.
9269         * modules/ftello-tests (Files): Add them.
9270         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9271
9272         fseeko tests: EBADF tests.
9273         * tests/test-fseeko4.sh: New file.
9274         * tests/test-fseeko4.c: New file.
9275         * modules/fseeko-tests (Files): Add them.
9276         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9277
9278         Tests for function fputc().
9279         * modules/fputc-tests: New file.
9280         * tests/test-fputc.c: New file.
9281         * modules/stdio-tests (Depends-on): Add fputc-tests.
9282
9283         Tests for function fgetc().
9284         * modules/fgetc-tests: New file.
9285         * tests/test-fgetc.c: New file.
9286         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9287
9288         Tests for function fdopen().
9289         * modules/fdopen-tests: New file.
9290         * tests/test-fdopen.c: New file.
9291         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9292
9293         Tests for module 'vdprintf'.
9294         * modules/vdprintf-tests: New file.
9295         * tests/test-vdprintf.c: New file.
9296
9297         Tests for module 'dprintf'.
9298         * modules/dprintf-tests: New file.
9299         * tests/test-dprintf.c: New file.
9300
9301 2011-09-20  Bruno Haible  <bruno@clisp.org>
9302
9303         Tests for module 'ioctl'.
9304         * modules/ioctl-tests: New file.
9305         * tests/test-ioctl.c: New file.
9306
9307 2011-09-20  Bruno Haible  <bruno@clisp.org>
9308
9309         fcntl tests: EBADF tests.
9310         * tests/test-fcntl.c (main): Add more tests for EBADF.
9311
9312 2011-09-20  Bruno Haible  <bruno@clisp.org>
9313
9314         utimensat tests: EBADF tests.
9315         * tests/test-utimensat.c (main): Add tests for EBADF.
9316
9317         renameat tests: EBADF tests.
9318         * tests/test-renameat.c (main): Add tests for EBADF.
9319
9320         mkfifoat tests: EBADF tests.
9321         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9322
9323         readlinkat tests: EBADF tests.
9324         * tests/test-readlinkat.c (main): Add tests for EBADF.
9325
9326         symlinkat tests: EBADF tests.
9327         * tests/test-symlinkat.c (main): Add tests for EBADF.
9328
9329         linkat tests: EBADF tests.
9330         * tests/test-linkat.c (main): Add tests for EBADF.
9331
9332         Tests for module 'faccessat'.
9333         * modules/faccessat-tests: New file.
9334         * tests/test-faccessat.c: New file.
9335
9336         fdopendir tests: EBADF tests.
9337         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9338
9339         openat tests: EBADF tests.
9340         * tests/test-fchownat.c (main): Add tests for EBADF.
9341         * tests/test-fstatat.c (main): Likewise.
9342         * tests/test-mkdirat.c (main): Likewise.
9343         * tests/test-openat.c (main): Likewise.
9344         * tests/test-unlinkat.c (main): Likewise.
9345         * tests/test-fchmodat.c: New file.
9346         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9347         (Makefile.am): Also run 'test-fchmodat'.
9348
9349 2011-09-20  Bruno Haible  <bruno@clisp.org>
9350
9351         utimens, futimens, fdutimensat tests: EBADF tests.
9352         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9353
9354         Tests for function fstat().
9355         * modules/fstat-tests: New file.
9356         * tests/test-fstat.c: New file.
9357         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9358
9359 2011-09-20  Bruno Haible  <bruno@clisp.org>
9360
9361         test-ttyname_r tests: EBADF tests.
9362         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9363
9364         Tests for module 'isatty'.
9365         * modules/isatty-tests: New file.
9366         * tests/test-isatty.c: New file.
9367
9368         Tests for module 'write'.
9369         * modules/write-tests: New file.
9370         * tests/test-write.c: New file.
9371
9372         Tests for module 'read'.
9373         * modules/read-tests: New file.
9374         * tests/test-read.c: New file.
9375
9376         pwrite tests: EBADF tests.
9377         * tests/test-pwrite.c (main): Add tests for EBADF.
9378
9379         pread tests: EBADF tests.
9380         * tests/test-pread.c (main): Add tests for EBADF.
9381
9382         lseek tests: EBADF tests.
9383         * tests/test-lseek.c (main): Add more tests for EBADF.
9384
9385         Tests for module 'ftruncate'.
9386         * modules/ftruncate-tests: New file.
9387         * tests/test-ftruncate.sh: New file.
9388         * tests/test-ftruncate.c: New file.
9389
9390         fsync tests: EBADF tests.
9391         * tests/test-fsync.c (main): Add more tests for EBADF.
9392
9393         fdatasync tests: EBADF tests.
9394         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9395
9396         Tests for module 'fchown'.
9397         * modules/fchown-tests: New file.
9398         * tests/test-fchown.c: New file.
9399
9400         Tests for module 'fchmod'.
9401         * modules/fchmod-tests: New file.
9402         * tests/test-fchmod.c: New file.
9403
9404         fchdir tests: EBADF tests.
9405         * tests/test-fchdir.c (main): Add more tests for EBADF.
9406
9407         dup2 tests: EBADF tests.
9408         * tests/test-dup2.c (main): Add more tests for EBADF.
9409
9410         Tests for module 'dup'.
9411         * modules/dup-tests: New file.
9412         * tests/test-dup.c: New file.
9413
9414         Tests for module 'close'.
9415         * modules/close-tests: New file.
9416         * tests/test-close.c: New file.
9417
9418 2011-09-20  Bruno Haible  <bruno@clisp.org>
9419
9420         Tests for module 'shutdown'.
9421         * modules/shutdown-tests: New file.
9422         * tests/test-shutdown.c: New file.
9423
9424         Tests for module 'setsockopt'.
9425         * modules/setsockopt-tests: New file.
9426         * tests/test-setsockopt.c: New file.
9427
9428         Tests for module 'sendto'.
9429         * modules/sendto-tests: New file.
9430         * tests/test-sendto.c: New file.
9431
9432         Tests for module 'send'.
9433         * modules/send-tests: New file.
9434         * tests/test-send.c: New file.
9435
9436         Tests for module 'recvfrom'.
9437         * modules/recvfrom-tests: New file.
9438         * tests/test-recvfrom.c: New file.
9439
9440         Tests for module 'recv'.
9441         * modules/recv-tests: New file.
9442         * tests/test-recv.c: New file.
9443
9444         Tests for module 'listen'.
9445         * modules/listen-tests: New file.
9446         * tests/test-listen.c: New file.
9447
9448         Tests for module 'getsockopt'.
9449         * modules/getsockopt-tests: New file.
9450         * tests/test-getsockopt.c: New file.
9451
9452         Tests for module 'getsockname'.
9453         * modules/getsockname-tests: New file.
9454         * tests/test-getsockname.c: New file.
9455
9456         Tests for module 'getpeername'.
9457         * modules/getpeername-tests: New file.
9458         * tests/test-getpeername.c: New file.
9459
9460         Tests for module 'connect'.
9461         * modules/connect-tests: New file.
9462         * tests/test-connect.c: New file.
9463
9464         Tests for module 'bind'.
9465         * modules/bind-tests: New file.
9466         * tests/test-bind.c: New file.
9467
9468         accept4 tests: Fix for native Windows.
9469         * tests/test-accept4.c: Include sockets.h.
9470         (main): Invoke gl_sockets_startup.
9471         * modules/accept4-tests (Depends-on): Add sockets.
9472
9473         accept tests: Fix for native Windows.
9474         * tests/test-accept.c: Include sockets.h.
9475         (main): Invoke gl_sockets_startup.
9476         * modules/accept-tests (Depends-on): Add sockets.
9477
9478 2011-09-19  Bruno Haible  <bruno@clisp.org>
9479
9480         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9481         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9482         do...while(0).
9483         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9484         Suggested by Paul Eggert.
9485
9486 2011-09-19  Bruno Haible  <bruno@clisp.org>
9487
9488         sched: Ensure pid_t is defined.
9489         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9490         not define pid_t.
9491         * lib/sched.in.h: Include <sys/types.h>.
9492         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9494
9495 2011-09-19  Bruno Haible  <bruno@clisp.org>
9496
9497         msvc-inval: Ensure the entire expansion is a single statement.
9498         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9499         of braces.
9500
9501 2011-09-19  Jim Meyering  <meyering@redhat.com>
9502
9503         tests: use printf, not echo in init.sh's warn_ function
9504         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9505         misbehave when given strings containing a backslash or starting
9506         with e.g., -n.  James Youngman suggested setting IFS.
9507
9508 2011-09-19  Eric Blake  <eblake@redhat.com>
9509
9510         futimens: enhance test
9511         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9512         closed non-negative fd.
9513
9514         date: accept 'hence' as opposite of 'ago'
9515         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9516         * tests/test-parse-datetime.c (main): Enhance test.
9517         Suggested by Jesse Wilson.
9518
9519 2011-09-19  Jim Meyering  <meyering@redhat.com>
9520
9521         getcwd: don't fail in a deep directory on a system without openat
9522         Before this change, getcwd would fail when called from a directory
9523         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9524         the non-openat implementation used "..", "../..", "../../..", etc.
9525         to access ancestor directories.  With too many, that string would
9526         be longer than PATH_MAX.
9527         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9528         using gnulib's openat replacement.
9529         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9530         we're using the replacement function.
9531
9532 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9533
9534         maint.mk: avoid warnings from perl about missing files
9535         * top/maint.mk (def_sym_regex): Ignore files listed in
9536         $(gl_other_headers_) that do not exist, say because a project
9537         does not use a corresponding module.
9538
9539 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9540
9541         stat: use pathmax.h only if needed
9542         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9543         This is better for Emacs, which does not have a mingw port and
9544         therefore can avoid the pathmax module.
9545
9546         utimens: remove dependency on dup2
9547         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9548         to work around the Linux kernel bug.
9549         * modules/utimens (Depends-on): Remove dup2.
9550
9551 2011-09-18  Bruno Haible  <bruno@clisp.org>
9552
9553         inet_ntop, inet_pton: Look for it also in libresolv.
9554         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9555         libnsl, search for it in libresolv.
9556         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9557         Needed on Solaris 7.
9558
9559 2011-09-18  Bruno Haible  <bruno@clisp.org>
9560
9561         accept, accept4 tests: Avoid link error on Solaris.
9562         * modules/accept-tests (Makefile.am): Link test-accept against
9563         $(LIBSOCKET).
9564         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9565         $(LIBSOCKET).
9566
9567         accept4: Avoid link error on Solaris.
9568         * modules/accept4 (Link): New section.
9569
9570         socket functions: Avoid link errors on Solaris.
9571         * modules/accept (Depends-on): Add socketlib.
9572         (Link): New section.
9573         * modules/bind (Depends-on): Add socketlib.
9574         (Link): New section.
9575         * modules/connect (Depends-on): Add socketlib.
9576         (Link): New section.
9577         * modules/getpeername (Depends-on): Add socketlib.
9578         (Link): New section.
9579         * modules/getsockname (Depends-on): Add socketlib.
9580         (Link): New section.
9581         * modules/getsockopt (Depends-on): Add socketlib.
9582         (Link): New section.
9583         * modules/listen (Depends-on): Add socketlib.
9584         (Link): New section.
9585         * modules/recv (Depends-on): Add socketlib.
9586         (Link): New section.
9587         * modules/recvfrom (Depends-on): Add socketlib.
9588         (Link): New section.
9589         * modules/send (Depends-on): Add socketlib.
9590         (Link): New section.
9591         * modules/sendto (Depends-on): Add socketlib.
9592         (Link): New section.
9593         * modules/setsockopt (Depends-on): Add socketlib.
9594         (Link): New section.
9595         * modules/shutdown (Depends-on): Add socketlib.
9596         (Link): New section.
9597         * modules/socket (Depends-on): Add socketlib.
9598         (Link): New section.
9599
9600 2011-09-18  Bruno Haible  <bruno@clisp.org>
9601
9602         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9603         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9604         than 5 seconds.
9605         * modules/ptsname-tests (configure.ac): Test for alarm.
9606
9607 2011-09-18  Bruno Haible  <bruno@clisp.org>
9608
9609         posix_spawn_file_actions_add*: Fix module dependencies.
9610         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9611         posix_spawn_file_actions_init.
9612         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9613         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9614
9615 2011-09-18  Bruno Haible  <bruno@clisp.org>
9616
9617         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9618         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9619         * tests/test-renameat.c (main): Likewise.
9620
9621 2011-09-18  Bruno Haible  <bruno@clisp.org>
9622
9623         Tests for module 'accept4'.
9624         * modules/accept4-tests: New file.
9625         * tests/test-accept4.c: New file.
9626
9627 2011-09-18  Bruno Haible  <bruno@clisp.org>
9628
9629         Tests for module 'accept'.
9630         * modules/accept-tests: New file.
9631         * tests/test-accept.c: New file.
9632
9633 2011-09-18  Bruno Haible  <bruno@clisp.org>
9634
9635         dup2: Support for MSVC.
9636         * lib/dup2.c: Include msvc-inval.h.
9637         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9638         _get_osfhandle calls.
9639         * modules/dup2 (Depends-on): Add msvc-inval.
9640         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9641
9642         New module 'msvc-inval'.
9643         * lib/msvc-inval.h: New file.
9644         * lib/msvc-inval.c: New file.
9645         * m4/msvc-inval.m4: New file.
9646         * modules/msvc-inval: New file.
9647
9648 2011-09-17  Bruno Haible  <bruno@clisp.org>
9649
9650         Tests for module 'pclose'.
9651         * modules/pclose-tests: New file.
9652
9653         New module 'pclose'.
9654         * lib/stdio.in.h (pclose): New declaration.
9655         * lib/pclose.c: New file.
9656         * m4/pclose.m4: New file.
9657         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9658         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9659         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9660         * modules/pclose: New file.
9661         * modules/popen-tests (Depends-on): Add pclose.
9662         * modules/popen-safer-tests (Depends-on): Likewise.
9663         * doc/posix-functions/pclose.texi: Mention the new module.
9664
9665 2011-09-17  Bruno Haible  <bruno@clisp.org>
9666
9667         popen: Support for MSVC.
9668         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9669         * lib/popen.c (popen): Provide alternate definition for native Windows.
9670         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9672         * modules/popen (Depends-on, configure.ac): Update condition.
9673         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9674         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9675         fixed.
9676
9677 2011-09-17  Bruno Haible  <bruno@clisp.org>
9678
9679         isnanl, isnand, isnanf: Work around MSVC bug.
9680         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9681
9682 2011-09-17  Bruno Haible  <bruno@clisp.org>
9683
9684         sys_socket tests: Fix recent mistake.
9685         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9686
9687 2011-09-17  Bruno Haible  <bruno@clisp.org>
9688
9689         putenv: Support for MSVC.
9690         * modules/putenv (Depends-on): Add environ.
9691         * lib/putenv.c (environ): Disable declaration.
9692         * lib/unistd.in.h: Update comment.
9693
9694 2011-09-17  Bruno Haible  <bruno@clisp.org>
9695
9696         math: Avoid macro redefinition warnings on MSVC.
9697         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9698         Undefine before redefining.
9699
9700 2011-09-17  Bruno Haible  <bruno@clisp.org>
9701
9702         doc: Mention functions which are declared as macros.
9703         * doc/posix-functions/*[fl].texi: Mention that some functions are
9704         defined as macros with arguments only.
9705
9706 2011-09-17  Bruno Haible  <bruno@clisp.org>
9707
9708         Add dependencies to new dirent related modules.
9709         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9710         * modules/fts (Depends-on): Likewise.
9711         * modules/glob (Depends-on): Likewise.
9712         * modules/savedir (Depends-on): Likewise.
9713         * modules/scandir (Depends-on): Likewise.
9714         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9715         * modules/fdopendir (Depends-on): Add opendir.
9716
9717 2011-09-17  Bruno Haible  <bruno@clisp.org>
9718
9719         inet_pton: Support for MSVC on Windows Vista or newer.
9720         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9721         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9722         HAVE_DECL_INET_PTON is defined.
9723         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9724         On platforms with <winsock2.h>, test whether inet_pton is declared in
9725         <ws2tcpip.h>. If so, arrange to replace it.
9726         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9727         REPLACE_INET_PTON.
9728         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9729         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9730         (Depends-on, configure.ac): Update condition.
9731         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9732
9733 2011-09-17  Bruno Haible  <bruno@clisp.org>
9734
9735         inet_ntop: Support for MSVC on Windows Vista or newer.
9736         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9737         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9738         HAVE_DECL_INET_NTOP is defined.
9739         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9740         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9741         <ws2tcpip.h>. If so, arrange to replace it.
9742         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9743         REPLACE_INET_NTOP.
9744         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9745         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9746         (Depends-on, configure.ac): Update condition.
9747         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9748
9749 2011-09-16  Eric Blake  <eblake@redhat.com>
9750
9751         test-fsync: yet another enhancement
9752         * tests/test-fsync.c (main): Also test behavior on read-only text
9753         file.
9754
9755 2011-09-16  Bruno Haible  <bruno@clisp.org>
9756
9757         Enhance fsync, fdatasync tests.
9758         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9759         * tests/test-fdatasync.c (main): Likewise.
9760
9761 2011-09-16  Bruno Haible  <bruno@clisp.org>
9762
9763         Support for MSVC compiler: Ensure mode_t gets defined.
9764         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9765         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9767         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9768         * tests/test-fcntl-h.c: Check that mode_t is defined.
9769         * tests/test-sys_stat.c: Likewise.
9770         * tests/test-sys_types.c: Likewise.
9771         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9772         * doc/posix-headers/sys_stat.texi: Likewise.
9773         * doc/posix-headers/sys_types.texi: Likewise.
9774
9775 2011-09-16  Bruno Haible  <bruno@clisp.org>
9776
9777         sys_stat: Support for MSVC.
9778         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9779         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9780         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9781         MSVC.
9782
9783 2011-09-16  Bruno Haible  <bruno@clisp.org>
9784
9785         Support for MSVC compiler: Ensure off_t gets defined.
9786         * lib/unistd.in.h: Include <sys/types.h>.
9787         * tests/test-fcntl-h.c: Check that off_t is defined.
9788         * tests/test-sys_stat.c: Likewise.
9789         * tests/test-sys_types.c: Likewise.
9790
9791 2011-09-16  Eric Blake  <eblake@redhat.com>
9792
9793         fdatasync: port to Solaris
9794         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9795         * modules/fdatasync (Link): Document it.
9796         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9797
9798         fdatasync: port to MacOS X 10.7
9799         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9800         declared.
9801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9802         * modules/unistd (Makefile.am): Substitute it.
9803         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9804         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9805
9806         fdatasync: minor improvements
9807         * modules/fdatasync (Depends-on): Add condition for fsync.
9808         * lib/fdatasync.c (fdatasync): Add comment.
9809         * tests/test-unistd-c++.cc: Test fdatasync.
9810
9811         unistd: update refs to newer POSIX
9812         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9813         Suggested by Bruno Haible.
9814
9815         fdatasync: new module
9816         * modules/fsync (Description): Document difference to fdatasync.
9817         * modules/fdatasync: New module.
9818         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9819         * lib/fdatasync.c (fdatasync): Likewise.
9820         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9821         defaults.
9822         * modules/unistd (Makefile.am): Set witnesses.
9823         * lib/unistd.in.h (fdatasync): Declare.
9824         * MODULES.html.sh: Document it.
9825         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9826         * modules/fdatasync-tests: New test.
9827         * tests/test-fdatasync.c: Likewise.
9828
9829 2011-09-16  Eric Blake  <eblake@redhat.com>
9830
9831         test-fsync: enhance tests
9832         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9833         * tests/test-fsync.c (main): Enhance test.
9834
9835 2011-09-15  Bruno Haible  <bruno@clisp.org>
9836
9837         Support for MSVC compiler: Ensure ssize_t gets defined.
9838         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9839         * doc/posix-headers/stdio.texi: Likewise.
9840         * modules/stdio (Depends-on): Add ssize_t.
9841         * modules/sys_socket (Depends-on): Likewise.
9842         * modules/sys_types (Depends-on): Likewise.
9843         * modules/sys_uio (Depends-on): Likewise.
9844         * modules/unistd (Depends-on): Likewise.
9845         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9846         * tests/test-sys_types.c: Check that ssize_t is defined.
9847
9848 2011-09-14  Bruno Haible  <bruno@clisp.org>
9849
9850         Avoid using #, the m4 comment starter character, near brackets.
9851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9852         delimiter character in sed expressions.
9853         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9854         Suggested by Eric Blake.
9855
9856         Properly quote AC_CHECK_DECLS' 4th argument.
9857         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9858         argument.
9859         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9860         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9861         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9862         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9863         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9864         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9866         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9867         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9868         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9869         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9870         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9871         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9872         * m4/isinf.m4 (gl_ISINF): Likewise.
9873         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9874         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9875         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9876         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9877         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9879         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9880         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9881         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9882         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9883         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9886         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9888         Reported by Eric Blake.
9889
9890         Properly quote AC_CHECK_DECL's 4th argument.
9891         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9892         argument.
9893         * m4/argp.m4 (gl_ARGP): Likewise.
9894         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9895         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9896         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9897         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9898         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9899         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9901         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9902         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9903         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9904         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9905         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9906         Reported by Eric Blake.
9907
9908 2011-09-14  Eric Blake  <eblake@redhat.com>
9909
9910         opendir: avoid compile warning
9911         * lib/opendir.c (includes): Always include errno.h.
9912         Reported by Tatsuro MATSUOKA.
9913
9914 2011-09-14  Jim Meyering  <meyering@redhat.com>
9915
9916         maint.mk: sc_tight_scope: propagate failure from sub-make
9917         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9918         Reported by Martin von Gagern.
9919
9920 2011-09-13  Bruno Haible  <bruno@clisp.org>
9921
9922         tempname: Support for MSVC.
9923         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9924         MSVC.
9925         * modules/tempname (Depends-on): Add fcntl-h.
9926
9927 2011-09-13  Bruno Haible  <bruno@clisp.org>
9928
9929         sys_time: Support for MSVC.
9930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9931         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9932         include <winsock2.h>.
9933         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9934         function declarations that collide with POSIX.
9935         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9936         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9937
9938 2011-09-13  Bruno Haible  <bruno@clisp.org>
9939
9940         stat: Support for MSVC.
9941         * lib/stat.c: Include pathmax.h.
9942         * modules/stat (Depends-on): Add pathmax.
9943
9944         pathmax: Support for native Windows.
9945         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9946
9947 2011-09-12  Bruno Haible  <bruno@clisp.org>
9948
9949         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9950         * lib/dirent.in.h (struct dirent): New type.
9951         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9952         DT_WHT): New macros.
9953         (DIR): New type.
9954         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9955         (readdir, rewinddir): New declarations.
9956         * lib/dirent-private.h: New file.
9957         * lib/opendir.c: New file.
9958         * lib/readdir.c: New file.
9959         * lib/rewinddir.c: New file.
9960         * lib/closedir.c: New file.
9961         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9962         * m4/opendir.m4: New file.
9963         * m4/readdir.m4: New file.
9964         * m4/rewinddir.m4: New file.
9965         * m4/closedir.m4: New file.
9966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9967         REPLACE_CLOSEDIR here.
9968         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9969         readdir, rewinddir are declared.
9970         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9971         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9972         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9973         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9974         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9975         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9976         * modules/opendir: New file.
9977         * modules/readdir: New file.
9978         * modules/rewinddir: New file.
9979         * modules/closedir: New file.
9980         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9981         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9982         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9983         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9984         * NEWS: Mention the 'fchdir' change.
9985
9986 2011-09-11  Bruno Haible  <bruno@clisp.org>
9987
9988         asm-underscore.m4: Support for MSVC.
9989         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9990         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9991
9992 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9993
9994         Doc about crypt functions.
9995         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9996         needing for _GNU_SOURCE to get crypt.
9997         * doc/posix-functions/encrypt.texi: Likewise.
9998         * doc/posix-functions/setkey.texi: Likewise.
9999
10000 2011-09-11  Bruno Haible  <bruno@clisp.org>
10001
10002         doc: Update regarding MSVC 9.
10003         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10004         tested".
10005         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10006         * doc/posix-headers/*.texi: Likewise.
10007         * doc/pastposix-functions/*.texi: Likewise.
10008         * doc/glibc-functions/*.texi: Likewise.
10009         * doc/glibc-headers/*.texi: Likewise.
10010
10011 2011-09-11  Bruno Haible  <bruno@clisp.org>
10012
10013         unistd et al.: Don't assume <unistd.h> exists.
10014         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10015         does not exist.
10016         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10017         exist. But include <stdlib.h>.
10018         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10019         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10020         symlink() does not exist.
10021         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10022         include <io.h> instead.
10023         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10024         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10025         include <direct.h> instead.
10026         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10028         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10029         <io.h> instead.
10030         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10031         correctly if the system does not have hard links.
10032         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10033         <direct.h> instead.
10034         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10035         it when looking for function declarations.
10036         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10037         <direct.h> and <io.h> instead.
10038         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10039
10040 2011-09-11  Bruno Haible  <bruno@clisp.org>
10041
10042         strcase: Support for MSVC.
10043         * modules/strcase (Status, Notice): Remove obsoletion mark.
10044         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10045         * doc/posix-functions/strncasecmp.texi: Likewise.
10046
10047         strings: Don't assume <strings.h> exists.
10048         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10049         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10050         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10051         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10052
10053 2011-09-11  Bruno Haible  <bruno@clisp.org>
10054
10055         dirent: Don't assume <dirent.h> exists.
10056         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10057         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10058         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10059         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10060
10061 2011-09-11  Bruno Haible  <bruno@clisp.org>
10062
10063         Fix wint_t on MSVC.
10064         * lib/wchar.in.h (wint_t): On MSVC, override it.
10065         * lib/wctype.in.h (wint_t): Likewise.
10066         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10067         MSVC.
10068         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10069         * doc/posix-headers/wctype.texi: Likewise.
10070
10071 2011-09-11  Bruno Haible  <bruno@clisp.org>
10072
10073         sys_types: Fix typo.
10074         * lib/sys_types.in.h: Fix typo in comment.
10075         Reported by Paul Eggert.
10076
10077         Support for MSVC compiler: Ensure size_t gets defined.
10078         * modules/strings (Depends-on): Add 'sys_types'.
10079         * modules/sys_uio (Depends-on): Likewise.
10080         * lib/sys_uio.in.h: Update comment.
10081
10082         C++ tests for module 'sys_types'.
10083         * modules/sys_types-c++-tests: New file.
10084         * tests/test-sys_types-c++.cc: New file.
10085
10086         Tests for module 'sys_types'.
10087         * modules/sys_types-tests: New file.
10088         * tests/test-sys_types.c: New file.
10089
10090         New module 'sys_types'.
10091         * lib/sys_types.in.h: New file.
10092         * m4/sys_types_h.m4: New file.
10093         * modules/sys_types: New file.
10094         * doc/posix-headers/sys_types.texi: Mention the new module and the
10095         size_t problem on MSVC 9.
10096
10097 2011-09-11  Bruno Haible  <bruno@clisp.org>
10098
10099         Support for MSVC compiler: Avoid division by a literal 0.
10100         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10102         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10103         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10104         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10105         * tests/infinity.h: New file.
10106         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10107         on MSVC.
10108         * tests/test-ceilf1.c: Include infinity.h.
10109         (main): Use Infinityf.
10110         * tests/test-ceil1.c: Include infinity.h.
10111         (main): Use Infinityd.
10112         * tests/test-ceill.c: Include infinity.h.
10113         (main): Use Infinityl.
10114         * tests/test-dprintf-posix.c: Include infinity.h.
10115         (test_function): Use Infinityd.
10116         * tests/test-floorf1.c: Include infinity.h.
10117         (main): Use Infinityf.
10118         * tests/test-floor1.c: Include infinity.h.
10119         (main): Use Infinityd.
10120         * tests/test-floorl.c: Include infinity.h.
10121         (main): Use Infinityl.
10122         * tests/test-fprintf-posix.c: Include infinity.h.
10123         (test_function): Use Infinityd.
10124         * tests/test-frexp.c: Include infinity.h.
10125         (main): Use Infinityd.
10126         * tests/test-frexpl.c: Include infinity.h.
10127         (main): Use Infinityl.
10128         * tests/test-isfinite.c: Include infinity.h.
10129         (test_isfinitef): Use Infinityf.
10130         (test_isfinited): Use Infinityd.
10131         (test_isfinitel): Use Infinityl.
10132         * tests/test-isinf.c: Include infinity.h.
10133         (test_isinff): Use Infinityf.
10134         (test_isinfd): Use Infinityd.
10135         (test_isinfl): Use Infinityl.
10136         * tests/test-isnan.c: Include infinity.h.
10137         (test_float): Use Infinityf.
10138         (test_double): Use Infinityd.
10139         (test_long_double): Use Infinityl.
10140         * tests/test-isnanf.h: Include infinity.h.
10141         (main): Use Infinityf.
10142         * tests/test-isnand.h: Include infinity.h.
10143         (main): Use Infinityd.
10144         * tests/test-isnanl.h: Include infinity.h.
10145         (main): Use Infinityl.
10146         * tests/test-ldexpl.c: Include infinity.h.
10147         (main): Use Infinityl.
10148         * tests/test-printf-posix.h: Include infinity.h.
10149         (test_function): Use Infinityd.
10150         * tests/test-roundf1.c: Include infinity.h.
10151         (main): Use Infinityf.
10152         * tests/test-round1.c: Include infinity.h.
10153         (main): Use Infinityd.
10154         * tests/test-roundl.c: Include infinity.h.
10155         (main): Use Infinityl.
10156         * tests/test-signbit.c: Include infinity.h.
10157         (test_signbitf): Use Infinityf.
10158         (test_signbitd): Use Infinityd.
10159         (test_signbitl): Use Infinityl.
10160         * tests/test-snprintf-posix.h: Include infinity.h.
10161         (test_function): Use Infinityd, Infinityl.
10162         * tests/test-sprintf-posix.h: Include infinity.h.
10163         (test_function): Use Infinityd, Infinityl.
10164         * tests/test-truncf1.c: Include infinity.h.
10165         (main): Use Infinityf.
10166         * tests/test-trunc1.c: Include infinity.h.
10167         (main): Use Infinityd.
10168         * tests/test-truncl.c: Include infinity.h.
10169         (main): Use Infinityl.
10170         * tests/test-vasnprintf-posix.c: Include infinity.h.
10171         (test_function): Use Infinityd, Infinityl.
10172         * tests/test-vasprintf-posix.c: Include infinity.h.
10173         (test_function): Use Infinityd, Infinityl.
10174         * modules/ceilf-tests (Files): Add tests/infinity.h.
10175         * modules/ceil-tests (Files): Likewise.
10176         * modules/ceill-tests (Files): Likewise.
10177         * modules/dprintf-posix-tests (Files): Likewise.
10178         * modules/floorf-tests (Files): Likewise.
10179         * modules/floor-tests (Files): Likewise.
10180         * modules/floorl-tests (Files): Likewise.
10181         * modules/fprintf-posix-tests (Files): Likewise.
10182         * modules/frexp-tests (Files): Likewise.
10183         * modules/frexp-nolibm-tests (Files): Likewise.
10184         * modules/frexpl-tests (Files): Likewise.
10185         * modules/frexpl-nolibm-tests (Files): Likewise.
10186         * modules/isfinite-tests (Files): Likewise.
10187         * modules/isinf-tests (Files): Likewise.
10188         * modules/isnan-tests (Files): Likewise.
10189         * modules/isnanf-tests (Files): Likewise.
10190         * modules/isnanf-nolibm-tests (Files): Likewise.
10191         * modules/isnand-tests (Files): Likewise.
10192         * modules/isnand-nolibm-tests (Files): Likewise.
10193         * modules/isnanl-tests (Files): Likewise.
10194         * modules/isnanl-nolibm-tests (Files): Likewise.
10195         * modules/ldexpl-tests (Files): Likewise.
10196         * modules/printf-posix-tests (Files): Likewise.
10197         * modules/roundf-tests (Files): Likewise.
10198         * modules/round-tests (Files): Likewise.
10199         * modules/roundl-tests (Files): Likewise.
10200         * modules/signbit-tests (Files): Likewise.
10201         * modules/snprintf-posix-tests (Files): Likewise.
10202         * modules/sprintf-posix-tests (Files): Likewise.
10203         * modules/truncf-tests (Files): Likewise.
10204         * modules/trunc-tests (Files): Likewise.
10205         * modules/truncl-tests (Files): Likewise.
10206         * modules/vasnprintf-posix-tests (Files): Likewise.
10207         * modules/vasprintf-posix-tests (Files): Likewise.
10208         * modules/vdprintf-posix-tests (Files): Likewise.
10209         * modules/vfprintf-posix-tests (Files): Likewise.
10210         * modules/vprintf-posix-tests (Files): Likewise.
10211         * modules/vsnprintf-posix-tests (Files): Likewise.
10212         * modules/vsprintf-posix-tests (Files): Likewise.
10213         * modules/xprintf-posix-tests (Files): Likewise.
10214
10215 2011-09-11  Bruno Haible  <bruno@clisp.org>
10216
10217         Ensure pid_t gets defined.
10218         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10219         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10220         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10221         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10222         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10223         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10224         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10225         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10226         * tests/test-fcntl-h.c: Check that pid_t is defined.
10227         * tests/test-sched.c: Likewise.
10228         * tests/test-termios.c: Likewise.
10229         * tests/test-time.c: Likewise.
10230         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10231         * doc/posix-headers/signal.texi: Likewise.
10232         * doc/posix-headers/sys_types.texi: Likewise.
10233         * doc/posix-headers/time.texi: Likewise.
10234
10235 2011-09-11  Bruno Haible  <bruno@clisp.org>
10236
10237         acl: Fix compilation on Solaris 10 (older version).
10238         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10239         of ACE_EVERYONE.
10240         * lib/set-mode-acl.c (qset_acl): Likewise.
10241         Reported by Christian Jullien <eligis@orange.fr>.
10242
10243 2011-09-10  Bruno Haible  <bruno@clisp.org>
10244
10245         iconv, unsetenv: Add support for MSVC compiler.
10246         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10247         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10248
10249 2011-09-10  Bruno Haible  <bruno@clisp.org>
10250
10251         *printf: Add support for MSVC compiler.
10252         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10253         handles the exception caused by the %n directive. When cross-compiling,
10254         guess no on native Windows.
10255         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10256         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10257         emulate it through vsnprintf.
10258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10259         * doc/posix-functions/dprintf.texi: Update documentation regarding
10260         MSVC 9.
10261         * doc/posix-functions/fprintf.texi: Likewise.
10262         * doc/posix-functions/printf.texi: Likewise.
10263         * doc/posix-functions/snprintf.texi: Likewise.
10264         * doc/posix-functions/sprintf.texi: Likewise.
10265         * doc/posix-functions/swprintf.texi: Likewise.
10266         * doc/posix-functions/vdprintf.texi: Likewise.
10267         * doc/posix-functions/vfprintf.texi: Likewise.
10268         * doc/posix-functions/vprintf.texi: Likewise.
10269         * doc/posix-functions/vsnprintf.texi: Likewise.
10270         * doc/posix-functions/vsprintf.texi: Likewise.
10271         * doc/glibc-functions/asprintf.texi: Likewise.
10272         * doc/glibc-functions/obstack_printf.texi: Likewise.
10273         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10274         * doc/glibc-functions/vasprintf.texi: Likewise.
10275
10276 2011-09-10  Bruno Haible  <bruno@clisp.org>
10277
10278         nocrash: Add support for native Windows.
10279         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10280
10281 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10282             Bruno Haible  <bruno@clisp.org>
10283
10284         absolute-header, include-next: Add support for MSVC compiler.
10285         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10286         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10287         directory separator in #line directives.
10288         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10289         recognize also backslash as directory separator in #line directives.
10290
10291 2011-09-08  Jim Meyering  <meyering@redhat.com>
10292
10293         maint.mk: mark the post-release commit log with "maint: " prefix
10294         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10295         one-line commit-log summary.
10296
10297 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10298             Bruno Haible  <bruno@clisp.org>
10299
10300         Doc about crypt functions.
10301         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10302         systems.
10303         * doc/posix-functions/encrypt.texi: Likewise.
10304         * doc/posix-functions/setkey.texi: Likewise.
10305
10306 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10307
10308         * lib/gc.h: Fix copyright header.
10309
10310 2011-09-07  Bruno Haible  <bruno@clisp.org>
10311
10312         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10313         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10314         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10315
10316 2011-09-07  Bruno Haible  <bruno@clisp.org>
10317
10318         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10319         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10320         * lib/freopen.c: Likewise.
10321         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10322         * lib/lstat.c: Likewise.
10323         * lib/stat.c: Likewise.
10324         * lib/open.c: Use different syntax for include of <fcntl.h>.
10325         * lib/openat.c: Include fcntl.h again, explicitly.
10326
10327 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10328
10329         parse-datetime: document the newly accepted format
10330         * doc/parse-datetime.texi (Combined date and time of day items):
10331         New section.
10332
10333 2011-09-06  Bruno Haible  <bruno@clisp.org>
10334
10335         acl: Fix a test failure on newer Solaris 10 with ZFS.
10336         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10337         ENOSYS as no ACL.
10338         Reported by Jim Meyering.
10339
10340 2011-09-06  Bruno Haible  <bruno@clisp.org>
10341
10342         acl: Update for AIX >= 5.3 with NFS.
10343         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10344         ENOSYS as no ACL.
10345
10346         acl: Fix a test failure on AIX >= 5.3 with NFS.
10347         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10348         as no ACL.
10349
10350 2011-09-06  Bruno Haible  <bruno@clisp.org>
10351
10352         acl: Fix a test failure on IRIX 6.5 with NFS.
10353         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10354         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10355         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10356         * lib/copy-acl.c (qcopy_acl): Likewise.
10357
10358 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10359
10360         openat: port to AIX 7.1 with large files
10361         AIX 7.1 does a "#define openat open64at" if large files are in use,
10362         so we can't simply #undef openat.  Use the orig_openat trick (similar
10363         to orig_open in lib/open.c) to work around the problem.  Problem
10364         reported by Kevin Brott for GNU tar, in the thread containing
10365         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10366         * lib/openat.c (__need_system_fcntl_h): Define first.
10367         Include <fcntl.h> and <sys/types.h> before undefining.
10368         (orig_openat) [HAVE_OPENAT]: New inline function.
10369         (openat) [HAVE_OPENAT]: Do not undef.
10370         (rpl_openat): Use orig_openat, not openat.
10371
10372 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10373             Bruno Haible  <bruno@clisp.org>
10374
10375         acl: Avoid errors on NonStop Kernel.
10376         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10377         ENOTSUP errors.
10378
10379 2011-09-05  Bruno Haible  <bruno@clisp.org>
10380
10381         acl: Clean up Solaris code.
10382         * lib/acl-internal.h: Remove no-op #if.
10383         * lib/file-has-acl.c: Likewise.
10384         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10385         * lib/copy-acl.c (qcopy_acl): Likewise.
10386
10387 2011-09-05  Bruno Haible  <bruno@clisp.org>
10388
10389         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10390         binaries built on the original Solaris 10.
10391         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10392         trivial.
10393
10394 2011-09-05  Bruno Haible  <bruno@clisp.org>
10395
10396         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10397         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10398         10.
10399         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10400         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10401         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10402         instead of acl_get, facl_get, acl_set, facl_set.
10403
10404 2011-09-05  Bruno Haible  <bruno@clisp.org>
10405
10406         copy-file: Try unit tests on more file systems.
10407         * tests/test-copy-file-1.sh: New file.
10408         * tests/test-copy-file-2.sh: New file.
10409         * modules/copy-file-tests (Files): Add them.
10410         (Makefile.am): Add them to TESTS.
10411
10412         acl: Try unit tests on more file systems.
10413         * tests/test-file-has-acl-1.sh: New file.
10414         * tests/test-file-has-acl-2.sh: New file.
10415         * tests/test-set-mode-acl-1.sh: New file.
10416         * tests/test-set-mode-acl-2.sh: New file.
10417         * tests/test-copy-acl-1.sh: New file.
10418         * tests/test-copy-acl-2.sh: New file.
10419         * modules/acl-tests (Files): Add them.
10420         (Makefile.am): Add them to TESTS.
10421
10422 2011-09-04  Bruno Haible  <bruno@clisp.org>
10423
10424         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10425         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10426         10.
10427         (OLD_ALLOW, OLD_DENY): New macros.
10428         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10429         ACE_ACCESS_ALLOWED_ACE_TYPE.
10430         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10431         ACE_ACCESS_DENIED_ACE_TYPE.
10432         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10433         (NEW_ACE_EXECUTE): Fix value.
10434         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10435         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10436         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10437         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10438         NEW_ACE_SYNCHRONIZE): New macros.
10439         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10440         instead of acl_fromtext, acl_set, facl_set.
10441         Fixes a coreutils/tests/cp/perm failure.
10442
10443 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10444
10445         openat: test for fstatat (..., 0) bug
10446         Further testing with tar suggests that fstatat (..., 0)
10447         does not work in general, on AIX 7.1; see
10448         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10449         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10450         replacement fstatat (which is what older AIX releases were using
10451         anyway).
10452         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10453         use is now changed to orig_fstatat.  This was probably the right
10454         thing to do anyway.
10455         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10456         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10457         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10458         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10459         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10460         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10461         if the bug is found.
10462
10463         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10464         This tests for another fstatat bug on AIX 7.1:
10465         fstatat (AT_FDCWD, ..., 0) does not work.  See
10466         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10467         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10468         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10469         (rpl_fstatat): Adjust so that it works around either (or both)
10470         bugs if present.
10471         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10472
10473 2011-09-03  Karl Berry  <karl@gnu.org>
10474
10475         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10476         in index entries.
10477
10478 2011-09-02  Bruno Haible  <bruno@clisp.org>
10479
10480         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10481         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10482         values of AR, ARFLAGS, RANLIB.
10483         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10484
10485 2011-09-02  Bruno Haible  <bruno@clisp.org>
10486
10487         Find 'ar' program that fits with --host argument.
10488         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10489
10490 2011-09-02  Bruno Haible  <bruno@clisp.org>
10491
10492         tests: init.sh: Support any non-GNU diff.
10493         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10494         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10495         Solaris 8.
10496
10497 2011-09-02  Bruno Haible  <bruno@clisp.org>
10498
10499         tests: init.sh: work also with any non-GNU diff that supports -u
10500         * tests/init.sh: Relax check for diff -u support.
10501         Rather than checking for GNU diff via --version, simply check
10502         for support for -u itself.  Useful at least on OpenBSD 4.9,
10503         AIX 7.1, IRIX 6.5, and Solaris 10.
10504
10505 2011-09-01  Bruno Haible  <bruno@clisp.org>
10506
10507         strtoimax, strtoumax: Document problem on HP-UX 11.
10508         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10509         * doc/posix-functions/strtoumax.texi: Likewise.
10510
10511 2011-09-01  Bruno Haible  <bruno@clisp.org>
10512
10513         strtoumax: Avoid link error on OSF/1 with DTK cc.
10514         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10515         defined as a function.
10516         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10517         strtoumax is defined, not whether it is declared.
10518
10519 2011-09-01  Bruno Haible  <bruno@clisp.org>
10520
10521         strtoimax: Avoid link error on OSF/1 with DTK cc.
10522         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10523         defined as a function.
10524         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10525         strtoimax is defined, not whether it is declared.
10526
10527 2011-09-01  Bruno Haible  <bruno@clisp.org>
10528
10529         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10530         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10531         as a function.
10532         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10533         whether it is declared.
10534
10535 2011-09-01  Bruno Haible  <bruno@clisp.org>
10536
10537         imaxabs: Avoid link error on OSF/1 with DTK cc.
10538         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10539         as a function.
10540         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10541         whether it is declared.
10542
10543 2011-09-01  Bruno Haible  <bruno@clisp.org>
10544
10545         Tests for module 'strtoumax'.
10546         * modules/strtoumax-tests: New file.
10547         * tests/test-strtoumax.c: New file.
10548
10549         Tests for module 'strtoimax'.
10550         * modules/strtoimax-tests: New file.
10551         * tests/test-strtoimax.c: New file.
10552
10553         Tests for module 'imaxdiv'.
10554         * modules/imaxdiv-tests: New file.
10555         * tests/test-imaxdiv.c: New file.
10556
10557         Tests for module 'imaxabs'.
10558         * modules/imaxabs-tests: New file.
10559         * tests/test-imaxabs.c: New file.
10560
10561 2011-09-01  Bruno Haible  <bruno@clisp.org>
10562
10563         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10564         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10565         pthread_create.
10566
10567 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10568
10569         openat: work around AIX 7.1 fstatat issue
10570         This should fix the problem that was not properly fixed
10571         in the previous change, dated 2011-08-30.
10572         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10573         __need_system_stat_h defined.
10574         (orig_fstatat) [HAVE_FSTATAT]: New function.
10575         (rpl_fstatat): Go back to the old way of doing things,
10576         except call orig_fstatat instead of fstatat.
10577         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10578         Remove unnecessary check whether fstatat fills in st_size etc.
10579
10580 2011-09-01  Bruno Haible  <bruno@clisp.org>
10581
10582         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10583         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10584         just include the system's header.
10585
10586 2011-08-31  Jim Meyering  <meyering@redhat.com>
10587
10588         tests: avoid spurious assertion failure in test-float.c on ppc64
10589         * tests/test-float.c (test_long_double): Comment out an assertion,
10590         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10591         with gcc-4.4.4.
10592
10593         maint: indent with spaces, not TABs
10594         I need to get in the habit of running gnulib's "make check".
10595         Both of these would have been caught.
10596         * m4/largefile.m4: Indent with spaces, not TABs.
10597         * lib/parse-datetime.y (iso_8601_time): Likewise.
10598         Spotted by Pádraig Brady.
10599
10600         test-parse-datetime.c: accommodate a relatively strict gcc warning
10601         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10602         to avoid a warning from gcc's -Werror=missing-declarations.
10603         Insert a few spaces-before-funcall-parenthesis.
10604
10605 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10606
10607         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10608         The parser now accepts ISO 8601 date-time strings with "T" as the
10609         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10610         with a space between the date and time strings.  Now it also parses
10611         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10612         variants like "2004-02-29T16:21:42.333-07:00"
10613         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10614         of day representation using the 'T' separator character.
10615         * doc/parse-datetime.texi (General date syntax): replace use of
10616         deprecated --iso-8601 option with --rfc-3339 in example of date
10617         command output formats that can be parsed.
10618         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10619         lib/parse-datetime.y.
10620         (gmt_offset): New function.
10621         (main): Add additional test cases to validate ISO8601 extended
10622         date and time of day parsing.
10623
10624 2011-08-31  Bruno Haible  <bruno@clisp.org>
10625
10626         freopen: Documentation.
10627         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10628         name.
10629         Reported by Claudio Bley <claudio.bley@gmail.com>.
10630
10631 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10632
10633         freopen: Don't crash if the filename argument is NULL.
10634         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10635         NULL.
10636
10637 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         openat: work around AIX 7.1 fstatat bug
10640         Problem reported by Kevin Brott for GNU tar, in the thread containing
10641         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10642         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10643         FSTATAT_ST_SIZE_ETC_BROKEN.
10644         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10645         rpl_fstatat.
10646         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10647         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10648         AC_CHECK_FUNCS_ONCE for fstatat.
10649         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10650         fchmodat, mkdirat, openat and unlinkat.
10651
10652 2011-08-30  Bruno Haible  <bruno@clisp.org>
10653
10654         Avoid endless recursions if config.h includes some header files.
10655         * lib/fopen.c (__need_FILE): Define already before including config.h.
10656         * lib/freopen.c (__need_FILE): Likewise.
10657         * lib/open.c (__need_system_fcntl_h): Likewise.
10658         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10659         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10660         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10661
10662 2011-08-25  Karl Berry  <karl@gnu.org>
10663
10664         * config/srclist.txt (ylwrap): new try.
10665         * build-aux/ylwrap: new file.
10666
10667 2011-08-23  Bruno Haible  <bruno@clisp.org>
10668
10669         tmpdir: Use a good default directory on native Windows.
10670         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10671         (P_tmpdir): Default to _P_tmpdir on native Windows.
10672         (path_search): On native Windows, try the value returned by GetTempPath
10673         before trying P_tmpdir.
10674         * modules/tmpdir (Depends-on): Add pathmax.
10675         Suggested by John Darrington <john@darrington.wattle.id.au>.
10676
10677 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10678
10679         doc: fix typo in README-release
10680         * top/README-release: Capitalize first word of a sentence.
10681
10682 2011-08-19  Jim Meyering  <meyering@redhat.com>
10683
10684         fts: do not exhaust memory when processing million-entry directories
10685         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10686         directory would require about 256*N bytes of memory.  Thus, it was
10687         easy to construct a directory too large to be processed by any of
10688         those tools.  With this change, fts' maximum memory utilization is
10689         now limited to around 30MB.
10690         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10691         (fts_read): When we've processed the final entry (i.e., when
10692         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10693         using the parent entry to read any remaining entries.  Dispatch
10694         depending on what fts_build returns:
10695         - NULL+stop, aka failure: stop
10696         - NULL otherwise: move up in the dir hierarchy
10697         - non-NULL: handle this new entry
10698         (fts_build): Declare and use new local, continue_readdir.
10699         Prepare to be called from fts_read, when the entries
10700         from a partially-read directory have just been exhausted.
10701         In that case, we'll skip the opendir and instead use the parent's
10702         fts_dirp and derive dir_fd from that.
10703         Finally, in the readdir loop, if we read max_entries entries,
10704         exit the loop ensuring *not* to call closedir.  This is required
10705         so that fts_dirp can be reused on a subsequent call.
10706         Prompted by Ben England's report of memory exhaustion in find
10707         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10708
10709         maint: fts: move decl of `dp' down into while loop; split a long line
10710         * lib/fts.c (fts_build): No semantic change.
10711
10712         fts: add/use new struct member, fts_dirp
10713         We are about to use this to manage any directory with
10714         too many entries to read all of them into memory at once.
10715         To do that, we'll need to save the DIR* pointer in each
10716         affected FTSENT struct.
10717         * lib/fts_.h: Include <dirent.h>.
10718         (struct FTSENT) [fts_dirp]: New member.
10719         * lib/fts.c (closedir_and_clear): Define.
10720         Use it in place of closedir so that we are sure to
10721         clear the new fts_dirp member when done with it.
10722         (fts_alloc): Initialize the new member.
10723         (fts_lfree): Free, if needed.
10724
10725         maint: fts: give __opendir2 a new parameter and rename
10726         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10727         than surreptitiously using sole caller's "dir_fd".
10728         (fts_opendir): Rename from __opendir2.
10729
10730         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10731         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10732
10733         maint: fts.c: correct off-by-one indentation
10734         * lib/fts.c (fts_build): Correct indentation, change style
10735         of a couple of block comments, and bracing style.
10736
10737         maint: fts.c: move __opendir2 #define "up" out of function body
10738         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10739
10740         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10741         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10742         out for a long time and besides was useful only on BSD systems.
10743
10744 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10745
10746         regex: port to Stratus OpenVOS
10747         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10748         define to empty, rather than attempting nonportable optimizations.
10749         Problem reported by Paul Green in:
10750         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10751         and fix suggested by Eric Blake in:
10752         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10753
10754 2011-08-17  Eric Blake  <eblake@redhat.com>
10755
10756         getcwd: fix test failures on mingw
10757         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10758         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10759         test if long directory cannot be created, and allow mingw errno.
10760
10761         getcwd-lgpl: fix m4 to match relaxed test for BSD
10762         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10763         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10764         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10765         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10766         signature problem.
10767
10768         getcwd: fix compilation on mingw64
10769         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10770         getcwd.
10771         Reported by Marc-André Lureau.
10772
10773         pipe2: silence compiler warning
10774         * lib/pipe2.c (pipe2): Hide label if it is not used.
10775
10776 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10777
10778         relocatable-prog: fix link error
10779         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10780         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10781         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10782         into modules/relocatable-lib without noticing that
10783         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10784         also needs to build relocatable.c.
10785
10786 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10787
10788         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10790         shell code: it contained a 'break' that was not in a loop.
10791         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10792         via a shell-language loop; this may have been true in old Autoconf
10793         versions, but it's not true in Autoconf 2.68.  I found this bug
10794         when testing coreutils git on Solaris 8, whose shell complains
10795         about the syntax error.
10796
10797 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10798
10799         * lib/base64.c: Fix comment to reference RFC 4648.
10800         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10801         <gvtulder@gmail.com>.
10802
10803 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10804
10805         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10806
10807         po/Makefile.in.in: fix make -q problem
10808         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10809         rule, since there's no file named 'check-macro-version' and its
10810         use as a file breaks make -q.
10811         (all): Don't depend on check-macro-version.
10812         (CHECK_MACRO_VERSION): New macro.
10813         (stamp-po): Use it.
10814
10815         configmake: fix make -q problem
10816         * modules/configmake (configmake.h): Update configmake.h's time stamp
10817         even if the file does not change.  Otherwise, 'make -q' fails.
10818         Problem reported by Simon Josefsson in
10819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10820
10821 2011-08-11  Jim Meyering  <meyering@redhat.com>
10822
10823         git-version-gen: correct the advice in a comment
10824         * build-aux/git-version-gen: Correct comment.
10825         Don't recommend to list .tarball-version in .gitignore.
10826
10827 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10828
10829         base64: fix off-by-one buffer size bug
10830         Problem and (trivial) fix reported by Gijs van Tulder in
10831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10832         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10833         * tests/test-base64.c (main): Catch the bug.
10834
10835 2011-08-10  Eric Blake  <eblake@redhat.com>
10836
10837         closein: correct comments
10838         * lib/closein.c (close_stdin): Improve comments.
10839
10840 2011-08-09  Bruno Haible  <bruno@clisp.org>
10841
10842         More tests for 'fseeko'.
10843         * tests/test-fseeko3.c: New file, from Eric Blake.
10844         * tests/test-fseeko3.sh: New file.
10845         * modules/fseeko-tests (Files): Add them.
10846         (TESTS): Add test-fseeko3.sh.
10847         (check_PROGRAMS): Add test-fseeko3.
10848
10849 2011-08-09  Eric Blake  <eblake@redhat.com>
10850
10851         fseeko: remove unneeded hack
10852         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10853
10854         fseeko: fix bug on glibc
10855         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10856         Reported by John W. Eaton.
10857
10858 2011-08-08  Bruno Haible  <bruno@clisp.org>
10859
10860         unictype/base: Fix interoperability with preinstalled libunistring.
10861         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10862         Reported by Simon Josefsson.
10863
10864 2011-08-08  Bruno Haible  <bruno@clisp.org>
10865
10866         iswblank: Detect declaration correctly.
10867         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10868         AC_CHECK_DECLS invocation.
10869
10870 2011-08-08  Bruno Haible  <bruno@clisp.org>
10871
10872         tcgetsid: Detect declaration correctly.
10873         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10874         AC_CHECK_DECLS invocation.
10875         Reported by Simon Josefsson.
10876
10877 2011-08-08  Eric Blake  <eblake@redhat.com>
10878
10879         largefile: fix typo that regressed large file support
10880         * modules/largefile (configure.ac-early): Fix section name.
10881
10882 2011-08-06  Karl Berry  <karl@gnu.org>
10883
10884         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10885         a separate module.
10886
10887 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10888
10889         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10890         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10891         get prototype for free.
10892
10893 2011-08-04  Bruno Haible  <bruno@clisp.org>
10894
10895         Tests for module 'pathmax'.
10896         * modules/pathmax-tests: New file.
10897         * tests/test-pathmax.c: New file.
10898
10899         canonicalize-lgpl: Support larger filenames on the Hurd.
10900         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10901         Reported by Paul Eggert.
10902
10903         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10904         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10905         * lib/chdir-long.h: Include pathmax.h.
10906         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10907         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10908         (PATH_MAX): Remove code that is done by pathmax.h.
10909         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10910         * lib/tmpfile.c: Add a comment.
10911         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10912         * modules/chdir-long (Depends-on): Add pathmax.
10913         * modules/getcwd (Depends-on): Add pathmax.
10914         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10915         is not defined.
10916         * doc/posix-headers/limits.texi: Mention the pathmax module.
10917         * NEWS: Mention the change.
10918
10919 2011-08-02  Bruno Haible  <bruno@clisp.org>
10920
10921         pthread_sigmask: Actually use results of gl_THREADLIB.
10922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10923         gl_THREADLIB, not gl_[]THREADLIB.
10924         Reported by Eric Blake.
10925
10926 2011-08-02  Jim Meyering  <meyering@redhat.com>
10927
10928         maint.mk: relax the default _gl_TS_function_match regexp
10929         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10930         space between function name and "(" in an "extern" declaration.
10931         That would fail to match a decl with no space there: extern void foo();
10932
10933 2011-07-31  Iain Nicol  <iain@thenicols.net>
10934
10935         git-version-gen: document that EXTRA_DIST must include .version
10936         * build-aux/git-version-gen: In the how-to-use comment, document
10937         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10938         will fail when run from an unpacked distribution tarball.
10939
10940 2011-08-01  Bruno Haible  <bruno@clisp.org>
10941
10942         wctype-h: Fix last change.
10943         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10944         REPLACE_TOWLOWER to 0.
10945         Reported by Sam Steingold <sds@gnu.org>.
10946
10947 2011-07-31  Bruno Haible  <bruno@clisp.org>
10948
10949         frexpl: Update autoconf test.
10950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10951         according to changes of 2011-06-20.
10952
10953 2011-07-31  Bruno Haible  <bruno@clisp.org>
10954
10955         sys_utsname: Add support for Minix.
10956         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10957         <sys/utsname.h>.
10958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10959         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10960
10961 2011-07-31  Bruno Haible  <bruno@clisp.org>
10962
10963         strings: Add support for Minix.
10964         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10965         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10966         * doc/posix-headers/strings.texi: Document the Minix problem.
10967
10968 2011-07-31  Bruno Haible  <bruno@clisp.org>
10969
10970         wctype-h: Add support for Minix.
10971         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10972         REPLACE_TOWLOWER.
10973         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10974         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10975         REPLACE_ISWCNTRL.
10976
10977 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10978
10979         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10980         This is a performance improvement for 64-bit hosts: it causes the
10981         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10982
10983 2011-07-31  Bruno Haible  <bruno@clisp.org>
10984
10985         stdioext: Add support for Minix.
10986         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10987         * lib/fpurge.c (fpurge): Likewise.
10988         * lib/freadahead.c (freadahead): Likewise.
10989         * lib/freadable.c (freadable): Likewise.
10990         * lib/freading.c (freading): Likewise.
10991         * lib/freadptr.c (freadptr): Likewise.
10992         * lib/freadseek.c (freadptrinc): Likewise.
10993         * lib/fseeko.c (rpl_fseeko): Likewise.
10994         * lib/fseterr.c (fseterr): Likewise.
10995         * lib/fwritable.c (fwritable): Likewise.
10996         * lib/fwriting.c (fwriting): Likewise.
10997         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10998         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10999
11000 2011-07-31  Bruno Haible  <bruno@clisp.org>
11001
11002         errno: Port to Minix.
11003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11004         ECONNABORTED are defined.
11005         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11006         GNULIB_defined_ECONNABORTED): New macros.
11007         * lib/strerror-override.h (strerror_override): Test also
11008         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11009         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11010         ECONNABORTED.
11011         * doc/posix-headers/errno.texi: Mention the Minix problem.
11012
11013 2011-07-31  Bruno Haible  <bruno@clisp.org>
11014
11015         Work around declaration collisions on Minix.
11016         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11017         defined, set REPLACE_MBSINIT.
11018         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11019         defined, set REPLACE_MBRTOWC.
11020         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11021         set REPLACE_MBRLEN.
11022         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11023         defined, set REPLACE_MBSRTOWCS.
11024         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11025         defined, set REPLACE_WCRTOMB.
11026         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11027         defined, set REPLACE_WCSRTOMBS.
11028
11029 2011-07-31  Bruno Haible  <bruno@clisp.org>
11030
11031         Add support for Minix with ACK compiler.
11032         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11033         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11034         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11035
11036 2011-07-31  Bruno Haible  <bruno@clisp.org>
11037
11038         Documentation about Minix.
11039         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11040         * doc/glibc-headers/*.texi: Likewise.
11041         * doc/posix-functions/*.texi: Likewise.
11042         * doc/glibc-functions/*.texi: Likewise.
11043
11044 2011-07-31  Bruno Haible  <bruno@clisp.org>
11045
11046         snippet/warn-on-use: Fix indentation.
11047         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11048
11049 2011-07-25  Jim Meyering  <meyering@redhat.com>
11050
11051         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11052         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11053         commands.
11054
11055 2011-07-27  Jim Meyering  <meyering@redhat.com>
11056
11057         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11058         * top/maint.mk (gl_extract_significant_defines_): Now that
11059         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11060         gnulib/lib/signal.in.h, and now that we recommend to
11061         define-if-undefined those two symbols in application code,
11062         we must filter them out of the "significant" list.
11063         This avoids a "make syntax-check" failure in coreutils.
11064
11065 2011-07-26  Eric Blake  <eblake@redhat.com>
11066
11067         warnings: add comments about previous patch
11068         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11069         * m4/include_next.m4: Likewise.
11070         * m4/warn-on-use.m4: Likewise.
11071         * m4/warnings.m4: Likewise, and simplify use.
11072         Suggested by Stefano Lattarini.
11073
11074         include-next, warnings: support older autoconf
11075         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11076         AS_VAR_PUSHDEF in a way that works with older autoconf.
11077         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11078         Reported by Daniel P. Berrange.
11079
11080 2011-07-25  Bruno Haible  <bruno@clisp.org>
11081
11082         fseek, ftell: Fix doc.
11083         * doc/posix-functions/fseek.texi: Reword statement about
11084         AC_SYS_LARGEFILE.
11085         * doc/posix-functions/ftell.texi: Likewise.
11086
11087 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11088             Bruno Haible  <bruno@clisp.org>
11089
11090         Add dependencies to the 'largefile' module.
11091         * modules/fopen (Depends-on): Add 'largefile'.
11092         * modules/freopen (Depends-on): Likewise.
11093         * modules/fseeko (Depends-on): Likewise.
11094         * modules/ftello (Depends-on): Likewise.
11095         * modules/glob (Depends-on): Likewise.
11096         * modules/lseek (Depends-on): Likewise.
11097         * modules/lstat (Depends-on): Likewise.
11098         * modules/mkostemp (Depends-on): Likewise.
11099         * modules/mkostemps (Depends-on): Likewise.
11100         * modules/mkstemp (Depends-on): Likewise.
11101         * modules/mkstemps (Depends-on): Likewise.
11102         * modules/open (Depends-on): Likewise.
11103         * modules/openat (Depends-on): Likewise.
11104         * modules/pread (Depends-on): Likewise.
11105         * modules/pwrite (Depends-on): Likewise.
11106         * modules/scandir (Depends-on): Likewise.
11107         * modules/stat (Depends-on): Likewise.
11108         * modules/tmpfile (Depends-on): Likewise.
11109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11110         since the containing module now depends on the largefile module.
11111         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11112         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11113         off_t is fixed by gnulib.
11114         * doc/posix-functions/freopen.texi: Likewise.
11115         * doc/posix-functions/fseeko.texi: Likewise.
11116         * doc/posix-functions/fstatat.texi: Likewise.
11117         * doc/posix-functions/ftello.texi: Likewise.
11118         * doc/posix-functions/glob.texi: Likewise.
11119         * doc/posix-functions/lseek.texi: Likewise.
11120         * doc/posix-functions/lstat.texi: Likewise.
11121         * doc/posix-functions/mkstemp.texi: Likewise.
11122         * doc/posix-functions/open.texi: Likewise.
11123         * doc/posix-functions/openat.texi: Likewise.
11124         * doc/posix-functions/pread.texi: Likewise.
11125         * doc/posix-functions/pwrite.texi: Likewise.
11126         * doc/posix-functions/scandir.texi: Likewise.
11127         * doc/posix-functions/stat.texi: Likewise.
11128         * doc/posix-functions/tmpfile.texi: Likewise.
11129         * doc/glibc-functions/mkostemp.texi: Likewise.
11130         * doc/glibc-functions/mkostemps.texi: Likewise.
11131         * doc/glibc-functions/mkstemps.texi: Likewise.
11132
11133 2011-07-25  Bruno Haible  <bruno@clisp.org>
11134
11135         fcntl: Move AC_LIBOBJ invocation to module description.
11136         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11137         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11138
11139         fcntl: Remove call-in from fchdir.m4.
11140         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11142
11143         dup3: Remove potential call-in from fchdir.m4.
11144         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11146
11147         dup2: Move AC_LIBOBJ invocation to module description.
11148         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11149         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11150         Don't invoke AC_LIBOBJ.
11151         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11152
11153         dup2: Remove call-in from fchdir.m4.
11154         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11156
11157         fclose: Move AC_LIBOBJ invocation to module description.
11158         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11159         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11160         to 1.
11161         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11162
11163         fclose: Remove call-in from close.m4.
11164         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11165         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11166
11167         close: Move AC_LIBOBJ invocation to module description.
11168         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11169         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11170         1.
11171         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11172
11173         close: Remove call-in from fchdir.m4.
11174         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11176
11177         open: Move AC_LIBOBJ invocation to module description.
11178         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11179         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11180         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11181
11182         open: Remove call-in from fchdir.m4.
11183         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11185
11186         fchdir: Start to remove gl_REPLACE_* idiom.
11187         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11188         (gl_FUNC_FCHDIR): Invoke it.
11189
11190 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11191
11192         * lib/ftell.c (ftell): Comment out cast.
11193
11194         close: use gl_REPLACE_FCLOSE only if defined
11195         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11196         is defined.  The close module doesn't depend on the fclose module
11197         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11199         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11200
11201 2011-07-24  Jim Meyering  <meyering@redhat.com>
11202
11203         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11204         * tests/test-select.h (test_function): Declare as "static".
11205
11206 2011-07-24  Bruno Haible  <bruno@clisp.org>
11207
11208         doc: Mention the effects of AC_SYS_LARGEFILE.
11209         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11210         on this function.
11211         * doc/posix-functions/aio_error.texi: Likewise.
11212         * doc/posix-functions/aio_fsync.texi: Likewise.
11213         * doc/posix-functions/aio_read.texi: Likewise.
11214         * doc/posix-functions/aio_return.texi: Likewise.
11215         * doc/posix-functions/aio_suspend.texi: Likewise.
11216         * doc/posix-functions/aio_write.texi: Likewise.
11217         * doc/posix-functions/fgetpos.texi: Likewise.
11218         * doc/posix-functions/fopen.texi: Likewise.
11219         * doc/posix-functions/freopen.texi: Likewise.
11220         * doc/posix-functions/fsetpos.texi: Likewise.
11221         * doc/posix-functions/fstatvfs.texi: Likewise.
11222         * doc/posix-functions/ftruncate.texi: Likewise.
11223         * doc/posix-functions/ftw.texi: Likewise.
11224         * doc/posix-functions/getrlimit.texi: Likewise.
11225         * doc/posix-functions/glob.texi: Likewise.
11226         * doc/posix-functions/lio_listio.texi: Likewise.
11227         * doc/posix-functions/lockf.texi: Likewise.
11228         * doc/posix-functions/mkstemp.texi: Likewise.
11229         * doc/posix-functions/mmap.texi: Likewise.
11230         * doc/posix-functions/nftw.texi: Likewise.
11231         * doc/posix-functions/openat.texi: Likewise.
11232         * doc/posix-functions/opendir.texi: Likewise.
11233         * doc/posix-functions/posix_fadvise.texi: Likewise.
11234         * doc/posix-functions/posix_fallocate.texi: Likewise.
11235         * doc/posix-functions/pread.texi: Likewise.
11236         * doc/posix-functions/pwrite.texi: Likewise.
11237         * doc/posix-functions/readdir.texi: Likewise.
11238         * doc/posix-functions/readdir_r.texi: Likewise.
11239         * doc/posix-functions/rewinddir.texi: Likewise.
11240         * doc/posix-functions/scandir.texi: Likewise.
11241         * doc/posix-functions/seekdir.texi: Likewise.
11242         * doc/posix-functions/setrlimit.texi: Likewise.
11243         * doc/posix-functions/statvfs.texi: Likewise.
11244         * doc/posix-functions/telldir.texi: Likewise.
11245         * doc/posix-functions/tmpfile.texi: Likewise.
11246         * doc/posix-functions/truncate.texi: Likewise.
11247         * doc/glibc-functions/fallocate.texi: Likewise.
11248         * doc/glibc-functions/fstatfs.texi: Likewise.
11249         * doc/glibc-functions/fts_children.texi: Likewise.
11250         * doc/glibc-functions/fts_read.texi: Likewise.
11251         * doc/glibc-functions/getdirentries.texi: Likewise.
11252         * doc/glibc-functions/mkostemp.texi: Likewise.
11253         * doc/glibc-functions/mkostemps.texi: Likewise.
11254         * doc/glibc-functions/mkstemps.texi: Likewise.
11255         * doc/glibc-functions/preadv.texi: Likewise.
11256         * doc/glibc-functions/pwritev.texi: Likewise.
11257         * doc/glibc-functions/sendfile.texi: Likewise.
11258         * doc/glibc-functions/statfs.texi: Likewise.
11259
11260 2011-07-24  Bruno Haible  <bruno@clisp.org>
11261
11262         doc: Fix typo.
11263         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11264
11265 2011-07-24  Bruno Haible  <bruno@clisp.org>
11266
11267         doc: Mention fsusage.
11268         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11269
11270 2011-07-24  Bruno Haible  <bruno@clisp.org>
11271
11272         doc: Mention new glibc headers and functions.
11273         * doc/glibc-headers/gshadow.texi: New file.
11274         * doc/glibc-functions/endsgent.texi: New file.
11275         * doc/glibc-functions/fgetsgent.texi: New file.
11276         * doc/glibc-functions/fgetsgent_r.texi: New file.
11277         * doc/glibc-functions/getsgent.texi: New file.
11278         * doc/glibc-functions/getsgent_r.texi: New file.
11279         * doc/glibc-functions/getsgnam.texi: New file.
11280         * doc/glibc-functions/getsgnam_r.texi: New file.
11281         * doc/glibc-functions/putsgent.texi: New file.
11282         * doc/glibc-functions/setsgent.texi: New file.
11283         * doc/glibc-functions/sgetsgent.texi: New file.
11284         * doc/glibc-functions/sgetsgent_r.texi: New file.
11285         * doc/glibc-functions/malloc_info.texi: New file.
11286         * doc/glibc-functions/preadv.texi: New file.
11287         * doc/glibc-functions/pwritev.texi: New file.
11288         * doc/glibc-functions/register_printf_modifier.texi: New file.
11289         * doc/glibc-functions/register_printf_specifier.texi: New file.
11290         * doc/glibc-functions/register_printf_type.texi: New file.
11291         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11292         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11293         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11294         * doc/glibc-functions/pthread_getname_np.texi: New file.
11295         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11296         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11297         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11298         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11299         * doc/glibc-functions/pthread_setname_np.texi: New file.
11300         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11301         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11302         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11303         * doc/glibc-functions/qsort_r.texi: New file.
11304         * doc/glibc-functions/quick_exit.texi: New file.
11305         * doc/glibc-functions/syncfs.texi: New file.
11306         * doc/gnulib.texi: Include them.
11307         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11308         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11309         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11310         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11311         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11312         * doc/glibc-functions/execvpe.texi: Likewise.
11313
11314 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11315
11316         ftell: don't include <unistd.h>
11317         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11318         guaranteed to define off_t, and the ftell module depends on the
11319         stdio module.
11320
11321         ftell: do not assume wraparound signed arithmetic
11322         * lib/ftell.c: Include <limits.h>.
11323         (ftell): Don't assume wraparound signed arithmetic.
11324
11325 2011-07-24  Bruno Haible  <bruno@clisp.org>
11326
11327         close: No longer depend on module 'fclose'.
11328         * modules/close (Depends-on): Remove fclose.
11329         * NEWS: Mention the change.
11330         Suggested by Sam Steingold <sds@gnu.org>.
11331
11332 2011-07-24  Bruno Haible  <bruno@clisp.org>
11333
11334         fsusage: Enable large volume support on AIX >= 5.2.
11335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11336         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11337         instead of STAT_STATVFS.
11338         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11339
11340         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11342         f_blocks field only on MacOS X.
11343
11344         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11345         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11346         * modules/fsusage (Depends-on): Add largefile.
11347
11348 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11349
11350         * README: Modernize discussion of signed integers.
11351         Assuming overflow wraparound is no longer safe.
11352         Mention ones' complement and signed magnitude.
11353
11354 2011-07-22  Bruno Haible  <bruno@clisp.org>
11355
11356         select tests, pselect tests: Refactor.
11357         * tests/test-select.h: New file, extracted from tests/test-select.c.
11358         (select_fn): New type.
11359         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11360         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11361         test_pipe): Add my_select argument.
11362         (test_function): Renamed from main. Add my_select argument.
11363         * tests/test-select.c: Move most code to tests/test-select.h. Include
11364         test-select.h.
11365         * modules/select-tests (Files): Add tests/test-select.h.
11366         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11367         (my_select, main): New functions.
11368         * modules/pselect-tests (Files): Add tests/test-select.h,
11369         tests/macros.h, tests/signature.h.
11370         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11371         (configure.ac): Check for <sys/wait.h>.
11372
11373 2011-07-22  Bruno Haible  <bruno@clisp.org>
11374
11375         sys_select tests: Check the signature of FD_*.
11376         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11377         signature tests from here...
11378         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11379         here.
11380         * modules/sys_select-tests (Files): Add tests/signature.h.
11381
11382 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11383
11384         largefile: new module, replacing large-inode
11385         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11386         * MODULES.html.sh: Add largefile, remove large-inode.
11387         * modules/largefile, m4/largefile.m4: New files.
11388         * modules/large-inode, m4/large-inode.m4: Remove.
11389
11390         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11392         implementations that use only 32 bits to count blocks.
11393         On typical hosts with 1024-byte blocks, this fails with file
11394         systems as small as 4 TiB.  Problem reported by Herb Wartens
11395         <http://debbugs.gnu.org/9140> and this should also fix a similar
11396         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11397
11398         large-inode: New module
11399         * MODULES.html.sh: Add it.
11400         * modules/large-inode, m4/large-inode.m4: New files.
11401
11402         extensions: Enable extensions on MacOS X 10.5 and later.
11403         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11404
11405 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11406
11407         file-has-acl: use acl_extended_file_nofollow if available
11408         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11409         (acl_extended_file): New macro.
11410         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11411         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11412
11413 2011-07-21  Bruno Haible  <bruno@clisp.org>
11414
11415         Declare system functions in a way that works with C++.
11416         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11417         declare fdopendir as extern "C".
11418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11419         declare frexpl as extern "C".
11420         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11421         declare gai_strerror as extern "C".
11422         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11423         programs, declare gai_strerror as extern "C".
11424         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11425         declare getlogin_r as extern "C".
11426         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11427         as extern "C".
11428         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11429         declare ldexpl as extern "C".
11430         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11431         as extern "C".
11432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11433         program, declare getmntinfo as extern "C".
11434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11435         stpncpy as extern "C".
11436         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11437         program, declare __xpg_strerror_r as extern "C".
11438         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11439         strndup as extern "C".
11440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11441         declare memset and bzero as extern "C".
11442         Reported by Sam Steingold <sds@gnu.org>.
11443
11444 2011-07-12  Jim Meyering  <meyering@redhat.com>
11445
11446         maint.mk: prohibit inclusion of "verify.h" without use
11447         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11448
11449 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11450
11451         timer-time: A new module to check for timer_settime()
11452         * m4/timer_time.m4: Check for the posix function.
11453         * modules/timer-time: Add the new module.
11454         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11455         Mention it.
11456
11457 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11458             Bruno Haible  <bruno@clisp.org>
11459
11460         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11461         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11462         not defined, assume POSIX threads and look for pthread_sigmask in
11463         $LIBS, without changing $CPPFLAGS.
11464
11465 2011-07-19  Bruno Haible  <bruno@clisp.org>
11466
11467         strstr: Update cross-compilation guess.
11468         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11469         CPUs, guess no, in view of glibc
11470         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11471         Suggested by Eric Blake. Reported by Reuben Thomas.
11472
11473 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11474
11475         getopt-gnu: suppress core dumps from detection code
11476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11477         to suppress core dumps that may well occur on glibc systems.
11478         * modules/getopt-gnu: Depend on nocrash.
11479
11480 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11481
11482         pthread_sigmask: ensure usleep is declared
11483         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11484         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11485
11486 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11487
11488         doc: Document NonStop portability issues.
11489         * doc/posix-functions/sigaction.texi (sigaction):
11490         * doc/posix-headers/signal.texi (signal.h):
11491         Document NonStop.  See Joachim Schmitz in
11492         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11493
11494 2011-07-15  Bruno Haible  <bruno@clisp.org>
11495
11496         ffsl, ffsll: Avoid unportable behaviour.
11497         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11498
11499 2011-07-15  Bruno Haible  <bruno@clisp.org>
11500
11501         ffs: More tests.
11502         * tests/test-ffs.c (NBITS): New macro.
11503         (main): Add more tests.
11504         * tests/test-ffsl.c (NBITS): New macro.
11505         (main): Add more tests.
11506         * tests/test-ffsll.c (NBITS): New macro.
11507         (main): Add more tests.
11508
11509 2011-07-15  Eric Blake  <eblake@redhat.com>
11510
11511         ffsl, ffsll: new modules
11512         * modules/ffsl: New file.
11513         * modules/ffsll: Likewise.
11514         * m4/ffsl.m4: Likewise.
11515         * m4/ffsll.m4: Likewise.
11516         * lib/ffsl.c: Likewise.
11517         * lib/ffsl.h: Likewise.
11518         * lib/ffsll.c: Likewise.
11519         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11520         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11521         * modules/string (Makefile.am): Substitute witnesses.
11522         * lib/strings.in.h (ffsl, ffsll): Declare.
11523         * modules/ffsl-tests: New test file.
11524         * modules/ffsll-tests: Likewise.
11525         * tests/test-ffsl.c: Likewise.
11526         * tests/test-ffsll.c: Likewise.
11527         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11528         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11529         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11530
11531         ffs: fix m4 prerequisite
11532         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11533
11534         ffs: avoid undefined behavior
11535         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11536         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11537         Reported by Bruno Haible.
11538
11539 2011-07-12  Bruno Haible  <bruno@clisp.org>
11540
11541         pthread_sigmask: Rely on module 'threadlib'.
11542         * modules/pthread_sigmask (Depends-on): Add threadlib.
11543         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11544         is defined.
11545
11546 2011-07-12  Bruno Haible  <bruno@clisp.org>
11547
11548         regex: Depend on module 'strcase'.
11549         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11550
11551 2011-07-12  Jim Meyering  <meyering@redhat.com>
11552
11553         warn-on-use: fix typo in file name
11554         * modules/snippet/warn-on-use (Files): Correct file name:
11555         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11556
11557 2011-07-12  Bruno Haible  <bruno@clisp.org>
11558
11559         strings: Document module.
11560         * doc/posix-headers/strings.texi: Mention module 'strings'.
11561
11562 2011-07-12  Bruno Haible  <bruno@clisp.org>
11563
11564         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11565         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11566         (Files, Makefile.am): Update.
11567         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11568         * modules/stdlib (Depends-on): Update.
11569
11570 2011-07-12  Bruno Haible  <bruno@clisp.org>
11571
11572         * NEWS: Mention the changes.
11573
11574         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11575         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11576         (Files, Makefile.am): Update.
11577         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11578         * modules/arpa_inet (Depends-on): Update.
11579         * modules/ctype (Depends-on): Update.
11580         * modules/dirent (Depends-on): Update.
11581         * modules/fcntl-h (Depends-on): Update.
11582         * modules/glob (Depends-on): Update.
11583         * modules/iconv-h (Depends-on): Update.
11584         * modules/inttypes-incomplete (Depends-on): Update.
11585         * modules/langinfo (Depends-on): Update.
11586         * modules/locale (Depends-on): Update.
11587         * modules/math (Depends-on): Update.
11588         * modules/netdb (Depends-on): Update.
11589         * modules/poll-h (Depends-on): Update.
11590         * modules/pty (Depends-on): Update.
11591         * modules/search (Depends-on): Update.
11592         * modules/signal (Depends-on): Update.
11593         * modules/spawn (Depends-on): Update.
11594         * modules/stdio (Depends-on): Update.
11595         * modules/stdlib (Depends-on): Update.
11596         * modules/string (Depends-on): Update.
11597         * modules/strings (Depends-on): Update.
11598         * modules/sys_file (Depends-on): Update.
11599         * modules/sys_ioctl (Depends-on): Update.
11600         * modules/sys_select (Depends-on): Update.
11601         * modules/sys_socket (Depends-on): Update.
11602         * modules/sys_stat (Depends-on): Update.
11603         * modules/sys_time (Depends-on): Update.
11604         * modules/sys_times (Depends-on): Update.
11605         * modules/sys_utsname (Depends-on): Update.
11606         * modules/sys_wait (Depends-on): Update.
11607         * modules/termios (Depends-on): Update.
11608         * modules/time (Depends-on): Update.
11609         * modules/unistd (Depends-on): Update.
11610         * modules/wchar (Depends-on): Update.
11611         * modules/wctype-h (Depends-on): Update.
11612         * MODULES.html.sh (Support for building libraries and executables):
11613         Update.
11614
11615         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11616         * modules/snippet/unused-parameter: Renamed from
11617         modules/unused-parameter.
11618         (Files, Makefile.am): Update.
11619         * build-aux/snippet/unused-parameter.h: Renamed from
11620         build-aux/unused-parameter.h.
11621         * modules/selinux-h (Depends-on): Update.
11622         * modules/unistr/base (Depends-on): Update.
11623         * MODULES.html.sh (Core language properties): Update.
11624
11625         Rename module 'link-warning' to 'snippet/link-warning'.
11626         * modules/snippet/link-warning: Renamed from modules/link-warning.
11627         (Files, Makefile.am): Update.
11628         * build-aux/snippet/link-warning.h: Renamed from
11629         build-aux/link-warning.h.
11630         * MODULES.html.sh (Support for building libraries and executables):
11631         Update.
11632
11633         Rename module 'c++defs' to 'snippet/c++defs'.
11634         * modules/snippet/c++defs: Renamed from modules/c++defs.
11635         (Files, Makefile.am): Update.
11636         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11637         * modules/arpa_inet (Depends-on): Update.
11638         * modules/ctype (Depends-on): Update.
11639         * modules/dirent (Depends-on): Update.
11640         * modules/fcntl-h (Depends-on): Update.
11641         * modules/glob (Depends-on): Update.
11642         * modules/iconv-h (Depends-on): Update.
11643         * modules/langinfo (Depends-on): Update.
11644         * modules/locale (Depends-on): Update.
11645         * modules/math (Depends-on): Update.
11646         * modules/netdb (Depends-on): Update.
11647         * modules/poll-h (Depends-on): Update.
11648         * modules/pty (Depends-on): Update.
11649         * modules/search (Depends-on): Update.
11650         * modules/signal (Depends-on): Update.
11651         * modules/spawn (Depends-on): Update.
11652         * modules/stdio (Depends-on): Update.
11653         * modules/stdlib (Depends-on): Update.
11654         * modules/string (Depends-on): Update.
11655         * modules/strings (Depends-on): Update.
11656         * modules/sys_ioctl (Depends-on): Update.
11657         * modules/sys_select (Depends-on): Update.
11658         * modules/sys_socket (Depends-on): Update.
11659         * modules/sys_stat (Depends-on): Update.
11660         * modules/sys_time (Depends-on): Update.
11661         * modules/sys_wait (Depends-on): Update.
11662         * modules/termios (Depends-on): Update.
11663         * modules/time (Depends-on): Update.
11664         * modules/unistd (Depends-on): Update.
11665         * modules/wchar (Depends-on): Update.
11666         * modules/wctype-h (Depends-on): Update.
11667
11668         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11669         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11670         (Files, Makefile.am): Update.
11671         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11672         * modules/argv-iter (Depends-on): Update.
11673         * modules/arpa_inet (Depends-on): Update.
11674         * modules/dirent (Depends-on): Update.
11675         * modules/fcntl-h (Depends-on): Update.
11676         * modules/fnmatch (Depends-on): Update.
11677         * modules/getopt-posix (Depends-on): Update.
11678         * modules/glob (Depends-on): Update.
11679         * modules/iconv-h (Depends-on): Update.
11680         * modules/inttypes-incomplete (Depends-on): Update.
11681         * modules/locale (Depends-on): Update.
11682         * modules/math (Depends-on): Update.
11683         * modules/netdb (Depends-on): Update.
11684         * modules/search (Depends-on): Update.
11685         * modules/signal (Depends-on): Update.
11686         * modules/spawn (Depends-on): Update.
11687         * modules/stdio (Depends-on): Update.
11688         * modules/stdlib (Depends-on): Update.
11689         * modules/string (Depends-on): Update.
11690         * modules/strings (Depends-on): Update.
11691         * modules/sys_socket (Depends-on): Update.
11692         * modules/sys_stat (Depends-on): Update.
11693         * modules/sys_time (Depends-on): Update.
11694         * modules/sys_times (Depends-on): Update.
11695         * modules/sys_utsname (Depends-on): Update.
11696         * modules/time (Depends-on): Update.
11697         * modules/unistd (Depends-on): Update.
11698         * modules/wchar (Depends-on): Update.
11699         * MODULES.html.sh (Support for building libraries and executables):
11700         Update.
11701
11702 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11703
11704         Improvements on _Noreturn and related modules.
11705
11706         modules/_Exit-tests: test _Noreturn too
11707         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11708         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11709         (main): Use them.
11710
11711         stdnoreturn, stdnoreturn-tests: remove modules
11712         They're not needed here and a bit premature for use elsewhere.  See
11713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11714         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11715         * tests/test-stdnoreturn.c: Remove files.
11716         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11717         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11718         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11719         and using noreturn.
11720         * modules/openat, modules/sigpipe-die, modules/xalloc:
11721         * modules/xmemdup0, modules/xstrtol:
11722         Remove dependency on stdnoreturn.
11723
11724         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11725         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11726         Reparenthesize to avoid GCC warning.
11727         Support Microsoft's syntax.
11728         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11729
11730         _Noreturn-tests: remove module
11731         * modules/_Noreturn-tests: Remove.
11732         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11733         * tests/test-_Noreturn.c: Remove.
11734         * tests/test-stdnoreturn.c: Merge from the old
11735         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11736
11737 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11738
11739         _Noreturn, stdnoreturn, and related modules.
11740
11741         * top/maint.mk: Adjust to new noreturn support.
11742         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11743         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11744
11745         xalloc: use stdnoreturn.h
11746         * lib/xalloc.h: Include <stdnoreturn.h>.
11747         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11748         * modules/xalloc (Depends-on): Add stdnoreturn.
11749
11750         xstrtol: use stdnoreturn.h
11751         * lib/xstrtol.h: Include <stdnoreturn.h>.
11752         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11753         * modules/xstrtol (Depends-on): Add stdnoreturn.
11754
11755         xmemdup0: use stdnoreturn.h
11756         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11757         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11758         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11759
11760         sigpipe-die: use stdnoreturn.h
11761         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11762         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11763         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11764
11765         openat: use stdnoreturn.h
11766         * lib/openat.h: Include <stdnoreturn.h>.
11767         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11768         * modules/openat (Depends-on): Add stdnoreturn.
11769
11770         * lib/openat-die.c (openat_save_fail): Modernize comment.
11771
11772         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11773
11774         * lib/glthread/thread.h: Modernize comment.
11775
11776         obstack: use _Noreturn
11777         * lib/obstack.c (__attribute__): Remove macro.
11778         (print_and_abort): Use _Noreturn.
11779
11780         c-stack: use _Noreturn
11781         * lib/c-stack.c (die, overflow_handler, segv_handler):
11782         Use _Noreturn rather than __attribute__((noreturn)).
11783
11784         argmatch-tests, exclude_tests: use _Noreturn
11785         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11786         Remove.
11787         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11788
11789         stdlib: use _Noreturn
11790         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11791         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11792         * modules/stdlib (Depends-on): Add _Noreturn.
11793         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11794
11795         stdnoreturn-tests: new module
11796         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11797
11798         stdnoreturn: new module
11799         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11800         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11801
11802         _Noreturn-tests: new module
11803         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11804
11805         _Noreturn: new module
11806         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11807         New section, mentioning it.
11808         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11809
11810         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11811
11812 2011-07-11  Eric Blake  <eblake@redhat.com>
11813
11814         ffs: new module
11815         * modules/ffs: New file.
11816         * m4/ffs.m4: Likewise.
11817         * lib/ffs.c: Likewise.
11818         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11819         * modules/strings (Makefile.am): Substitute witness.
11820         (Depends-on): Add c++defs.
11821         * lib/strings.in.h (ffs): Declare.
11822         * modules/ffs-tests: New test file.
11823         * tests/test-ffs.c: Test new module.
11824         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11825         * doc/posix-functions/ffs.texi (ffs): Likewise.
11826
11827         regex: avoid compiler warning
11828         * lib/regex.c (includes): Include <strings.h>, for use of
11829         strcasecmp in regcomp.c.
11830         Reported by Joachim Schmitz.
11831
11832 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11833
11834         stdint: respect system's intmax_t if INTMAX_MAX
11835         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11836         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11837         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11838         long but int64_t is long long, and where we will clash with the
11839         system intmax_t if we override it.  See
11840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11841         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11842         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11843         similarly for UINTMAX_C.
11844
11845 2011-07-08  Bruno Haible  <bruno@clisp.org>
11846
11847         pthread_sigmask tests: Avoid a compiler warning.
11848         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11849         non-zero.
11850
11851         sigprocmask tests: A better way to avoid a compiler warning.
11852         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11853         (main): Complain if system() returns non-zero.
11854         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11855
11856 2011-07-08  Bruno Haible  <bruno@clisp.org>
11857
11858         pthread_sigmask: Work around IRIX bug.
11859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11860         bug.
11861         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11862         there may be unblocked pending signals.
11863         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11864
11865 2011-07-08  Bruno Haible  <bruno@clisp.org>
11866
11867         pthread_sigmask: Work around Cygwin bug.
11868         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11869         bug.
11870         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11871         the system's pthread_sigmask function.
11872         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11873
11874 2011-07-08  Bruno Haible  <bruno@clisp.org>
11875
11876         pthread_sigmask: Work around bug in single-threaded implementation.
11877         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11878         FreeBSD, HP-UX, Solaris bug.
11879         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11880         * lib/pthread_sigmask.c: Include <stddef.h>.
11881         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11882         the system's pthread_sigmask function.
11883         * modules/pthread_sigmask (configure.ac): Invoke
11884         gl_PREREQ_PTHREAD_SIGMASK.
11885         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11886         HP-UX, Solaris.
11887
11888 2011-07-08  Eric Blake  <eblake@redhat.com>
11889
11890         test-sigprocmask: avoid compiler warning
11891         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11892         * tests/test-sigprocmask.c (main): Use it to silence warning.
11893         Reported by Jim Meyering.
11894
11895         test-snprintf: avoid compiler warning
11896         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11897         * tests/test-vsnprintf.c (main): Likewise.
11898         Reported by Jim Meyering.
11899
11900 2011-07-08  Bruno Haible  <bruno@clisp.org>
11901
11902         Tests for module 'pthread_sigmask'.
11903         * modules/pthread_sigmask-tests: New file.
11904         * tests/test-pthread_sigmask1.c: New file, based on
11905         tests/test-sigprocmask.c.
11906         * tests/test-pthread_sigmask2.c: New file.
11907
11908 2011-07-08  Jim Meyering  <meyering@redhat.com>
11909
11910         test-getopt.h: avoid warning about an unused variable
11911         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11912
11913 2011-07-07  Jim Meyering  <meyering@redhat.com>
11914
11915         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11916         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11917         now that it no longer contains leading TABs.
11918         Remove unused "url=FIXME" statement.
11919
11920 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11921
11922         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11924         When gl_THREADLIB is not in use, assume that the POSIX sematics
11925         are desired.  This is better for Emacs, which uses POSIX semantics
11926         on GNUish and/or POSIXish platforms, and does not use threads at
11927         all otherwise.
11928
11929         pthread_sigmask: fix typo when testing for libraries
11930         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11931         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11932
11933 2011-07-08  Eric Blake  <eblake@redhat.com>
11934
11935         fts: introduce FTS_NOATIME
11936         * lib/fts_.h (FTS_NOATIME): New bit flag.
11937         (FTS_OPTIONMASK): Adjust.
11938         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11939         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11940
11941 2011-07-08  Bruno Haible  <bruno@clisp.org>
11942
11943         Tests for module 'thread'.
11944         * modules/thread-tests: New file.
11945         * tests/test-thread_self.c: New file.
11946         * tests/test-thread_create.cc: New file.
11947
11948 2011-07-08  Bruno Haible  <bruno@clisp.org>
11949
11950         thread: Avoid gcc warnings when using gl_thread_self().
11951         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11952         'void *'.
11953         (gl_thread_self_pointer): Update.
11954
11955 2011-07-07  Bruno Haible  <bruno@clisp.org>
11956
11957         signal-c++-tests: Check declaration of pthread_sigmask.
11958         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11959         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11960         $(LIB_PTHREAD_SIGMASK).
11961
11962 2011-07-07  Bruno Haible  <bruno@clisp.org>
11963
11964         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11965         * lib/signal.in.h (pthread_sigmask): Override if
11966         REPLACE_PTHREAD_SIGMASK is 1.
11967         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11968         REPLACE_PTHREAD_SIGMASK.
11969         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11970         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11971         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11972         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11973         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11974
11975 2011-07-07  Bruno Haible  <bruno@clisp.org>
11976
11977         pthread_sigmask: Ensure declaration in <signal.h>.
11978         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11979         include <pthread.h>.
11980         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11981         problem.
11982
11983 2011-07-07  Bruno Haible  <bruno@clisp.org>
11984
11985         pthread_sigmask: Document the module.
11986         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11987
11988 2011-07-07  Bruno Haible  <bruno@clisp.org>
11989
11990         pthread_sigmask: Follow gnulib conventions.
11991         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11992         gl_PTHREAD_SIGMASK.
11993         * modules/pthread_sigmask (configure.ac): Update.
11994
11995 2011-07-07  Bruno Haible  <bruno@clisp.org>
11996
11997         pthread_sigmask: Make declaration C++ safe.
11998         * lib/signal.in.h: In two special conditions, just do an #include_next.
11999         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12000         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12001         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12002         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12003         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12004         not REPLACE_PTHREAD_MASK.
12005         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12006         not REPLACE_PTHREAD_MASK.
12007         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12008
12009 2011-07-07  Bruno Haible  <bruno@clisp.org>
12010
12011         pthread_sigmask: Fix return value.
12012         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12013         * lib/pthread_sigmask.c: New file.
12014         * modules/pthread_sigmask (Files): Add it.
12015         (configure.ac): Invoke AC_LIBOBJ.
12016
12017 2011-07-07  Eric Blake  <eblake@redhat.com>
12018
12019         getopt: more portable argv creation
12020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12021         const, use char arrays rather than strings.
12022         Suggested by Paul Eggert.
12023
12024 2011-07-07  Bruno Haible  <bruno@clisp.org>
12025
12026         Tests for module 'sigprocmask'.
12027         * modules/sigprocmask-tests: New file.
12028         * tests/test-sigprocmask.c: New file.
12029
12030 2011-07-07  Bruno Haible  <bruno@clisp.org>
12031
12032         float tests: Tweak.
12033         * tests/test-float.c (main): Tweak skip message.
12034
12035 2011-07-07  Eric Blake  <eblake@redhat.com>
12036
12037         getopt: avoid compiler warning during configure
12038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12039         assigning string literals to non-const pointer.
12040
12041         getopt-gnu: avoid crash in glibc getopt
12042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12043         * tests/test-getopt.h (test_getopt): Enhance test.
12044         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12045         * doc/posix-functions/getopt.texi (getopt): Document it.
12046         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12047         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12048         Likewise.
12049
12050 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12051
12052         getopt: handle W; without long options in getopt [BZ #12922]
12053         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12054         but no long options are defined, just return 'W'.
12055
12056 2011-07-07  Bruno Haible  <bruno@clisp.org>
12057
12058         Avoid literal tabs.
12059         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12060         variable containing a tab instead of a literal tab.
12061         Reported by Jim Meyering.
12062
12063 2011-07-07  Bruno Haible  <bruno@clisp.org>
12064
12065         Comments.
12066         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12067
12068 2011-07-06  Bruno Haible  <bruno@clisp.org>
12069
12070         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12071         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12072         <winsock2.h>.
12073         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12074         lib/sys_socket.in.h.
12075         (close, gethostname): Hide declarations from <winsock2.h>.
12076         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12077         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12078         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12079         (select): Don't override if gnulib's <sys/select.h> was already
12080         included.
12081         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12082         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12083         setsockopt, shutdown, select): Tweak indentation.
12084
12085 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12086
12087         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12088         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12089         in an application that does not use the sys_select module.
12090
12091 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12092
12093         poll: do not return 0 on timeout=-1
12094         * lib/poll.c: Loop with yield if no events occured
12095
12096 2011-07-06  Eric Blake  <eblake@redhat.com>
12097
12098         pthread_sigmask: always replace when not using pthread
12099         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12100         replacement when using some threading other than pthread.  Fix
12101         logic bug.
12102
12103 2011-07-06  Bruno Haible  <bruno@clisp.org>
12104
12105         Comments.
12106         * m4/printf.m4: Update comments about mingw.
12107
12108 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12109
12110         sys_select: define sigset_t more portably
12111         * lib/sys_select.in.h: Always include <sys/types.h>, since
12112         we now need sigset_t and mingw defines it there.
12113         Include <signal.h> before split inclusion guard, to avoid
12114         mishaps on Solaris, whose <signal.h> eventually includes us.
12115         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12116         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12117         which come from ...
12118         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12119         gl_CHECK_TYPE_SIGSET_T.
12120         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12121         does the real work.
12122         * modules/sys_select (Depends-on): Add 'signal'.
12123
12124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12125         Suggested by Bruno Haible.
12126
12127         pselect: Use pthread_sigmask, not sigprocmask.
12128         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12129         multithreaded apps better than sigprocmask does.
12130         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12131         sigprocmask directly.
12132
12133 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12134
12135         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12136         Don't #undef,  since we don't need any underlying pselect.
12137         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12138         (Depends-on): Add select.
12139         (Link): Add $(LIBSOCKET).
12140         These changes suggested by Bruno Haible.
12141
12142         pselect: document better
12143         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12144         * doc/posix-functions/pselect.texi (pselect): Document new module.
12145
12146         pthread_sigmask: new module
12147         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12148         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12149         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12150         This is done only as a macro; I don't know how well that'll
12151         work for C++.  Move <sys/types.h> include before the include_next,
12152         to avoid mishap on Solaris.
12153         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12154         * modules/signal (Makefile.am): Substitute the check's results.
12155         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12156
12157         test-pselect: new module
12158         * modules/pselect-tests, tests/test-pselect.c: New files.
12159         * tests/test-select.c, tests/test-sys_select-c++.cc:
12160         If TEST_PSELECT is defined, test pselect instead of testing select.
12161
12162         * tests/test-sys_select.c (sigset_t): Test for it, too.
12163         Suggested by Bruno Haible.
12164
12165 2011-07-05  Eric Blake  <eblake@redhat.com>
12166
12167         snprintf: guarantee %1$d, for libintl
12168         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12169         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12170         * doc/posix-functions/snprintf.texi (snprintf): Update.
12171         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12172         * tests/test-snprintf.c (main): Enhance test.
12173         * tests/test-vsnprintf.c (main): Likewise.
12174
12175 2011-07-05  Jim Meyering  <meyering@redhat.com>
12176
12177         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12178         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12179         per Bruno's request, to accommodate this idiom (no space after "#")
12180         even when the function is inside an #if block:
12181         char *
12182         gets (char *s)
12183         #undef gets
12184         {
12185           ...
12186         }
12187
12188 2011-07-04  Jim Meyering  <meyering@redhat.com>
12189
12190         maint: indent with spaces, not TABs, and add a rule to check this
12191         * tests/test-userspec.c: Indent with spaces, not TABs.
12192         * tests/test-argp.c: Likewise.
12193         * tests/test-c-stack2.sh: Likewise.
12194         * tests/test-parse-duration.sh: Likewise
12195         * m4/strtod.m4: Likewise.
12196         * m4/alloca.m4: Likewise.
12197         * m4/pselect.m4: Likewise.
12198         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12199
12200 2011-07-03  Jim Meyering  <meyering@redhat.com>
12201
12202         maint.mk: correct omissions in prohibit_argmatch_without_use check
12203         This rule would mistakenly report that argmatch.h is included without
12204         use even when both the argmatch and invalid_arg macro were used.
12205         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12206         of argmatch and invalid_arg.
12207
12208 2011-07-03  Bruno Haible  <bruno@clisp.org>
12209
12210         Comments about EINTR.
12211         * lib/safe-read.h: Explain the purpose of this module.
12212         * lib/safe-write.h: Likewise.
12213         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12214         module.
12215         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12216         module.
12217         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12218
12219 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12220
12221         xnanosleep: Rewrite to use new dtotimespec module.
12222         It has the conversion code that used to be in xnanosleep.
12223         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12224         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12225         (TIME_T_MAX): Remove.
12226         (xnanosleep): Rewrite in terms of dtotimespec.
12227         * modules/xnanosleep (Depends-on): Add dtotimespec.
12228         Remove intprops, stdbool.
12229
12230         timespec-add, timespec-sub: new modules
12231         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12232         * lib/timespec-add.c, lib/timespec-sub.c:
12233         * modules/timespec-add, modules/timespec-sub: New files.
12234
12235         dtotimespec: new module
12236         * lib/timespec.h (dtotimespec): New decl.
12237         * lib/dtotimespec.c, modules/dtotimespec: New files.
12238
12239         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12240
12241         pselect: new module
12242         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12243         (pselect): New decls.
12244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12245         since the standard pselect decl uses 'restrict'.
12246         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12247         HAVE_PSELECT, REPLACE_PSELECT.
12248         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12249         HAVE_PSELECT, REPLACE_PSELECT.
12250         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12251
12252         sys_select: don't depend on sys_socket
12253         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12255         This fix works on GNU and GNU-like platforms, but has not been tested
12256         on native Windows.
12257         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12259         gl_HEADER_SYS_SOCKET.
12260         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12261         gl_PREREQ_SYS_H_WINSOCK2.
12262
12263 2011-06-29  Eric Blake  <eblake@redhat.com>
12264
12265         pipe2: fix C89 compile problem
12266         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12267         Reported by Bruno Haible.
12268
12269         pipe, pipe2: don't corrupt fd on error
12270         * lib/pipe.c (pipe): Leave fd unchanged on error.
12271         * lib/pipe2.c (pipe2): Likewise.
12272         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12273         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12274
12275 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12276
12277         mmap-anon: do not use regular expressions inadvertently
12278         * m4/mmap-anon.m4: Remove trailing period from strings sought
12279         in the output.
12280
12281 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12282
12283         nanosleep: fix integer overflow problem
12284         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12285         arithmetic wraps around on overflow.
12286
12287         nanosleep: simplify carrying
12288         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12289         first call to the underyling nanosleep, not for the last one.
12290         This doesn't fix any bugs, but it simplifies the computation of
12291         the remaining delay.  Found while auditing integer overflow issues.
12292
12293         dup2: remove test for existence of fcntl
12294         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12295         "#if HAVE_FCNTL", in the configure-time test program.
12296         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12297         and therefore speeds up "configure" a bit.  Found while
12298         adding the dup2 module to Emacs.
12299
12300 2011-06-24  Eric Blake  <eblake@redhat.com>
12301
12302         maint.mk: enhance useless header checks
12303         * top/maint.mk (_sc_header_without_use): Check both include
12304         styles.
12305         (sc_prohibit_assert_without_use)
12306         (sc_prohibit_close_stream_without_use)
12307         (sc_prohibit_getopt_without_use)
12308         (sc_prohibit_quotearg_without_use)
12309         (sc_prohibit_quote_without_use)
12310         (sc_prohibit_long_options_without_use)
12311         (sc_prohibit_inttostr_without_use)
12312         (sc_prohibit_ignore_value_without_use)
12313         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12314         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12315         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12316         (sc_prohibit_hash_pjw_without_use)
12317         (sc_prohibit_safe_read_without_use)
12318         (sc_prohibit_argmatch_without_use)
12319         (sc_prohibit_canonicalize_without_use)
12320         (sc_prohibit_root_dev_ino_without_use)
12321         (sc_prohibit_openat_without_use)
12322         (sc_prohibit_c_ctype_without_use)
12323         (sc_prohibit_signal_without_use)
12324         (sc_prohibit_stdio--_without_use)
12325         (sc_prohibit_stdio-safer_without_use)
12326         (sc_prohibit_strings_without_use)
12327         (sc_prohibit_intprops_without_use)
12328         (sc_prohibit_stddef_without_use)
12329         (sc_prohibit_xfreopen_without_use): Update clients.
12330
12331 2011-06-24  Jim Meyering  <meyering@redhat.com>
12332
12333         syntax-check: keep one maint.mk rule in sync with its header
12334         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12335         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12336         I prefer to avoid temporary files here, so use <(...), but that
12337         is not supported by /bin/sh, so...
12338         (SHELL): Define to /bin/bash.
12339
12340 2011-06-24  Eric Blake  <eblake@redhat.com>
12341
12342         maint.mk: update sc_prohibit_intprops_without_use
12343         * top/maint.mk (_intprops_names): Match recent changes.
12344
12345 2011-06-24  Bruno Haible  <bruno@clisp.org>
12346
12347         strerror-override: No-op tweak.
12348         * lib/strerror-override.h (strerror_override): Reorder conditions,
12349         for consistency with lib/strerror-override.c.
12350
12351 2011-06-23  Eric Blake  <eblake@redhat.com>
12352
12353         maint.mk: test further PATH_MAX issues
12354         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12355         (sc_prohibit_path_max_allocation): ...and also test alloca.
12356         Suggested by Jim Meyering.
12357
12358 2011-06-22  Eric Blake  <eblake@redhat.com>
12359
12360         maint.mk: add syntax-check to avoid char[PATH_MAX]
12361         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12362
12363         stat: be robust to PATH_MAX definition
12364         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12365         * modules/stat (Depends-on): Add verify.
12366
12367         link: work around IRIX bug
12368         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12369         * lib/link.c (rpl_link): Work around it.
12370         * tests/test-link.h (test_link): Enhance test.
12371         * doc/posix-functions/link.texi (link): Document the bug.
12372
12373         getopt: silence clang warning
12374         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12375         dereference.
12376         Reported by Gustavo Martin Domato.
12377
12378 2011-06-22  Jim Meyering  <meyering@redhat.com>
12379
12380         bootstrap: do not insert a blank line into each .gitignore file
12381         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12382
12383 2011-06-21  Eric Blake  <eblake@redhat.com>
12384
12385         perror: test for output mismatch
12386         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12387         perror on IRIX.
12388
12389         strerror_r: fix OpenBSD behavior on out-of-range
12390         * lib/strerror_r.c (strerror_r): Always use maximal string.
12391         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12392
12393         strerror_r: fix OpenBSD behavior on 0
12394         * lib/strerror-override.c (strerror_override): Also override 0
12395         when needed.
12396         * lib/strerror-override.h (strerror_override): Likewise.
12397         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12398         earlier.
12399         * lib/strerror_r.c (strerror_r): Likewise.
12400         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12401         behavior...
12402         (gl_FUNC_STRERROR_0): ...into new macro.
12403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12404         is overridden.
12405         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12406         * modules/strerror-override (Files): Add strerror.m4.
12407         (configure.ac): Also provide override for 0 when needed.
12408         * doc/posix-functions/strerror.texi (strerror): Document this.
12409         * doc/posix-functions/perror.texi (perror): Likewise.
12410
12411         perror: adjust array size
12412         * modules/perror (Depends-on): Add strerror-override.
12413         * lib/perror.c (perror): Use it to avoid magic number.
12414
12415         strerror-override: reduce size
12416         * lib/strerror-override.c (strerror_override): Use fewer lines.
12417
12418 2011-06-20  Bruno Haible  <bruno@clisp.org>
12419
12420         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12421         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12422
12423 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12424
12425         alloca: port to compilers that can optimize like GCC 4.6.0
12426         * lib/alloca.c (find_stack_direction): New signature, taken from
12427         Autoconf git.  This works with GCC 4.6.0.  This code should never
12428         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12429         be used with other compilers that optimize as well as GCC 4.6.0 does.
12430         (alloca): Adjust to new signature.
12431         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12432         New macro, which patches Autoconf in a similar way.
12433
12434         c-stack: stop worrying about stack direction
12435         * lib/c-stack.c (find_stack_direction): Remove.
12436         (segv_handler): Don't worry about stack direction growth, as it's
12437         too much of a pain to configure this correctly, given how compilers
12438         are optimizing-away our stack-growth detection code.  Instead, assume
12439         that any access to just before or just after the stack is OK.
12440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12441         Don't require AC_FUNC_ALLOCA; no longer needed.
12442
12443 2011-06-20  Eric Blake  <eblake@redhat.com>
12444
12445         test-stat: don't allocate PATH_MAX bytes
12446         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12447         PATH_MAX-sized buffer.
12448         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12449         * modules/stat-tests (Depends-on): Likewise.
12450         * tests/test-fstatat.c (includes): Drop pathmax.h.
12451         * tests/test-stat.c (includes): Likewise.
12452         Reported by Bruno Haible.
12453
12454 2011-06-20  Bruno Haible  <bruno@clisp.org>
12455
12456         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12457         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12458         * lib/float.c: New file.
12459         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12460         REPLACE_FLOAT_LDBL.
12461         * modules/float (Files): Add lib/float.c.
12462         (configure.ac): Invoke AC_LIBOBJ.
12463         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12464
12465 2011-06-20  Bruno Haible  <bruno@clisp.org>
12466
12467         Tests for module 'float'.
12468         * modules/float-tests: New file.
12469         * tests/test-float.c: New file.
12470
12471 2011-06-19  Bruno Haible  <bruno@clisp.org>
12472
12473         isinf: Coding style.
12474         * lib/isinf.c: Use GNU coding style.
12475
12476 2011-06-19  Bruno Haible  <bruno@clisp.org>
12477
12478         linkat test: Avoid test failure on AIX 7.1.
12479         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12480         * tests/test-link.h (test_link): Likewise.
12481
12482 2011-06-19  Bruno Haible  <bruno@clisp.org>
12483
12484         pread test: Avoid test failure on OpenBSD 4.9.
12485         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12486
12487 2011-06-19  Bruno Haible  <bruno@clisp.org>
12488
12489         sprintf-posix: Fix test failure on AIX 7.1.
12490         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12491         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12492         on AIX.
12493         * doc/posix-functions/fprintf.texi: Likewise.
12494         * doc/posix-functions/printf.texi: Likewise.
12495         * doc/posix-functions/snprintf.texi: Likewise.
12496         * doc/posix-functions/sprintf.texi: Likewise.
12497         * doc/posix-functions/vdprintf.texi: Likewise.
12498         * doc/posix-functions/vfprintf.texi: Likewise.
12499         * doc/posix-functions/vprintf.texi: Likewise.
12500         * doc/posix-functions/vsnprintf.texi: Likewise.
12501         * doc/posix-functions/vsprintf.texi: Likewise.
12502
12503 2011-06-19  Bruno Haible  <bruno@clisp.org>
12504
12505         roundl-ieee: Fix test failure on AIX 7.1.
12506         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12507         * doc/posix-functions/roundl.texi: Mention problem with negative
12508         arguments.
12509
12510 2011-06-19  Bruno Haible  <bruno@clisp.org>
12511
12512         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12513         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12514         * doc/posix-functions/round.texi: Mention problem with negative
12515         arguments.
12516         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12517
12518 2011-06-19  Bruno Haible  <bruno@clisp.org>
12519
12520         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12522         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12523         * doc/posix-functions/roundf.texi: Mention problem with negative
12524         arguments.
12525         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12526
12527 2011-06-19  Bruno Haible  <bruno@clisp.org>
12528
12529         ceilf-ieee: Work around bug on MacOS X 10.5.
12530         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12531
12532         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12533         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12534         IEEE compliant, avoid compiler optimizations.
12535         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12536         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12537         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12538         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12539         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12540         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12541         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12543         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12544         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12545
12546 2011-06-19  Bruno Haible  <bruno@clisp.org>
12547
12548         ceilf-ieee: Work around bug on AIX 7.1.
12549         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12550         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12551
12552 2011-06-19  Bruno Haible  <bruno@clisp.org>
12553
12554         ceil-ieee: Work around bug on AIX 7.1.
12555         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12556         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12557
12558 2011-06-18  Bruno Haible  <bruno@clisp.org>
12559
12560         fsync test: Avoid test failure on MacOS X and AIX.
12561         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12562         EINVAL.
12563
12564 2011-06-18  Bruno Haible  <bruno@clisp.org>
12565
12566         openat, fdopendir tests: Fix link errors.
12567         * modules/openat-tests (Depends-on): Add progname.
12568         * modules/fdopendir-tests (Depends-on): Likewise.
12569         * tests/test-fchownat.c: Include progname.h.
12570         (main): Call set_program_name.
12571         * tests/test-fstatat.c: Include progname.h.
12572         (main): Call set_program_name.
12573         * tests/test-mkdirat.c: Include progname.h.
12574         (main): Call set_program_name.
12575         * tests/test-openat.c: Include progname.h.
12576         (main): Call set_program_name.
12577         * tests/test-unlinkat.c: Include progname.h.
12578         (main): Call set_program_name.
12579         * tests/test-fdopendir.c: Include progname.h.
12580         (main): Call set_program_name.
12581
12582 2011-06-18  Bruno Haible  <bruno@clisp.org>
12583
12584         Doc update.
12585         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12586         HP-UX.
12587         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12588
12589 2011-06-18  Bruno Haible  <bruno@clisp.org>
12590
12591         getcwd tests: Avoid compilation error on HP-UX 11.31.
12592         * modules/getcwd-tests (Depends-on): Add pathmax.
12593         * tests/test-getcwd.c: Include pathmax.h.
12594
12595 2011-06-18  Bruno Haible  <bruno@clisp.org>
12596
12597         isfinite, isinf: Fix link error on AIX 6 and 7.
12598         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12599         needed, also test the macro with a 'float' argument.
12600         * m4/isinf.m4 (gl_ISINF): Likewise.
12601
12602 2011-06-18  Bruno Haible  <bruno@clisp.org>
12603
12604         getloadavg: Don't clobber LIBS. Regression from previous commit.
12605         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12606         AC_CHECK_LIB from here...
12607         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12608         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12609         gl_func_getloadavg_done.
12610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12611
12612 2011-06-18  Bruno Haible  <bruno@clisp.org>
12613
12614         clean-temp: Improve documentation.
12615         * lib/clean-temp.h: Explain better how to use this module.
12616         Reported by John Darrington <john@darrington.wattle.id.au>.
12617
12618 2011-06-17  Bruno Haible  <bruno@clisp.org>
12619
12620         pread, pwrite: Avoid cc warning on AIX.
12621         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12622         (pwrite): Likewise.
12623
12624 2011-06-17  Bruno Haible  <bruno@clisp.org>
12625
12626         spawn-pipe tests: Fix link error.
12627         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12629
12630 2011-06-17  Bruno Haible  <bruno@clisp.org>
12631
12632         Tests: Remove unnecessary dependency.
12633         * modules/canonicalize-tests (Depends-on): Remove progname.
12634         * modules/chown-tests (Depends-on): Likewise.
12635         * modules/dirname-tests (Depends-on): Likewise.
12636         * modules/fdopendir-tests (Depends-on): Likewise.
12637         * modules/fdutimensat-tests (Depends-on): Likewise.
12638         * modules/hash-tests (Depends-on): Likewise.
12639         * modules/lchown-tests (Depends-on): Likewise.
12640         * modules/linkat-tests (Depends-on): Likewise.
12641         * modules/renameat-tests (Depends-on): Likewise.
12642         * modules/spawn-pipe-tests (Depends-on): Likewise.
12643         * modules/utimensat-tests (Depends-on): Likewise.
12644
12645 2011-06-17  Bruno Haible  <bruno@clisp.org>
12646
12647         spawn-pipe tests: Fix link error.
12648         * tests/test-spawn-pipe-child.c: Undefine fflush.
12649
12650 2011-06-17  Bruno Haible  <bruno@clisp.org>
12651
12652         Fix tests link errors.
12653         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12654         * modules/chown-tests (Makefile.am): Don't link test-chown with
12655         LIBINTL.
12656         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12657         LIBINTL.
12658         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12659         LIBINTL.
12660         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12661         LIBINTL.
12662
12663 2011-06-16  Bruno Haible  <bruno@clisp.org>
12664
12665         crypto/gc-sha1: Fix recent regression.
12666         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12667         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12668
12669         crypto/gc-md5: Fix recent regression.
12670         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12671
12672         crypto/gc-md4: Fix recent regression.
12673         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12674         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12675
12676         crypto/gc-arctwo: Fix recent regression.
12677         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12678         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12679
12680         crypto/gc-rijndael: Fix recent regression.
12681         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12682         (configure.ac): Invoke AC_LIBOBJ here.
12683         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12685
12686         crypto/gc-hmac-sha1: Fix recent regression.
12687         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12688         (configure.ac): Invoke AC_LIBOBJ here.
12689         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12691
12692         crypto/gc-hmac-md5: Fix recent regression.
12693         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12694         (configure.ac): Invoke AC_LIBOBJ here.
12695         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12697
12698         crypto/gc-des: Fix recent regression.
12699         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12700         (configure.ac): Invoke AC_LIBOBJ here.
12701         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12703
12704         crypto/gc-arcfour: Fix recent regression.
12705         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12706         (configure.ac): Invoke AC_LIBOBJ here.
12707         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12709
12710 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12711
12712         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12713         After the 2011-05-21 change, this macro requires
12714         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12715         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12716
12717 2011-06-16  Bruno Haible  <bruno@clisp.org>
12718
12719         fprintftime: Move AC_LIBOBJ invocations to module description.
12720         * m4/fprintftime.m4: Remove file.
12721         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12722         (configure.ac): Remove gl_FPRINTFTIME call.
12723         (Makefile.am): Augment lib_SOURCES.
12724         Reported by Jim Meyering.
12725
12726 2011-06-16  Bruno Haible  <bruno@clisp.org>
12727
12728         tmpfile-safer: Finish 2011-05-23 commit.
12729         * m4/stdio-safer.m4: Really remove file.
12730         Reported by Jim Meyering.
12731
12732 2011-06-16  Bruno Haible  <bruno@clisp.org>
12733
12734         syntax-check: Fix typo.
12735         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12736         printf-posix.m4.
12737         Reported by Jim Meyering.
12738
12739 2011-06-13  Jim Meyering  <meyering@redhat.com>
12740
12741         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12742         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12743
12744 2011-05-23  Bruno Haible  <bruno@clisp.org>
12745
12746         yesno: Move AC_LIBOBJ invocations to module description.
12747         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12748         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12749
12750 2011-05-23  Bruno Haible  <bruno@clisp.org>
12751
12752         xstrtol: Move AC_LIBOBJ invocations to module description.
12753         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12754         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12755
12756 2011-05-23  Bruno Haible  <bruno@clisp.org>
12757
12758         xstrtold: Move AC_LIBOBJ invocations to module description.
12759         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12760         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12761
12762 2011-05-23  Bruno Haible  <bruno@clisp.org>
12763
12764         xstrtod: Move AC_LIBOBJ invocations to module description.
12765         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12766         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12767
12768 2011-05-23  Bruno Haible  <bruno@clisp.org>
12769
12770         xnanosleep: Move AC_LIBOBJ invocations to module description.
12771         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12772         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12773
12774 2011-05-23  Bruno Haible  <bruno@clisp.org>
12775
12776         xgetcwd: Move AC_LIBOBJ invocations to module description.
12777         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12778         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12779
12780 2011-05-23  Bruno Haible  <bruno@clisp.org>
12781
12782         xalloc: Move AC_LIBOBJ invocations to module description.
12783         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12784         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12785
12786 2011-05-23  Bruno Haible  <bruno@clisp.org>
12787
12788         write-any-file: Move AC_LIBOBJ invocations to module description.
12789         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12790         invocation.
12791         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12792
12793 2011-05-23  Bruno Haible  <bruno@clisp.org>
12794
12795         utimens: Move AC_LIBOBJ invocations to module description.
12796         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12797         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12798
12799 2011-05-23  Bruno Haible  <bruno@clisp.org>
12800
12801         utimecmp: Move AC_LIBOBJ invocations to module description.
12802         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12803         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12804
12805 2011-05-23  Bruno Haible  <bruno@clisp.org>
12806
12807         userspec: Move AC_LIBOBJ invocations to module description.
12808         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12809         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12810
12811 2011-05-23  Bruno Haible  <bruno@clisp.org>
12812
12813         unlinkdir: Move AC_LIBOBJ invocations to module description.
12814         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12815         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12816
12817 2011-05-23  Bruno Haible  <bruno@clisp.org>
12818
12819         unistd-safer: Move AC_LIBOBJ invocations to module description.
12820         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12821         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12822
12823 2011-05-23  Bruno Haible  <bruno@clisp.org>
12824
12825         tempname: Move AC_LIBOBJ invocations to module description.
12826         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12827         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12828
12829 2011-05-23  Bruno Haible  <bruno@clisp.org>
12830
12831         strftime: Move AC_LIBOBJ invocations to module description.
12832         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12833         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12834
12835 2011-05-23  Bruno Haible  <bruno@clisp.org>
12836
12837         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12838         * m4/stdlib-safer.m4: Remove file.
12839         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12840         (configure.ac): Remove gl_STDLIB_SAFER call.
12841         (Makefile.am): Augment lib_SOURCES.
12842
12843 2011-05-23  Bruno Haible  <bruno@clisp.org>
12844
12845         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12846         * m4/stdio-safer.m4: Remove file.
12847         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12848         (configure.ac): Remove gl_TMPFILE_SAFER call.
12849         (Makefile.am): Augment lib_SOURCES.
12850
12851 2011-05-23  Bruno Haible  <bruno@clisp.org>
12852
12853         popen-safer: Move AC_LIBOBJ invocations to module description.
12854         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12855         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12856         (configure.ac): Remove gl_POPEN_SAFER call.
12857         (Makefile.am): Augment lib_SOURCES.
12858
12859 2011-05-23  Bruno Haible  <bruno@clisp.org>
12860
12861         freopen-safer: Move AC_LIBOBJ invocations to module description.
12862         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12863         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12864         (configure.ac): Remove gl_FREOPEN_SAFER call.
12865         (Makefile.am): Augment lib_SOURCES.
12866
12867 2011-05-23  Bruno Haible  <bruno@clisp.org>
12868
12869         fopen-safer: Move AC_LIBOBJ invocations to module description.
12870         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12871         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12872         (configure.ac): Remove gl_FOPEN_SAFER call.
12873         (Makefile.am): Augment lib_SOURCES.
12874
12875 2011-05-23  Bruno Haible  <bruno@clisp.org>
12876
12877         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12878         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12879         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12880
12881 2011-05-23  Bruno Haible  <bruno@clisp.org>
12882
12883         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12884         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12885         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12886
12887 2011-05-23  Bruno Haible  <bruno@clisp.org>
12888
12889         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12890         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12891         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12892
12893 2011-05-23  Bruno Haible  <bruno@clisp.org>
12894
12895         settime: Move AC_LIBOBJ invocations to module description.
12896         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12897         * modules/settime (Makefile.am): Augment lib_SOURCES.
12898
12899 2011-05-23  Bruno Haible  <bruno@clisp.org>
12900
12901         savedir: Move AC_LIBOBJ invocations to module description.
12902         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12903         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12904
12905 2011-05-23  Bruno Haible  <bruno@clisp.org>
12906
12907         save-cwd: Move AC_LIBOBJ invocations to module description.
12908         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12909         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12910
12911 2011-05-23  Bruno Haible  <bruno@clisp.org>
12912
12913         same: Move AC_LIBOBJ invocations to module description.
12914         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12915         * modules/same (Makefile.am): Augment lib_SOURCES.
12916
12917 2011-05-23  Bruno Haible  <bruno@clisp.org>
12918
12919         safe-write: Move AC_LIBOBJ invocations to module description.
12920         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12921         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12922         instead of gl_SAFE_WRITE.
12923         (Makefile.am): Augment lib_SOURCES.
12924
12925 2011-05-23  Bruno Haible  <bruno@clisp.org>
12926
12927         safe-read: Move AC_LIBOBJ invocations to module description.
12928         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12929         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12930         of gl_SAFE_READ.
12931         (Makefile.am): Augment lib_SOURCES.
12932
12933 2011-05-23  Bruno Haible  <bruno@clisp.org>
12934
12935         safe-alloc: Move AC_LIBOBJ invocations to module description.
12936         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12937         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12938
12939 2011-05-23  Bruno Haible  <bruno@clisp.org>
12940
12941         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12942         * m4/rijndael.m4: Remove file.
12943         * modules/crypto/rijndael (Files): Remove it.
12944         (configure.ac): Remove gl_RIJNDAEL call.
12945         (Makefile.am): Augment lib_SOURCES.
12946
12947 2011-05-23  Bruno Haible  <bruno@clisp.org>
12948
12949         readtokens: Move AC_LIBOBJ invocations to module description.
12950         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12951         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12952
12953 2011-05-23  Bruno Haible  <bruno@clisp.org>
12954
12955         read-file: Move AC_LIBOBJ invocations to module description.
12956         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12957         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12958         of gl_FUNC_READ_FILE.
12959         (Makefile.am): Augment lib_SOURCES.
12960
12961 2011-05-23  Bruno Haible  <bruno@clisp.org>
12962
12963         quotearg: Move AC_LIBOBJ invocations to module description.
12964         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12965         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12966
12967 2011-05-23  Bruno Haible  <bruno@clisp.org>
12968
12969         quote: Move AC_LIBOBJ invocations to module description.
12970         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12971         * modules/quote (Makefile.am): Augment lib_SOURCES.
12972
12973 2011-05-23  Bruno Haible  <bruno@clisp.org>
12974
12975         posixver: Move AC_LIBOBJ invocations to module description.
12976         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12977         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12978
12979 2011-05-23  Bruno Haible  <bruno@clisp.org>
12980
12981         posixtm: Move AC_LIBOBJ invocations to module description.
12982         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12983         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12984
12985 2011-05-23  Bruno Haible  <bruno@clisp.org>
12986
12987         physmem: Move AC_LIBOBJ invocations to module description.
12988         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12989         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12990
12991 2011-05-23  Bruno Haible  <bruno@clisp.org>
12992
12993         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12994         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12995         invocation.
12996         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12997
12998 2011-05-23  Bruno Haible  <bruno@clisp.org>
12999
13000         mpsort: Move AC_LIBOBJ invocations to module description.
13001         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13002         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13003
13004 2011-05-23  Bruno Haible  <bruno@clisp.org>
13005
13006         modechange: Move AC_LIBOBJ invocations to module description.
13007         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13008         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13009
13010 2011-05-23  Bruno Haible  <bruno@clisp.org>
13011
13012         mkdir-p: Move AC_LIBOBJ invocations to module description.
13013         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13014         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13015
13016 2011-05-23  Bruno Haible  <bruno@clisp.org>
13017
13018         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13019         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13020         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13021
13022 2011-05-23  Bruno Haible  <bruno@clisp.org>
13023
13024         mgetgroups: Move AC_LIBOBJ invocations to module description.
13025         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13026         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13027
13028 2011-05-23  Bruno Haible  <bruno@clisp.org>
13029
13030         memxor: Move AC_LIBOBJ invocations to module description.
13031         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13032         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13033
13034 2011-05-23  Bruno Haible  <bruno@clisp.org>
13035
13036         memcoll: Move AC_LIBOBJ invocations to module description.
13037         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13038         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13039
13040 2011-05-23  Bruno Haible  <bruno@clisp.org>
13041
13042         memcasecmp: Move AC_LIBOBJ invocations to module description.
13043         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13044         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13045
13046 2011-05-23  Bruno Haible  <bruno@clisp.org>
13047
13048         crypto/md5: Move AC_LIBOBJ invocations to module description.
13049         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13050         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13051
13052 2011-05-23  Bruno Haible  <bruno@clisp.org>
13053
13054         crypto/md4: Move AC_LIBOBJ invocations to module description.
13055         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13056         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13057
13058 2011-05-23  Bruno Haible  <bruno@clisp.org>
13059
13060         crypto/md2: Move AC_LIBOBJ invocations to module description.
13061         * m4/md2.m4: Remove file.
13062         * modules/crypto/md2 (Files): Remove it.
13063         (configure.ac): Remove gl_MD2 call.
13064         (Makefile.am): Augment lib_SOURCES.
13065
13066 2011-05-23  Bruno Haible  <bruno@clisp.org>
13067
13068         long-options: Move AC_LIBOBJ invocations to module description.
13069         * m4/long-options.m4: Remove file.
13070         * modules/long-options (Files): Remove it.
13071         (configure.ac): Remove gl_LONG_OPTIONS call.
13072         (Makefile.am): Augment lib_SOURCES.
13073
13074 2011-05-23  Bruno Haible  <bruno@clisp.org>
13075
13076         i-ring: Move AC_LIBOBJ invocations to module description.
13077         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13078         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13079
13080 2011-05-23  Bruno Haible  <bruno@clisp.org>
13081
13082         idcache: Move AC_LIBOBJ invocations to module description.
13083         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13084         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13085
13086 2011-05-23  Bruno Haible  <bruno@clisp.org>
13087
13088         human: Move AC_LIBOBJ invocations to module description.
13089         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13090         * modules/human (Makefile.am): Augment lib_SOURCES.
13091
13092 2011-05-23  Bruno Haible  <bruno@clisp.org>
13093
13094         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13095         * m4/hmac-sha1.m4: Remove file.
13096         * modules/crypto/hmac-sha1 (Files): Remove it.
13097         (configure.ac): Remove gl_HMAC_SHA1 call.
13098         (Makefile.am): Augment lib_SOURCES.
13099
13100 2011-05-23  Bruno Haible  <bruno@clisp.org>
13101
13102         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13103         * m4/hmac-md5.m4: Remove file.
13104         * modules/crypto/hmac-md5 (Files): Remove it.
13105         (configure.ac): Remove gl_HMAC_MD5 call.
13106         (Makefile.am): Augment lib_SOURCES.
13107
13108 2011-05-23  Bruno Haible  <bruno@clisp.org>
13109
13110         hash: Move AC_LIBOBJ invocations to module description.
13111         * m4/hash.m4: Remove file.
13112         * modules/hash (Files): Remove it.
13113         (configure.ac): Remove gl_HASH call.
13114         (Makefile.am): Augment lib_SOURCES.
13115
13116 2011-05-23  Bruno Haible  <bruno@clisp.org>
13117
13118         hard-locale: Move AC_LIBOBJ invocations to module description.
13119         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13120         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13121
13122 2011-05-23  Bruno Haible  <bruno@clisp.org>
13123
13124         getugroups: Move AC_LIBOBJ invocations to module description.
13125         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13126         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13127
13128 2011-05-23  Bruno Haible  <bruno@clisp.org>
13129
13130         gettime: Move AC_LIBOBJ invocations to module description.
13131         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13132         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13133
13134 2011-05-23  Bruno Haible  <bruno@clisp.org>
13135
13136         getndelim2: Move AC_LIBOBJ invocations to module description.
13137         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13138         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-23  Bruno Haible  <bruno@clisp.org>
13141
13142         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13143         * m4/gc-pbkdf2-sha1.m4: Remove file.
13144         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13145         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13146         (Makefile.am): Augment lib_SOURCES.
13147
13148 2011-05-23  Bruno Haible  <bruno@clisp.org>
13149
13150         fts: Move AC_LIBOBJ invocations to module description.
13151         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13152         * modules/fts (configure.ac): ... to here.
13153
13154 2011-05-23  Bruno Haible  <bruno@clisp.org>
13155
13156         file-type: Move AC_LIBOBJ invocations to module description.
13157         * m4/file-type.m4: Remove file.
13158         * modules/file-type (Files): Remove it.
13159         (configure.ac): Remove gl_FILE_TYPE call.
13160         (Makefile.am): Augment lib_SOURCES.
13161
13162 2011-05-23  Bruno Haible  <bruno@clisp.org>
13163
13164         filenamecat*: Respect rules for use of AC_LIBOBJ.
13165         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13166         Remove AC_LIBOBJ invocation.
13167         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13168         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13169
13170 2011-05-23  Bruno Haible  <bruno@clisp.org>
13171
13172         filemode: Move AC_LIBOBJ invocations to module description.
13173         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13174         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13175
13176 2011-05-23  Bruno Haible  <bruno@clisp.org>
13177
13178         openat-safer: Move AC_LIBOBJ invocations to module description.
13179         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13180         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13181
13182 2011-05-23  Bruno Haible  <bruno@clisp.org>
13183
13184         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13185         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13186         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13187
13188 2011-05-23  Bruno Haible  <bruno@clisp.org>
13189
13190         exclude: Move AC_LIBOBJ invocations to module description.
13191         * m4/exclude.m4: Remove file.
13192         * modules/exclude (Files): Remove it.
13193         (configure.ac): Remove gl_EXCLUDE call.
13194         (Makefile.am): Augment lib_SOURCES.
13195
13196 2011-05-23  Bruno Haible  <bruno@clisp.org>
13197
13198         dirname*: Respect rules for use of AC_LIBOBJ.
13199         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13200         invocations.
13201         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13202         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13203
13204 2011-05-23  Bruno Haible  <bruno@clisp.org>
13205
13206         dirent-safer: Move AC_LIBOBJ invocations to module description.
13207         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13208         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13209
13210 2011-05-23  Bruno Haible  <bruno@clisp.org>
13211
13212         crypto/des: Move AC_LIBOBJ invocations to module description.
13213         * m4/des.m4: Remove file.
13214         * modules/crypto/des (Files): Remove it.
13215         (configure.ac): Remove gl_DES call.
13216         (Makefile.am): Augment lib_SOURCES.
13217
13218 2011-05-23  Bruno Haible  <bruno@clisp.org>
13219
13220         cycle-check: Move AC_LIBOBJ invocations to module description.
13221         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13222         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13223
13224 2011-05-23  Bruno Haible  <bruno@clisp.org>
13225
13226         c-strtold: Move AC_LIBOBJ invocations to module description.
13227         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13228         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         c-strtod: Move AC_LIBOBJ invocations to module description.
13233         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13234         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13235
13236 2011-05-23  Bruno Haible  <bruno@clisp.org>
13237
13238         crc: Move AC_LIBOBJ invocations to module description.
13239         * m4/crc.m4: Remove file.
13240         * modules/crc (Files): Remove it.
13241         (configure.ac): Remove gl_CRC call.
13242         (Makefile.am): Augment lib_SOURCES.
13243
13244 2011-05-23  Bruno Haible  <bruno@clisp.org>
13245
13246         close-stream: Move AC_LIBOBJ invocations to module description.
13247         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13248         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13249
13250 2011-05-23  Bruno Haible  <bruno@clisp.org>
13251
13252         closeout: Move AC_LIBOBJ invocations to module description.
13253         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13254         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13255
13256 2011-05-23  Bruno Haible  <bruno@clisp.org>
13257
13258         closein: Move AC_LIBOBJ invocations to module description.
13259         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13260         * modules/closein (Makefile.am): Augment lib_SOURCES.
13261
13262 2011-05-23  Bruno Haible  <bruno@clisp.org>
13263
13264         cloexec: Move AC_LIBOBJ invocations to module description.
13265         * m4/cloexec.m4: Remove file.
13266         * modules/cloexec (Files): Remove it.
13267         (configure.ac): Remove gl_CLOEXEC call.
13268         (Makefile.am): Augment lib_SOURCES.
13269
13270 2011-05-23  Bruno Haible  <bruno@clisp.org>
13271
13272         check-version: Move AC_LIBOBJ invocations to module description.
13273         * m4/check-version.m4: Remove file.
13274         * modules/check-version (Files): Remove it.
13275         (configure.ac): Remove gl_CHECK_VERSION call.
13276         (Makefile.am): Augment lib_SOURCES.
13277
13278 2011-05-23  Bruno Haible  <bruno@clisp.org>
13279
13280         chdir-safer: Move AC_LIBOBJ invocations to module description.
13281         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13282         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13283
13284 2011-05-23  Bruno Haible  <bruno@clisp.org>
13285
13286         canonicalize: Move AC_LIBOBJ invocations to module description.
13287         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13288         AC_LIBOBJ invocation.
13289         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13290
13291 2011-05-23  Bruno Haible  <bruno@clisp.org>
13292
13293         canon-host: Move AC_LIBOBJ invocations to module description.
13294         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13295         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13296         instead of gl_CANON_HOST.
13297         (Makefile.am): Augment lib_SOURCES.
13298
13299 2011-05-23  Bruno Haible  <bruno@clisp.org>
13300
13301         backupfile: Move AC_LIBOBJ invocations to module description.
13302         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13303         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13304
13305 2011-05-23  Bruno Haible  <bruno@clisp.org>
13306
13307         argmatch: Move AC_LIBOBJ invocations to module description.
13308         * m4/argmatch.m4: Remove file.
13309         * modules/argmatch (Files): Remove it.
13310         (configure.ac): Remove gl_ARGMATCH call.
13311         (Makefile.am): Augment lib_SOURCES.
13312
13313 2011-05-23  Bruno Haible  <bruno@clisp.org>
13314
13315         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13316         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13317         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13318
13319 2011-05-23  Bruno Haible  <bruno@clisp.org>
13320
13321         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13322         * m4/arcfour.m4: Remove file.
13323         * modules/crypto/arcfour (Files): Remove it.
13324         (configure.ac): Remove gl_ARCFOUR call.
13325         (Makefile.am): Augment lib_SOURCES.
13326
13327 2011-05-22  Bruno Haible  <bruno@clisp.org>
13328
13329         write: Move AC_LIBOBJ invocations to module description.
13330         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13331         * modules/write (configure.ac): ... to here.
13332
13333 2011-05-22  Bruno Haible  <bruno@clisp.org>
13334
13335         wmemset: Move AC_LIBOBJ invocations to module description.
13336         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13337         here...
13338         * modules/wmemset (configure.ac): ... to here.
13339
13340 2011-05-22  Bruno Haible  <bruno@clisp.org>
13341
13342         wmemmove: Move AC_LIBOBJ invocations to module description.
13343         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13344         here...
13345         * modules/wmemmove (configure.ac): ... to here.
13346
13347 2011-05-22  Bruno Haible  <bruno@clisp.org>
13348
13349         wmemcpy: Move AC_LIBOBJ invocations to module description.
13350         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13351         here...
13352         * modules/wmemcpy (configure.ac): ... to here.
13353
13354 2011-05-22  Bruno Haible  <bruno@clisp.org>
13355
13356         wmemcmp: Move AC_LIBOBJ invocations to module description.
13357         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13358         here...
13359         * modules/wmemcmp (configure.ac): ... to here.
13360
13361 2011-05-22  Bruno Haible  <bruno@clisp.org>
13362
13363         wmemchr: Move AC_LIBOBJ invocations to module description.
13364         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13365         here...
13366         * modules/wmemchr (configure.ac): ... to here.
13367
13368 2011-05-22  Bruno Haible  <bruno@clisp.org>
13369
13370         wcswidth: Move AC_LIBOBJ invocations to module description.
13371         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13372         here...
13373         * modules/wcswidth (configure.ac): ... to here.
13374
13375 2011-05-22  Bruno Haible  <bruno@clisp.org>
13376
13377         wcwidth: Respect rules for use of AC_LIBOBJ.
13378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13379         invocation from here...
13380         * modules/wcwidth (configure.ac): ... to here.
13381         (Depends-on): Update conditions.
13382
13383 2011-05-22  Bruno Haible  <bruno@clisp.org>
13384
13385         wctype: Move AC_LIBOBJ invocations to module description.
13386         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13387         invocation from here...
13388         * modules/wctype (configure.ac): ... to here.
13389         (Depends-on): Update conditions.
13390
13391 2011-05-22  Bruno Haible  <bruno@clisp.org>
13392
13393         wctrans: Move AC_LIBOBJ invocations to module description.
13394         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13395         invocation from here...
13396         * modules/wctrans (configure.ac): ... to here.
13397
13398 2011-05-22  Bruno Haible  <bruno@clisp.org>
13399
13400         wctomb: Move AC_LIBOBJ invocations to module description.
13401         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13402         invocations from here...
13403         * modules/wctomb (configure.ac): ... to here.
13404
13405 2011-05-22  Bruno Haible  <bruno@clisp.org>
13406
13407         wctob: Move AC_LIBOBJ invocations to module description.
13408         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13409         gl_PREREQ_WCTOB invocations from here...
13410         * modules/wctob (configure.ac): ... to here.
13411         (Depends-on): Update conditions.
13412
13413 2011-05-22  Bruno Haible  <bruno@clisp.org>
13414
13415         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13416         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13417         here...
13418         * modules/wcsxfrm (configure.ac): ... to here.
13419
13420 2011-05-22  Bruno Haible  <bruno@clisp.org>
13421
13422         wcstok: Move AC_LIBOBJ invocations to module description.
13423         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13424         * modules/wcstok (configure.ac): ... to here.
13425
13426 2011-05-22  Bruno Haible  <bruno@clisp.org>
13427
13428         wcsstr: Move AC_LIBOBJ invocations to module description.
13429         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13430         * modules/wcsstr (configure.ac): ... to here.
13431
13432 2011-05-22  Bruno Haible  <bruno@clisp.org>
13433
13434         wcsspn: Move AC_LIBOBJ invocations to module description.
13435         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13436         * modules/wcsspn (configure.ac): ... to here.
13437
13438 2011-05-22  Bruno Haible  <bruno@clisp.org>
13439
13440         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13441         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13442         gl_PREREQ_WCSRTOMBS invocations from here...
13443         * modules/wcsrtombs (configure.ac): ... to here.
13444
13445 2011-05-22  Bruno Haible  <bruno@clisp.org>
13446
13447         wcsrchr: Move AC_LIBOBJ invocations to module description.
13448         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13449         here...
13450         * modules/wcsrchr (configure.ac): ... to here.
13451
13452 2011-05-22  Bruno Haible  <bruno@clisp.org>
13453
13454         wcspbrk: Move AC_LIBOBJ invocations to module description.
13455         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13456         here...
13457         * modules/wcspbrk (configure.ac): ... to here.
13458
13459 2011-05-22  Bruno Haible  <bruno@clisp.org>
13460
13461         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13462         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13463         gl_PREREQ_WCSNRTOMBS invocations from here...
13464         * modules/wcsnrtombs (configure.ac): ... to here.
13465
13466 2011-05-22  Bruno Haible  <bruno@clisp.org>
13467
13468         wcsnlen: Move AC_LIBOBJ invocations to module description.
13469         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13470         here...
13471         * modules/wcsnlen (configure.ac): ... to here.
13472
13473 2011-05-22  Bruno Haible  <bruno@clisp.org>
13474
13475         wcsncpy: Move AC_LIBOBJ invocations to module description.
13476         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13477         here...
13478         * modules/wcsncpy (configure.ac): ... to here.
13479
13480 2011-05-22  Bruno Haible  <bruno@clisp.org>
13481
13482         wcsncmp: Move AC_LIBOBJ invocations to module description.
13483         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13484         here...
13485         * modules/wcsncmp (configure.ac): ... to here.
13486
13487 2011-05-22  Bruno Haible  <bruno@clisp.org>
13488
13489         wcsncat: Move AC_LIBOBJ invocations to module description.
13490         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13491         here...
13492         * modules/wcsncat (configure.ac): ... to here.
13493
13494 2011-05-22  Bruno Haible  <bruno@clisp.org>
13495
13496         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13497         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13498         from here...
13499         * modules/wcsncasecmp (configure.ac): ... to here.
13500
13501 2011-05-22  Bruno Haible  <bruno@clisp.org>
13502
13503         wcslen: Move AC_LIBOBJ invocations to module description.
13504         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13505         * modules/wcslen (configure.ac): ... to here.
13506
13507 2011-05-22  Bruno Haible  <bruno@clisp.org>
13508
13509         wcsdup: Move AC_LIBOBJ invocations to module description.
13510         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13511         * modules/wcsdup (configure.ac): ... to here.
13512
13513 2011-05-22  Bruno Haible  <bruno@clisp.org>
13514
13515         wcscspn: Move AC_LIBOBJ invocations to module description.
13516         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13517         here...
13518         * modules/wcscspn (configure.ac): ... to here.
13519
13520 2011-05-22  Bruno Haible  <bruno@clisp.org>
13521
13522         wcscpy: Move AC_LIBOBJ invocations to module description.
13523         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13524         * modules/wcscpy (configure.ac): ... to here.
13525
13526 2011-05-22  Bruno Haible  <bruno@clisp.org>
13527
13528         wcscoll: Move AC_LIBOBJ invocations to module description.
13529         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13530         here...
13531         * modules/wcscoll (configure.ac): ... to here.
13532
13533 2011-05-22  Bruno Haible  <bruno@clisp.org>
13534
13535         wcscmp: Move AC_LIBOBJ invocations to module description.
13536         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13537         * modules/wcscmp (configure.ac): ... to here.
13538
13539 2011-05-22  Bruno Haible  <bruno@clisp.org>
13540
13541         wcschr: Move AC_LIBOBJ invocations to module description.
13542         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13543         * modules/wcschr (configure.ac): ... to here.
13544
13545 2011-05-22  Bruno Haible  <bruno@clisp.org>
13546
13547         wcscat: Move AC_LIBOBJ invocations to module description.
13548         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13549         * modules/wcscat (configure.ac): ... to here.
13550
13551 2011-05-22  Bruno Haible  <bruno@clisp.org>
13552
13553         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13554         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13555         here...
13556         * modules/wcscasecmp (configure.ac): ... to here.
13557
13558 2011-05-22  Bruno Haible  <bruno@clisp.org>
13559
13560         wcrtomb: Move AC_LIBOBJ invocations to module description.
13561         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13562         invocations from here...
13563         * modules/wcrtomb (configure.ac): ... to here.
13564
13565 2011-05-22  Bruno Haible  <bruno@clisp.org>
13566
13567         wcpncpy: Move AC_LIBOBJ invocations to module description.
13568         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13569         here...
13570         * modules/wcpncpy (configure.ac): ... to here.
13571
13572 2011-05-22  Bruno Haible  <bruno@clisp.org>
13573
13574         wcpcpy: Move AC_LIBOBJ invocations to module description.
13575         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13576         * modules/wcpcpy (configure.ac): ... to here.
13577
13578 2011-05-22  Bruno Haible  <bruno@clisp.org>
13579
13580         waitpid: Move AC_LIBOBJ invocations to module description.
13581         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13582         invocation from here...
13583         * modules/waitpid (configure.ac): ... to here.
13584
13585 2011-05-22  Bruno Haible  <bruno@clisp.org>
13586
13587         utimensat: Move AC_LIBOBJ invocations to module description.
13588         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13589         here...
13590         * modules/utimensat (configure.ac): ... to here.
13591
13592 2011-05-22  Bruno Haible  <bruno@clisp.org>
13593
13594         usleep: Move AC_LIBOBJ invocations to module description.
13595         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13596         here...
13597         * modules/usleep (configure.ac): ... to here.
13598
13599 2011-05-22  Bruno Haible  <bruno@clisp.org>
13600
13601         unlockpt: Move AC_LIBOBJ invocations to module description.
13602         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13603         gl_PREREQ_UNLOCKPT invocations from here...
13604         * modules/unlockpt (configure.ac): ... to here.
13605
13606 2011-05-22  Bruno Haible  <bruno@clisp.org>
13607
13608         unlink: Respect rules for use of AC_LIBOBJ.
13609         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13610         * modules/unlink (configure.ac): ... to here.
13611
13612 2011-05-22  Bruno Haible  <bruno@clisp.org>
13613
13614         uname: Move AC_LIBOBJ invocations to module description.
13615         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13617         here...
13618         * modules/uname (configure.ac): ... to here.
13619
13620 2011-05-22  Bruno Haible  <bruno@clisp.org>
13621
13622         ttyname_r: Move AC_LIBOBJ invocations to module description.
13623         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13624         gl_PREREQ_TTYNAME_R invocations from here...
13625         * modules/ttyname_r (configure.ac): ... to here.
13626
13627 2011-05-22  Bruno Haible  <bruno@clisp.org>
13628
13629         tsearch: Move AC_LIBOBJ invocations to module description.
13630         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13631         invocations from here...
13632         * modules/tsearch (configure.ac): ... to here.
13633
13634 2011-05-22  Bruno Haible  <bruno@clisp.org>
13635
13636         towctrans: Move AC_LIBOBJ invocations to module description.
13637         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13638         AC_LIBOBJ invocation from here...
13639         * modules/towctrans (configure.ac): ... to here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         tmpfile: Move AC_LIBOBJ invocations to module description.
13644         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13645         invocations from here...
13646         * modules/tmpfile (configure.ac): ... to here.
13647
13648 2011-05-22  Bruno Haible  <bruno@clisp.org>
13649
13650         times: Move AC_LIBOBJ invocations to module description.
13651         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13652         * modules/times (configure.ac): ... to here.
13653
13654 2011-05-22  Bruno Haible  <bruno@clisp.org>
13655
13656         time_r: Move AC_LIBOBJ invocations to module description.
13657         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13658         invocations from here...
13659         * modules/time_r (configure.ac): ... to here.
13660
13661 2011-05-22  Bruno Haible  <bruno@clisp.org>
13662
13663         timegm: Move AC_LIBOBJ invocations to module description.
13664         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13665         invocations from here...
13666         * modules/timegm (configure.ac): ... to here.
13667
13668 2011-05-22  Bruno Haible  <bruno@clisp.org>
13669
13670         tcgetsid: Move AC_LIBOBJ invocations to module description.
13671         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13672         and gl_PREREQ_TCGETSID invocations from here...
13673         * modules/tcgetsid (configure.ac): ... to here.
13674         (Depends-on): Update conditions.
13675
13676 2011-05-22  Bruno Haible  <bruno@clisp.org>
13677
13678         symlinkat: Move AC_LIBOBJ invocations to module description.
13679         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13680         here...
13681         * modules/symlinkat (configure.ac): ... to here.
13682
13683 2011-05-22  Bruno Haible  <bruno@clisp.org>
13684
13685         symlink: Move AC_LIBOBJ invocations to module description.
13686         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13687         here...
13688         * modules/symlink (configure.ac): ... to here.
13689
13690 2011-05-22  Bruno Haible  <bruno@clisp.org>
13691
13692         strverscmp: Move AC_LIBOBJ invocations to module description.
13693         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13695         from here...
13696         * modules/strverscmp (configure.ac): ... to here.
13697
13698 2011-05-22  Bruno Haible  <bruno@clisp.org>
13699
13700         strtok_r: Move AC_LIBOBJ invocations to module description.
13701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13702         and gl_PREREQ_STRTOK_R invocations from here...
13703         * modules/strtok_r (configure.ac): ... to here.
13704         (Depends-on): Update conditions.
13705
13706 2011-05-22  Bruno Haible  <bruno@clisp.org>
13707
13708         strtoumax: Move AC_LIBOBJ invocations to module description.
13709         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13710         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13711         from here...
13712         * modules/strtoumax (configure.ac): ... to here.
13713
13714 2011-05-22  Bruno Haible  <bruno@clisp.org>
13715
13716         strtoimax: Move AC_LIBOBJ invocations to module description.
13717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13718         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13719         from here...
13720         * modules/strtoimax (configure.ac): ... to here.
13721
13722 2011-05-22  Bruno Haible  <bruno@clisp.org>
13723
13724         strtoull: Move AC_LIBOBJ invocations to module description.
13725         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13727         from here...
13728         * modules/strtoull (configure.ac): ... to here.
13729
13730 2011-05-22  Bruno Haible  <bruno@clisp.org>
13731
13732         strtoll: Move AC_LIBOBJ invocations to module description.
13733         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13734         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13735         here...
13736         * modules/strtoll (configure.ac): ... to here.
13737
13738 2011-05-22  Bruno Haible  <bruno@clisp.org>
13739
13740         strtoul: Move AC_LIBOBJ invocations to module description.
13741         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13742         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13743         * modules/strtoul (configure.ac): ... to here.
13744
13745 2011-05-22  Bruno Haible  <bruno@clisp.org>
13746
13747         strtol: Move AC_LIBOBJ invocations to module description.
13748         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13749         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13750         * modules/strtol (configure.ac): ... to here.
13751
13752 2011-05-22  Bruno Haible  <bruno@clisp.org>
13753
13754         strtod: Move AC_LIBOBJ invocations to module description.
13755         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13756         invocations from here...
13757         * modules/strtod (configure.ac): ... to here.
13758
13759 2011-05-22  Bruno Haible  <bruno@clisp.org>
13760
13761         strstr*: Move AC_LIBOBJ invocations to module description.
13762         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13763         invocations from here...
13764         * modules/strstr-simple (configure.ac): ... to here.
13765         * modules/strstr (configure.ac): ... and here.
13766
13767 2011-05-22  Bruno Haible  <bruno@clisp.org>
13768
13769         strsignal: Move AC_LIBOBJ invocations to module description.
13770         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13771         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13772         * modules/strsignal (configure.ac): ... to here.
13773         (Depends-on): Update conditions.
13774
13775 2011-05-22  Bruno Haible  <bruno@clisp.org>
13776
13777         strsep: Move AC_LIBOBJ invocations to module description.
13778         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13779         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13780         here...
13781         * modules/strsep (configure.ac): ... to here.
13782
13783 2011-05-22  Bruno Haible  <bruno@clisp.org>
13784
13785         strptime: Move AC_LIBOBJ invocations to module description.
13786         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13787         gl_PREREQ_STRPTIME invocations from here...
13788         * modules/strptime (configure.ac): ... to here.
13789
13790 2011-05-22  Bruno Haible  <bruno@clisp.org>
13791
13792         strpbrk: Move AC_LIBOBJ invocations to module description.
13793         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13795         here...
13796         * modules/strpbrk (configure.ac): ... to here.
13797
13798 2011-05-22  Bruno Haible  <bruno@clisp.org>
13799
13800         strnlen: Move AC_LIBOBJ invocations to module description.
13801         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13802         invocations from here...
13803         * modules/strnlen (configure.ac): ... to here.
13804
13805 2011-05-22  Bruno Haible  <bruno@clisp.org>
13806
13807         strndup: Move AC_LIBOBJ invocations to module description.
13808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13809         invocations from here...
13810         * modules/strndup (configure.ac): ... to here.
13811         (Depends-on): Update conditions.
13812
13813 2011-05-22  Bruno Haible  <bruno@clisp.org>
13814
13815         strncat: Move AC_LIBOBJ invocations to module description.
13816         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13817         invocations from here...
13818         * modules/strncat (configure.ac): ... to here.
13819
13820 2011-05-22  Bruno Haible  <bruno@clisp.org>
13821
13822         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13823         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13824         invocations from here...
13825         * modules/strdup (configure.ac): ... to here.
13826         * modules/strdup-posix (configure.ac): ... and here.
13827
13828 2011-05-22  Bruno Haible  <bruno@clisp.org>
13829
13830         strcspn: Move AC_LIBOBJ invocations to module description.
13831         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13833         here...
13834         * modules/strcspn (configure.ac): ... to here.
13835
13836 2011-05-22  Bruno Haible  <bruno@clisp.org>
13837
13838         strchrnul: Move AC_LIBOBJ invocations to module description.
13839         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13840         gl_PREREQ_STRCHRNUL invocations from here...
13841         * modules/strchrnul (configure.ac): ... to here.
13842
13843 2011-05-22  Bruno Haible  <bruno@clisp.org>
13844
13845         strcasestr*: Move AC_LIBOBJ invocations to module description.
13846         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13847         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13848         * modules/strcasestr-simple (configure.ac): ... to here.
13849         * modules/strcasestr (configure.ac): ... and here.
13850
13851 2011-05-22  Bruno Haible  <bruno@clisp.org>
13852
13853         strcase: Move AC_LIBOBJ invocations to module description.
13854         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13855         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13856         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13857         gl_PREREQ_STRNCASECMP invocations from here...
13858         * modules/strcase (configure.ac): ... to here.
13859
13860 2011-05-22  Bruno Haible  <bruno@clisp.org>
13861
13862         stpncpy: Move AC_LIBOBJ invocations to module description.
13863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13864         here...
13865         * modules/stpncpy (configure.ac): ... to here.
13866
13867 2011-05-22  Bruno Haible  <bruno@clisp.org>
13868
13869         stpcpy: Move AC_LIBOBJ invocations to module description.
13870         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13872         here...
13873         * modules/stpcpy (configure.ac): ... to here.
13874
13875 2011-05-21  Bruno Haible  <bruno@clisp.org>
13876
13877         stat: Move AC_LIBOBJ invocations to module description.
13878         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13879         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13880         here...
13881         * modules/stat (configure.ac): ... to here.
13882
13883 2011-05-21  Bruno Haible  <bruno@clisp.org>
13884
13885         sleep: Move AC_LIBOBJ invocations to module description.
13886         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13887         * modules/sleep (configure.ac): ... to here.
13888
13889 2011-05-21  Bruno Haible  <bruno@clisp.org>
13890
13891         signbit: Move AC_LIBOBJ invocations to module description.
13892         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13893         * modules/signbit (configure.ac): ... to here.
13894
13895 2011-05-21  Bruno Haible  <bruno@clisp.org>
13896
13897         sigprocmask: Move AC_LIBOBJ invocations to module description.
13898         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13899         gl_PREREQ_SIGPROMASK invocations from here...
13900         * modules/sigprocmask (configure.ac): ... to here.
13901
13902 2011-05-21  Bruno Haible  <bruno@clisp.org>
13903
13904         sigaction: Move AC_LIBOBJ invocations to module description.
13905         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13906         gl_PREREQ_SIGACTION invocations from here...
13907         * modules/sigaction (configure.ac): ... to here.
13908
13909 2011-05-21  Bruno Haible  <bruno@clisp.org>
13910
13911         sig2str: Move AC_LIBOBJ invocations to module description.
13912         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13914         here...
13915         * modules/sig2str (configure.ac): ... to here.
13916
13917 2011-05-21  Bruno Haible  <bruno@clisp.org>
13918
13919         setlocale: Move AC_LIBOBJ invocations to module description.
13920         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13921         gl_PREREQ_SETLOCALE invocations from here...
13922         * modules/setlocale (configure.ac): ... to here.
13923
13924 2011-05-21  Bruno Haible  <bruno@clisp.org>
13925
13926         unsetenv: Move AC_LIBOBJ invocations to module description.
13927         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13928         and gl_PREREQ_UNSETENV invocations from here...
13929         * modules/unsetenv (configure.ac): ... to here.
13930         (Depends-on): Update.
13931
13932 2011-05-21  Bruno Haible  <bruno@clisp.org>
13933
13934         setenv: Move AC_LIBOBJ invocations to module description.
13935         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13936         here...
13937         * modules/setenv (configure.ac): ... to here.
13938
13939 2011-05-21  Bruno Haible  <bruno@clisp.org>
13940
13941         selinux-h: Move AC_LIBOBJ invocations to module description.
13942         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13943         AC_LIBOBJ invocation from here...
13944         * modules/selinux-h (configure.ac): ... to here.
13945
13946 2011-05-21  Bruno Haible  <bruno@clisp.org>
13947
13948         select: Respect rules for use of AC_LIBOBJ.
13949         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13950         here...
13951         * modules/select (configure.ac): ... to here.
13952
13953 2011-05-21  Bruno Haible  <bruno@clisp.org>
13954
13955         scandir: Move AC_LIBOBJ invocations to module description.
13956         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13957         invocations from here...
13958         * modules/scandir (configure.ac): ... to here.
13959
13960 2011-05-21  Bruno Haible  <bruno@clisp.org>
13961
13962         rpmatch: Move AC_LIBOBJ invocations to module description.
13963         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13965         here...
13966         * modules/rpmatch (configure.ac): ... to here.
13967
13968 2011-05-21  Bruno Haible  <bruno@clisp.org>
13969
13970         rmdir: Respect rules for use of AC_LIBOBJ.
13971         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13972         * modules/rmdir (configure.ac): ... to here.
13973
13974 2011-05-21  Bruno Haible  <bruno@clisp.org>
13975
13976         renameat: Move AC_LIBOBJ invocations to module description.
13977         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13978         here...
13979         * modules/renameat (configure.ac): ... to here.
13980
13981 2011-05-21  Bruno Haible  <bruno@clisp.org>
13982
13983         rename: Respect rules for use of AC_LIBOBJ.
13984         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13985         here...
13986         * modules/rename (configure.ac): ... to here.
13987
13988 2011-05-21  Bruno Haible  <bruno@clisp.org>
13989
13990         remove: Move AC_LIBOBJ invocations to module description.
13991         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13992         here...
13993         * modules/remove (configure.ac): ... to here.
13994
13995 2011-05-21  Bruno Haible  <bruno@clisp.org>
13996
13997         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13998         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13999         macro.
14000         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14001         * modules/relocatable-lib (configure.ac): ... to here.
14002         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14003         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14004
14005 2011-05-21  Bruno Haible  <bruno@clisp.org>
14006
14007         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14008         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14009         here...
14010         * modules/relocatable-prog (configure.ac): ... to here.
14011
14012 2011-05-21  Bruno Haible  <bruno@clisp.org>
14013
14014         regex: Move AC_LIBOBJ invocations to module description.
14015         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14016         invocations from here...
14017         * modules/regex (configure.ac): ... to here.
14018
14019 2011-05-21  Bruno Haible  <bruno@clisp.org>
14020
14021         realloc-*: Move AC_LIBOBJ invocations to module description.
14022         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14023         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14024         AC_LIBOBJ invocations from here...
14025         * modules/realloc-gnu (configure.ac): ... to here.
14026         * modules/realloc-posix (configure.ac): ... and here.
14027
14028 2011-05-21  Bruno Haible  <bruno@clisp.org>
14029
14030         readutmp: Move AC_LIBOBJ invocations to module description.
14031         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14032         * modules/readutmp (configure.ac): ... to here.
14033
14034 2011-05-21  Bruno Haible  <bruno@clisp.org>
14035
14036         readlinkat: Move AC_LIBOBJ invocations to module description.
14037         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14038         here...
14039         * modules/readlinkat (configure.ac): ... to here.
14040
14041 2011-05-21  Bruno Haible  <bruno@clisp.org>
14042
14043         readlink: Move AC_LIBOBJ invocations to module description.
14044         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14045         gl_PREREQ_READLINK invocations from here...
14046         * modules/readlink (configure.ac): ... to here.
14047
14048 2011-05-21  Bruno Haible  <bruno@clisp.org>
14049
14050         readline: Move AC_LIBOBJ invocations to module description.
14051         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14052         gl_PREREQ_READLINE invocations from here...
14053         * modules/readline (configure.ac): ... to here.
14054
14055 2011-05-21  Bruno Haible  <bruno@clisp.org>
14056
14057         read: Move AC_LIBOBJ invocations to module description.
14058         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14059         * modules/read (configure.ac): ... to here.
14060
14061 2011-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         rawmemchr: Move AC_LIBOBJ invocations to module description.
14064         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14066         from here...
14067         * modules/rawmemchr (configure.ac): ... to here.
14068
14069 2011-05-21  Bruno Haible  <bruno@clisp.org>
14070
14071         random_r: Move AC_LIBOBJ invocations to module description.
14072         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14073         gl_PREREQ_RANDOM_R invocations from here...
14074         * modules/random_r (configure.ac): ... to here.
14075
14076 2011-05-21  Bruno Haible  <bruno@clisp.org>
14077
14078         pwrite: Move AC_LIBOBJ invocations to module description.
14079         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14080         * modules/pwrite (configure.ac): ... to here.
14081
14082 2011-05-21  Bruno Haible  <bruno@clisp.org>
14083
14084         putenv: Move AC_LIBOBJ invocations to module description.
14085         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14086         * modules/putenv (configure.ac): ... to here.
14087
14088 2011-05-21  Bruno Haible  <bruno@clisp.org>
14089
14090         login_tty: Move AC_LIBOBJ invocations to module description.
14091         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14092         * modules/login_tty (configure.ac): ... to here.
14093
14094 2011-05-21  Bruno Haible  <bruno@clisp.org>
14095
14096         openpty: Move AC_LIBOBJ invocations to module description.
14097         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14098         * modules/openpty (configure.ac): ... to here.
14099
14100 2011-05-21  Bruno Haible  <bruno@clisp.org>
14101
14102         forkpty: Move AC_LIBOBJ invocations to module description.
14103         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14104         * modules/forkpty (configure.ac): ... to here.
14105
14106 2011-05-21  Bruno Haible  <bruno@clisp.org>
14107
14108         ptsname: Move AC_LIBOBJ invocations to module description.
14109         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14110         invocations from here...
14111         * modules/ptsname (configure.ac): ... to here.
14112
14113 2011-05-21  Bruno Haible  <bruno@clisp.org>
14114
14115         pread: Move AC_LIBOBJ invocations to module description.
14116         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14117         * modules/pread (configure.ac): ... to here.
14118
14119 2011-05-21  Bruno Haible  <bruno@clisp.org>
14120
14121         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14122         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14123         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14124         * modules/posix_spawn (configure.ac): ... to here.
14125         * modules/posix_spawnp (configure.ac): ... and here.
14126
14127 2011-05-21  Bruno Haible  <bruno@clisp.org>
14128
14129         popen: Move AC_LIBOBJ invocations to module description.
14130         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14131         invocations from here...
14132         * modules/popen (configure.ac): ... to here.
14133
14134 2011-05-21  Bruno Haible  <bruno@clisp.org>
14135
14136         poll: Move AC_LIBOBJ invocations to module description.
14137         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14138         invocations from here...
14139         * modules/poll (configure.ac): ... to here.
14140
14141 2011-05-21  Bruno Haible  <bruno@clisp.org>
14142
14143         pipe-posix: Move AC_LIBOBJ invocations to module description.
14144         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14145         * modules/pipe-posix (configure.ac): ... to here.
14146
14147 2011-05-21  Bruno Haible  <bruno@clisp.org>
14148
14149         openat: Respect rules for use of AC_LIBOBJ.
14150         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14151         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14152         * modules/openat (configure.ac): ... to here.
14153
14154 2011-05-21  Bruno Haible  <bruno@clisp.org>
14155
14156         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14157         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14158         invocation from here...
14159         * modules/obstack-printf (configure.ac): ... to here.
14160         * modules/obstack-printf-posix (configure.ac): ... and here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14165         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14166         from here...
14167         * modules/nl_langinfo (configure.ac): ... to here.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         nanosleep: Move AC_LIBOBJ invocations to module description.
14172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14173         gl_PREREQ_NANOSLEEP invocations from here...
14174         * modules/nanosleep (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         mountlist: Move AC_LIBOBJ invocations to module description.
14179         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14180         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14181         * modules/mountlist (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         mktime: Respect rules for use of AC_LIBOBJ.
14186         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14187         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14188         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14189         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14190         * modules/mktime (configure.ac): ... to here.
14191         * modules/mktime-internal (configure.ac): ... and here.
14192         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14193
14194 2011-05-21  Bruno Haible  <bruno@clisp.org>
14195
14196         mkstemps: Move AC_LIBOBJ invocations to module description.
14197         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14198         here...
14199         * modules/mkstemps (configure.ac): ... to here.
14200
14201 2011-05-21  Bruno Haible  <bruno@clisp.org>
14202
14203         mkstemp: Move AC_LIBOBJ invocations to module description.
14204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14205         gl_PREREQ_MKSTEMP invocations from here...
14206         * modules/mkstemp (configure.ac): ... to here.
14207
14208 2011-05-21  Bruno Haible  <bruno@clisp.org>
14209
14210         mkostemps: Move AC_LIBOBJ invocations to module description.
14211         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14212         here...
14213         * modules/mkostemps (configure.ac): ... to here.
14214
14215 2011-05-21  Bruno Haible  <bruno@clisp.org>
14216
14217         mkostemp: Move AC_LIBOBJ invocations to module description.
14218         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14219         gl_PREREQ_MKOSTEMP invocations from here...
14220         * modules/mkostemp (configure.ac): ... to here.
14221
14222 2011-05-21  Bruno Haible  <bruno@clisp.org>
14223
14224         mknod: Move AC_LIBOBJ invocations to module description.
14225         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14226         * modules/mknod (configure.ac): ... to here.
14227
14228 2011-05-21  Bruno Haible  <bruno@clisp.org>
14229
14230         mkfifoat: Move AC_LIBOBJ invocations to module description.
14231         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14232         here...
14233         * modules/mkfifoat (configure.ac): ... to here.
14234
14235 2011-05-21  Bruno Haible  <bruno@clisp.org>
14236
14237         mkfifo: Respect rules for use of AC_LIBOBJ.
14238         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14239         here...
14240         * modules/mkfifo (configure.ac): ... to here.
14241
14242 2011-05-21  Bruno Haible  <bruno@clisp.org>
14243
14244         mkdtemp: Move AC_LIBOBJ invocations to module description.
14245         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14246         invocations from here...
14247         * modules/mkdtemp (configure.ac): ... to here.
14248
14249 2011-05-21  Bruno Haible  <bruno@clisp.org>
14250
14251         mkdir: Move AC_LIBOBJ invocations to module description.
14252         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14253         * modules/mkdir (configure.ac): ... to here.
14254
14255 2011-05-21  Bruno Haible  <bruno@clisp.org>
14256
14257         memset: Move AC_LIBOBJ invocations to module description.
14258         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14259         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14260         here...
14261         * modules/memset (configure.ac): ... to here.
14262
14263 2011-05-21  Bruno Haible  <bruno@clisp.org>
14264
14265         memrchr: Move AC_LIBOBJ invocations to module description.
14266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14268         here...
14269         * modules/memrchr (configure.ac): ... to here.
14270
14271 2011-05-21  Bruno Haible  <bruno@clisp.org>
14272
14273         mempcpy: Move AC_LIBOBJ invocations to module description.
14274         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14276         here...
14277         * modules/mempcpy (configure.ac): ... to here.
14278
14279 2011-05-21  Bruno Haible  <bruno@clisp.org>
14280
14281         memmove: Move AC_LIBOBJ invocations to module description.
14282         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14284         here...
14285         * modules/memmove (configure.ac): ... to here.
14286
14287 2011-05-21  Bruno Haible  <bruno@clisp.org>
14288
14289         memmem*: Move AC_LIBOBJ invocations to module description.
14290         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14291         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14292         here...
14293         (gl_FUNC_MEMMEM): ... and here...
14294         * modules/memmem-simple (configure.ac): ... to here.
14295         * modules/memmem (configure.ac): ... and here.
14296
14297 2011-05-21  Bruno Haible  <bruno@clisp.org>
14298
14299         memcpy: Move AC_LIBOBJ invocations to module description.
14300         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14301         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14302         here...
14303         * modules/memcpy (configure.ac): ... to here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         memcmp: Simplify autoconf macro.
14308         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14309         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14310         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         memcmp: Move AC_LIBOBJ invocations to module description.
14315         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14316         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14317         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14318         * modules/memcmp (configure.ac): ... to here.
14319         (Depends-on): Update conditions.
14320
14321 2011-05-21  Bruno Haible  <bruno@clisp.org>
14322
14323         memchr: Respect rules for use of AC_LIBOBJ.
14324         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14325         invocations from here...
14326         * modules/memchr (configure.ac): ... to here.
14327
14328 2011-05-21  Bruno Haible  <bruno@clisp.org>
14329
14330         mbtowc: Move AC_LIBOBJ invocations to module description.
14331         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14332         invocations from here...
14333         * modules/mbtowc (configure.ac): ... to here.
14334
14335 2011-05-21  Bruno Haible  <bruno@clisp.org>
14336
14337         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14338         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14339         gl_PREREQ_MBSRTOWCS invocations from here...
14340         * modules/mbsrtowcs (configure.ac): ... to here.
14341
14342 2011-05-21  Bruno Haible  <bruno@clisp.org>
14343
14344         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14345         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14346         gl_PREREQ_MBSNRTOWCS invocations from here...
14347         * modules/mbsnrtowcs (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         mbsinit: Move AC_LIBOBJ invocations to module description.
14352         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14353         invocations from here...
14354         * modules/mbsinit (configure.ac): ... to here.
14355
14356 2011-05-21  Bruno Haible  <bruno@clisp.org>
14357
14358         mbrlen: Move AC_LIBOBJ invocations to module description.
14359         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14360         invocations from here...
14361         * modules/mbrlen (configure.ac): ... to here.
14362
14363 2011-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         mbrtowc: Respect rules for use of AC_LIBOBJ.
14366         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14367         invocations from here...
14368         * modules/mbrtowc (configure.ac): ... to here.
14369
14370 2011-05-21  Bruno Haible  <bruno@clisp.org>
14371
14372         malloc-*: Move AC_LIBOBJ invocations to module description.
14373         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14374         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14375         AC_LIBOBJ invocations from here...
14376         * modules/malloc-gnu (configure.ac): ... to here.
14377         * modules/malloc-posix (configure.ac): ... and here.
14378
14379 2011-05-21  Bruno Haible  <bruno@clisp.org>
14380
14381         lstat, openat: Respect rules for use of AC_LIBOBJ.
14382         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14383         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14384         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14385         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14386         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14387         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14388         here.
14389         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         lseek: Move AC_LIBOBJ invocations to module description.
14394         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14395         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14396         * modules/lseek (configure.ac): ... to here.
14397
14398 2011-05-21  Bruno Haible  <bruno@clisp.org>
14399
14400         linkat: Move AC_LIBOBJ invocations to module description.
14401         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14402         here...
14403         * modules/linkat (configure.ac): ... to here.
14404
14405 2011-05-21  Bruno Haible  <bruno@clisp.org>
14406
14407         link: Respect rules for use of AC_LIBOBJ.
14408         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14409         * modules/link (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         lchown: Move AC_LIBOBJ invocations to module description.
14414         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14415         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14416         * modules/lchown (configure.ac): ... to here.
14417
14418 2011-05-21  Bruno Haible  <bruno@clisp.org>
14419
14420         iswctype: Move AC_LIBOBJ invocations to module description.
14421         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14422         here...
14423         * modules/iswctype (configure.ac): ... to here.
14424
14425 2011-05-21  Bruno Haible  <bruno@clisp.org>
14426
14427         iswblank: Move AC_LIBOBJ invocations to module description.
14428         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14429         here...
14430         * modules/iswblank (configure.ac): ... to here.
14431
14432 2011-05-21  Bruno Haible  <bruno@clisp.org>
14433
14434         atanl: Move AC_LIBOBJ invocations to module description.
14435         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14436         * modules/atanl (configure.ac): ... to here.
14437
14438 2011-05-21  Bruno Haible  <bruno@clisp.org>
14439
14440         acosl: Move AC_LIBOBJ invocations to module description.
14441         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14442         * modules/acosl (configure.ac): ... to here.
14443
14444 2011-05-21  Bruno Haible  <bruno@clisp.org>
14445
14446         asinl: Respect rules for use of AC_LIBOBJ.
14447         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14448         * modules/asinl (configure.ac): ... to here.
14449
14450 2011-05-21  Bruno Haible  <bruno@clisp.org>
14451
14452         tanl: Move AC_LIBOBJ invocations to module description.
14453         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14454         * modules/tanl (configure.ac): ... to here.
14455
14456 2011-05-21  Bruno Haible  <bruno@clisp.org>
14457
14458         cosl: Move AC_LIBOBJ invocations to module description.
14459         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14460         * modules/cosl (configure.ac): ... to here.
14461
14462 2011-05-21  Bruno Haible  <bruno@clisp.org>
14463
14464         sinl: Move AC_LIBOBJ invocations to module description.
14465         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14466         * modules/sinl (configure.ac): ... to here.
14467
14468 2011-05-21  Bruno Haible  <bruno@clisp.org>
14469
14470         logl: Move AC_LIBOBJ invocations to module description.
14471         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14472         * modules/logl (configure.ac): ... to here.
14473
14474 2011-05-21  Bruno Haible  <bruno@clisp.org>
14475
14476         expl: Move AC_LIBOBJ invocations to module description.
14477         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14478         * modules/expl (configure.ac): ... to here.
14479
14480 2011-05-21  Bruno Haible  <bruno@clisp.org>
14481
14482         roundl: Move AC_LIBOBJ invocations to module description.
14483         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14484         * modules/roundl (configure.ac): ... to here.
14485
14486 2011-05-21  Bruno Haible  <bruno@clisp.org>
14487
14488         round: Move AC_LIBOBJ invocations to module description.
14489         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14490         * modules/round (configure.ac): ... to here.
14491
14492 2011-05-21  Bruno Haible  <bruno@clisp.org>
14493
14494         roundf: Move AC_LIBOBJ invocations to module description.
14495         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14496         * modules/roundf (configure.ac): ... to here.
14497
14498 2011-05-21  Bruno Haible  <bruno@clisp.org>
14499
14500         truncl: Move AC_LIBOBJ invocations to module description.
14501         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14502         * modules/truncl (configure.ac): ... to here.
14503
14504 2011-05-21  Bruno Haible  <bruno@clisp.org>
14505
14506         trunc: Move AC_LIBOBJ invocations to module description.
14507         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14508         * modules/trunc (configure.ac): ... to here.
14509
14510 2011-05-21  Bruno Haible  <bruno@clisp.org>
14511
14512         truncf: Move AC_LIBOBJ invocations to module description.
14513         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14514         * modules/truncf (configure.ac): ... to here.
14515
14516 2011-05-21  Bruno Haible  <bruno@clisp.org>
14517
14518         ceill: Move AC_LIBOBJ invocations to module description.
14519         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14520         * modules/ceill (configure.ac): ... to here.
14521
14522 2011-05-21  Bruno Haible  <bruno@clisp.org>
14523
14524         ceil: Move AC_LIBOBJ invocations to module description.
14525         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14526         * modules/ceil (configure.ac): ... to here.
14527
14528 2011-05-21  Bruno Haible  <bruno@clisp.org>
14529
14530         ceilf: Move AC_LIBOBJ invocations to module description.
14531         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14532         * modules/ceilf (configure.ac): ... to here.
14533
14534 2011-05-21  Bruno Haible  <bruno@clisp.org>
14535
14536         floorl: Respect rules for use of AC_LIBOBJ.
14537         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14538         * modules/floorl (configure.ac): ... to here.
14539
14540 2011-05-21  Bruno Haible  <bruno@clisp.org>
14541
14542         floor: Respect rules for use of AC_LIBOBJ.
14543         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14544         * modules/floor (configure.ac): ... to here.
14545
14546 2011-05-21  Bruno Haible  <bruno@clisp.org>
14547
14548         floorf: Move AC_LIBOBJ invocations to module description.
14549         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14550         * modules/floorf (configure.ac): ... to here.
14551
14552 2011-05-20  Bruno Haible  <bruno@clisp.org>
14553
14554         sqrtl: Respect rules for use of AC_LIBOBJ.
14555         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14556         * modules/sqrtl (configure.ac): ... to here.
14557
14558 2011-05-20  Bruno Haible  <bruno@clisp.org>
14559
14560         ldexpl: Respect rules for use of AC_LIBOBJ.
14561         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14562         * modules/ldexpl (configure.ac): ... to here.
14563
14564 2011-05-20  Bruno Haible  <bruno@clisp.org>
14565
14566         frexpl*: Respect rules for use of AC_LIBOBJ.
14567         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14568         invocation from here...
14569         * modules/frexpl (configure.ac): ... to here.
14570         * modules/frexpl-nolibm (configure.ac): ... and here.
14571
14572 2011-05-20  Bruno Haible  <bruno@clisp.org>
14573
14574         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14575         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14576         invocation from here...
14577         * modules/frexp (configure.ac): ... to here.
14578         * modules/frexp-nolibm (configure.ac): ... and here.
14579
14580 2011-05-20  Bruno Haible  <bruno@clisp.org>
14581
14582         isnan: Respect rules for use of AC_LIBOBJ.
14583         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14584         invocations here.
14585         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14586         REPLACE_ISNAN.
14587         * modules/isnand (configure.ac): Likewise.
14588         * modules/isnanl (configure.ac): Likewise.
14589
14590 2011-05-20  Bruno Haible  <bruno@clisp.org>
14591
14592         isnanl*: Respect rules for use of AC_LIBOBJ.
14593         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14594         invocation from here...
14595         * modules/isnanl (configure.ac): ... to here.
14596         * modules/isnanl-nolibm (configure.ac): ... and here.
14597
14598 2011-05-20  Bruno Haible  <bruno@clisp.org>
14599
14600         isnand*: Move AC_LIBOBJ invocations to module description.
14601         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14602         invocation from here...
14603         * modules/isnand (configure.ac): ... to here.
14604         * modules/isnand-nolibm (configure.ac): ... and here.
14605
14606 2011-05-20  Bruno Haible  <bruno@clisp.org>
14607
14608         isnanf*: Move AC_LIBOBJ invocations to module description.
14609         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14610         invocation from here...
14611         * modules/isnanf (configure.ac): ... to here.
14612         * modules/isnanf-nolibm (configure.ac): ... and here.
14613
14614 2011-05-20  Bruno Haible  <bruno@clisp.org>
14615
14616         isnan*: Separate the AC_LIBOBJ invocations.
14617         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14618         AC_LIBOBJ invocation.
14619         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14620         here.
14621         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14622         AC_LIBOBJ invocation.
14623         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14624         here.
14625         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14626         AC_LIBOBJ invocation.
14627         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14628         here.
14629         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14630
14631 2011-05-08  Bruno Haible  <bruno@clisp.org>
14632
14633         isinf: Move AC_LIBOBJ invocations to module description.
14634         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14635         * modules/isinf (configure.ac): ... to here.
14636
14637 2011-05-08  Bruno Haible  <bruno@clisp.org>
14638
14639         isfinite: Move AC_LIBOBJ invocations to module description.
14640         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14641         * modules/isfinite (configure.ac): ... to here.
14642
14643 2011-05-08  Bruno Haible  <bruno@clisp.org>
14644
14645         isblank: Move AC_LIBOBJ invocations to module description.
14646         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14647         here...
14648         * modules/isblank (configure.ac): ... to here.
14649
14650 2011-05-08  Bruno Haible  <bruno@clisp.org>
14651
14652         isapipe: Move AC_LIBOBJ invocations to module description.
14653         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14654         gl_PREREQ_ISAPIPE invocations from here...
14655         * modules/isapipe (configure.ac): ... to here.
14656         (Depends-on): Update condition.
14657
14658 2011-05-08  Bruno Haible  <bruno@clisp.org>
14659
14660         ioctl: Move AC_LIBOBJ invocations to module description.
14661         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14662         invocations from here...
14663         * modules/ioctl (configure.ac): ... to here.
14664         (Depends-on): Update condition.
14665
14666 2011-05-08  Bruno Haible  <bruno@clisp.org>
14667
14668         imaxdiv: Move AC_LIBOBJ invocations to module description.
14669         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14670         invocations from here...
14671         * modules/imaxdiv (configure.ac): ... to here.
14672
14673 2011-05-08  Bruno Haible  <bruno@clisp.org>
14674
14675         imaxabs: Move AC_LIBOBJ invocations to module description.
14676         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14677         invocations from here...
14678         * modules/imaxabs (configure.ac): ... to here.
14679
14680 2011-05-08  Bruno Haible  <bruno@clisp.org>
14681
14682         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14684         AC_LIBOBJ invocations from here...
14685         * modules/getaddrinfo (configure.ac): ... to here.
14686         (Depends-on): Add conditions.
14687
14688 2011-05-08  Bruno Haible  <bruno@clisp.org>
14689
14690         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14691         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14692         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14693         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14694         (gl_PREREQ_INET_PTON): ... from here.
14695         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14696         gl_PREREQ_INET_PTON here.
14697         (Depends-on): Update condition.
14698
14699 2011-05-08  Bruno Haible  <bruno@clisp.org>
14700
14701         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14702         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14703         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14704         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14705         (gl_PREREQ_INET_NTOP): ... from here.
14706         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14707         gl_PREREQ_INET_NTOP here.
14708         (Depends-on): Update condition.
14709
14710 2011-05-08  Bruno Haible  <bruno@clisp.org>
14711
14712         iconv_open: Move AC_LIBOBJ invocations to module description.
14713         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14714         AC_LIBOBJ invocations from here...
14715         * modules/iconv_open (configure.ac): ... to here.
14716
14717 2011-05-08  Bruno Haible  <bruno@clisp.org>
14718
14719         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14720         If module 'iconv_open' is among the main modules and module
14721         'iconv_open-utf' is among the tests dependencies, then
14722         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14723         return the special iconv_t values. Therefore iconv() and iconv_close()
14724         must support these special iconv_t values, already in lib, not only in
14725         tests.
14726         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14728         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14729         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14730         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14731         (Depends-on): Add the dependencies of iconv_open-utf.
14732         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14733         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14734         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14735
14736 2011-05-08  Bruno Haible  <bruno@clisp.org>
14737
14738         group-member: Move AC_LIBOBJ invocations to module description.
14739         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14740         gl_PREREQ_GROUP_MEMBER invocations from here...
14741         * modules/group-member (configure.ac): ... to here.
14742
14743 2011-05-08  Bruno Haible  <bruno@clisp.org>
14744
14745         grantpt: Move AC_LIBOBJ invocations to module description.
14746         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14747         invocations from here...
14748         * modules/grantpt (configure.ac): ... to here.
14749
14750 2011-05-08  Bruno Haible  <bruno@clisp.org>
14751
14752         glob: Move AC_LIBOBJ invocations to module description.
14753         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14754         from here...
14755         * modules/glob (configure.ac): ... to here.
14756
14757 2011-05-08  Bruno Haible  <bruno@clisp.org>
14758
14759         getusershell: Move AC_LIBOBJ invocations to module description.
14760         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14761         Move AC_LIBOBJ invocation from here...
14762         * modules/getusershell (configure.ac): ... to here.
14763         (Depends-on): Update condition.
14764
14765 2011-05-08  Bruno Haible  <bruno@clisp.org>
14766
14767         gettimeofday: Move AC_LIBOBJ invocations to module description.
14768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14769         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14770         gl_PREREQ_GETTIMEOFDAY invocations from here...
14771         * modules/gettimeofday (configure.ac): ... to here.
14772
14773 2011-05-08  Bruno Haible  <bruno@clisp.org>
14774
14775         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14776         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14777         just gl_FUNC_TZSET.
14778         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14779         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14780         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14781         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14782
14783 2011-05-08  Bruno Haible  <bruno@clisp.org>
14784
14785         getsubopt: Move AC_LIBOBJ invocations to module description.
14786         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14787         gl_PREREQ_GETSUBOPT invocations from here...
14788         * modules/getsubopt (configure.ac): ... to here.
14789
14790 2011-05-08  Bruno Haible  <bruno@clisp.org>
14791
14792         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14793         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14794         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14795         * modules/getpass-gnu (configure.ac): ... to here.
14796
14797 2011-05-08  Bruno Haible  <bruno@clisp.org>
14798
14799         getpass: Move AC_LIBOBJ invocations to module description.
14800         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14801         gl_PREREQ_GETPASS invocations from here...
14802         * modules/getpass (configure.ac): ... to here.
14803
14804 2011-05-08  Bruno Haible  <bruno@clisp.org>
14805
14806         getpagesize: Move AC_LIBOBJ invocations to module description.
14807         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14808         from here...
14809         * modules/getpagesize (configure.ac): ... to here.
14810
14811 2011-05-08  Bruno Haible  <bruno@clisp.org>
14812
14813         getopt: Move AC_LIBOBJ invocations to module description.
14814         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14815         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14816         invocations from here...
14817         * modules/getopt-gnu (configure.ac): ... to here.
14818         * modules/getopt-posix (configure.ac): ... and here.
14819         (Depends-on): Update condition.
14820
14821 2011-05-08  Bruno Haible  <bruno@clisp.org>
14822
14823         getopt, argp: Respect rules for use of AC_LIBOBJ.
14824         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14825         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14826         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14827         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14828
14829 2011-05-08  Bruno Haible  <bruno@clisp.org>
14830
14831         getlogin_r: Move AC_LIBOBJ invocations to module description.
14832         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14833         gl_PREREQ_GETLOGIN_R invocations from here...
14834         * modules/getlogin_r (configure.ac): ... to here.
14835
14836 2011-05-08  Bruno Haible  <bruno@clisp.org>
14837
14838         getlogin: Move AC_LIBOBJ invocations to module description.
14839         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14840         here...
14841         * modules/getlogin (configure.ac): ... to here.
14842
14843 2011-05-08  Bruno Haible  <bruno@clisp.org>
14844
14845         getloadavg: Move AC_LIBOBJ invocations to module description.
14846         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14847         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14848         * modules/getloadavg (configure.ac): ... to here.
14849
14850 2011-05-08  Bruno Haible  <bruno@clisp.org>
14851
14852         gethrxtime: Move AC_LIBOBJ invocations to module description.
14853         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14854         LIB_GETHRXTIME from here...
14855         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14856         invocations from here...
14857         * modules/gethrxtime (configure.ac): ... to here.
14858
14859 2011-05-08  Bruno Haible  <bruno@clisp.org>
14860
14861         gethostname: Move AC_LIBOBJ invocations to module description.
14862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14863         gl_PREREQ_GETHOSTNAME invocations from here...
14864         * modules/gethostname (configure.ac): ... to here.
14865
14866 2011-05-08  Bruno Haible  <bruno@clisp.org>
14867
14868         getgroups: Move AC_LIBOBJ invocations to module description.
14869         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14870         here...
14871         * modules/getgroups (configure.ac): ... to here.
14872
14873 2011-05-08  Bruno Haible  <bruno@clisp.org>
14874
14875         getdtablesize: Move AC_LIBOBJ invocations to module description.
14876         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14877         invocation from here...
14878         * modules/getdtablesize (configure.ac): ... to here.
14879
14880 2011-05-08  Bruno Haible  <bruno@clisp.org>
14881
14882         getdomainname: Move AC_LIBOBJ invocations to module description.
14883         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14884         gl_PREREQ_GETDOMAINNAME invocations from here...
14885         * modules/getdomainname (configure.ac): ... to here.
14886
14887 2011-05-08  Bruno Haible  <bruno@clisp.org>
14888
14889         getline: Move AC_LIBOBJ invocations to module description.
14890         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14891         invocations from here...
14892         * modules/getline (configure.ac): ... to here.
14893
14894 2011-05-08  Bruno Haible  <bruno@clisp.org>
14895
14896         getline: Simplify.
14897         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14898         It's already handled through the module dependency.
14899
14900 2011-05-08  Bruno Haible  <bruno@clisp.org>
14901
14902         getdelim: Move AC_LIBOBJ invocations to module description.
14903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14904         and gl_PREREQ_GETDELIM invocations from here...
14905         * modules/getdelim (configure.ac): ... to here.
14906         (Depends-on): Fix condition.
14907
14908 2011-05-08  Bruno Haible  <bruno@clisp.org>
14909
14910         getcwd: Move AC_LIBOBJ invocations to module description.
14911         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14912         invocations from here...
14913         * modules/getcwd (configure.ac): ... to here.
14914
14915 2011-05-08  Bruno Haible  <bruno@clisp.org>
14916
14917         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14918         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14919         here...
14920         * modules/getcwd-lgpl (configure.ac): ... to here.
14921
14922 2011-05-07  Bruno Haible  <bruno@clisp.org>
14923
14924         crypto/gc: Move AC_LIBOBJ invocations to module description.
14925         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14926         * modules/crypto/gc (configure.ac): ... to here.
14927
14928 2011-05-07  Bruno Haible  <bruno@clisp.org>
14929
14930         fwriting: Move AC_LIBOBJ invocations to module description.
14931         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14932         here...
14933         * modules/fwriting (configure.ac): ... to here.
14934
14935 2011-05-07  Bruno Haible  <bruno@clisp.org>
14936
14937         fwritable: Move AC_LIBOBJ invocations to module description.
14938         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14939         here...
14940         * modules/fwritable (configure.ac): ... to here.
14941
14942 2011-05-07  Bruno Haible  <bruno@clisp.org>
14943
14944         futimens: Move AC_LIBOBJ invocations to module description.
14945         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14946         here...
14947         * modules/futimens (configure.ac): ... to here.
14948
14949 2011-05-07  Bruno Haible  <bruno@clisp.org>
14950
14951         ftruncate: Move AC_LIBOBJ invocations to module description.
14952         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14953         gl_PREREQ_FTRUNCATE invocations from here...
14954         * modules/ftruncate (configure.ac): ... to here.
14955
14956 2011-05-07  Bruno Haible  <bruno@clisp.org>
14957
14958         fsync: Move AC_LIBOBJ invocations to module description.
14959         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14960         invocations from here...
14961         * modules/fsync (configure.ac): ... to here.
14962
14963 2011-05-07  Bruno Haible  <bruno@clisp.org>
14964
14965         fsusage: Move AC_LIBOBJ invocations to module description.
14966         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14967         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14968         * modules/fsusage (configure.ac): ... to here.
14969
14970 2011-05-07  Bruno Haible  <bruno@clisp.org>
14971
14972         freopen: Move AC_LIBOBJ invocations to module description.
14973         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14974         invocations from here...
14975         * modules/freopen (configure.ac): ... to here.
14976
14977 2011-05-07  Bruno Haible  <bruno@clisp.org>
14978
14979         free: Move AC_LIBOBJ invocations to module description.
14980         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14981         invocations from here...
14982         * modules/free (configure.ac): ... to here.
14983
14984 2011-05-07  Bruno Haible  <bruno@clisp.org>
14985
14986         freadable: Move AC_LIBOBJ invocations to module description.
14987         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14988         here...
14989         * modules/freadable (configure.ac): ... to here.
14990
14991 2011-05-07  Bruno Haible  <bruno@clisp.org>
14992
14993         fpurge: Move AC_LIBOBJ invocations to module description.
14994         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14995         invocations from here...
14996         * modules/fpurge (configure.ac): ... to here.
14997
14998 2011-05-07  Bruno Haible  <bruno@clisp.org>
14999
15000         fpending: Move AC_LIBOBJ invocations to module description.
15001         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15002         gl_FUNC_FPENDING.
15003         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15004         invocations from here...
15005         * modules/fpending (configure.ac): ... to here.
15006
15007 2011-05-07  Bruno Haible  <bruno@clisp.org>
15008
15009         fopen: Move AC_LIBOBJ invocations to module description.
15010         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15011         invocations from here...
15012         * modules/fopen (configure.ac): ... to here.
15013
15014 2011-05-07  Bruno Haible  <bruno@clisp.org>
15015
15016         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15017         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15018         gl_FUNC_FNMATCH_POSIX.
15019         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15020         invocations from here...
15021         * modules/fnmatch (configure.ac): ... to here.
15022         * modules/fnmatch-gnu (configure.ac): ... and here.
15023
15024 2011-05-07  Bruno Haible  <bruno@clisp.org>
15025
15026         flock: Move AC_LIBOBJ invocations to module description.
15027         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15028         invocations from here...
15029         * modules/flock (configure.ac): ... to here.
15030
15031 2011-05-07  Bruno Haible  <bruno@clisp.org>
15032
15033         fileblocks: Move AC_LIBOBJ invocations to module description.
15034         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15035         gl_PREREQ_FILEBLOCKS invocations from here...
15036         * modules/fileblocks (configure.ac): ... to here.
15037
15038 2011-05-06  Bruno Haible  <bruno@clisp.org>
15039
15040         fflush: Move AC_LIBOBJ invocations to module description.
15041         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15042         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15043         invocations from here...
15044         * modules/fflush (configure.ac): ... to here.
15045
15046 2011-05-06  Bruno Haible  <bruno@clisp.org>
15047
15048         fdopendir: Move AC_LIBOBJ invocations to module description.
15049         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15050         here...
15051         * modules/fdopendir (configure.ac): ... to here.
15052         (Depends-on): Improve conditions.
15053
15054 2011-05-06  Bruno Haible  <bruno@clisp.org>
15055
15056         _Exit: Move AC_LIBOBJ invocations to module description.
15057         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15058         invocations from here...
15059         * modules/_Exit (configure.ac): ... to here.
15060
15061 2011-05-21  Bruno Haible  <bruno@clisp.org>
15062
15063         euidaccess: Respect rules for use of AC_LIBOBJ.
15064         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15066         from here...
15067         * modules/euidaccess (configure.ac): ... to here.
15068
15069 2011-05-06  Bruno Haible  <bruno@clisp.org>
15070
15071         error: Move AC_LIBOBJ invocations to module description.
15072         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15073         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15074         invocations from here...
15075         * modules/error (configure.ac): ... to here.
15076
15077 2011-05-06  Bruno Haible  <bruno@clisp.org>
15078
15079         duplocale: Move AC_LIBOBJ invocations to module description.
15080         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15081         gl_PREREQ_DUPLOCALE invocations from here...
15082         * modules/duplocale (configure.ac): ... to here.
15083
15084 2011-05-05  Bruno Haible  <bruno@clisp.org>
15085
15086         dirfd: Move AC_LIBOBJ invocations to module description.
15087         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15088         gl_FUNC_DIRFD.
15089         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15090         here...
15091         * modules/dirfd (configure.ac): ... to here.
15092         (Depends-on): Fix condition.
15093
15094 2011-05-05  Bruno Haible  <bruno@clisp.org>
15095
15096         chown: Respect rules for use of AC_LIBOBJ.
15097         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15098         * modules/chown (configure.ac): ... to here.
15099
15100 2011-05-05  Bruno Haible  <bruno@clisp.org>
15101
15102         chdir-long: Move AC_LIBOBJ invocations to module description.
15103         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15104         gl_PREREQ_CHDIR_LONG invocations from here...
15105         * modules/chdir-long (configure.ac): ... to here.
15106
15107 2011-05-05  Bruno Haible  <bruno@clisp.org>
15108
15109         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15110         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15111         from here...
15112         * modules/canonicalize-lgpl (configure.ac): ... to here.
15113
15114 2011-05-05  Bruno Haible  <bruno@clisp.org>
15115
15116         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15117         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15118         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15119         REPLACE_CALLOC.
15120         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15121         * modules/calloc-gnu (configure.ac): Likewise.
15122
15123 2011-05-05  Bruno Haible  <bruno@clisp.org>
15124
15125         btowc: Move AC_LIBOBJ invocations to module description.
15126         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15127         invocations from here...
15128         * modules/btowc (configure.ac): ... to here.
15129
15130 2011-05-21  Bruno Haible  <bruno@clisp.org>
15131
15132         atexit: Move AC_LIBOBJ invocations to module description.
15133         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15134         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15135         here...
15136         * modules/atexit (configure.ac): ... to here.
15137
15138 2011-05-05  Bruno Haible  <bruno@clisp.org>
15139
15140         atoll: Move AC_LIBOBJ invocations to module description.
15141         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15142         invocations from here...
15143         * modules/atoll (configure.ac): ... to here.
15144
15145 2011-05-05  Bruno Haible  <bruno@clisp.org>
15146
15147         argz: Move AC_LIBOBJ invocations to module description.
15148         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15149         * modules/argz (configure.ac): ... to here.
15150
15151 2011-05-05  Bruno Haible  <bruno@clisp.org>
15152
15153         alphasort: Move AC_LIBOBJ invocations to module description.
15154         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15155         gl_PREREQ_ALPHASORT invocations from here...
15156         * modules/alphasort (configure.ac): ... to here.
15157
15158 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         verify: new macro verify_expr; verify_true deprecated
15161         * NEWS: Mention this.
15162         * doc/verify.texi (Compile-time Assertions): Document this.
15163         * lib/verify.h (verify_true): Deprecate.
15164         (verify_expr): New macro.
15165         * tests/test-verify.c (function): Test verify_expr.
15166
15167 2011-06-14  Jim Meyering  <meyering@redhat.com>
15168
15169         init.sh: give more portable redirection-related advice in a comment
15170         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15171         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15172         for lots of discussion.  Stefano Lattarini suggested the solution
15173         of putting "9>&2" after the command.  Reported by Bruno Haible.
15174
15175 2011-06-13  Bruno Haible  <bruno@clisp.org>
15176
15177         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15178         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15179         'none'.
15180
15181 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15182
15183         ftoastr: use strtof only if HAVE_STRTOF
15184         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15186         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15187         * modules/ftoastr (configure.ac): Check for strtof.
15188
15189 2011-06-13  Bruno Haible  <bruno@clisp.org>
15190
15191         gnulib-tool: Addendum to 2011-06-08 commit.
15192         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15193         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15194
15195 2011-06-13  Bruno Haible  <bruno@clisp.org>
15196
15197         fseeko: Provide a non-inline replacement of fseek().
15198         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15199         * modules/fseeko (Depends-on): Add fseek.
15200         * modules/fseek (License): Change to LGPLv2+.
15201
15202 2011-06-13  Bruno Haible  <bruno@clisp.org>
15203
15204         ftello: Provide a non-inline replacement of ftell().
15205         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15206         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15207         not have ftello() (such as on mingw).
15208         * modules/ftello (Depends-on): Add ftell.
15209         * modules/ftell (License): Change to LGPLv2+.
15210
15211 2011-05-07  Bruno Haible  <bruno@clisp.org>
15212
15213         ftell: Move AC_LIBOBJ invocations to module description.
15214         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15215         * modules/ftell (configure.ac): ... to here.
15216
15217 2011-05-07  Bruno Haible  <bruno@clisp.org>
15218
15219         ftello: Respect rules for use of AC_LIBOBJ.
15220         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15221         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15222         here...
15223         * modules/ftello (configure.ac): ... to here.
15224
15225 2011-05-07  Bruno Haible  <bruno@clisp.org>
15226
15227         fseeko: Simplify.
15228         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15229         (gl_FUNC_FSEEKO): Inline it here.
15230
15231 2011-05-07  Bruno Haible  <bruno@clisp.org>
15232
15233         fseek: Move AC_LIBOBJ invocations to module description.
15234         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15235         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15236         * modules/fseek (configure.ac): ... to here.
15237
15238 2011-05-07  Bruno Haible  <bruno@clisp.org>
15239
15240         fseek: Respect rules for use of AC_LIBOBJ.
15241         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15242         here...
15243         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15244
15245 2011-05-07  Bruno Haible  <bruno@clisp.org>
15246
15247         fseeko: Respect rules for use of AC_LIBOBJ.
15248         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15249         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15250         here...
15251         * modules/fseeko (configure.ac): ... to here.
15252
15253 2011-06-13  Bruno Haible  <bruno@clisp.org>
15254
15255         gnulib-tool: Allow comments in the 'Depends-on' section.
15256         * doc/gnulib.texi (Module description): Mention comment syntax in the
15257         Depends-on section.
15258         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15259
15260 2011-06-13  Bruno Haible  <bruno@clisp.org>
15261
15262         file-set.h: guard __attibute__ use, now that it's not always defined
15263         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15264         versions that support it.  This fixes a coreutils build failure with
15265         the vendor cc on HP-UX 11.31.
15266
15267 2011-06-12  Bruno Haible  <bruno@clisp.org>
15268
15269         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15270         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15271         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15272         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15273         (acl, aclsort): New declarations.
15274         (aclv_nontrivial): New declaration.
15275         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15276         (file_has_acl): Read also the second kind of HP-UX ACLs.
15277         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15278         kind of HP-UX ACLs if the first kind fails.
15279         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15280         second kind of HP-UX ACLs.
15281         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15282         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15283         agree.
15284         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15285         hpuxjfs.
15286         Handle hpuxjfs.
15287         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15288         hpuxjfs.
15289         Handle hpuxjfs.
15290         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15291         (func_test_same_acls): Use both lsacl and getacl.
15292         Handle hpuxjfs.
15293         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15294         (func_test_same_acls): Use both lsacl and getacl.
15295         Handle hpuxjfs.
15296
15297 2011-06-12  Bruno Haible  <bruno@clisp.org>
15298
15299         acl: Complete the 2010-08-10 fix.
15300         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15301         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15302         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15303         explicitly.
15304         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15305         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15306
15307 2011-06-12  Bruno Haible  <bruno@clisp.org>
15308
15309         spawn-pipe tests: Comments.
15310         * tests/test-spawn-pipe-child.c (main): Update comment.
15311         Reported by James Youngman <jay@gnu.org>.
15312
15313 2011-06-11  James Youngman  <jay@gnu.org>
15314
15315         New module 'stat-size'.
15316         * modules/stat-size: New module.  Provides macros for accessing
15317         file size information in instances of struct stat.  Depends on the
15318         fileblocks module because it calls st_blocks.
15319         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15320         * doc/gnulib.texi: Include stat-size.texi.
15321         * doc/stat-size.texi: Documentation for this module.
15322         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15323         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15324         AC_STRUCT_ST_BLOCKS.
15325
15326 2011-06-09  Bruno Haible  <bruno@clisp.org>
15327
15328         thread: Support pthreads-win32.
15329         * lib/glthread/thread.h (gl_thread_self): Define differently on
15330         pthreads-win32.
15331         (gl_null_thread): New declaration.
15332         (gl_thread_self_pointer): New macro.
15333         * lib/glthread/thread.c (gl_null_thread): New constant.
15334         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15335         gl_thread_self.
15336         * tests/test-tls.c: Likewise.
15337         Suggested by Paul Eggert. Reported by Eric Blake.
15338
15339 2011-06-09  Bruno Haible  <bruno@clisp.org>
15340
15341         thread: Fix confusion between NULL and 0.
15342         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15343         Reported by Paul Eggert.
15344
15345 2011-06-09  Bruno Haible  <bruno@clisp.org>
15346
15347         spawn-pipe tests: Avoid test failure on HP-UX 11.
15348         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15349         is closed.
15350
15351 2011-06-09  Bruno Haible  <bruno@clisp.org>
15352
15353         acl tests: Fix compilation error on HP-UX 11.
15354         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15355
15356 2011-06-09  Bruno Haible  <bruno@clisp.org>
15357
15358         rmdir: Avoid test failure on HP-UX 10.20.
15359         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15360         EEXIST.
15361
15362 2011-06-08  Eric Blake  <eblake@redhat.com>
15363
15364         perror: fix test on mingw
15365         * modules/perror-tests (Depends-on): Add dup2.
15366
15367         strerror_r-posix: fix on MacOS
15368         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15370         logic bug.
15371         * lib/strerror_r.c (strerror_r): Fix the bug.
15372         * lib/strerror.c (strerror): Likewise.
15373         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15374         problem.
15375         * doc/posix-functions/strerror.texi (strerror): Likewise.
15376         * doc/posix-functions/perror.texi (perror): Likewise.
15377         * tests/test-strerror.c (main): Enhance test.
15378         * tests/test-strerror_r.c (main): Likewise.
15379
15380 2011-06-08  Bruno Haible  <bruno@clisp.org>
15381
15382         gnulib-tool: Better isolation between different gnulib-tool invocations.
15383         * gnulib-tool: New option --witness-c-macro.
15384         (witness_c_macro): New variable.
15385         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15386         AM_CPPFLAGS define it as a C macro.
15387         (func_emit_tests_Makefile_am): Likewise.
15388         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15389         read it from there.
15390         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15391         m4_define, not AC_DEFUN.
15392         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15393         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15394         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15395         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15396         s|...|...|, to substitute the values of the GNULIB_* module indicator
15397         variables.
15398         * modules/dirent (Makefile.am): Likewise.
15399         * modules/fcntl-h (Makefile.am): Likewise.
15400         * modules/iconv-h (Makefile.am): Likewise.
15401         * modules/langinfo (Makefile.am): Likewise.
15402         * modules/locale (Makefile.am): Likewise.
15403         * modules/math (Makefile.am): Likewise.
15404         * modules/netdb (Makefile.am): Likewise.
15405         * modules/poll-h (Makefile.am): Likewise.
15406         * modules/pty (Makefile.am): Likewise.
15407         * modules/search (Makefile.am): Likewise.
15408         * modules/signal (Makefile.am): Likewise.
15409         * modules/spawn (Makefile.am): Likewise.
15410         * modules/stdio (Makefile.am): Likewise.
15411         * modules/stdlib (Makefile.am): Likewise.
15412         * modules/string (Makefile.am): Likewise.
15413         * modules/sys_ioctl (Makefile.am): Likewise.
15414         * modules/sys_select (Makefile.am): Likewise.
15415         * modules/sys_socket (Makefile.am): Likewise.
15416         * modules/sys_stat (Makefile.am): Likewise.
15417         * modules/sys_times (Makefile.am): Likewise.
15418         * modules/sys_utsname (Makefile.am): Likewise.
15419         * modules/sys_wait (Makefile.am): Likewise.
15420         * modules/termios (Makefile.am): Likewise.
15421         * modules/time (Makefile.am): Likewise.
15422         * modules/unistd (Makefile.am): Likewise.
15423         * modules/wchar (Makefile.am): Likewise.
15424
15425 2011-06-08  Eric Blake  <eblake@redhat.com>
15426
15427         strerror: simplify replacement
15428         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15429         * modules/strerror (configure.ac): No prereqs needed here...
15430         * modules/strerror-override (configure.ac): ...but this needs it.
15431         (Files): Add file for needed prereq macro.
15432
15433 2011-06-08  Bruno Haible  <bruno@clisp.org>
15434
15435         strerror_r-posix: Tweaks.
15436         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15437         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15438         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15439         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15440         (gl_FUNC_STRERROR_R): ... to here.
15441         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15442
15443 2011-06-07  Eric Blake  <eblake@redhat.com>
15444
15445         perror: document fixed bugs
15446         * doc/posix-functions/perror.texi (perror): Document recent
15447         patches.
15448
15449 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15450
15451         stat-time: get_stat_birthtime failure is better-defined
15452         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15453         return a timestamp whose tv_sec and tv_nsec values are both -1.
15454         Previously, the spec said only that the tv_nsec value was negative.
15455         This upward-compatible change simplifies GNU tar a bit.
15456
15457 2011-06-07  Eric Blake  <eblake@redhat.com>
15458
15459         strerror_r-posix: work around cygwin 1.7.9
15460         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15461         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15462         bug without replacing strerror_r.
15463         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15464         strerror_r is buggy, but without requiring strerror_r compilation.
15465         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15466
15467         test-perror: relax test to ignore cygwin bug
15468         * tests/test-perror2.c (main): Relax test on requiring detection
15469         of stream errors, and use unbuffered stream.
15470         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15471         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15472         * doc/posix-functions/fputc.texi (fputc): Likewise.
15473         * doc/posix-functions/fputs.texi (fputs): Likewise.
15474         * doc/posix-functions/fputws.texi (fputws): Likewise.
15475         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15476         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15477         * doc/posix-functions/getopt.texi (getopt): Likewise.
15478         * doc/posix-functions/perror.texi (perror): Likewise.
15479         * doc/posix-functions/printf.texi (printf): Likewise.
15480         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15481         * doc/posix-functions/psignal.texi (psignal): Likewise.
15482         * doc/posix-functions/putc.texi (putc): Likewise.
15483         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15484         Likewise.
15485         * doc/posix-functions/putchar.texi (putchar): Likewise.
15486         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15487         Likewise.
15488         * doc/posix-functions/puts.texi (puts): Likewise.
15489         * doc/posix-functions/putwc.texi (putwc): Likewise.
15490         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15491         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15492         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15493         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15494         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15495         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15496         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15497         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15498
15499 2011-05-22  Bruno Haible  <bruno@clisp.org>
15500
15501         strerror: Move AC_LIBOBJ invocations to module description.
15502         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15503         gl_PREREQ_STRERROR invocations from here...
15504         * modules/strerror (configure.ac): ... to here.
15505
15506 2011-05-21  Bruno Haible  <bruno@clisp.org>
15507
15508         perror: Use common idiom.
15509         * modules/perror (configure.ac): Reorder statements.
15510
15511 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15512
15513         tests: fix usage message in 'mktempd_'
15514         * tests/init.sh (mktempd_): In the usage message, use literal
15515         'mktempd_', not '$ME' (which is even undefined), as the name of
15516         the subroutine.
15517
15518 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15519
15520         tests init: new function 'fatal_', for hard errors
15521         Before this patch, the only way offered by tests/init.sh to
15522         properly signal a hard error was the `framework_failure_'
15523         function.  But the error message issued by that function,
15524         as its name would suggest, refers to a set-up failure in the
15525         testsuite, while hard errors can obviously also be due to
15526         other reasons.  The best way to fix this inconsistency is to
15527         introduce a new function with a more general error message.
15528         * tests/init.sh (fatal_): New function.
15529
15530 2011-06-06  Eric Blake  <eblake@redhat.com>
15531
15532         canonicalize-lgpl: use common idiom
15533         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15534         over newer POSIX -Rf.
15535         Reported by Bruno Haible.
15536
15537         canonicalize-lgpl: work around AIX realpath bug
15538         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15539         * doc/posix-functions/realpath.texi (realpath): Document it.
15540         Reported by Bruno Haible.
15541
15542         strerror: work around FreeBSD bug
15543         * lib/strerror.c (strerror): Special case 0.
15544         Reported by Bruno Haible.
15545
15546         strerror-override: avoid bloating errno module
15547         * modules/errno (Files, configure.ac): Move replacement strings...
15548         * modules/strerror-override: ...to new module.
15549         * modules/strerror (Depends-on): Add strerror-override.
15550         * modules/strerror_r-posix (Depends-on): Likewise.
15551         * MODULES.html.sh: Document new module.
15552         Reported by Bruno Haible.
15553
15554 2011-06-06  Bruno Haible  <bruno@clisp.org>
15555
15556         spawn-pipe tests: Rename program.
15557         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15558         * tests/test-spawn-pipe-child.c: Update comment.
15559         * tests/test-spawn-pipe.sh: Update.
15560         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15561
15562         spawn-pipe tests: Link the child program only against libc.
15563         * tests/test-spawn-pipe-child.c: New file, extracted from
15564         tests/test-spawn-pipe.c.
15565         (main): Expect only one argument.
15566         (is_open): New function, copied from tests/test-pipe.c.
15567         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15568         (child_main): Remove function.
15569         (test_pipe): Pass only one argument to the child program.
15570         (main): Remove child process code. Expect the child program's name as
15571         first argument.
15572         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15573         argument.
15574         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15575         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15576         test-spawn-pipe-child against no libraries.
15577
15578 2011-06-06  Bruno Haible  <bruno@clisp.org>
15579
15580         careadlinkat: Avoid mismatch between ssize_t and int.
15581         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15582         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15583
15584 2011-06-06  Jim Meyering  <meyering@redhat.com>
15585
15586         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15587         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15588         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15589
15590 2011-06-05  Bruno Haible  <bruno@clisp.org>
15591
15592         ansi-c++-opt: Interoperability with libtool.
15593         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15594         set the variable to "no", not to ":".
15595         * NEWS: Mention the change.
15596
15597 2011-06-05  Bruno Haible  <bruno@clisp.org>
15598
15599         acl: Fix test failure on AIX 7.
15600         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15601         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15602
15603 2011-06-05  Bruno Haible  <bruno@clisp.org>
15604
15605         pipe-filter-ii: Fix test failure on AIX and IRIX.
15606         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15607         with EAGAIN, retry with a smaller buffer size.
15608
15609 2011-06-05  Bruno Haible  <bruno@clisp.org>
15610
15611         localename: Fix link dependencies.
15612         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15613         * modules/localename-tests (Makefile.am): Link test-localename with
15614         $(LIBTHREAD).
15615
15616 2011-06-05  Bruno Haible  <bruno@clisp.org>
15617
15618         error: Avoid gcc warning.
15619         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15620
15621 2011-06-05  Bruno Haible  <bruno@clisp.org>
15622
15623         unsetenv: Avoid gcc warning.
15624         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15625
15626 2011-06-05  Bruno Haible  <bruno@clisp.org>
15627
15628         setenv: Avoid gcc warning.
15629         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15630
15631 2011-06-05  Bruno Haible  <bruno@clisp.org>
15632
15633         sys_select: Ensure memset is declared also on AIX 7.
15634         * lib/sys_select.in.h: Include <string.h> also on AIX.
15635         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15636         self-contained also on AIX 7.1.
15637
15638 2011-06-04  Jim Meyering  <meyering@redhat.com>
15639
15640         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15641         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15642         function name, "error".
15643         (_gl_translatable_diag_func_re): New configurable variable.
15644
15645 2011-06-04  Bruno Haible  <bruno@clisp.org>
15646
15647         getopt: Avoid gcc warning.
15648         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15649
15650 2011-06-04  Bruno Haible  <bruno@clisp.org>
15651
15652         strerror_r: Fix comments.
15653         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15654         commit.
15655
15656 2011-06-04  Bruno Haible  <bruno@clisp.org>
15657
15658         perror: Fix compilation error.
15659         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15660         Undefine fprintf, not sprintf.
15661         * modules/perror (Depends-on): Remove intprops, verify.
15662
15663 2011-06-04  Bruno Haible  <bruno@clisp.org>
15664
15665         setlocale: Enable replacement on Cygwin 1.5.
15666         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15667         Cygwin 1.5.x.
15668         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15669         LC_CTYPE category also exists on Cygwin 1.5.x.
15670
15671 2011-06-04  Bruno Haible  <bruno@clisp.org>
15672
15673         strerror-override: Don't disable symbol renamings.
15674         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15675         * lib/strerror-override.c: Include config.h.
15676         (strerror_override): Don't undefine.
15677
15678 2011-06-03  Bruno Haible  <bruno@clisp.org>
15679
15680         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15681         * lib/localename.h: Update copyright header.
15682         * lib/localename.c: Likewise.
15683         * lib/relocatable.h: Likewise.
15684         * lib/relocatable.c: Likewise.
15685
15686 2011-06-02  Bruno Haible  <bruno@clisp.org>
15687
15688         doc: Fix a module name.
15689         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15690
15691 2011-06-02  Bruno Haible  <bruno@clisp.org>
15692
15693         pipe2: Remove dependency on 'nonblocking' module.
15694         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15695         O_NONBLOCK is defined by gnulib.
15696         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15697         is zero.
15698         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15699         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15700         defined by gnulib.
15701         (get_nonblocking_flag): New function.
15702         (main): Test O_NONBLOCK flag only if it is nonzero.
15703         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15704
15705 2011-06-03  Jim Meyering  <meyering@redhat.com>
15706
15707         maint: three new prohibit-header-without-use rules
15708         Prohibit use of cloexec.h, posixver.h, same.h without use.
15709         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15710         (sc_prohibit_posixver_without_use): Likewise.
15711         (sc_prohibit_same_without_use): Likewise.
15712
15713 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15714
15715         allocator: 'die' routine is now given requested size
15716         * lib/allocator.h (struct allocator.die): New size arg.
15717         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15718         If the actual problem is an ssize_t limitation, not a size_t or
15719         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15720
15721 2011-06-01  Eric Blake  <eblake@redhat.com>
15722
15723         strerror: drop strerror_r dependency
15724         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15725         * lib/strerror-override.c (strerror_override): ...to new file.
15726         * lib/strerror-override.h: Add prototype.
15727         * lib/strerror-impl.h: Delete.
15728         * lib/strerror.c (strerror): New implementation.
15729         * modules/errno (Files): Add new files.
15730         (configure.ac): Compile new file as appropriate.
15731         * modules/strerror (Files): Drop unused file.
15732         (Depends-on): Drop strerror_r-posix.
15733         * MODULES.html.sh: Document strerror_r-posix.
15734         Requested by Sam Steingold.
15735
15736         perror: call strerror_r directly
15737         * modules/perror (Files): Drop strerror-impl.h.
15738         * lib/perror.c (perror): Use our own stack buffer, rather than
15739         calling a wrapper that uses static storage.
15740         * doc/posix-functions/perror.texi (perror): Document a limitation
15741         of our replacement.
15742
15743         strerror_r: fix includes for FreeBSD
15744         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15745         since we use abort on some platforms.
15746         Reported by Matthias Bolte.
15747
15748 2011-05-31  Bruno Haible  <bruno@clisp.org>
15749
15750         Fix link errors in tests: openat-die uses gettext-h.
15751         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15752         against $(LIBINTL).
15753         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15754         against $(LIBINTL).
15755         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15756         $(LIBINTL).
15757         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15758         against $(LIBINTL).
15759         * modules/linkat-tests (Makefile.am): Link test-linkat against
15760         $(LIBINTL).
15761         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15762         $(LIBINTL).
15763         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15764         against $(LIBINTL).
15765         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15766         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15767         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15768         $(LIBINTL).
15769         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15770         $(LIBINTL).
15771         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15772         $(LIBINTL).
15773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15774
15775 2011-05-31  Bruno Haible  <bruno@clisp.org>
15776
15777         Fix link errors in tests: wait-process uses gettext-h.
15778         * modules/nonblocking-pipe-tests (Makefile.am): Set
15779         test_nonblocking_pipe_main_LDADD.
15780         * modules/nonblocking-socket-tests (Makefile.am): Link
15781         test-nonblocking-socket-main against $(LIBINTL).
15782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15783
15784 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15785
15786         assert-h: work around 'verify' incompatibility
15787         * lib/verify.h: Use @...@ directives, not ifdef.
15788         * modules/assert-h (assert.h): Implement the directives.
15789         (assert.h): Substitute the symbol-prefix more consistently.
15790
15791 2011-05-29  Jim Meyering  <meyering@redhat.com>
15792
15793         trim: remove three superfluous assignments
15794         * lib/trim.c (trim2): Remove three superfluous assignments
15795         and correct brace positioning.
15796
15797 2011-05-29  Bruno Haible  <bruno@clisp.org>
15798
15799         wctype-h: Avoid namespace pollution on Solaris 2.6.
15800         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15801         identifiers.
15802         * doc/posix-headers/wctype.texi: Mention the problem.
15803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15804
15805 2011-05-28  Jim Meyering  <meyering@redhat.com>
15806
15807         parse-datetime.y: accommodate -Wstrict-overflow
15808         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15809         placate -Wstrict-overflow.
15810
15811         trim: avoid a warning from -O2 -Wstrict-overflow
15812         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15813
15814 2011-05-29  Bruno Haible  <bruno@clisp.org>
15815
15816         gnulib-tool: Fix bug in yesterday's commit.
15817         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15818         twice.
15819
15820 2011-05-29  Bruno Haible  <bruno@clisp.org>
15821
15822         Allow multiple gnulib generated include files to be combined.
15823         * gnulib-tool (func_compute_include_guard_prefix): New function.
15824         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15825         ${gl_include_guard_prefix} references.
15826         (func_import, func_create_testdir): Invoke
15827         func_compute_include_guard_prefix.
15828         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15829         * lib/ctype.in.h: Likewise.
15830         * lib/dirent.in.h: Likewise.
15831         * lib/errno.in.h: Likewise.
15832         * lib/fcntl.in.h: Likewise.
15833         * lib/float.in.h: Likewise.
15834         * lib/getopt.in.h: Likewise.
15835         * lib/iconv.in.h: Likewise.
15836         * lib/langinfo.in.h: Likewise.
15837         * lib/locale.in.h: Likewise.
15838         * lib/math.in.h: Likewise.
15839         * lib/netdb.in.h: Likewise.
15840         * lib/netinet_in.in.h: Likewise.
15841         * lib/poll.in.h: Likewise.
15842         * lib/pthread.in.h: Likewise.
15843         * lib/pty.in.h: Likewise.
15844         * lib/sched.in.h: Likewise.
15845         * lib/se-selinux.in.h: Likewise.
15846         * lib/search.in.h: Likewise.
15847         * lib/signal.in.h: Likewise.
15848         * lib/spawn.in.h: Likewise.
15849         * lib/stdarg.in.h: Likewise.
15850         * lib/stddef.in.h: Likewise.
15851         * lib/stdint.in.h: Likewise.
15852         * lib/stdio.in.h: Likewise.
15853         * lib/stdlib.in.h: Likewise.
15854         * lib/string.in.h: Likewise.
15855         * lib/strings.in.h: Likewise.
15856         * lib/sys_file.in.h: Likewise.
15857         * lib/sys_ioctl.in.h: Likewise.
15858         * lib/sys_select.in.h: Likewise.
15859         * lib/sys_socket.in.h: Likewise.
15860         * lib/sys_stat.in.h: Likewise.
15861         * lib/sys_time.in.h: Likewise.
15862         * lib/sys_times.in.h: Likewise.
15863         * lib/sys_uio.in.h: Likewise.
15864         * lib/sys_utsname.in.h: Likewise.
15865         * lib/sys_wait.in.h: Likewise.
15866         * lib/sysexits.in.h: Likewise.
15867         * lib/termios.in.h: Likewise.
15868         * lib/time.in.h: Likewise.
15869         * lib/unistd.in.h: Likewise.
15870         * lib/wchar.in.h: Likewise.
15871         * lib/wctype.in.h: Likewise.
15872         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15873         * modules/ctype (Makefile.am): Likewise.
15874         * modules/dirent (Makefile.am): Likewise.
15875         * modules/errno (Makefile.am): Likewise.
15876         * modules/fcntl-h (Makefile.am): Likewise.
15877         * modules/float (Makefile.am): Likewise.
15878         * modules/getopt-posix (Makefile.am): Likewise.
15879         * modules/iconv-h (Makefile.am): Likewise.
15880         * modules/langinfo (Makefile.am): Likewise.
15881         * modules/locale (Makefile.am): Likewise.
15882         * modules/math (Makefile.am): Likewise.
15883         * modules/netdb (Makefile.am): Likewise.
15884         * modules/netinet_in (Makefile.am): Likewise.
15885         * modules/poll-h (Makefile.am): Likewise.
15886         * modules/pthread (Makefile.am): Likewise.
15887         * modules/pty (Makefile.am): Likewise.
15888         * modules/sched (Makefile.am): Likewise.
15889         * modules/search (Makefile.am): Likewise.
15890         * modules/selinux-h (Makefile.am): Likewise.
15891         * modules/signal (Makefile.am): Likewise.
15892         * modules/spawn (Makefile.am): Likewise.
15893         * modules/stdarg (Makefile.am): Likewise.
15894         * modules/stddef (Makefile.am): Likewise.
15895         * modules/stdint (Makefile.am): Likewise.
15896         * modules/stdio (Makefile.am): Likewise.
15897         * modules/stdlib (Makefile.am): Likewise.
15898         * modules/string (Makefile.am): Likewise.
15899         * modules/strings (Makefile.am): Likewise.
15900         * modules/sys_file (Makefile.am): Likewise.
15901         * modules/sys_ioctl (Makefile.am): Likewise.
15902         * modules/sys_select (Makefile.am): Likewise.
15903         * modules/sys_socket (Makefile.am): Likewise.
15904         * modules/sys_stat (Makefile.am): Likewise.
15905         * modules/sys_time (Makefile.am): Likewise.
15906         * modules/sys_times (Makefile.am): Likewise.
15907         * modules/sys_uio (Makefile.am): Likewise.
15908         * modules/sys_utsname (Makefile.am): Likewise.
15909         * modules/sys_wait (Makefile.am): Likewise.
15910         * modules/sysexits (Makefile.am): Likewise.
15911         * modules/termios (Makefile.am): Likewise.
15912         * modules/time (Makefile.am): Likewise.
15913         * modules/unistd (Makefile.am): Likewise.
15914         * modules/wchar (Makefile.am): Likewise.
15915         * modules/wctype-h (Makefile.am): Likewise.
15916         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15917
15918 2011-05-29  Bruno Haible  <bruno@clisp.org>
15919
15920         assert-h: Allow multiple gnulib generated replacements to coexist.
15921         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15922
15923 2011-05-29  Bruno Haible  <bruno@clisp.org>
15924
15925         argp: Allow coexistence with strerror_r-posix module.
15926         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15927         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15928         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15929         not the glibc signature.
15930
15931 2011-05-28  Bruno Haible  <bruno@clisp.org>
15932
15933         gnulib-tool: Alternative structure of testdirs, similar to --import.
15934         * gnulib-tool: New option --single-configure.
15935         (func_usage): Document it.
15936         (single_configure): New variable.
15937         (func_modules_transitive_closure_separately,
15938         func_modules_transitive_closure_separately,
15939         func_determine_use_libtests, func_modules_add_dummy_separately,
15940         func_modules_to_filelist_separately): New functions, extracted from
15941         func_import.
15942         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15943         (func_import): Use the new functions.
15944         (func_create_testdir): Set final_modules. Handle $single_configure =
15945         true case.
15946
15947 2011-05-28  Bruno Haible  <bruno@clisp.org>
15948
15949         getloadavg: Remove an unreliable safety check.
15950         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15951         getloadavg.c is in place.
15952         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15953         Reported by Sam Steingold <sds@gnu.org>.
15954
15955 2011-05-28  Bruno Haible  <bruno@clisp.org>
15956
15957         doc: Cleanup yet another file produced by texinfo.tex.
15958         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15959
15960 2011-05-28  Bruno Haible  <bruno@clisp.org>
15961
15962         Finish the conditional dependencies mechanism.
15963         * gnulib-tool: New option --no-conditional-dependencies.
15964         (func_usage): Document it. Don't mark --conditional-dependencies as
15965         experimental.
15966         (cond_dependencies): The possible values can now be true, false, empty.
15967         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15968         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15969         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15970
15971 2011-05-28  Bruno Haible  <bruno@clisp.org>
15972
15973         doc: Use a recent texinfo.tex.
15974         * doc/Makefile (tex_opts): New variable.
15975         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15976
15977 2011-05-28  Jim Meyering  <meyering@redhat.com>
15978
15979         intprops.h: adjust comment to match code change
15980         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15981         only once, it *may* have side effects.  Also fix an unrelated typo.
15982         (_GL_INT_SIGNED): Likewise.
15983
15984 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15985
15986         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15987
15988 2011-05-26  Bruno Haible  <bruno@clisp.org>
15989
15990         mbsrchr: Avoid collision with system function on Interix.
15991         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15992         Reported by Markus Duft <mduft@gentoo.org>.
15993
15994 2011-05-15  James Youngman  <jay@gnu.org>
15995
15996         getopt: for ambiguous options, enumerate the possibilities.
15997         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15998         the ambiguous options when an ambiguous prefix is given. This was
15999         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16000         glibc change was
16001         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16002
16003 2011-05-25  Eric Blake  <eblake@redhat.com>
16004
16005         getcwd: work around mingw bug
16006         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16007         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16008         Reported by Matthias Bolte.
16009
16010 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16011
16012         test-intprops: disable -Wtype-limits diagnostics
16013         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16014         diagnostics.  Otherwise, the integer overflow macros generate many
16015         diagnostics.  Reported by Jim Meyering in
16016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16017
16018         intprops: shorten, to pacify gcc -Woverlength-strings
16019         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16020         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16021         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16022         likely to run afoul of C compiler limits for string constant lengths.
16023         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16024
16025 2011-05-24  Eric Blake  <eblake@redhat.com>
16026
16027         docs: document recently fixed glibc printf bug
16028         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16029         * doc/posix-functions/printf.texi (printf): Likewise.
16030         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16031         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16032
16033         closein-tests: convert to init.sh
16034         * modules/closein-tests (Files): Add init.sh
16035         * tests/test-closein.sh Use it.
16036
16037         yesno-tests: convert to init.sh
16038         * modules/yesno-tests (Files): Add init.sh.
16039         * tests/test-yesno.sh: Use it.
16040
16041         atexit-tests: ensure reliable exit status
16042         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16043         Reported by Bruno Haible.
16044
16045 2011-05-24  Bruno Haible  <bruno@clisp.org>
16046
16047         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16049         gl_PREREQ_STRERROR_R invocations from here...
16050         * modules/strerror_r-posix (configure.ac): ... to here.
16051
16052 2011-05-24  Eric Blake  <eblake@redhat.com>
16053
16054         strerror_r: fix missing header
16055         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16056
16057         strerror_r: fix AIX test failures
16058         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16059         ERANGE failure.
16060
16061         strerror_r: fix Solaris test failures
16062         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16063         failures.
16064         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16065
16066         strerror_r: enforce POSIX recommendations
16067         * lib/strerror_r.c (safe_copy): New helper method.
16068         (strerror_r): Guarantee a non-empty string.
16069         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16070         recent POSIX rulings and to match our strerror guarantees.
16071         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16072
16073 2011-05-24  Jim Meyering  <meyering@redhat.com>
16074
16075         test-perror2.c: avoid warning about unused variable
16076         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16077
16078 2011-05-24  Eric Blake  <eblake@redhat.com>
16079
16080         perror: avoid spurious test failure on HP-UX
16081         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16082
16083         tests: fix logic bug in init.sh
16084         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16085         shell.
16086
16087 2011-05-24  Jim Meyering  <meyering@redhat.com>
16088
16089         utimensat: do not reference an out-of-scope buffer
16090         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16091         declared in an inner scope, yet "times" would be dereferenced outside
16092         the scope in which "ts" was valid.
16093         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16094         of ts[2] "out/up", so that the use of aliased "times" (via
16095         "times = ts;") does not end up referencing an out-of-scope "ts"
16096
16097         opendir-safer.c: don't clobber errno; don't close negative FD
16098         * lib/opendir-safer.c (opendir_safer):
16099         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16100         file descriptor, and more importantly, don't clobber the
16101         offending errno value with EINVAL.  Before, upon failure
16102         of dup_safer, we would pass the negative file descriptor to
16103         fdopendir, which would clobber errno.
16104
16105 2011-05-23  Bruno Haible  <bruno@clisp.org>
16106
16107         idcache: Fix module description.
16108         * modules/idcache (Include): Set to "idcache.h".
16109
16110 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16111
16112         gnulib-tool: fix portability problem with MacOS sed
16113         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16114         before the "}".  Problem reported by Leo in
16115         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16116         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16117         sed_extract_condition1, sed_extract_condition2.
16118
16119 2011-05-23  Bruno Haible  <bruno@clisp.org>
16120
16121         hash: Simplify autoconf macro.
16122         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16123
16124 2011-05-23  Bruno Haible  <bruno@clisp.org>
16125
16126         getugroups: Fix module description.
16127         * modules/getugroups (Include): Set to "getugroups.h".
16128
16129 2011-05-23  Bruno Haible  <bruno@clisp.org>
16130
16131         linkat: Simplify autoconf macro.
16132         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16133
16134 2011-05-23  Bruno Haible  <bruno@clisp.org>
16135             Eric Blake  <eblake@redhat.com>
16136
16137         linkat, renameat: Update dependencies.
16138         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16139         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16140         symlinkat.
16141
16142 2011-05-23  Jim Meyering  <meyering@redhat.com>
16143
16144         maint.mk: more tight_scope improvements
16145         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16146         (_gl_TS_headers): Define only in if-0'd block.
16147         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16148         sometimes we must *not* use it.  Adjust uses accordingly.
16149         (sc_tight_scope): Use much simpler grep-based test to determine
16150         whether we skip this rule.
16151
16152         maint.mk: generalize/improve the tight-scope rule
16153         * top/maint.mk: Emit a warning when the test is skipped.
16154         (_gl_TS_dir): Add $(srcdir)/ prefix.
16155         (_gl_TS_function_match): Simplify, rather than trying
16156         to enumerate common types.  Otherwise, it would fail to match an
16157         "extern unsigned char const *" declaration in idutils.
16158         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16159         a way to support use of that type of macro.
16160         (_gl_TS_var_match): Simplify regexp.
16161         (_gl_TS_obj_files): New configurable variable.
16162         (_gl_TS_headers): Likewise.
16163
16164 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16165
16166         verify: fix bug when gnulib <assert.h> is also included
16167         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16168         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16169         Perhaps there's a better way, but this fixes the immediate problem.
16170         Problem reported by Bruno Haible in
16171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16172
16173 2011-05-22  Bruno Haible  <bruno@clisp.org>
16174
16175         xgetcwd: Simplify autoconf macro.
16176         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16177
16178 2011-05-22  Bruno Haible  <bruno@clisp.org>
16179
16180         New module 'mktime-internal'.
16181         * modules/mktime-internal: New file.
16182         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16183         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16184         mktime_internal as a C macro if libc has __mktime_internal.
16185         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16186         conditions.
16187         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16188
16189 2011-05-22  Bruno Haible  <bruno@clisp.org>
16190
16191         timegm: Correct mktime replacement statements.
16192         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16193         defining mktime as a C macro. This completes a 2009-07-28 commit.
16194
16195 2011-05-22  Bruno Haible  <bruno@clisp.org>
16196
16197         timegm: Simplify autoconf macro.
16198         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16199
16200 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16201
16202         clock-time: change to LGPLv2+.
16203         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16204         BSD-like but we have no mark for that; this is good enough for now.
16205
16206 2011-05-21  Bruno Haible  <bruno@clisp.org>
16207
16208         strerror_r: Fix comments.
16209         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16210
16211 2011-05-21  Bruno Haible  <bruno@clisp.org>
16212
16213         relocatable-prog-wrapper: Fix possible link error.
16214         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16215         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16216         (gl_FUNC_SETENV): ... to here.
16217         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16218         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16219
16220 2011-05-21  Bruno Haible  <bruno@clisp.org>
16221
16222         relocatable-prog-wrapper: Assume strerror() exists.
16223         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16224         m4/strerror.m4.
16225         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16226         * lib/relocwrapper.c: Remove mention of strerror module.
16227         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16228         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16229         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16230         C macro.
16231
16232 2011-05-21  Bruno Haible  <bruno@clisp.org>
16233
16234         select: Simplify replacement idiom.
16235         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16236         Win32 platforms.
16237         * lib/sys_select.in.h (select): Simplify accordingly.
16238         * modules/select (Depends-on): Likewise.
16239
16240 2011-05-21  Bruno Haible  <bruno@clisp.org>
16241
16242         mkdir-p: Simplify autoconf macro.
16243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16244         gl_FUNC_LCHOWN.
16245
16246 2011-05-21  Eric Blake  <eblake@redhat.com>
16247
16248         strerror_r: avoid clobbering strerror on cygwin
16249         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16250         fall back instead to sys_errlist.
16251         * modules/strerror (configure.ac): Add witness.
16252         * tests/test-strerror_r.c (main): Enhance test.
16253         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16254         * tests/test-perror2.c (main): Free memory before exit.
16255
16256 2011-05-21  Bruno Haible  <bruno@clisp.org>
16257
16258         mkdtemp: Use gnulib naming conventions.
16259         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16260         * modules/mkdtemp (configure.ac): Update.
16261
16262 2011-05-20  Eric Blake  <eblake@redhat.com>
16263
16264         strerror_r: avoid corrupting errno on Solaris
16265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16266         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16267
16268         strerror_r: avoid compiler warning
16269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16270
16271         strerror_r: simplify AIX code
16272         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16273
16274         test-perror: avoid spurious failure on FreeBSD
16275         * modules/perror-tests (Depends-on): Add strerror, now that
16276         strerror_r no longer pulls it in.
16277
16278 2011-05-20  Bruno Haible  <bruno@clisp.org>
16279
16280         strerror_r-posix: Remove unused dependencies.
16281         * modules/strerror_r-posix (Depends-on): Remove strerror.
16282         Reported by Eric Blake.
16283
16284 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16285
16286         intprops: remove assumption about A|B representation
16287         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16288         is a valid integer if both A and B are.  Although this is true for
16289         all known practical hosts, the C standard doesn't guarantee it,
16290         and the code need not assume it.  Also, this change may work around
16291         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16293
16294 2011-05-20  Eric Blake  <eblake@redhat.com>
16295
16296         perror: work around FreeBSD bug
16297         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16298         is broken.  Move AC_LIBOBJ...
16299         * modules/perror (configure.ac): Here.
16300         * doc/posix-functions/perror.texi (perror): Document this.
16301         * tests/test-perror2.c (main): Enhance test.
16302
16303         test-perror: check for strerror interactions
16304         * tests/macros.h (STREQ): Add macro.
16305         * modules/perror-tests (Files): Add second test.
16306         * tests/test-perror2.c (main): New file.
16307         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16308
16309         test-perror: rewrite to use init script
16310         * modules/perror-tests (Files): Add init.sh.
16311         * tests/test-perror.sh: Use temporary directory.
16312
16313 2011-05-20  Jim Meyering  <meyering@redhat.com>
16314
16315         maint: replace misused "a" with "an"
16316         * doc/intprops.texi: "a integer"
16317         * doc/regex.texi: "a explanation"
16318         * lib/alignof.h: "a object"
16319         * lib/argmatch.h: "a explanation"
16320         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16321         * lib/stdint.in.h: "a integer"
16322         * lib/userspec.c: "a owner"
16323         * doc/gnulib.texi: Fix "a idea", and reword.
16324
16325 2011-05-19  Jim Meyering  <meyering@redhat.com>
16326
16327         maint: correct misuse of "a" and "an"
16328         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16329         * lib/argp-help.c: "an docum...": s/an/a/
16330         * lib/argp-parse.c: "An vector": s/An/A/
16331         * lib/execute.c: "an native": s/an/a/
16332         * lib/spawn-pipe.c: Likewise.
16333         * lib/gc.h: "an Gc_rc": s/an/a/
16334         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16335         * lib/fts.c: "an stat.st_dev": s/an/a/
16336
16337 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16338
16339         intprops-tests: work around HP-UX 11.23 cc bug with constants
16340         * tests/test-intprops.c (VERIFY): New macro.
16341         (main): Use it, instead of verify, to work around the compiler bug; see
16342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16343
16344         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16345         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16346         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16347         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16348         (_GL_REMAINDER_OVERFLOW): Use it.
16349
16350         intprops-tests: revert unsigned part of previous change
16351         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16352         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16353         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16355
16356 2011-05-19  Bruno Haible  <bruno@clisp.org>
16357
16358         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16359         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16360         strerror_r() returned without filling the buffer.
16361         Reported by Eric Blake.
16362
16363 2011-05-19  Eric Blake  <eblake@redhat.com>
16364
16365         strerror_r: guarantee unchanged errno
16366         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16367         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16368         failure.
16369         * tests/test-strerror_r.c (main): Enhance test.
16370
16371 2011-05-19  Bruno Haible  <bruno@clisp.org>
16372
16373         strerror_r: Reorder #if blocks.
16374         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16375         for consistency with the previous commit.
16376
16377 2011-05-19  Bruno Haible  <bruno@clisp.org>
16378
16379         perror: Avoid clobbering the strerror buffer when possible.
16380         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16381         * lib/strerror.c: Include it.
16382         * modules/strerror (Files): Add lib/strerror-impl.h.
16383         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16384         (my_strerror): New function, defined through lib/strerror-impl.h.
16385         (perror): Use it instead of strerror.
16386         * modules/perror (Files): Add lib/strerror-impl.h.
16387         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16388
16389 2011-05-19  Eric Blake  <eblake@redhat.com>
16390
16391         strerror_r: fix on newer cygwin
16392         * lib/strerror_r.c (strerror_r): Cygwin now has
16393         __xpg_strerror_r, use it.
16394
16395 2011-05-19  Bruno Haible  <bruno@clisp.org>
16396
16397         strerror_r: Avoid clobbering the strerror buffer when possible.
16398         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16399         (sys_nerr, sys_errlist): New declarations.
16400         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16401         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16402         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16403
16404 2011-05-19  Bruno Haible  <bruno@clisp.org>
16405
16406         strerror_r: Fix test failure on mingw.
16407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16408         EXTEND_STRERROR_R.
16409         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16410         macros from errno.in.h instead.
16411
16412 2011-05-19  Eric Blake  <eblake@redhat.com>
16413
16414         strerror: relax test for Solaris
16415         * tests/test-strerror.c (main): Permit Solaris behavior.
16416         * tests/test-strerror_r.c (main): Likewise.
16417
16418         strerror: enforce POSIX ruling on strerror(0)
16419         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16421         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16422         * doc/posix-functions/strerror.texi (strerror): Document it.
16423         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16424         * tests/test-strerror.c (main): Strengthen test.
16425         * tests/test-strerror_r.c (main): Likewise.
16426
16427 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16428
16429         intprop-tests: port to older and more-pedantic compilers
16430         * modules/intprops-tests (Files): Add tests/macros.h.
16431         * tests/test-intprops.c: Include macros.h.
16432         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16433         it's no longer documented to expand to an integer constant expression.
16434         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16435         argument is floating point, as it's no longer documented to expand
16436         to an integer constant expression in that case.
16437         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16438         compiler bugs reported by Bruno Haible.  See
16439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16440         (U0, U1): New constants, to work around the same bugs.  Also,
16441         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16442
16443         intprops: work around C compiler bugs
16444         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16445         bug in Sun C 5.11 2010/08/13 and other compilers; see
16446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16447
16448         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16449         * doc/intprops.texi (Integer Type Determination): Fix
16450         documentation for TYPE_IS_INTEGER: it returns an constant
16451         expression, not an integer constant expression.  Fix doc for
16452         TYPE_SIGNED: it returns an integer constant expression only if its
16453         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16454         hardly worth documented that way....)
16455
16456 2011-05-18  Bruno Haible  <bruno@clisp.org>
16457
16458         strerror_r: Avoid clobbering the strerror buffer when possible.
16459         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16460         Handle gnulib defined errno values here. When strerror() returns NULL
16461         or an empty string, return EINVAL.
16462         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16463         gnulib defined errno values here.
16464         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16465
16466 2011-05-18  Eric Blake  <eblake@redhat.com>
16467
16468         fnmatch: avoid compiler warning
16469         * lib/fnmatch_loop.c (FCT): Use correct type.
16470         Reported by Matthias Bolte.
16471
16472 2011-05-13  Jim Meyering  <meyering@redhat.com>
16473
16474         maint.mk: three new prohibit_<HDR>_without_use rules
16475         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16476         (sc_prohibit_stdio-safer_without_use): Likewise.
16477         (sc_prohibit_xfreopen_without_use): Likewise.
16478
16479 2011-05-17  Jim Meyering  <meyering@redhat.com>
16480
16481         announce-gen: fail if the NEWS delta is empty
16482         If there's nothing noteworthy in NEWS, then either you forgot
16483         or you shouldn't be releasing.
16484         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16485
16486 2011-05-17  Pádraig Brady <P@draigBrady.com>
16487
16488         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16489         reserved symbols starting with double underscore from the check.
16490
16491 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16492
16493         intprops: add doc
16494         * doc/intprops.texi: New file, documenting intprops.
16495         * doc/gnulib.texi (Particular Modules): Include it.
16496
16497         verify: add doc to gnulib manual and fix example
16498         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16499         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16500         (Compile-time Assertions): Fix example so it can't overflow.
16501
16502 2011-05-17  Jim Meyering  <meyering@redhat.com>
16503
16504         warnings.m4: don't usurp save_CPPFLAGS variable name
16505         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16506
16507         doc: fix typo
16508         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16509
16510 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16511             Bruno Haible  <bruno@clisp.org>
16512
16513         doc: Tweak recent change.
16514         * README (Portability guidelines): Tweak new text.
16515         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16516         Interix 6.1.
16517
16518 2011-05-16  Eric Blake  <eblake@redhat.com>
16519
16520         inttypes: avoid autoconf warning
16521         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16522         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16523
16524 2011-05-16  Sam Steingold <sds@gnu.org>
16525         and Eric Blake  <eblake@redhat.com>
16526
16527         vc-list-files: accept multiple directory operands
16528         * build-aux/vc-list-files: Iterate over all remaining operands.
16529
16530 2011-05-16  Bruno Haible  <bruno@clisp.org>
16531
16532         Fix confusion regarding deprecated modules.
16533         * modules/calloc (Status, Notice): Mark module as deprecated, not
16534         obsolete.
16535         * modules/fnmatch-posix (Status, Notice): Likewise.
16536         * modules/getdate (Status, Notice): Likewise.
16537         * modules/getopt (Status, Notice): Likewise.
16538         * modules/malloc (Status, Notice): Likewise.
16539         * modules/pipe (Status, Notice): Likewise.
16540         * modules/realloc (Status, Notice): Likewise.
16541         * modules/rename-dest-slash (Status, Notice): Likewise.
16542         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16543         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16544         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16545         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16546         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16547
16548 2011-05-16  Bruno Haible  <bruno@clisp.org>
16549
16550         doc: List the target platforms.
16551         * doc/gnulib-intro.texi (Target Platforms): New section.
16552         * doc/gnulib.texi (Introduction): Update menu.
16553         * README (Portability guidelines): Refer to the new section. Update
16554         statement about oldest supported environment. Remove rationale why
16555         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16556         unportable C89 function.
16557         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16558         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16559
16560 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16561
16562         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16563
16564 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16565
16566         intprops-tests: new module
16567         * modules/intprops-tests, tests/test-intprops.c: New files.
16568
16569         intprops: add safe, portable integer overflow checking
16570         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16571         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16572         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16573         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16574         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16575         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16576         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16577         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16578         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16579         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16580         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16581
16582 2011-05-12  James Youngman  <jay@gnu.org>
16583
16584         Add a test for glibc's Bugzilla bug #12378.
16585         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16586         doesn't allow the literal matching of a lone "[" (which is
16587         required by POSIX).
16588         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16589
16590 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16591
16592         Sync glibc change fixing Bugzilla bug #12378.
16593         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16594         beginning and fall back to matching as normal character if the
16595         string ends before the matching ']' is found.  This is what POSIX
16596         requires.
16597
16598 2011-05-13  Eric Blake  <eblake@redhat.com>
16599
16600         getcwd-lgpl: relax test for FreeBSD
16601         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16602         issue.
16603         * tests/test-getcwd-lgpl.c (main): Relax test.
16604         Reported by Matthias Bolte.
16605
16606 2011-05-11  Eric Blake  <eblake@redhat.com>
16607
16608         test-fflush: silence compiler warning
16609         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16610
16611 2011-05-11  Bruno Haible  <bruno@clisp.org>
16612
16613         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16614         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16615         * modules/canonicalize (Depends-on): Add 'nocrash'.
16616         * modules/canonicalize-lgpl (Depends-on): Likewise.
16617         * doc/posix-functions/realpath.texi: Update platforms list.
16618         Reported by Ryan Schmidt <ryandesign@macports.org>.
16619
16620 2011-05-11  Bruno Haible  <bruno@clisp.org>
16621
16622         group-member: Declare function in <unistd.h>.
16623         * lib/unistd.in.h (group_member): New declaration.
16624         * lib/group-member.h: Remove file.
16625         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16626         * tests/test-unistd-c++.cc: Check signature of group_member.
16627         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16628         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16629         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16630         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16631         HAVE_GROUP_MEMBER.
16632         * modules/group-member (Files): Remove lib/group-member.h.
16633         (Depends-on): Add unistd. Specify conditions.
16634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16635         (Include): Change to <unistd.h>.
16636         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16637         HAVE_GROUP_MEMBER.
16638         * NEWS: Mention the change.
16639         * lib/euidaccess.c: Don't include group-member.h.
16640
16641 2011-05-11  Bruno Haible  <bruno@clisp.org>
16642
16643         group-member: Document module.
16644         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16645         module.
16646
16647 2011-05-11  Bruno Haible  <bruno@clisp.org>
16648
16649         fclose: Fix mistake earlier today.
16650         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16651
16652 2011-05-11  Eric Blake  <eblake@redhat.com>
16653
16654         fclose: preserve fflush errors
16655         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16656         Reported by Jim Meyering.
16657
16658         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16659         * build-aux/bootstrap (check_versions): When no specific version
16660         is required, merely check that the app produces an exit status
16661         that indicates its existence.
16662
16663         maint.mk: drop redundant check
16664         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16665         the same but better.
16666
16667 2011-05-11  Bruno Haible  <bruno@clisp.org>
16668
16669         fclose: Fix possible link error.
16670         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16671         unregister_shadow_fd. Improve comments.
16672         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16673         Eric Blake.
16674
16675 2011-05-11  Jim Meyering  <meyering@redhat.com>
16676
16677         maint.mk: improve "can not" detection and generalize rule name
16678         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16679         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16680         Use the same technique as in sc_prohibit_doubled_word, so that
16681         we recognize "can not" also when the words are separated by a newline.
16682         Suggested by Eric Blake.
16683         (perl_filename_lineno_text_): Define.  Factored out of...
16684         (prohibit_doubled_word_): ...here.  Use the new definition.
16685         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16686         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16687         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16688
16689 2011-05-10  Eric Blake  <eblake@redhat.com>
16690
16691         fclose: avoid double close race when possible
16692         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16693         all but WINDOWS_SOCKETS.
16694
16695 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16696
16697         openat: correct new comment
16698         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16699
16700 2011-05-10  Jim Meyering  <meyering@redhat.com>
16701
16702         openat: add comments
16703         * lib/openat-proc.c (openat_proc_name): Add comments,
16704         mostly from Eric Blake.
16705
16706 2011-05-09  Eric Blake  <eblake@redhat.com>
16707
16708         openat: reduce syscalls in first probe of /proc
16709         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16710         be a directory.  Simplify the probe for .. bugs.
16711         * modules/openat (Depends-on): Drop same-inode.
16712         Reported by Bastien ROUCARIES.
16713
16714 2011-05-09  Jim Meyering  <meyering@redhat.com>
16715
16716         maint.mk: change semantics/name of tight_scope variables
16717         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16718         Rename variables to align with semantics that make them more useful.
16719
16720         maint.mk: tweak new rule's name not to impinge
16721         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16722         (sc_tight_scope): Use new rule name rather than $@-0.
16723
16724         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16725         * top/maint.mk (sc_tight_scope): New rule.
16726         (sc_tight_scope-0): New rule, ifdef'd out.
16727         (_gl_TS_dir): Default.
16728         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16729         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16730
16731 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16732
16733         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16734         Haible <bruno@clisp.org>.
16735
16736 2011-05-08  Bruno Haible  <bruno@clisp.org>
16737
16738         Comments.
16739         * m4/isnanf.m4: Add comment.
16740         * m4/isnanl.m4: Likewise.
16741
16742 2011-05-08  Bruno Haible  <bruno@clisp.org>
16743
16744         glob: Remove obsolete macro.
16745         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16746
16747 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16748
16749         intprops: Sun C 5.11 supports __typeof__
16750         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16751         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16752         which is new.
16753         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16754
16755         intprops: switch to usual gnulib indenting and naming
16756         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16757         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16758
16759         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16760
16761 2011-05-08  Jim Meyering  <meyering@redhat.com>
16762
16763         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16764         * top/maint.mk (release-prep): Use make's --no-print-directory
16765         option when generating the announcement.  This eliminates the
16766         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16767         generated announcement template.
16768
16769 2011-05-08  Bruno Haible  <bruno@clisp.org>
16770
16771         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16772         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16773         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16774
16775 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16776
16777         ignore-value, verify: Omit include files from lib_SOURCES.
16778         * modules/ignore-value, modules/verify (Makefile.am):
16779         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16780         that leads Automake to duplicate use of am__objects_... variables
16781         in Makefile.in.  See
16782         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16783
16784 2011-05-07  Bruno Haible  <bruno@clisp.org>
16785
16786         fclose: Simplify autoconf macro.
16787         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16788         defined.
16789
16790 2011-05-07  Bruno Haible  <bruno@clisp.org>
16791
16792         canonicalize-lgpl: Fix autoconf macro ordering bug.
16793         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16794         gl_STDLIB_H_DEFAULTS.
16795
16796 2011-05-06  Eric Blake  <eblake@redhat.com>
16797
16798         maintainer-makefile: make sc_po_check easier to tune
16799         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16800         to probe for strings, such as an alternate location for gnulib.
16801
16802         fclose: guarantee behavior on seekable stdin
16803         * modules/fclose (Depends-on): Add fflush.
16804         * doc/posix-functions/fclose.texi (fclose): Document this.
16805         * tests/test-fclose.c (main): Make test for this unconditional.
16806
16807 2011-05-06  Bruno Haible  <bruno@clisp.org>
16808
16809         fflush, fpurge: Relicense under LGPLv2+.
16810         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16811         * modules/fpurge (License): Likewise.
16812         With permission from Eric Blake and Jim Meyering.
16813         Suggested by Eric Blake.
16814
16815 2011-05-06  Karl Berry  <karl@gnu.org>
16816
16817         * MODULES.html.sh (func_all_modules): remove exit.
16818
16819 2011-05-06  Jim Meyering  <meyering@redhat.com>
16820
16821         maint.mk: use info-gnu@ as the default only for a stable release
16822         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16823         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16824         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16825         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16826
16827 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16828
16829         assert-h: new module, which supports C1X-style static_assert
16830         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16831         * lib/verify.h: Revamp so that this can be copied into assert.h,
16832         while retaining the ability to use it standalone as before.
16833         Rename private identifiers so as not to encroach on the
16834         standard C namespace, since this is now used by assert.h.
16835         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16836         the old verify_true.
16837         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16838         the old verify_true.  Use _GL_VERIFY_TYPE.
16839         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16840         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16841         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16842         defined when this file is copied into the replacement assert.h.
16843         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16844         and _Static_assert is not built in.
16845         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16846         defined, and use the new macros mentioned above.
16847         * doc/posix-headers/assert.texi: Document this.
16848
16849 2011-05-05  Bruno Haible  <bruno@clisp.org>
16850
16851         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16852         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16853         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16854         gl_REPLACE_FCLOSE here.
16855         * modules/fflush (Depends-on): Remove fclose.
16856         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16857         combination with module 'fclose'.
16858
16859 2011-05-05  Bruno Haible  <bruno@clisp.org>
16860
16861         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16862         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16863         gl_FUNC_FFLUSH.
16864         (gl_FUNC_FFLUSH): Use it.
16865         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16866         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16867         gl_REPLACE_FSEEKO here.
16868
16869 2011-05-05  Bruno Haible  <bruno@clisp.org>
16870
16871         tzset: Relicense under LGPL.
16872         * modules/tzset (License): Change to LGPL.
16873         No agreement needed; it's a no-op.
16874
16875         strtoimax, strtoumax: Relicense under LGPL.
16876         * modules/strtoimax (License): Change to LGPL.
16877         * modules/strtoumax (License): Likewise.
16878         With permission from Jim Meyering, Paul Eggert:
16879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16881
16882         getgroups: Relicense under LGPL.
16883         * modules/getgroups (License): Change to LGPL.
16884         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16888
16889         nanosleep: Relicense under LGPL.
16890         * modules/nanosleep (License): Change to LGPL.
16891         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16892         Haible:
16893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16897
16898         futimens: Relicense under LGPL.
16899         * modules/futimens (License): Change to LGPL.
16900         With permission from Eric Blake:
16901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16902
16903         fflush: Relicense under LGPL.
16904         * modules/fflush (License): Change to LGPL.
16905         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16909
16910         tmpfile: Relicense under LGPL.
16911         * modules/tmpfile (License): Change to LGPL.
16912         With permission from Ben Pfaff:
16913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16914
16915         isfinite: Relicense under LGPL.
16916         * modules/isfinite (License): Change to LGPL.
16917         With permission from Ben Pfaff, Bruno Haible:
16918         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16920
16921         acosl..tanl: Relicense under LGPL.
16922         * modules/acosl (License): Change to LGPL.
16923         * modules/asinl (License): Likewise.
16924         * modules/atanl (License): Likewise.
16925         * modules/cosl (License): Likewise.
16926         * modules/expl (License): Likewise.
16927         * modules/logl (License): Likewise.
16928         * modules/sinl (License): Likewise.
16929         * modules/sqrtl (License): Likewise.
16930         * modules/tanl (License): Likewise.
16931         Source code originally from glibc and Paolo Bonzini. Agreements:
16932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16934
16935 2011-05-05  Bruno Haible  <bruno@clisp.org>
16936
16937         signal: Define sighandler_t.
16938         * lib/signal.in.h (sighandler_t): New type.
16939         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16940         whether sighandler_t is defined.
16941         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16942         * modules/signal (Depends-on): Add extensions.
16943         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16944         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16945         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16946
16947 2011-05-05  Eric Blake  <eblake@redhat.com>
16948
16949         maint: remove useless REPLACE_*_H macros
16950         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16951         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16952         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16953         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16954         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16955         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16956         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16957         * m4/btowc.m4: Update callers.
16958         * m4/dirfd.m4: Likewise.
16959         * m4/duplocale.m4: Likewise.
16960         * m4/fchdir.m4: Likewise.
16961         * m4/fdopendir.m4: Likewise.
16962         * m4/inet_ntop.m4: Likewise.
16963         * m4/inet_pton.m4: Likewise.
16964         * m4/ioctl.m4: Likewise.
16965         * m4/mbrlen.m4: Likewise.
16966         * m4/mbrtowc.m4: Likewise.
16967         * m4/mbsinit.m4: Likewise.
16968         * m4/mbsnrtowcs.m4: Likewise.
16969         * m4/mbsrtowcs.m4: Likewise.
16970         * m4/poll.m4: Likewise.
16971         * m4/setlocale.m4: Likewise.
16972         * m4/wcrtomb.m4: Likewise.
16973         * m4/wcsnrtombs.m4: Likewise.
16974         * m4/wcsrtombs.m4: Likewise.
16975         * m4/wctob.m4: Likewise.
16976         * m4/wcwidth.m4: Likewise.
16977         * modules/posix_spawn: Likewise.
16978         * modules/posix_spawn_file_actions_addclose: Likewise.
16979         * modules/posix_spawn_file_actions_adddup2: Likewise.
16980         * modules/posix_spawn_file_actions_addopen: Likewise.
16981         * modules/posix_spawn_file_actions_destroy: Likewise.
16982         * modules/posix_spawn_file_actions_init: Likewise.
16983         * modules/posix_spawnattr_destroy: Likewise.
16984         * modules/posix_spawnattr_getflags: Likewise.
16985         * modules/posix_spawnattr_getpgroup: Likewise.
16986         * modules/posix_spawnattr_getschedparam: Likewise.
16987         * modules/posix_spawnattr_getschedpolicy: Likewise.
16988         * modules/posix_spawnattr_getsigdefault: Likewise.
16989         * modules/posix_spawnattr_getsigmask: Likewise.
16990         * modules/posix_spawnattr_init: Likewise.
16991         * modules/posix_spawnattr_setflags: Likewise.
16992         * modules/posix_spawnattr_setpgroup: Likewise.
16993         * modules/posix_spawnattr_setschedparam: Likewise.
16994         * modules/posix_spawnattr_setschedpolicy: Likewise.
16995         * modules/posix_spawnattr_setsigdefault: Likewise.
16996         * modules/posix_spawnattr_setsigmask: Likewise.
16997         * modules/posix_spawnp: Likewise.
16998
16999 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17000
17001         Add option to do-release-commit-and-tag to specify branch.
17002         * build-aux/do-release-commit-and-tag: Add --branch.
17003
17004 2011-05-03  Bruno Haible  <bruno@clisp.org>
17005
17006         Avoid unnecessary compilation units, through conditional dependencies.
17007         * modules/accept (Depends-on): Add conditions to the dependencies.
17008         * modules/acosl (Depends-on): Likewise.
17009         * modules/argz (Depends-on): Likewise.
17010         * modules/asinl (Depends-on): Likewise.
17011         * modules/atanl (Depends-on): Likewise.
17012         * modules/atoll (Depends-on): Likewise.
17013         * modules/bind (Depends-on): Likewise.
17014         * modules/btowc (Depends-on): Likewise.
17015         * modules/canonicalize-lgpl (Depends-on): Likewise.
17016         * modules/ceil (Depends-on): Likewise.
17017         * modules/ceilf (Depends-on): Likewise.
17018         * modules/ceill (Depends-on): Likewise.
17019         * modules/chdir-long (Depends-on): Likewise.
17020         * modules/chown (Depends-on): Likewise.
17021         * modules/close (Depends-on): Likewise.
17022         * modules/connect (Depends-on): Likewise.
17023         * modules/cosl (Depends-on): Likewise.
17024         * modules/dirfd (Depends-on): Likewise.
17025         * modules/dprintf (Depends-on): Likewise.
17026         * modules/dprintf-posix (Depends-on): Likewise.
17027         * modules/error (Depends-on): Likewise.
17028         * modules/euidaccess (Depends-on): Likewise.
17029         * modules/expl (Depends-on): Likewise.
17030         * modules/faccessat (Depends-on): Likewise.
17031         * modules/fchdir (Depends-on): Likewise.
17032         * modules/fclose (Depends-on): Likewise.
17033         * modules/fcntl (Depends-on): Likewise.
17034         * modules/fdopendir (Depends-on): Likewise.
17035         * modules/fflush (Depends-on): Likewise.
17036         * modules/floor (Depends-on): Likewise.
17037         * modules/floorf (Depends-on): Likewise.
17038         * modules/floorl (Depends-on): Likewise.
17039         * modules/fnmatch (Depends-on): Likewise.
17040         * modules/fopen (Depends-on): Likewise.
17041         * modules/fprintf-posix (Depends-on): Likewise.
17042         * modules/frexp (Depends-on): Likewise.
17043         * modules/frexp-nolibm (Depends-on): Likewise.
17044         * modules/frexpl (Depends-on): Likewise.
17045         * modules/frexpl-nolibm (Depends-on): Likewise.
17046         * modules/fseek (Depends-on): Likewise.
17047         * modules/fsusage (Depends-on): Likewise.
17048         * modules/ftell (Depends-on): Likewise.
17049         * modules/ftello (Depends-on): Likewise.
17050         * modules/futimens (Depends-on): Likewise.
17051         * modules/getcwd (Depends-on): Likewise.
17052         * modules/getcwd-lgpl (Depends-on): Likewise.
17053         * modules/getdelim (Depends-on): Likewise.
17054         * modules/getdomainname (Depends-on): Likewise.
17055         * modules/getgroups (Depends-on): Likewise.
17056         * modules/gethostname (Depends-on): Likewise.
17057         * modules/getline (Depends-on): Likewise.
17058         * modules/getlogin_r (Depends-on): Likewise.
17059         * modules/getopt-posix (Depends-on): Likewise.
17060         * modules/getpeername (Depends-on): Likewise.
17061         * modules/getsockname (Depends-on): Likewise.
17062         * modules/getsockopt (Depends-on): Likewise.
17063         * modules/getsubopt (Depends-on): Likewise.
17064         * modules/getusershell (Depends-on): Likewise.
17065         * modules/glob (Depends-on): Likewise.
17066         * modules/grantpt (Depends-on): Likewise.
17067         * modules/iconv_open (Depends-on): Likewise.
17068         * modules/iconv_open-utf (Depends-on): Likewise.
17069         * modules/inet_ntop (Depends-on): Likewise.
17070         * modules/inet_pton (Depends-on): Likewise.
17071         * modules/ioctl (Depends-on): Likewise.
17072         * modules/isapipe (Depends-on): Likewise.
17073         * modules/isfinite (Depends-on): Likewise.
17074         * modules/isinf (Depends-on): Likewise.
17075         * modules/lchown (Depends-on): Likewise.
17076         * modules/ldexpl (Depends-on): Likewise.
17077         * modules/link (Depends-on): Likewise.
17078         * modules/linkat (Depends-on): Likewise.
17079         * modules/listen (Depends-on): Likewise.
17080         * modules/logl (Depends-on): Likewise.
17081         * modules/lstat (Depends-on): Likewise.
17082         * modules/mbrlen (Depends-on): Likewise.
17083         * modules/mbrtowc (Depends-on): Likewise.
17084         * modules/mbsinit (Depends-on): Likewise.
17085         * modules/mbsnrtowcs (Depends-on): Likewise.
17086         * modules/mbsrtowcs (Depends-on): Likewise.
17087         * modules/mbtowc (Depends-on): Likewise.
17088         * modules/memcmp (Depends-on): Likewise.
17089         * modules/mkdir (Depends-on): Likewise.
17090         * modules/mkdtemp (Depends-on): Likewise.
17091         * modules/mkfifo (Depends-on): Likewise.
17092         * modules/mkfifoat (Depends-on): Likewise.
17093         * modules/mknod (Depends-on): Likewise.
17094         * modules/mkostemp (Depends-on): Likewise.
17095         * modules/mkostemps (Depends-on): Likewise.
17096         * modules/mkstemp (Depends-on): Likewise.
17097         * modules/mkstemps (Depends-on): Likewise.
17098         * modules/mktime (Depends-on): Likewise.
17099         * modules/nanosleep (Depends-on): Likewise.
17100         * modules/open (Depends-on): Likewise.
17101         * modules/openat (Depends-on): Likewise.
17102         * modules/perror (Depends-on): Likewise.
17103         * modules/poll (Depends-on): Likewise.
17104         * modules/popen (Depends-on): Likewise.
17105         * modules/posix_spawn (Depends-on): Likewise.
17106         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17107         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17108         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17109         * modules/posix_spawnp (Depends-on): Likewise.
17110         * modules/pread (Depends-on): Likewise.
17111         * modules/printf-posix (Depends-on): Likewise.
17112         * modules/ptsname (Depends-on): Likewise.
17113         * modules/putenv (Depends-on): Likewise.
17114         * modules/pwrite (Depends-on): Likewise.
17115         * modules/readline (Depends-on): Likewise.
17116         * modules/readlink (Depends-on): Likewise.
17117         * modules/readlinkat (Depends-on): Likewise.
17118         * modules/recv (Depends-on): Likewise.
17119         * modules/recvfrom (Depends-on): Likewise.
17120         * modules/regex (Depends-on): Likewise.
17121         * modules/remove (Depends-on): Likewise.
17122         * modules/rename (Depends-on): Likewise.
17123         * modules/renameat (Depends-on): Likewise.
17124         * modules/rmdir (Depends-on): Likewise.
17125         * modules/round (Depends-on): Likewise.
17126         * modules/roundf (Depends-on): Likewise.
17127         * modules/roundl (Depends-on): Likewise.
17128         * modules/rpmatch (Depends-on): Likewise.
17129         * modules/select (Depends-on): Likewise.
17130         * modules/send (Depends-on): Likewise.
17131         * modules/sendto (Depends-on): Likewise.
17132         * modules/setenv (Depends-on): Likewise.
17133         * modules/setlocale (Depends-on): Likewise.
17134         * modules/setsockopt (Depends-on): Likewise.
17135         * modules/shutdown (Depends-on): Likewise.
17136         * modules/sigaction (Depends-on): Likewise.
17137         * modules/signbit (Depends-on): Likewise.
17138         * modules/sigprocmask (Depends-on): Likewise.
17139         * modules/sinl (Depends-on): Likewise.
17140         * modules/sleep (Depends-on): Likewise.
17141         * modules/snprintf (Depends-on): Likewise.
17142         * modules/snprintf-posix (Depends-on): Likewise.
17143         * modules/socket (Depends-on): Likewise.
17144         * modules/sprintf-posix (Depends-on): Likewise.
17145         * modules/sqrtl (Depends-on): Likewise.
17146         * modules/stat (Depends-on): Likewise.
17147         * modules/strchrnul (Depends-on): Likewise.
17148         * modules/strdup-posix (Depends-on): Likewise.
17149         * modules/strerror (Depends-on): Likewise.
17150         * modules/strerror_r-posix (Depends-on): Likewise.
17151         * modules/strndup (Depends-on): Likewise.
17152         * modules/strnlen (Depends-on): Likewise.
17153         * modules/strptime (Depends-on): Likewise.
17154         * modules/strsep (Depends-on): Likewise.
17155         * modules/strsignal (Depends-on): Likewise.
17156         * modules/strstr-simple (Depends-on): Likewise.
17157         * modules/strtod (Depends-on): Likewise.
17158         * modules/strtoimax (Depends-on): Likewise.
17159         * modules/strtok_r (Depends-on): Likewise.
17160         * modules/strtoumax (Depends-on): Likewise.
17161         * modules/symlink (Depends-on): Likewise.
17162         * modules/symlinkat (Depends-on): Likewise.
17163         * modules/tanl (Depends-on): Likewise.
17164         * modules/tcgetsid (Depends-on): Likewise.
17165         * modules/tmpfile (Depends-on): Likewise.
17166         * modules/trunc (Depends-on): Likewise.
17167         * modules/truncf (Depends-on): Likewise.
17168         * modules/truncl (Depends-on): Likewise.
17169         * modules/uname (Depends-on): Likewise.
17170         * modules/unlink (Depends-on): Likewise.
17171         * modules/unlockpt (Depends-on): Likewise.
17172         * modules/unsetenv (Depends-on): Likewise.
17173         * modules/usleep (Depends-on): Likewise.
17174         * modules/utimensat (Depends-on): Likewise.
17175         * modules/vasprintf (Depends-on): Likewise.
17176         * modules/vdprintf (Depends-on): Likewise.
17177         * modules/vdprintf-posix (Depends-on): Likewise.
17178         * modules/vfprintf-posix (Depends-on): Likewise.
17179         * modules/vprintf-posix (Depends-on): Likewise.
17180         * modules/vsnprintf (Depends-on): Likewise.
17181         * modules/vsnprintf-posix (Depends-on): Likewise.
17182         * modules/vsprintf-posix (Depends-on): Likewise.
17183         * modules/wcrtomb (Depends-on): Likewise.
17184         * modules/wcscasecmp (Depends-on): Likewise.
17185         * modules/wcscspn (Depends-on): Likewise.
17186         * modules/wcsdup (Depends-on): Likewise.
17187         * modules/wcsncasecmp (Depends-on): Likewise.
17188         * modules/wcsnrtombs (Depends-on): Likewise.
17189         * modules/wcspbrk (Depends-on): Likewise.
17190         * modules/wcsrtombs (Depends-on): Likewise.
17191         * modules/wcsspn (Depends-on): Likewise.
17192         * modules/wcsstr (Depends-on): Likewise.
17193         * modules/wcstok (Depends-on): Likewise.
17194         * modules/wcswidth (Depends-on): Likewise.
17195         * modules/wctob (Depends-on): Likewise.
17196         * modules/wctomb (Depends-on): Likewise.
17197         * modules/wctype (Depends-on): Likewise.
17198         * modules/wcwidth (Depends-on): Likewise.
17199         * modules/write (Depends-on): Likewise.
17200
17201 2011-05-03  Bruno Haible  <bruno@clisp.org>
17202
17203         Support for conditional dependencies.
17204         * doc/gnulib.texi (Module description): Document the syntax of
17205         conditional dependencies.
17206         * gnulib-tool: New option --conditional-dependencies.
17207         (func_usage): Document it.
17208         (cond_dependencies): New variable.
17209         (func_get_automake_snippet_conditional,
17210         func_get_automake_snippet_unconditional): New functions, extracted from
17211         func_get_automake_snippet.
17212         (func_get_automake_snippet): Use them.
17213         (sed_first_32_chars): New variable.
17214         (func_module_shellfunc_name): New function.
17215         (func_module_shellvar_name): New function.
17216         (func_module_conditional_name): New function.
17217         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17218         func_cond_module_condition): New functions.
17219         (func_modules_transitive_closure): Add support for conditional
17220         dependencies.
17221         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17222         conditional automake snippet in an automake conditional.
17223         (func_emit_autoconf_snippets): Emit shell functions that contain the
17224         code for conditional modules.
17225         (func_import, func_create_testdir): Update specification.
17226
17227 2011-05-03  Eric Blake  <eblake@redhat.com>
17228
17229         test-getaddrinfo: report error information
17230         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17231
17232 2011-05-03  Jim Meyering  <meyering@redhat.com>
17233
17234         bootstrap: avoid build failure when $GZIP is set
17235         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17236         program name.  If defined at all, it is supposed to list gzip options.
17237         Reported by Alan Curry in http://debbugs.gnu.org/8609
17238
17239 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17240
17241         readme-release: new module with release instructions
17242         * modules/readme-release: New module.
17243         * top/README-release: New file, from coreutils, grep, diffutils.
17244         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17245
17246 2011-05-02  Eric Blake  <eblake@redhat.com>
17247
17248         fflush: also replace fclose when fixing fflush
17249         * modules/fflush (Depends-on): Add fclose.
17250         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17251         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17252         memstreams with no backing fd.
17253         * doc/posix-functions/fclose.texi (fclose): Document the use of
17254         fflush module to fix the bug.
17255         * tests/test-fclose.c (main): Relax test when fclose is used in
17256         isolation.
17257
17258         fclose: add some tests
17259         * modules/fclose-tests: New test module.
17260         * tests/test-fclose.c: New file.
17261         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17262
17263         fclose: reduced dependencies
17264         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17265         simpler lseek.
17266         * lib/fclose.c (rpl_fclose): Likewise.
17267         Reported by Simon Josefsson.
17268
17269         exit: drop remaining clients
17270         * modules/argmatch (Depends-on): Replace exit with stdlib.
17271         * modules/copy-file (Depends-on): Likewise.
17272         * modules/execute (Depends-on): Likewise.
17273         * modules/exitfail (Depends-on): Likewise.
17274         * modules/obstack (Depends-on): Likewise.
17275         * modules/pagealign_alloc (Depends-on): Likewise.
17276         * modules/pipe-filter-gi (Depends-on): Likewise.
17277         * modules/pipe-filter-ii (Depends-on): Likewise.
17278         * modules/savewd (Depends-on): Likewise.
17279         * modules/spawn-pipe (Depends-on): Likewise.
17280         * modules/wait-process (Depends-on): Likewise.
17281         * modules/xsetenv (Depends-on): Likewise.
17282         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17283         * modules/git-merge-changelog (Depends-on): Likewise.
17284         * modules/long-options (Depends-on): Likewise.
17285         * modules/pt_chown (Depends-on): Likewise.
17286         * modules/sysexits (Depends-on): Likewise.
17287
17288         freading: relax license from LGPLv3+ to LGPLv2+
17289         * modules/freading (License): Relax LGPL version.
17290
17291 2011-05-02  Bruno Haible  <bruno@clisp.org>
17292
17293         fchdir: Remove unused dependencies.
17294         * modules/fchdir (Depends-on): Remove include_next.
17295
17296 2011-05-02  Bruno Haible  <bruno@clisp.org>
17297
17298         gnulib-tool: Refactor.
17299         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17300         from func_emit_autoconf_snippets.
17301         (func_emit_autoconf_snippets): Use it.
17302
17303 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17304
17305         * NEWS: Document removal of 'exit'.
17306         * modules/exit: Remove file.
17307
17308 2011-05-01  Bruno Haible  <bruno@clisp.org>
17309
17310         Update DEPENDENCIES.
17311         * DEPENDENCIES (gettext): Recommend the newest release.
17312         Reported by Simon Josefsson.
17313
17314 2011-05-01  Bruno Haible  <bruno@clisp.org>
17315
17316         gnulib-tool: Reduce code duplication.
17317         * gnulib-tool (func_emit_autoconf_snippets): New function.
17318         (func_import, func_create_testdir): Use it.
17319
17320 2011-04-30  Eric Blake  <eblake@redhat.com>
17321
17322         fclose: don't fail on non-seekable input stream
17323         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17324         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17325         since fflush is allowed to fail in that case.
17326
17327 2011-04-30  Bruno Haible  <bruno@clisp.org>
17328
17329         dup3: cleanup
17330         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17331
17332 2011-04-30  Bruno Haible  <bruno@clisp.org>
17333
17334         netdb: Make it work in C++ mode.
17335         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17336         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17337         module.
17338         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17339         gl_MODULE_INDICATOR_FOR_TESTS.
17340         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17341         * modules/netdb-c++-tests: New file.
17342         * tests/test-netdb-c++.cc: New file.
17343
17344 2011-04-30  Bruno Haible  <bruno@clisp.org>
17345
17346         New modules 'vfscanf', 'vscanf'.
17347         * modules/vfscanf: New file.
17348         * modules/vscanf: New file.
17349         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17350         here.
17351         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17352         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17353
17354 2011-04-30  Bruno Haible  <bruno@clisp.org>
17355
17356         passfd: Add comments.
17357         * lib/passfd.c: Add comments about platforms.
17358
17359 2011-04-30  Bruno Haible  <bruno@clisp.org>
17360
17361         sys_uio: Make <sys/uio.h> self-contained.
17362         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17363         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17364
17365 2011-04-30  Bruno Haible  <bruno@clisp.org>
17366
17367         sys_socket: Ensure 'struct iovec' definition.
17368         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17369         <sys/socket.h>.
17370         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17371
17372 2011-04-30  Bruno Haible  <bruno@clisp.org>
17373
17374         sys_uio: Protect definition of 'struct iovec'.
17375         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17376         it as a C struct.
17377
17378 2011-04-30  Bruno Haible  <bruno@clisp.org>
17379
17380         manywarnings: fix indentation
17381         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17382
17383 2011-04-30  Pádraig Brady <P@draigBrady.com>
17384
17385         manywarnings: add -Wno-missing-field-initializers if needed.
17386         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17387         option if it's needed to allow initialization with { 0, }
17388
17389 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17390
17391         announce-gen: cosmetic improvement
17392         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17393
17394 2011-04-29  Jim Meyering  <meyering@redhat.com>
17395
17396         vc-list-files: indent with spaces, not TABs
17397         * build-aux/vc-list-files: Convert leading TABs to spaces,
17398         to match the style of most other files in gnulib.
17399
17400         announce-gen: indent with spaces, not TABs
17401         * build-aux/announce-gen: Convert all TABs to spaces, to match
17402         the style of most other files in gnulib.
17403
17404 2011-04-29  Eric Blake  <eblake@redhat.com>
17405
17406         quotearg: avoid uninitialized variable use
17407         * lib/quotearg.c (quoting_options_from_style): Initialize
17408         remaining fields, and ensure that custom styles are only used via
17409         quoting_options rather than quoting_style.
17410
17411 2011-04-29  Jim Meyering  <meyering@redhat.com>
17412
17413         maint.mk: remove unused VC-tag variable
17414         * top/maint.mk (VC-tag): Remove unused variable.
17415
17416 2011-04-29  Bruno Haible  <bruno@clisp.org>
17417
17418         netdb: fix gai_strerror replacements
17419         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17420         * modules/netdb: Substitute it.
17421
17422 2011-04-29  Jim Meyering  <meyering@redhat.com>
17423
17424         test-getcwd.c: avoid new set-but-not-used warning
17425         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17426         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17427         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17428         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17429
17430         test-hash.c: avoid a new shadowing warning
17431         * tests/test-hash.c (main): Don't shadow "dup".
17432
17433 2011-04-28  Eric Blake  <eblake@redhat.com>
17434
17435         getaddrinfo: fix gai_strerror signature
17436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17437         and work around mingw with UNICODE defined.
17438         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17439         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17440         * modules/netdb (Makefile.am): Substitute it.
17441         * lib/netdb.in.h (gai_strerror): Declare replacement.
17442         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17443         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17444         the fix.
17445
17446         getsockopt: avoid compiler warning
17447         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17448         Reported by Matthias Bolte.
17449
17450         tests: drop unused link dependency
17451         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17452         * modules/dirent-safer-tests (Makefile.am): Likewise.
17453         * modules/fdopendir-tests (Makefile.am): Likewise.
17454         * modules/mkfifoat-tests (Makefile.am): Likewise.
17455         * modules/openat-safer-tests (Makefile.am): Likewise.
17456         * modules/openat-tests (Makefile.am): Likewise.
17457         * modules/readlinkat-tests (Makefile.am): Likewise.
17458         * modules/symlinkat-tests (Makefile.am): Likewise.
17459         * modules/linkat-tests (Makefile.am): Likewise.
17460         (Depends-on): Switch to filenamecat-lgpl.
17461         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17462         LIBINTL.
17463         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17464         * tests/test-linkat.c (main): Don't require xalloc.
17465
17466         hash, mgetgroups: drop xalloc dependency
17467         * lib/hash.c (includes): Adjust includes.
17468         * lib/mgetgroups.c (includes): Likewise.
17469         (xgetgroups): Move...
17470         * lib/xgetgroups.c: ...to new file.
17471         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17472         * modules/xgetgroups: New file, split from...
17473         * modules/mgetgroups: ...here.
17474         (Depends-on): Add xalloc-oversized.
17475         * modules/hash (Depends-on): Likewise.
17476         * modules/hash-tests (Depends-on): Drop xalloc.
17477         (test_hash_LDADD): Drop unused library.
17478         * tests/test-hash.c (main): Break xalloc dependency.
17479         (includes): Drop unused include.
17480
17481         xalloc-oversized: new module
17482         * modules/xalloc-oversized: New module.
17483         * modules/xalloc (Depends-on): Add it.
17484         * lib/xalloc.h (xalloc_oversized): Move...
17485         * lib/xalloc-oversized.h: ...into new file.
17486
17487         utimecmp: drop dependency on xmalloc
17488         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17489         due to memory pressure.
17490         * modules/utimecmp (Depends-on): Drop xalloc.
17491
17492 2011-04-27  Eric Blake  <eblake@redhat.com>
17493
17494         getcwd: fix mingw bugs
17495         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17496         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17497         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17498
17499 2011-04-27  Bruno Haible  <bruno@clisp.org>
17500
17501         mkstemps: Ensure declaration on MacOS X 10.5.
17502         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17503         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17504         MacOS X.
17505
17506 2011-04-27  Bruno Haible  <bruno@clisp.org>
17507
17508         mkstemp: More documentation.
17509         * doc/posix-functions/mkstemp.texi: Document header file problem on
17510         MacOS X.
17511
17512 2011-04-27  Bruno Haible  <bruno@clisp.org>
17513
17514         mkstemp: Tweak configure message when cross-compiling.
17515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17516         result as a guess.
17517
17518 2011-04-27  Bruno Haible  <bruno@clisp.org>
17519
17520         clean-temp: Clarify what it does.
17521         * lib/clean-temp.h: Add more comments.
17522         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17523         module.
17524         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17525         * doc/glibc-functions/mkstemps.texi: Likewise.
17526         * doc/glibc-functions/mkostemps.texi: Likewise.
17527
17528 2011-04-27  Eric Blake  <eblake@redhat.com>
17529
17530         fchdir: avoid extra chdir and fix test
17531         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17532         getcwd-lgpl.
17533         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17534         have to be canonical.
17535         (canonicalize_file_name): Drop unused macro.
17536         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17537
17538         filenamecat-lgpl: fix licence
17539         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17540         when it was first created.
17541
17542         linkat, renameat: add missing dependency
17543         * modules/linkat (Depends-on): Require getcwd-lgpl.
17544         * modules/renameat (Depends-on): Likewise.
17545
17546         tests: reduce dependencies
17547         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17548         * tests/test-renameat.c (main): Likewise.
17549         * modules/linkat-tests (Depends-on): Relax dependency.
17550         * modules/renameat-tests (Depends-on): Likewise.
17551         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17552         dependency explicit.
17553
17554         save-cwd: reduce default dependency
17555         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17556         * lib/save-cwd.c: Update comments.
17557         * NEWS: Document the semantic change.
17558
17559         getcwd: enhance tests
17560         * tests/test-getcwd-lgpl.c: New file, taken from...
17561         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17562         repeat long path stress tests from m4 probe.
17563         * modules/getcwd-lgpl-tests: New module.
17564         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17565         * m4/getcwd-abort-bug.m4: Update comment.
17566         * m4/getcwd-path-max.m4: Likewise.
17567
17568         getcwd-lgpl: new module
17569         * modules/getcwd-lgpl: New module.
17570         * lib/getcwd-lgpl.c: New file.
17571         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17572         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17573         * modules/getcwd (configure.ac): Set C witness.
17574         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17575
17576         getcwd: tweak comments
17577         * m4/getcwd-abort-bug.m4: Fix comments.
17578         * m4/getcwd-path-max.m4: Likewise.
17579         * m4/getcwd.m4: Likewise.
17580
17581 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17582         and Eric Blake  <eblake@redhat.com>
17583
17584         mkstemp: replace if system version uses wrong permissions
17585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17586         read/write mode bits set in file created by mkstemp.
17587         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17588
17589 2011-04-27  Eric Blake  <eblake@redhat.com>
17590
17591         passfd: avoid compiler warning
17592         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17593         Reported by Laine Stump.
17594
17595 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17596
17597         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17598         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17599
17600 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17601         and Eric Blake  <eblake@redhat.com>
17602
17603         mkstemp: mention clean-temp module
17604         * lib/mkstemp.c: Add comment.
17605         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17606
17607 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17608
17609         inttypes: also provide default values for 32-bit tests
17610         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17611         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17612
17613 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17614
17615         strtoumax: remove dependency on strtoimax
17616         This is like the strtoull change of yesterday.
17617         * modules/strtoumax (Files): Add lib/strtoimax.c.
17618         (Depends-on): Remove strtoimax and add verify.
17619
17620         inttypes-incomplete: new module
17621         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17622         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17623         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17624         of gl_INTTYPES_H.
17625         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17626         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17627         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17628         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17629         * modules/strtoumax, modules/xstrtol (Depends-on):
17630         Depend on inttypes-incomplete, not inttypes.
17631         * modules/inttypes-incomplete: New module, containing the contents
17632         of the old modules/inttypes module, except that the Files: section
17633         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17634         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17635         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17636         (Depends-on): Depend only on inttypes-incomplete.
17637         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17638
17639         inttypes: omit now-redundant strtoimax and strtoumax work
17640         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17641         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17642
17643         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17644         This supports apps that need pointers to strtoimax and strtoumax,
17645         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17646         nonexistent functions.  See
17647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17648         et seq.
17649         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17650         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17651         a macro.
17652         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17653
17654 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17655
17656         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17657
17658 2011-04-25  Bruno Haible  <bruno@clisp.org>
17659
17660         strtol, strtoul: Mark modules as obsolete.
17661         * modules/strtol (Status, Notice): New sections.
17662         * modules/strtoul (Status, Notice): New sections.
17663
17664 2011-04-25  Bruno Haible  <bruno@clisp.org>
17665
17666         strtod: Remove check for strtod, unless supporting old platforms.
17667         * modules/strtod-obsolete: New file.
17668         * m4/strtod-obsolete.m4: New file.
17669         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17670         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17671         * modules/strtod (Depends-on): Add strtod-obsolete.
17672         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17673
17674 2011-04-25  Bruno Haible  <bruno@clisp.org>
17675
17676         strcase: Make module obsolete.
17677         * modules/strcase (Status, Notice): New sections.
17678
17679 2011-04-25  Bruno Haible  <bruno@clisp.org>
17680
17681         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17682         * modules/dup2-obsolete: New file.
17683         * m4/dup2-obsolete.m4: New file.
17684         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17685         gl_FUNC_DUP2_OBSOLETE is not also defined.
17686         * modules/dup2 (Depends-on): Add dup2-obsolete.
17687         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17688
17689 2011-04-25  Bruno Haible  <bruno@clisp.org>
17690
17691         strnlen: Avoid memchr related link error on old obsolete platforms.
17692         * modules/memchr-obsolete: New file.
17693         * m4/memchr-obsolete.m4: New file.
17694         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17695         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17696         * modules/memchr (Depends-on): Add memchr-obsolete.
17697         * modules/strnlen (Depends-on): Likewise.
17698         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17699
17700 2011-04-25  Jim Meyering  <meyering@redhat.com>
17701
17702         maint.mk: makefile_at_at_check extend and clean up
17703         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17704         in addition to */Makefile.am.
17705         Exempt legitimate uses of @VAR@ notation, e.g.,
17706         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17707         Remove obsolete coreutils-specific comment.
17708         Prompted by discussion here:
17709         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17710
17711 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         strtoul: remove dependency on strtol
17714         This is so that 'configure' need not check for strtol merely because
17715         the application needs strtoul.
17716         * modules/strtoul (Files): Add lib/strtol.c.
17717         (Depends-on): Remove strtol.
17718
17719         strtoull: remove dependency on strtoul
17720         This is like the strtoll change.
17721         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17722         (Depends-on): Remove strtoul.
17723
17724         strtoll: remove dependency on strtol
17725         This is so that 'configure' need not check for strtol merely because
17726         the application needs strtoll.
17727         * modules/strtoll (Files): Add lib/strtol.c.
17728         (Depends-on): Remove strtol.
17729
17730 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17731
17732         inttypes: Move some configure check to module 'imaxdiv'.
17733         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17734         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17735         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17736
17737 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17738
17739         inttypes: Move some configure check to module 'imaxabs'.
17740         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17741         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17742         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17743
17744 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17745
17746         inttypes: Remove configure tests that are not needed since 2009-12-31.
17747         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17748         gl_cv_header_working_inttypes_h.
17749
17750 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17751
17752         * modules/strnlen (Depends-on): Remove memchr.
17753         The strnlen implementation doesn't need the memchr module's fixes; see
17754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17755
17756         strtol: remove dependency on wchar
17757         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17758         * modules/strtol (Depends-on): Remove wchar.
17759
17760 2011-04-21  Eric Blake  <eblake@redhat.com>
17761
17762         passfd: fix test regression on Linux
17763         * modules/passfd-tests (configure.ac): Correct socketpair check.
17764
17765         passfd: speed up configure and drop unused code
17766         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17767         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17768         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17769         Instead of probing at configure for unix_scm_rights_bsd44_way,
17770         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17771         check to a struct member probe.
17772         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17773         (sendfd, recvfd): Update preprocessor checks.
17774         * modules/passfd (Files): Reflect rename, and drop unused file.
17775         (Depends-on): Drop unused dependency.
17776
17777         passfd: allow compilation on mingw
17778         * modules/sys_socket (Depends-on): Add sys_uio.
17779         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17780         iovec and a minimal struct msghdr.
17781         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17782         * tests/test-sys_socket.c (main): Enhance test.
17783         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17784         guaranteed to provide what we need.
17785         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17786         * modules/passfd-tests (Depends-on): Add sys_wait.
17787         * tests/test-passfd.c (main): Skip test on mingw, for now.
17788         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17789         partial 'struct msghdr' implementation.
17790
17791         sys_uio: new module
17792         * modules/sys_uio: New module.
17793         * modules/sys_uio-tests: Likewise.
17794         * lib/sys_uio.in.h: New file.
17795         * m4/sys_uio_h.m4: Likewise.
17796         * tests/test-sys_uio.c: Likewise.
17797         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17798         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17799
17800 2011-04-20  Jim Meyering  <meyering@redhat.com>
17801
17802         useless-if-before-free: avoid false-positive
17803         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17804         disjunct so that it too requires a terminating ";".  Without that,
17805         this script would identify as useless one statement from gcc that
17806         was not:
17807           if (aligned_ptr)
17808             free (((void **) aligned_ptr) [-1]);
17809
17810 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17811
17812         doc: update users.txt.
17813         * users.txt: Add barcode.
17814
17815 2011-04-19  Bruno Haible  <bruno@clisp.org>
17816
17817         ioctl: Remove link dependency on native Windows.
17818         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17819         (gl_close_fn, gl_ioctl_fn): New types.
17820         (struct fd_hook): Renamed from struct close_hook. Change type of
17821         private_close_fn field. Add private_ioctl_fn field.
17822         (close_hook_fn): Add parameter for primary close method.
17823         (execute_close_hooks, execute_all_close_hooks): Likewise.
17824         (ioctl_hook_fn): New type.
17825         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17826         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17827         argument.
17828         (unregister_fd_hook): Renamed from unregister_close_hook.
17829         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17830         Don't include <unistd.h>.
17831         (close): Remove undef.
17832         (anchor): Update.
17833         (execute_close_hooks): Add argument for primary close method.
17834         (execute_all_close_hooks): Likewise.
17835         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17836         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17837         argument. Allow each argument to be NULL.
17838         (unregister_fd_hook): Renamed from unregister_close_hook.
17839         * lib/close.c (rpl_close): Pass 'close' function pointer to
17840         execute_all_close_hooks.
17841         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17842         (primary_ioctl): New function.
17843         (ioctl): Don't call ioctlsocket here. Instead, call
17844         execute_all_ioctl_hooks.
17845         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17846         close method.
17847         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17848         (fd_sockets_hook): Renamed from close_sockets_hook.
17849         (gl_sockets_startup, gl_sockets_cleanup): Update.
17850         * modules/fd-hook: Renamed from modules/close-hook. Update.
17851         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17852         * modules/sockets (Depends-on): Likewise.
17853         * modules/ioctl (Depends-on): Add fd-hook.
17854         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17855         GNULIB_SOCKET.
17856
17857 2011-04-19  Bruno Haible  <bruno@clisp.org>
17858
17859         Move the support of O_NONBLOCK in open() to the 'open' module.
17860         * modules/nonblocking (Depends-on): Remove 'open'.
17861         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17862         gl_cv_have_open_O_NONBLOCK.
17863         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17864         O_NONBLOCK support.
17865         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17866
17867 2011-04-17  Bruno Haible  <bruno@clisp.org>
17868
17869         pipe2: Simplify code.
17870         * lib/pipe2.c (pipe2): Reduce code duplication.
17871
17872 2011-04-17  Bruno Haible  <bruno@clisp.org>
17873
17874         nonblocking: Add comment.
17875         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17876
17877 2011-04-17  Bruno Haible  <bruno@clisp.org>
17878
17879         nonblocking: Add tests for sockets.
17880         * tests/test-nonblocking-socket.sh: New file.
17881         * tests/test-nonblocking-socket-main.c: New file.
17882         * tests/test-nonblocking-socket-child.c: New file.
17883         * tests/test-nonblocking-socket.h: New file.
17884         * tests/socket-server.h: New file.
17885         * tests/socket-client.h: New file.
17886         * modules/nonblocking-socket-tests: New file.
17887         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17888
17889 2011-04-17  Bruno Haible  <bruno@clisp.org>
17890
17891         nonblocking: Add tests for pipes.
17892         * tests/test-nonblocking-pipe.sh: New file.
17893         * tests/test-nonblocking-pipe-main.c: New file.
17894         * tests/test-nonblocking-pipe-child.c: New file.
17895         * tests/test-nonblocking-pipe.h: New file.
17896         * tests/test-nonblocking-writer.h: New file.
17897         * tests/test-nonblocking-reader.h: New file.
17898         * tests/test-nonblocking-misc.h: New file.
17899         * modules/nonblocking-pipe-tests: New file.
17900         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17901
17902 2011-04-16  Bruno Haible  <bruno@clisp.org>
17903
17904         gettext: Clarify the needed programmer actions.
17905         * modules/gettext (Notice): New field.
17906         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17907
17908 2011-04-16  Bruno Haible  <bruno@clisp.org>
17909
17910         strchrnul: Tweak last commit.
17911         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17912         bug.
17913         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17914         as in _GL_FUNCDECL_SYS.
17915         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17916         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17917
17918 2011-04-15  Eric Blake  <eblake@redhat.com>
17919
17920         strchrnul: work around cygwin bug
17921         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17922         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17924         * modules/string (Makefile.am): Substitute it.
17925         * lib/string.in.h (strchrnul): Use it.
17926
17927 2011-04-15  Bruno Haible  <bruno@clisp.org>
17928
17929         Don't require lib/stdio-write.c when only module 'stdio' is used.
17930         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17931         invocation.
17932         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17933
17934 2011-04-14  Bruno Haible  <bruno@clisp.org>
17935
17936         Support non-blocking pipe I/O in read() on native Windows.
17937         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17938         (read): New declaration.
17939         * lib/read.c: New file.
17940         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17941         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17942         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17943         vscanf): New declarations.
17944         * lib/stdio-read.c: New file.
17945         * m4/read.m4: New file.
17946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17947         REPLACE_READ.
17948         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17949         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17950         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17951         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17952         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17953         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17954         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17955         * modules/read: New file.
17956         * modules/nonblocking (Files): Add lib/stdio-read.c.
17957         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17958         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17959         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17960         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17961         * modules/pread (Depends-on): Add read.
17962         * modules/safe-read (Depends-on): Likewise.
17963         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17964         gets, scanf, vfscanf, vscanf): Verify signatures.
17965         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17966         problem with non-blocking pipes.
17967         * doc/posix-functions/fgetc.texi: Likewise.
17968         * doc/posix-functions/fgets.texi: Likewise.
17969         * doc/posix-functions/fread.texi: Likewise.
17970         * doc/posix-functions/fscanf.texi: Likewise.
17971         * doc/posix-functions/getc.texi: Likewise.
17972         * doc/posix-functions/getchar.texi: Likewise.
17973         * doc/posix-functions/gets.texi: Likewise.
17974         * doc/posix-functions/scanf.texi: Likewise.
17975         * doc/posix-functions/vfscanf.texi: Likewise.
17976         * doc/posix-functions/vscanf.texi: Likewise.
17977
17978 2011-04-14  Bruno Haible  <bruno@clisp.org>
17979
17980         Support non-blocking pipe I/O in write() on native Windows.
17981         * lib/write.c (rpl_write): Split a write request that failed merely
17982         because the byte count was larger than the pipe buffer's size.
17983         * doc/posix-functions/write.texi: Mention the problem with large byte
17984         counts.
17985
17986 2011-04-14  Bruno Haible  <bruno@clisp.org>
17987
17988         wchar: Ensure that wchar_t gets defined on uClibc.
17989         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17990         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17991
17992 2011-04-13  Bruno Haible  <bruno@clisp.org>
17993
17994         safe-write, full-read: Avoid unnecessary compilation units.
17995         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17996         (Depends-on): Remove safe-read. Add ssize_t.
17997         * modules/full-read (Files): Add lib/full-write.c.
17998         (Depends-on): Add full-write.
17999
18000 2011-04-13  Bruno Haible  <bruno@clisp.org>
18001
18002         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18003         * modules/pwrite (Depends-on): Add 'write'.
18004
18005 2011-04-13  Bruno Haible  <bruno@clisp.org>
18006
18007         Support non-blocking pipe I/O in write() on native Windows.
18008         * lib/unistd.in.h (write): Enable replacement also if
18009         GNULIB_UNISTD_H_NONBLOCKING is 1.
18010         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18011         (rpl_write): When failing to write on a non-blocking pipe, change
18012         errno from ENOSPC to EAGAIN.
18013         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18014         putchar, puts, vfprintf, vprintf): Enable replacement also if
18015         GNULIB_STDIO_H_NONBLOCKING is 1.
18016         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18017         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18018         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18019         CALL_WITH_SIGPIPE_EMULATION.
18020         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18021         * m4/nonblocking.m4: New file.
18022         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18023         for non-blocking I/O support.
18024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18025         GNULIB_UNISTD_H_NONBLOCKING.
18026         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18027         required for non-blocking I/O support.
18028         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18029         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18030         lib/stdio-write.c, m4/asm-underscore.m4.
18031         (Depends-on): Add stdio, unistd.
18032         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18033         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18034         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18035         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18036         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18037         problem with non-blocking pipes.
18038         * doc/posix-functions/fputc.texi: Likewise.
18039         * doc/posix-functions/fputs.texi: Likewise.
18040         * doc/posix-functions/fwrite.texi: Likewise.
18041         * doc/posix-functions/printf.texi: Likewise.
18042         * doc/posix-functions/putc.texi: Likewise.
18043         * doc/posix-functions/putchar.texi: Likewise.
18044         * doc/posix-functions/puts.texi: Likewise.
18045         * doc/posix-functions/vfprintf.texi: Likewise.
18046         * doc/posix-functions/vprintf.texi: Likewise.
18047         * doc/posix-functions/write.texi: Likewise.
18048
18049 2011-04-10  Jim Meyering  <meyering@redhat.com>
18050
18051         maint.mk: prohibit doubled words
18052         Detect them also when they're separated by a newline.
18053         There are 3 ways to customize it:
18054           - disable the test on a per file basis, as usual with rules using
18055             $(VC_LIST_EXCEPT)
18056           - replace the default doubled-word-selecting regexp (affects all files)
18057           - ignore a particular file-vs-doubled-word match
18058         I nearly used that last one to ignore the "is is" match in
18059         coreutils' NEWS file, since the text was "ls -is is ..."
18060         To do that, I would have added this line to cfg.mk:
18061           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18062         but it would have ignored any "is is" match in NEWS.
18063         Low probability, but still...
18064         Instead, I changed the text, slightly:
18065           -  ls -is is now consistent with ls -lis in ignoring values returned
18066           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18067         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18068         (prohibit_doubled_word_): Define.
18069         (sc_prohibit_doubled_word): New rule.
18070         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18071
18072 2011-04-10  Jim Meyering  <meyering@redhat.com>
18073
18074         maint: fix doubled-word typo in comment
18075         * m4/gethostname.m4: s/is is/it is/
18076         * m4/getdomainname.m4: Likewise.
18077
18078 2011-04-10  Jim Meyering  <meyering@redhat.com>
18079
18080         maint: remove doubled word: s/it it/it/
18081         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18082
18083 2011-04-10  Jim Meyering  <meyering@redhat.com>
18084
18085         maint.mk: remove useless semicolon and backslash
18086         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18087         semicolon and backslash.
18088
18089 2011-04-10  Bruno Haible  <bruno@clisp.org>
18090
18091         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18092         * modules/stdint-tests (Depends-on): Add wchar.
18093
18094 2011-04-10  Jim Meyering  <meyering@redhat.com>
18095
18096         maint: remove doubled words in comments, e.g., s/a a/a/
18097         * lib/strptime.c (day_of_the_week): s/the the/the/
18098         * tests/test-chown.h (test_chown): s/a a/a/
18099
18100         test-chown.h: correct a cast
18101         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18102         when the destination is a stat.st_gid.
18103
18104 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18105
18106         getaddrinfo: Fix test for sa_len member.
18107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18108         include <sys/types.h> before <sys/socket.h>.
18109
18110 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18111
18112         maint: change "can not" to "cannot"
18113         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18114         boundaries.
18115
18116 2011-04-09  Jim Meyering  <meyering@redhat.com>
18117
18118         maint: change "a a" to "a"
18119         * tests/test-lchown.h (test_lchown): s/a a/a/
18120
18121         maint.mk: prohibit \<the the\>
18122         * top/maint.mk (sc_prohibit_the_the): New rule.
18123
18124         maint: fix "the the" in comment
18125         * lib/count-one-bits.h: s/the the/the/
18126
18127         maint: change "can not" to "cannot"
18128         But do not change the occurrences in maintain.texi or in
18129         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18130         * doc/gnulib-tool.texi: s/can not/cannot/
18131         * doc/posix-functions/accept.texi (accept): Likewise.
18132         * doc/posix-functions/socket.texi (socket): Likewise.
18133         * lib/mbrtowc.c: Likewise.
18134
18135         maint.mk: prohibit use of "can not"
18136         * top/maint.mk (sc_prohibit_can_not): New rule.
18137         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18138
18139 2011-04-09  Bruno Haible  <bruno@clisp.org>
18140
18141         careadlinkat: Guard against misuse of careadlinkatcwd.
18142         * lib/careadlinkat.c: Include <stdlib.h>.
18143         (careadlinkatcwd): Check that the fd argument is as expected.
18144
18145 2011-04-09  Bruno Haible  <bruno@clisp.org>
18146
18147         careadlinkat: Use common coding style.
18148         * lib/careadlinkat.c: Move gnulib includes after system includes.
18149
18150 2011-04-09  Bruno Haible  <bruno@clisp.org>
18151
18152         careadlinkat: Clarify specification.
18153         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18154         (careadlinkatcwd): Add comment.
18155         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18156
18157 2011-04-09  Bruno Haible  <bruno@clisp.org>
18158
18159         areadlinkat: Avoid link error on many platforms.
18160         * modules/areadlinkat (Depends-on): Add areadlink.
18161
18162 2011-04-09  Bruno Haible  <bruno@clisp.org>
18163
18164         allocator, careadlinkat: Fix double-inclusion guard.
18165         * lib/allocator.h: Fix double-inclusion guard.
18166         * lib/careadlinkat.h: Likewise.
18167
18168 2011-04-09  Bruno Haible  <bruno@clisp.org>
18169
18170         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18171         * lib/relocwrapper.c: Update dependencies hierarchy.
18172         * build-aux/install-reloc: Update list of files to be compiled.
18173         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18174         lib/allocator.[hc].
18175
18176 2011-04-08  Eric Blake  <eblake@redhat.com>
18177
18178         strftime: silence gnulib-tool warning
18179         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18180
18181 2011-04-08  Bruno Haible  <bruno@clisp.org>
18182
18183         verify: Fix syntax error with GCC 4.6 in C++ mode.
18184         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18185         (HAVE_STATIC_ASSERT): New macro.
18186         (verify_true, verify): Use 'static_assert' if it is supported and
18187         '_Static_assert' is not supported.
18188
18189 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         allocator: New module.
18192         * modules/allocator, lib/allocator.c: New files.
18193         * lib/allocator.h (stdlib_allocator): New decl.
18194         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18195         Remove.  Do not include <stdlib.h>.
18196         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18197         * modules/careadlinkat (Files): Remove lib/allocator.h.
18198         (Depends-on): Add allocator.
18199
18200         stdlib: let modules use system malloc, realloc
18201         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18202         if !_GL_USE_STDLIB_ALLOC.
18203         (malloc, realloc): Limit this change to a smaller scope.
18204
18205         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18206         (malloc, realloc): Don't #undef; no longer needed.
18207         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18208         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18209         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18210         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18211         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18212         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18213         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18214         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18215
18216         careadlinkat: rename members to avoid problem
18217         * lib/allocator.h (struct allocator): Rename members from
18218         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18219         and realloc are #define'd.  Reported by Eric Blake in
18220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18221         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18222
18223 2011-04-08  Eric Blake  <eblake@redhat.com>
18224
18225         nonblocking: reduce dependency
18226         * tests/test-nonblocking.c: Only test sockets when in use.
18227         * modules/nonblocking-tests (Depends-on): Drop socket.
18228         (Makefile.am): Link even if sockets are not present.
18229         * modules/pipe2-tests (Makefile.am): Likewise.
18230         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18231
18232         pipe2: fix O_NONBLOCK support on mingw
18233         * modules/pipe2 (Depends-on): Add nonblocking.
18234         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18235         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18236         * tests/test-nonblocking.c (main): Likewise.
18237         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18238
18239         fcntl-h: fix O_ACCMODE on cygwin
18240         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18241         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18242
18243         pipe-filter: drop O_NONBLOCK workarounds
18244         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18245         * modules/pipe-filter-ii (Depends-on): Likewise.
18246         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18247
18248         nonblocking: provide O_NONBLOCK for mingw
18249         * modules/nonblocking (Depends-on): Add open.
18250         (configure.ac): Set new witness macro.
18251         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18252         * modules/fcntl-h (Makefile.am): Substitute it.
18253         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18254         nonblocking module is in use.
18255         * lib/nonblocking.c: Adjust portability test.
18256         * lib/open.c (open): Don't let native open see gnulib flag.
18257         * tests/test-fcntl-h.c (main): Enhance test.
18258         * tests/test-open.h (test_open): Likewise.
18259         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18260
18261         careadlinkat: fix compilation error on mingw
18262         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18263         within struct allocator.
18264
18265 2011-04-06  Eric Blake  <eblake@redhat.com>
18266
18267         binary-io: relicense under LGPLv2+
18268         * modules/binary-io (License): Relax to LGPLv2+.
18269         Requested for libvirt, and required by pipe2.
18270
18271 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18272
18273         verify: use _Static_assert if available
18274         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18275         (verify_true, verify): Use it if available.  This generates better
18276         diagnostics with GCC 4.6.0 and later.
18277
18278 2011-04-05  Bruno Haible  <bruno@clisp.org>
18279
18280         Remove leftover generated .h files after config.status changed.
18281
18282         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18283         GL_GENERATE_ALLOCA_H.
18284         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18285         GL_GENERATE_ALLOCA_H evaluates to false.
18286
18287         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18288         GL_GENERATE_ARGZ_H.
18289         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18290         evaluates to false.
18291
18292         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18293         GL_GENERATE_BYTESWAP_H.
18294         * modules/byteswap (Makefile.am): Remove byteswap.h if
18295         GL_GENERATE_BYTESWAP_H evaluates to false.
18296
18297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18298         GL_GENERATE_ERRNO_H.
18299         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18300         evaluates to false.
18301
18302         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18303         GL_GENERATE_FLOAT_H.
18304         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18305         evaluates to false.
18306
18307         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18308         GL_GENERATE_FNMATCH_H.
18309         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18310         GL_GENERATE_FNMATCH_H evaluates to false.
18311
18312         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18313         GL_GENERATE_GLOB_H.
18314         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18315         evaluates to false.
18316
18317         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18318         automake conditional GL_GENERATE_ICONV_H.
18319         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18320         evaluates to false.
18321
18322         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18323         GL_GENERATE_NETINET_IN_H.
18324         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18325         GL_GENERATE_NETINET_IN_H evaluates to false.
18326
18327         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18328         conditional GL_GENERATE_PTHREAD_H.
18329         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18330         * modules/pthread (Makefile.am): Remove pthread.h if
18331         GL_GENERATE_PTHREAD_H evaluates to false.
18332
18333         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18334         GL_GENERATE_SCHED_H.
18335         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18336         evaluates to false.
18337
18338         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18339         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18340         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18341         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18342
18343         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18344         GL_GENERATE_STDARG_H.
18345         * modules/stdarg (Makefile.am): Remove stdarg.h if
18346         GL_GENERATE_STDARG_H evaluates to false.
18347
18348         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18349         GL_GENERATE_STDBOOL_H.
18350         * modules/stdbool (Makefile.am): Remove stdbool.h if
18351         GL_GENERATE_STDBOOL_H evaluates to false.
18352
18353         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18354         conditional GL_GENERATE_STDDEF_H.
18355         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18356         * modules/stddef (Makefile.am): Remove stddef.h if
18357         GL_GENERATE_STDDEF_H evaluates to false.
18358
18359         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18360         GL_GENERATE_STDINT_H.
18361         * modules/stdint (Makefile.am): Remove stdint.h if
18362         GL_GENERATE_STDINT_H evaluates to false.
18363
18364         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18365         GL_GENERATE_SYSEXITS_H.
18366         * modules/sysexits (Makefile.am): Remove sysexits.h if
18367         GL_GENERATE_SYSEXITS_H evaluates to false.
18368
18369         Reported by Karl Berry and Ralf Wildenhues.
18370
18371 2011-04-05  Bruno Haible  <bruno@clisp.org>
18372
18373         Ensure to rebuild generated .h files when config.status has changed.
18374         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18375         config.status.
18376         * modules/ctype (Makefile.am): Likewise.
18377         * modules/dirent (Makefile.am): Likewise.
18378         * modules/errno (Makefile.am): Likewise.
18379         * modules/fcntl-h (Makefile.am): Likewise.
18380         * modules/float (Makefile.am): Likewise.
18381         * modules/getopt-posix (Makefile.am): Likewise.
18382         * modules/glob (Makefile.am): Likewise.
18383         * modules/iconv-h (Makefile.am): Likewise.
18384         * modules/inttypes (Makefile.am): Likewise.
18385         * modules/langinfo (Makefile.am): Likewise.
18386         * modules/locale (Makefile.am): Likewise.
18387         * modules/math (Makefile.am): Likewise.
18388         * modules/netdb (Makefile.am): Likewise.
18389         * modules/netinet_in (Makefile.am): Likewise.
18390         * modules/poll-h (Makefile.am): Likewise.
18391         * modules/pthread (Makefile.am): Likewise.
18392         * modules/pty (Makefile.am): Likewise.
18393         * modules/sched (Makefile.am): Likewise.
18394         * modules/search (Makefile.am): Likewise.
18395         * modules/selinux-h (Makefile.am): Likewise.
18396         * modules/signal (Makefile.am): Likewise.
18397         * modules/spawn (Makefile.am): Likewise.
18398         * modules/stdarg (Makefile.am): Likewise.
18399         * modules/stdbool (Makefile.am): Likewise.
18400         * modules/stddef (Makefile.am): Likewise.
18401         * modules/stdint (Makefile.am): Likewise.
18402         * modules/stdio (Makefile.am): Likewise.
18403         * modules/stdlib (Makefile.am): Likewise.
18404         * modules/string (Makefile.am): Likewise.
18405         * modules/strings (Makefile.am): Likewise.
18406         * modules/sys_file (Makefile.am): Likewise.
18407         * modules/sys_ioctl (Makefile.am): Likewise.
18408         * modules/sys_select (Makefile.am): Likewise.
18409         * modules/sys_socket (Makefile.am): Likewise.
18410         * modules/sys_stat (Makefile.am): Likewise.
18411         * modules/sys_time (Makefile.am): Likewise.
18412         * modules/sys_times (Makefile.am): Likewise.
18413         * modules/sys_utsname (Makefile.am): Likewise.
18414         * modules/sys_wait (Makefile.am): Likewise.
18415         * modules/sysexits (Makefile.am): Likewise.
18416         * modules/termios (Makefile.am): Likewise.
18417         * modules/time (Makefile.am): Likewise.
18418         * modules/unistd (Makefile.am): Likewise.
18419         * modules/wchar (Makefile.am): Likewise.
18420         * modules/wctype-h (Makefile.am): Likewise.
18421         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18422
18423 2011-04-05  Bruno Haible  <bruno@clisp.org>
18424
18425         pipe2: Relicense under LGPLv2+.
18426         * modules/pipe2 (License): Change to LGPLv2+.
18427         Requested by Eric Blake, for libvirt.
18428
18429 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18430
18431         bootstrap: compute gnulib_extra_files after updating build_aux
18432         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18433         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18434
18435 2011-04-05  Eric Blake  <eblake@redhat.com>
18436
18437         bootstrap: preserve git whitelist item sorting
18438         * build-aux/bootstrap (sort_patterns): New function.
18439         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18440
18441 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18442
18443         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18444         sc_space_tab check.
18445
18446 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18447
18448         areadlink, areadlinkat: rewrite in terms of careadlinkat
18449         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18450         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18451         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18452         (malloc, realloc): Remove #undefs.
18453         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18454         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18455         readlink, ssize_t, stdint, unistd.
18456         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18457         areadlink, stdint.
18458
18459         careadlinkat: new module
18460         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18461         * modules/careadlinkat: New files, written by me with
18462         a review and feedback from Ben Pfaff in
18463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18464
18465 2011-04-01  Bruno Haible  <bruno@clisp.org>
18466
18467         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18468         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18469         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18470         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18471         Reported by Bruce Korb <bruce.korb@gmail.com>.
18472
18473 2011-04-01  Bruno Haible  <bruno@clisp.org>
18474
18475         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18476         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18477         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18478         * modules/wcpcpy (Depends-on): Add extensions.
18479         * modules/wcpncpy (Depends-on): Likewise.
18480         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18481         systems.
18482         * doc/posix-functions/wcpncpy.texi: Likewise.
18483         * doc/posix-functions/wcwidth.texi: Likewise.
18484
18485 2011-03-31  Eric Blake  <eblake@redhat.com>
18486
18487         nonblocking: fix mingw test failures
18488         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18489         non-blocking flag on regular file.
18490         (get_nonblocking_flag): Set errno on invalid fd.
18491         * tests/test-nonblocking.c (main): Avoid test failure on
18492         directories if fchdir is not active.
18493         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18494
18495 2011-03-31  Bruno Haible  <bruno@clisp.org>
18496
18497         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18498         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18499         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18500         Reported by Simon Josefsson <simon@josefsson.org>.
18501
18502 2011-03-31  Bruno Haible  <bruno@clisp.org>
18503         and Eric Blake  <eblake@redhat.com>
18504
18505         nonblocking: new module
18506         * modules/nonblocking: New module.
18507         * modules/nonblocking-tests: Likewise.
18508         * lib/nonblocking.h: New file.
18509         * lib/nonblocking.c: Likewise.
18510         * tests/test-nonblocking.c: New test.
18511         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18512
18513 2011-03-30  Bruno Haible  <bruno@clisp.org>
18514
18515         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18516         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18517         instead of 'printf' format for GCC >= 4.4.
18518         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18519         (fprintf, printf, vfprintf, vprintf): Declare with
18520         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18521         the system's vfprintf() function.
18522         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18523
18524 2011-03-30  Eric Blake  <eblake@redhat.com>
18525
18526         passfd: fix scoping bug
18527         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18528         before sendmsg/recvmsg.
18529
18530         passfd: standardize coding conventions
18531         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18532         can be learned at compile time.
18533         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18534         ifdefs.
18535         (sendfd, recvfd): Follow gnulib code conventions.
18536
18537         passfd: fix incorrect sendmsg arguments
18538         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18539         incorrect msg_controllen value.
18540         * modules/passfd-tests (Depends-on): Check for alarm.
18541         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18542         Reported by Bastien ROUCARIES.
18543
18544 2011-03-30  Bruno Haible  <bruno@clisp.org>
18545
18546         c-strcasestr: Relicense under LGPLv2+.
18547         * modules/c-strcasestr (License): Change to LGPLv2+.
18548         Requested by Eric Blake, for libvirt.
18549
18550 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18551
18552         * users.txt: Add libidn2.  Fix libtasn1 link.
18553
18554 2011-03-30  Jim Meyering  <meyering@redhat.com>
18555
18556         tests: readlink* ("",... fails with EINVAL on newer kernels
18557         readlink and readlinkat have typically failed with ENOENT for
18558         the invalid, empty file name,  "".  However, with the advent
18559         of linux-2.6.39, they fail with EINVAL.
18560         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18561         when operating on the empty file name.
18562         * tests/test-readlink.h (test_readlink): Likewise.
18563
18564 2011-03-29  Bruno Haible  <bruno@clisp.org>
18565
18566         Relicense some modules under LGPLv2+, for libidn2.
18567         * modules/array-mergesort (License): Change to LGPLv2+.
18568         * modules/c-strcaseeq (License): Likewise.
18569         * modules/striconveh (License): Likewise.
18570         * modules/striconveha (License): Likewise.
18571         * modules/uniconv/base (License): Likewise.
18572         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18573         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18574         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18575         * modules/unictype/base (License): Likewise.
18576         * modules/unictype/bidiclass-of (License): Likewise.
18577         * modules/unictype/category-M (License): Likewise.
18578         * modules/unictype/category-none (License): Likewise.
18579         * modules/unictype/category-of (License): Likewise.
18580         * modules/unictype/category-test (License): Likewise.
18581         * modules/unictype/category-test-withtable (License): Likewise.
18582         * modules/unictype/combining-class (License): Likewise.
18583         * modules/unictype/joiningtype-of (License): Likewise.
18584         * modules/unictype/scripts (License): Likewise.
18585         * modules/uninorm/base (License): Likewise.
18586         * modules/uninorm/canonical-decomposition (License): Likewise.
18587         * modules/uninorm/composition (License): Likewise.
18588         * modules/uninorm/decompose-internal (License): Likewise.
18589         * modules/uninorm/decomposition-table (License): Likewise.
18590         * modules/uninorm/nfc (License): Likewise.
18591         * modules/uninorm/nfd (License): Likewise.
18592         * modules/uninorm/u32-normalize (License): Likewise.
18593         * modules/unistr/base (License): Likewise.
18594         * modules/unistr/u32-cpy (License): Likewise.
18595         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18596         * modules/unistr/u32-to-u8 (License): Likewise.
18597         * modules/unistr/u32-uctomb (License): Likewise.
18598         * modules/unistr/u8-check (License): Likewise.
18599         * modules/unistr/u8-mblen (License): Likewise.
18600         * modules/unistr/u8-mbtouc (License): Likewise.
18601         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18602         * modules/unistr/u8-mbtoucr (License): Likewise.
18603         * modules/unistr/u8-prev (License): Likewise.
18604         * modules/unistr/u8-strlen (License): Likewise.
18605         * modules/unistr/u8-to-u32 (License): Likewise.
18606         * modules/unistr/u8-uctomb (License): Likewise.
18607         * modules/unitypes (License): Likewise.
18608         Requested by Simon Josefsson.
18609
18610 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18611
18612         lib-symbol-visibility: Add a notice.
18613         * modules/lib-symbol-visibility (Notice): New field.
18614
18615 2011-03-29  Bruno Haible  <bruno@clisp.org>
18616
18617         getaddrinfo: Doc fix.
18618         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18619         section "fixed in Gnulib".
18620
18621 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18622
18623         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18624         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18625
18626 2011-03-26  Bruno Haible  <bruno@clisp.org>
18627
18628         unictype/property-byname: Reduce the number of load-time relocations.
18629         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18630         (UC_PROPERTY_INDEX_*): New enumeration values.
18631         (uc_property_byname): Convert an index from the lookup table to an
18632         uc_property_t.
18633         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18634         values.
18635
18636 2011-03-26  Bruno Haible  <bruno@clisp.org>
18637
18638         unictype/property-byname: Allow omitted word separators and aliases.
18639         * lib/unictype/pr_byname.gperf: Add property names without word
18640         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18641         for 'space'.
18642
18643 2011-03-26  Bruno Haible  <bruno@clisp.org>
18644
18645         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18646         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18647         also hyphens to space.
18648         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18649         without spaces.
18650         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18651
18652 2011-03-26  Bruno Haible  <bruno@clisp.org>
18653
18654         unictype/joiningtype-byname: Recognize long names as well.
18655         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18656         a long name.
18657         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18658         unictype/joiningtype_byname.h.
18659         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18660         * lib/unictype/joiningtype_byname.gperf: New file.
18661         * modules/unictype/joiningtype-byname (Files): Add
18662         lib/unictype/joiningtype_byname.gperf.
18663         (Depends-on): Add gperf.
18664         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18665         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18666         long names.
18667
18668         Tests for module 'unictype/joiningtype-longname'.
18669         * modules/unictype/joiningtype-longname-tests: New file.
18670         * tests/unictype/test-joiningtype_longname.c: New file.
18671
18672         New module 'unictype/joiningtype-longname'.
18673         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18674         * lib/unictype/joiningtype_longname.c: New file.
18675         * modules/unictype/joiningtype-longname: New file.
18676         * modules/unictype/joiningtype-all (Depends-on): Add
18677         unictype/joiningtype-longname.
18678
18679 2011-03-26  Bruno Haible  <bruno@clisp.org>
18680
18681         unictype/bidiclass-byname: Recognize long names as well.
18682         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18683         name.
18684         * lib/unictype/bidi_byname.c: Include <string.h>,
18685         unictype/bidi_byname.h.
18686         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18687         * lib/unictype/bidi_byname.gperf: New file.
18688         * modules/unictype/bidiclass-byname (Files): Add
18689         lib/unictype/bidi_byname.gperf.
18690         (Depends-on): Add gperf.
18691         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18692         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18693         long names.
18694
18695         Tests for module 'unictype/bidiclass-longname'.
18696         * modules/unictype/bidiclass-longname-tests: New file.
18697         * tests/unictype/test-bidi_longname.c: New file.
18698
18699         New module 'unictype/bidiclass-longname'.
18700         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18701         * lib/unictype/bidi_longname.c: New file.
18702         * modules/unictype/bidiclass-longname: New file.
18703         * modules/unictype/bidiclass-all (Depends-on): Add
18704         unictype/bidiclass-longname.
18705
18706 2011-03-26  Bruno Haible  <bruno@clisp.org>
18707
18708         unictype/bidi*: Rename modules.
18709         * modules/unictype/bidiclass-all: Renamed from
18710         modules/unictype/bidicategory-all.
18711         * modules/unictype/bidiclass-name: Renamed from
18712         modules/unictype/bidiclass-name.
18713         (Description): Update.
18714         * modules/unictype/bidiclass-name-tests: Renamed from
18715         modules/unictype/bidicategory-name-tests.
18716         * modules/unictype/bidiclass-byname: Renamed from
18717         modules/unictype/bidicategory-byname.
18718         (Description): Update.
18719         * modules/unictype/bidiclass-byname-tests: Renamed from
18720         modules/unictype/bidicategory-byname-tests.
18721         * modules/unictype/bidiclass-of: Renamed from
18722         modules/unictype/bidicategory-of.
18723         (Description): Update.
18724         * modules/unictype/bidiclass-of-tests: Renamed from
18725         modules/unictype/bidicategory-of-tests.
18726         * modules/unictype/bidiclass-test: Renamed from
18727         modules/unictype/bidicategory-test.
18728         (Description): Update.
18729         * modules/unictype/bidiclass-test-tests: Renamed from
18730         modules/unictype/bidicategory-test-tests.
18731         * modules/unictype/bidicategory-all: New file, a simple redirection.
18732         * modules/unictype/bidicategory-name: Likewise.
18733         * modules/unictype/bidicategory-byname: Likewise.
18734         * modules/unictype/bidicategory-of: Likewise.
18735         * modules/unictype/bidicategory-test: Likewise.
18736         * modules/unictype/property-bidi-* (Dependencies): Update.
18737         * lib/unictype/bidi_*.c: Update comment.
18738
18739 2011-03-26  Bruno Haible  <bruno@clisp.org>
18740
18741         unictype/bidi*: Rename functions, part 2.
18742         * modules/unictype/bidicategory-name (configure.ac): Update required
18743         libunistring version.
18744         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18745
18746 2011-03-25  Bruno Haible  <bruno@clisp.org>
18747
18748         New module 'unictype/combining-class-all'.
18749         * modules/unictype/combining-class-all: New file.
18750
18751         Tests for module 'unictype/combining-class-byname'.
18752         * modules/unictype/combining-class-byname-tests: New file.
18753         * tests/unictype/test-combiningclass_byname.c: New file.
18754
18755         New module 'unictype/combining-class-byname'.
18756         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18757         * lib/unictype/combiningclass_byname.c: New file.
18758         * lib/unictype/combiningclass_byname.gperf: New file.
18759         * modules/unictype/combining-class-byname: New file.
18760
18761         Tests for module 'unictype/combining-class-longname'.
18762         * modules/unictype/combining-class-longname-tests: New file.
18763         * tests/unictype/test-combiningclass_longname.c: New file.
18764
18765         New module 'unictype/combining-class-longname'.
18766         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18767         * lib/unictype/combiningclass_longname.c: New file.
18768         * modules/unictype/combining-class-longname: New file.
18769
18770         Tests for module 'unictype/combining-class-name'.
18771         * modules/unictype/combining-class-name-tests: New file.
18772         * tests/unictype/test-combiningclass_name.c: New file.
18773
18774         New module 'unictype/combining-class-name'.
18775         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18776         * lib/unictype/combiningclass_name.c: New file.
18777         * modules/unictype/combining-class-name: New file.
18778
18779 2011-03-25  Bruno Haible  <bruno@clisp.org>
18780
18781         unictype/combining-class: Rename source files.
18782         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18783         of unictype/combining.h.
18784         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18785         Update.
18786         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18787         * modules/unictype/combining-class (Description): Fix.
18788         (Files, Makefile.am): Update.
18789         * tests/unictype/test-combiningclass.c: Renamed from
18790         tests/unictype/test-combining.c.
18791         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18792
18793 2011-03-25  Bruno Haible  <bruno@clisp.org>
18794
18795         unictype: Update list of canonical combining classes.
18796         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18797
18798 2011-03-25  Bruno Haible  <bruno@clisp.org>
18799
18800         unictype/category-byname: Recognize long names as well.
18801         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18802         a long name.
18803         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18804         unictype/categ_byname.h.
18805         (UC_CATEGORY_INDEX_*): New enumeration values.
18806         (uc_general_category_byname): Use uc_general_category_lookup and
18807         convert from index to value.
18808         * lib/unictype/categ_byname.gperf: New file.
18809         * modules/unictype/category-byname (Files): Add
18810         lib/unictype/categ_byname.gperf.
18811         (Depends-on): Add gperf.
18812         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18813         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18814         long names.
18815
18816         Tests for module 'unictype/category-longname'.
18817         * modules/unictype/category-longname-tests: New file.
18818         * tests/unictype/test-categ_longname.c: New file.
18819
18820         New module 'unictype/category-longname'.
18821         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18822         * lib/unictype/categ_longname.c: New file.
18823         * modules/unictype/category-longname: New file.
18824         * modules/unictype/category-all (Depends-on): Add it.
18825
18826 2011-03-25  Bruno Haible  <bruno@clisp.org>
18827
18828         Tests for module 'unictype/category-LC'.
18829         * modules/unictype/category-LC-tests: New file.
18830         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18831
18832         New module 'unictype/category-LC'.
18833         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18834         (UC_CATEGORY_LC): New declaration.
18835         (UC_CASED_LETTER): New macro.
18836         * lib/gen-uni-tables.c (is_category_LC): New function.
18837         (output_categories): Also handle category LC.
18838         (UC_CATEGORY_MASK_LC): New enumeration value.
18839         (general_category_byname): Also handle category LC.
18840         * lib/unictype/categ_LC.c: New file.
18841         * lib/unictype/categ_LC.h: New file, automatically generated.
18842         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18843         category LC.
18844         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18845         * modules/unictype/category-LC: New file.
18846         * modules/unictype/category-byname (Depends-on): Add
18847         unictype/category-LC.
18848         * modules/unictype/category-all (Depends-on): Likewise.
18849
18850 2011-03-25  Eric Blake  <eblake@redhat.com>
18851
18852         xmalloc: revert yesterday's regression
18853         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18854         realloc's underlying behavior (allowing allocation of zero-size
18855         objects, especially if malloc-gnu is also in use).
18856
18857 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18858
18859         maint.mk: add missing version to VC-tag
18860         * top/maint.mk: git tag was missing actual tag name; add it.
18861
18862         valgrind: do leak checking, and exit with code 1 on error (not 0)
18863         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18864         to VALGRIND.
18865
18866 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18867
18868         posix-modules: say what it does.
18869         * posix-modules: Add a line to the --help output saying what it does.
18870
18871 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         xmalloc: Do not leak if underlying realloc is C99 compatible.
18874         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18875         This avoids a leak on C99-based systems.  See
18876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18877
18878 2011-03-24  Eric Blake  <eblake@redhat.com>
18879
18880         realloc: document portability problem
18881         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18882         passing 0 size to realloc.
18883
18884 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18885
18886         doc: update users.txt
18887         * users.txt: Add cvsps, tmpwatch
18888
18889 2011-03-23  Matt Rice  <ratmice@gmail.com>
18890
18891         doc: update users.txt
18892         * users.txt: Add gdb.
18893
18894 2011-03-23  Jim Meyering  <meyering@redhat.com>
18895
18896         doc: update users.txt
18897         Looking through matches up to the following URL (there are still
18898         several more pages), I found several projects that use gnulib:
18899         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18900         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18901         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18902
18903 2011-03-22  Bruno Haible  <bruno@clisp.org>
18904
18905         unictype/bidi*: Rename functions.
18906         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18907         uc_bidi_class, uc_is_bidi_class): New declarations.
18908         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18909         uc_bidi_category_byname.
18910         (uc_bidi_category_byname): New function.
18911         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18912         u_bidi_category_name.
18913         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18914         (uc_bidi_category_name): New function.
18915         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18916         uc_bidi_category.
18917         (uc_bidi_category): New function.
18918         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18919         uc_is_bidi_category. Invoke uc_bidi_class.
18920         (uc_is_bidi_category): New function.
18921         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18922         instead of uc_bidi_category_byname.
18923         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18924         instead of uc_bidi_category_name.
18925         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18926         uc_bidi_category.
18927         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18928         instead of uc_is_bidi_category.
18929
18930 2011-03-21  Bruno Haible  <bruno@clisp.org>
18931
18932         New module 'unictype/joininggroup-all'.
18933         * modules/unictype/joininggroup-all: New file.
18934
18935         Tests for module 'unictype/joininggroup-of'.
18936         * modules/unictype/joininggroup-of-tests: New file.
18937         * tests/unictype/test-joininggroup_of.c: New file.
18938         * tests/unictype/test-joininggroup_of.h: New file, automatically
18939         generated by gen-uni-tables.
18940
18941         New module 'unictype/joininggroup-of'.
18942         * modules/unictype/joininggroup-of: New file.
18943         * lib/unictype/joininggroup_of.c: New file.
18944         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18945         gen-uni-tables.
18946
18947         Tests for module 'unictype/joininggroup-byname'.
18948         * modules/unictype/joininggroup-byname-tests: New file.
18949         * tests/unictype/test-joininggroup_byname.c: New file.
18950
18951         New module 'unictype/joininggroup-byname'.
18952         * modules/unictype/joininggroup-byname: New file.
18953         * lib/unictype/joininggroup_byname.c: New file.
18954         * lib/unictype/joininggroup_byname.gperf: New file.
18955
18956         Tests for module 'unictype/joininggroup-name'.
18957         * modules/unictype/joininggroup-name-tests: New file.
18958         * tests/unictype/test-joininggroup_name.c: New file.
18959
18960         New module 'unictype/joininggroup-name'.
18961         * modules/unictype/joininggroup-name: New file.
18962         * lib/unictype/joininggroup_name.c: New file.
18963         * lib/unictype/joininggroup_name.h: New file.
18964
18965         New module 'unictype/joiningtype-all'.
18966         * modules/unictype/joiningtype-all: New file.
18967
18968         Tests for module 'unictype/joiningtype-of'.
18969         * modules/unictype/joiningtype-of-tests: New file.
18970         * tests/unictype/test-joiningtype_of.c: New file.
18971         * tests/unictype/test-joiningtype_of.h: New file, automatically
18972         generated by gen-uni-tables.
18973
18974         New module 'unictype/joiningtype-of'.
18975         * modules/unictype/joiningtype-of: New file.
18976         * lib/unictype/joiningtype_of.c: New file.
18977         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18978         gen-uni-tables.
18979
18980         Tests for module 'unictype/joiningtype-byname'.
18981         * modules/unictype/joiningtype-byname-tests: New file.
18982         * tests/unictype/test-joiningtype_byname.c: New file.
18983
18984         New module 'unictype/joiningtype-byname'.
18985         * modules/unictype/joiningtype-byname: New file.
18986         * lib/unictype/joiningtype_byname.c: New file.
18987
18988         Tests for module 'unictype/joiningtype-name'.
18989         * modules/unictype/joiningtype-name-tests: New file.
18990         * tests/unictype/test-joiningtype_name.c: New file.
18991
18992         New module 'unictype/joiningtype-name'.
18993         * modules/unictype/joiningtype-name: New file.
18994         * lib/unictype/joiningtype_name.c: New file.
18995
18996         unictype: Add support for Arabic shaping properties.
18997         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18998         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18999         declarations.
19000         (UC_JOINING_GROUP_*): New enumeration values.
19001         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19002         declarations.
19003         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19004         (unicode_joining_type): New variable.
19005         (UC_JOINING_GROUP_*): New enumeration values.
19006         (unicode_joining_group): New variable.
19007         (fill_arabicshaping, joining_type_as_c_identifier,
19008         output_joining_type_test, output_joining_type,
19009         joining_group_as_c_identifier, output_joining_group_test,
19010         output_joining_group): New functions.
19011         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19012         fill_arabicshaping and output_joining_type_test, output_joining_type,
19013         output_joining_group_test, output_joining_group.
19014         Reported by Simon Josefsson.
19015
19016 2011-03-21  Jim Meyering  <meyering@redhat.com>
19017
19018         strftime: fix a bug in yesterday's change
19019         * lib/strftime.c (add): Accommodate width's initial value of -1.
19020         Otherwise, nstrftime would copy uninitialized data into
19021         the result buffer.
19022
19023 2011-03-21  Jim Meyering  <meyering@redhat.com>
19024
19025         tests: add strftime-tests module
19026         * tests/test-strftime.c: New file.
19027         * modules/strftime-tests: New module.
19028
19029 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19030
19031         strftime: don't assume a byte count fits in 'int'
19032         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19033         found this problem by static analysis, using gcc -Wstrict-overflow
19034         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19035         on an integer overflow having undefined behavior, but it turns out
19036         that the argument is a size, which might not fit in 'int' anyway,
19037
19038 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19039
19040         stdio: don't require ignore_value around fwrite
19041
19042         This patch works around libc bug 11959
19043         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19044         Without this patch, applications must often write
19045         ignore_value (fwrite (...)) even though the ignore_value is
19046         not helpful here.  It's common to write many objects, using
19047         fwrite/printf/etc., and then use ferror to detect output error.
19048
19049         I considered making this patch optional, but decided against it,
19050         because libc is obviously being inconsistent here: there is no
19051         reason libc should insist that user code must inspect fwrite
19052         return's value without also insisting that it inspect printf's,
19053         putchar's, etc.  If user code wants to have a strict style where
19054         all these functions' values are checked (so that ferror need not
19055         be checked), we could add support for that style in a new gnulib
19056         module, but in the meantime it's better to be consistent and to
19057         support common usage.
19058
19059         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19060         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19061         that we are compiling in checking mode, and if not C++, and
19062         if not already wrapping fwrite for some other reason.
19063         (fwrite): #define to rpl_fwrite if the latter is defined.
19064
19065 2011-03-20  Bruno Haible  <bruno@clisp.org>
19066
19067         verror: Fix compilation error introduced on 2011-02-13.
19068         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19069         instead of __attribute__.
19070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19071
19072 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19073             Bruno Haible  <bruno@clisp.org>
19074
19075         socklen: do not depend on sys_socket
19076         While trying to modify Emacs to use gnulib's socklen module,
19077         I discovered a circular dependency: socklen depends on sys_socket
19078         and vice versa.  Emacs can use socklen, but it does not need
19079         sys_socket because it has its own substitute for sys/socket.h.
19080         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19081         gl_TYPE_SOCKLEN_T.
19082         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19083         gl_PREREQ_SYS_H_SOCKET.
19084         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19085         gl_PREREQ_SYS_H_SOCKET.
19086         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19087         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19088         * modules/socklen (Depends-on): Do not depend on sys_socket.
19089         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19090
19091 2011-03-20  Jim Meyering  <meyering@redhat.com>
19092
19093         maint.mk: sort file names *after* new transformation
19094         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19095         prefix would have led to an unwarranted failure in GNU parted.
19096         Sort after that transformation.
19097
19098 2011-03-19  Jim Meyering  <meyering@redhat.com>
19099
19100         maint.mk: fix po-file syntax-check rule
19101         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19102         Patch by Bruno Haible.
19103
19104 2011-03-19  Bruno Haible  <bruno@clisp.org>
19105
19106         socklen: Update comment.
19107         * m4/socklen.m4: Update comment about platforms.
19108
19109 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19110             Bruno Haible  <bruno@clisp.org>
19111
19112         inet_ntop, inet_pton: Simplify.
19113         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19114         documented to provide socklen_t and we already depend on sys_socket.
19115         * modules/inet_pton (Depends-on): Likewise.
19116         * lib/arpa_inet.in.h: Adjust comment.
19117
19118 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19119             Bruno Haible  <bruno@clisp.org>
19120
19121         netdb: Simplify.
19122         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19123         documented to provide socklen_t and we already depend on sys_socket.
19124         * lib/netdb.in.h: Adjust comment.
19125
19126 2011-03-19  Bruno Haible  <bruno@clisp.org>
19127
19128         sys_socket, netdb: Document problem with socklen_t.
19129         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19130         platforms.
19131         * doc/posix-headers/netdb.texi: Likewise.
19132
19133 2011-03-18  Eric Blake  <eblake@redhat.com>
19134
19135         maint.mk: let po check work in VPATH build
19136         * top/maint.mk (po_file): Allow cfg.mk override.
19137         (sc_po_check): Allow VPATH use.
19138         Reported by Jiri Denemark.
19139
19140 2011-03-16  Jim Meyering  <meyering@redhat.com>
19141
19142         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19143         Before, you would have had to create one .x-sc_ file per rule in order
19144         to exempt offending files.  Now, you may instead use a Make variable --
19145         usually defined in cfg.mk -- whose name identifies the affected rule.
19146         * top/maint.mk (_sc_excl): Define.
19147         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19148         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19149
19150 2011-03-13  Bruno Haible  <bruno@clisp.org>
19151
19152         ignore-value tests: Avoid warnings.
19153         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19154         empty for gcc < 3.4.
19155
19156 2011-03-13  Bruno Haible  <bruno@clisp.org>
19157
19158         passfd: Fix link error on Solaris.
19159         * modules/passfd (Description): Correct.
19160         (Depends-on): Add socketlib.
19161         (Link): New section.
19162         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19163
19164 2011-03-13  Bruno Haible  <bruno@clisp.org>
19165
19166         passfd: Fix link error on AIX 5.2.
19167         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19168
19169 2011-03-13  Bruno Haible  <bruno@clisp.org>
19170
19171         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19172         * lib/sys_socket.in.h: Include <stddef.h>.
19173         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19174         CMSG_FIRSTHDR. Remove unused variable.
19175
19176 2011-03-13  Bruno Haible  <bruno@clisp.org>
19177
19178         passfd: Fix compilation error on OpenBSD.
19179         * lib/passfd.c: Include <sys/uio.h>.
19180
19181 2011-03-13  Bruno Haible  <bruno@clisp.org>
19182
19183         passfd test: Fix warnings.
19184         * tests/test-passfd.c: Include <sys/wait.h>.
19185         (main): Fix typo.
19186
19187 2011-03-13  Bruno Haible  <bruno@clisp.org>
19188
19189         passfd module, part 4, tweaks.
19190         * tests/test-passfd.c: Reorder includes.
19191         (main): Fix perror and printf calls.
19192
19193 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19194
19195         passfd module, part 4.
19196         * modules/passfd-tests: New file.
19197         * tests/test-passfd.c: New file.
19198
19199 2011-03-13  Jim Meyering  <meyering@redhat.com>
19200
19201         Makefile: rely on GNU make; derive syntax-check rule names
19202         Rather than requiring that each sc_ rule be listed as a dependent
19203         of "check", use features of GNU make to derive the list.
19204         * Makefile (syntax-check-rules): Define.
19205         (check): Depend on the new variable, not the hard-coded list.
19206
19207 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19208             Bruno Haible  <bruno@clisp.org>
19209
19210         passfd module, part 3.
19211         * lib/passfd.h (recvfd): Add a flags argument.
19212         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19213         (recvfd): Add a flags argument.
19214         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19215         exists.
19216         * modules/passfd (Depends-on): Add cloexec.
19217         Suggested by Eric Blake.
19218
19219 2011-03-13  Bruno Haible  <bruno@clisp.org>
19220
19221         passfd module, part 2, tweaks.
19222         * modules/passfd (Files): Reorder.
19223         (Depends-on): Remove errno.
19224         (Include): Remove <sys/socket.h>, <sys/un.h>.
19225         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19226         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19227         specification header. Include <sys/socket.h> always. Don't include
19228         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19229         (sendfd): Clarify that it sets errno when it fails.
19230         (recvfd): Fix specification.
19231
19232 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19233
19234         passfd module, part 2.
19235         * modules/passfd: New file.
19236         * lib/passfd.h: New file.
19237         * lib/passfd.c: New file.
19238
19239 2011-03-12  Bruno Haible  <bruno@clisp.org>
19240
19241         wcswidth, mbswidth: Avoid integer overflow.
19242         * lib/wcswidth.c: Include <limits.h>.
19243         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19244         * lib/mbswidth.c: Include <limits.h>.
19245         (mbsnwidth): Avoid 'int' overflow.
19246         Reported by Jim Meyering.
19247
19248 2011-03-12  Bruno Haible  <bruno@clisp.org>
19249
19250         futimens, utimensat: Avoid endless recursion on Solaris 10.
19251         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19252         Solaris.
19253         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19254         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19255
19256 2011-03-11  Jim Meyering  <meyering@redhat.com>
19257
19258         maint.mk: relax a regexp to accommodate other formatting styles
19259         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19260         between "ngettext" and the following "(".
19261
19262 2011-03-11  Pádraig Brady <P@draigBrady.com>
19263
19264         maint.mk: suppress a false positive warning
19265         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19266         diagnostics are marked with ngettext.
19267
19268 2011-03-10  Eric Blake  <eblake@redhat.com>
19269
19270         wchar: add explicit dependencies, for Tru64
19271         * modules/mbmemcasecoll (Depends-on): Add wchar.
19272         * modules/mbtowc (Depends-on): Likewise.
19273         * modules/vasnprintf (Depends-on): Likewise.
19274         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19275         * modules/wctomb (Depends-on): Likewise.
19276         Reported by Peter O'Gorman.
19277
19278 2011-03-08  Bruno Haible  <bruno@clisp.org>
19279
19280         passfd module, part 1, tweaks.
19281         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19282         Improve indentation. Improve AC_MSG_CHECKING messages.
19283         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19284         gl_SOCKET_FAMILIES.
19285
19286 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19287
19288         passfd module, part 1.
19289         * m4/afunix.m4: New file.
19290         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19291         sockets.
19292
19293 2011-03-08  Bruno Haible  <bruno@clisp.org>
19294
19295         regex-quote: New API.
19296         * lib/regex-quote.h: Include <stdbool.h>.
19297         (struct regex_quote_spec): New type.
19298         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19299         New declarations.
19300         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19301         'const struct regex_quote_spec *' argument.
19302         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19303         (pcre_special): New constant.
19304         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19305         New functions.
19306         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19307         'const struct regex_quote_spec *' argument.
19308         * modules/regex-quote (Depends-on): Add stdbool.
19309         * tests/test-regex-quote.c (check): Update for new API. Add test for
19310         anchored results.
19311         * NEWS: Mention the API change.
19312         Reported by Reuben Thomas and Eric Blake.
19313
19314 2011-03-06  Bruno Haible  <bruno@clisp.org>
19315
19316         regex-quote: Fix creation of POSIX extended regular expressions.
19317         * lib/regex-quote.c (ere_special): Add grouping and alternation
19318         operators.
19319
19320 2011-03-05  Bruno Haible  <bruno@clisp.org>
19321
19322         doc: Improve doc regarding autopoint vs. gnulib.
19323         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19324         disable autopoint while running autoreconf.
19325         Suggested by Ralf Wildenhues.
19326
19327 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19328
19329         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19330         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19331
19332 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19333
19334         parse-duration: remove xalloc.h dependency
19335         * lib/parse-duration.c (parse_period): handle NULL return from
19336         strdup instead of calling xstrdup().
19337         * modules/parse-duration: remove "xalloc" dependency
19338
19339 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19340
19341         bootstrap: honor m4_base when running aclocal
19342         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19343
19344 2011-03-02  Jim Meyering  <meyering@redhat.com>
19345
19346         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19347         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19348         on request from Matt Booth.
19349
19350 2011-03-01  Eric Blake  <eblake@redhat.com>
19351
19352         test-link: work on Hurd
19353         * tests/test-link.h (test_link): Hurd rejects linking directories
19354         with EISDIR instead of the POSIX-mandated EPERM.
19355
19356 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         stdio: simplify by moving files to printf-posix, sigpipe
19359         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19360         since this symbol is needed only if printf is replaced.
19361         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19362         Require gl_ASM_SYMBOL_PREFIX.
19363         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19364         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19365         (Depends-on): Add 'raise'.
19366         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19367         * modules/stdio (Files): Remove lib/stdio-write.c,
19368         m4/asm-underscore.m4.
19369         (Depends-on): Remove 'raise'.
19370
19371         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19372         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19373         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19374         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19375
19376 2011-02-28  Bruno Haible  <bruno@clisp.org>
19377
19378         localcharset: Assume ANSI C behaviour of free().
19379         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19380         calling free().
19381         Suggested by Simon Josefsson <simon@josefsson.org>.
19382
19383 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19384             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19385             Bruno Haible  <bruno@clisp.org>  (tiny change)
19386
19387         On Cygwin, use /proc file system instead of win32 API.
19388         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19389         Win32 file names.
19390         (DllMain): Simplify by removing Cygwin specific code.
19391         (find_shared_library_fullname): Use Linux specific implementation also
19392         for Cygwin.
19393         (get_shared_library_fullname): Update accordingly.
19394         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19395         Win32 file names.
19396         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19397         Cygwin specific code.
19398
19399 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19400             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19401
19402         Fix OpenMP flag detection for various Fortran compilers.
19403         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19404         OpenMP-conditional compilation construct, to force compile
19405         failure with missing OpenMP flag.
19406         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19407
19408 2011-02-25  Eric Blake  <eblake@redhat.com>
19409
19410         strstr: expand test coverage
19411         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19412         compilation.
19413         * tests/test-memmem.c (main): Duplicate tests.
19414         * tests/test-strcasestr.c (main): Likewise.
19415         * tests/test-c-strcasestr.c (main): Likewise.
19416
19417 2011-02-25  Jim Meyering  <meyering@redhat.com>
19418
19419         maint.mk: detect missing-NL-at-EOF, too
19420         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19421         it also detects when a file lacks a newline at EOF.
19422         (require_exactly_one_NL_at_EOF_): Renamed from
19423         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19424         since people may well have .x-sc_... file names tied to the
19425         existing name.  Suggested by Eric Blake.
19426
19427 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19428
19429         dirname: move m4/dos.m4 functionality into lib/dosname.h
19430
19431         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19432         extracts symbols from it, puts them into config.h; but it's much
19433         easier to use the symbols directly.  filename.h already does this,
19434         but it disagrees with dos.m4 in some respects.  This patch
19435         introduces a different include file dosname.h that packages up
19436         dos.m4, and then later we can work on merging filename.h and
19437         dosname.h.  Applications that need only the easy-to-configure
19438         symbols should consider including dosname.h rather than dirname.h.
19439         * NEWS: Mention incompatible changes.
19440         * m4/dos.m4: Remove.
19441         * lib/dosname.h, modules/dosname: New files.
19442         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19443         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19444         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19445         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19446         Include dosname.h, not dirname.h.
19447         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19448         Include dosname.h, for definitions of symbols like ISSLASH
19449         that used to be in config.h.
19450         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19452         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19453         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19454         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19455         * modules/rmdir (Files): Likewise.
19456         * modules/stat (Files): Likewise.
19457         * modules/unlink (Files): Likewise.
19458         * modules/dirname-lgpl (Depends-on): Add dosname.
19459         * modules/lstat (Depends-on): Likewise.
19460         * modules/openat (Depends-on): Likewise.
19461         * modules/rmdir (Depends-on): Likewise.
19462         * modules/savewd (Depends-on): Likewise.
19463         * modules/stat (Depends-on): Likewise.
19464         * modules/unlink (Depends-on): Likewise.
19465         * modules/openat (Depends-on): Remove dirname-lgpl.
19466         * modules/savewd (Depends-on): Likewise.
19467         * tests/test-dirname.c: Do not use removed symbols like
19468         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19469         the remaining symbols, e.g., ISSLASH ('\\').
19470
19471 2011-02-25  Eric Blake  <eblake@redhat.com>
19472
19473         strstr: revert patches that introduced bug and pessimization
19474         * lib/str-two-way.h: Add another reference.
19475         (two_way_short_needle, two_way_long_needle): Revert changes from
19476         2011-02-24; they pessimize search speed.
19477         (critical_factorization): Partially revert changes from
19478         2010-06-22; they violate the requirement that the left half of the
19479         needle be smaller than the period of the needle.
19480
19481 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19482
19483         filenamecat: remove unnecessary dependency on dirname-lgpl
19484         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19485         is no direct dependency, just an indirect one via filenamecat-lgpl.
19486
19487         remove: remove unnecessary use of m4/dos.m4
19488         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19489         * modules/remove (FILES): Remove m4/dos.m4.
19490
19491         * lib/openat-proc.c: Don't include dirname.h; not needed.
19492
19493         backupfile: remove unnecessary use of m4/dos.m4
19494         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19495         of its symbols are used by the backupfile code.  backupfile.c does
19496         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19497         for the rare case of programs that want all their backup file
19498         names to live within 8+3 limits, and dos.m4 doesn't address that.
19499         * modules/backupfile (Files): Remove m4/dos.m4.
19500
19501 2011-02-24  Jim Meyering  <meyering@redhat.com>
19502
19503         strstr: fix a bug whereby strstr would mistakenly return NULL
19504         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19505         in period calculation.
19506         (two_way_long_needle): Likewise.
19507         The original problem was reported by Mike Stump in
19508         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19509         Ralf Wildenhues provided the short needle and haystack.
19510         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19511         Add a more involved test to trigger the bug in two_way_long_needle.
19512
19513 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19514
19515         gnulib-tool: remove use of bold display in help screen
19516         * gnulib-tool (func_usage): Do not use bold display anymore in the
19517         help screen.  That was just meant to be a temporary emphasis for a
19518         backward-incompatible change.
19519
19520 2011-02-23  Bruno Haible  <bruno@clisp.org>
19521
19522         Fix misindentation of preprocessor directives.
19523         * lib/argp-namefrob.h: Reindent preprocessor directives.
19524         * lib/getopt_int.h (struct _getopt_data): Likewise.
19525         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19526         * lib/vasnprintf.c (decode_long_double): Likewise.
19527         * tests/test-argmatch.c: Insert blank lines, for clarity.
19528         * tests/test-exclude.c: Likewise.
19529
19530 2011-02-22  Bruno Haible  <bruno@clisp.org>
19531
19532         ioctl: Fix for MacOS X in 64-bit mode.
19533         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19534         value.
19535         Suggested by Eric Blake.
19536         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19537
19538 2011-02-22  Jim Meyering  <meyering@redhat.com>
19539
19540         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19541         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19542         in lib/.
19543
19544 2011-02-22  Eric Blake  <eblake@redhat.com>
19545
19546         maint: avoid any CDPATH issue
19547         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19548
19549         maint: adjust cpp indentation for my modules, as well
19550         * Makefile (sc_cpp_indent_check): Add my name.
19551         * lib/fbufmode.c: Filter through cppi.
19552         * lib/fpurge.c: Likewise.
19553         * lib/freadable.c: Likewise.
19554         * lib/freading.c: Likewise.
19555         * lib/fwritable.c: Likewise.
19556         * lib/fwriting.c: Likewise.
19557         * lib/sigaction.c: Likewise.
19558
19559 2011-02-22  Jim Meyering  <meyering@redhat.com>
19560
19561         maint: adjust cpp indentation to reflect nesting depth
19562         I.e., in a block of code that begins with an unnested "#if",
19563         put one space between the "#" in column 1 and following token.
19564         For example,
19565         -#include <sys/vfs.h>
19566         +# include <sys/vfs.h>
19567         Do this only in .c files that are part of a module I maintain.
19568         * lib/linkat.c: Filter through cppi.
19569         * lib/nanosleep.c: Likewise.
19570         * lib/openat.c: Likewise.
19571         * lib/openat-die.c: Likewise.
19572         * lib/dup3.c: Likewise.
19573         * lib/fchownat.c: Likewise.
19574         * lib/flock.c: Likewise.
19575         * lib/fsync.c: Likewise.
19576         * lib/fts.c: Likewise.
19577         * lib/getpass.c: Likewise.
19578         * lib/gettimeofday.c: Likewise.
19579         * lib/userspec.c: Likewise.
19580         * Makefile (sc_cpp_indent_check): New rule, to check this.
19581
19582 2011-02-22  Bruno Haible  <bruno@clisp.org>
19583
19584         New module 'wctomb'.
19585         * lib/stdlib.in.h (wctomb): New declaration.
19586         * lib/wctomb.c: New file.
19587         * lib/wctomb-impl.h: New file.
19588         * m4/wctomb.m4: New file.
19589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19590         REPLACE_WCTOMB.
19591         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19592         REPLACE_WCTOMB.
19593         * modules/wctomb: New file.
19594         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19595         * doc/posix-functions/wctomb.texi: Mention the new module.
19596         * modules/wctob (Depends-on): Add wctomb.
19597
19598 2011-02-22  Bruno Haible  <bruno@clisp.org>
19599
19600         New module 'mbtowc'.
19601         * lib/stdlib.in.h (mbtowc): New declaration.
19602         * lib/mbtowc.c: New file.
19603         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19604         * m4/mbtowc.m4: New file.
19605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19606         REPLACE_MBTOWC.
19607         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19608         REPLACE_MBTOWC.
19609         * modules/mbtowc: New file.
19610         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19611         * doc/posix-functions/mbtowc.texi: Mention the new module.
19612         * modules/btowc (Depends-on): Add mbtowc.
19613
19614 2011-02-22  Bruno Haible  <bruno@clisp.org>
19615
19616         wcrtomb: Add more tests for native Windows platforms.
19617         * tests/test-wcrtomb-w32-1.sh: New file.
19618         * tests/test-wcrtomb-w32-2.sh: New file.
19619         * tests/test-wcrtomb-w32-3.sh: New file.
19620         * tests/test-wcrtomb-w32-4.sh: New file.
19621         * tests/test-wcrtomb-w32-5.sh: New file.
19622         * tests/test-wcrtomb-w32.c: New file.
19623         * modules/wcrtomb-tests (Files): Add them.
19624         (Makefile.am): Arrange to run these tests.
19625         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19626         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19627
19628 2011-02-20  Bruno Haible  <bruno@clisp.org>
19629
19630         wcrtomb: Enhance test.
19631         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19632
19633 2011-02-20  Bruno Haible  <bruno@clisp.org>
19634
19635         mbrtowc: Tiny optimization.
19636         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19637
19638 2011-02-20  Jim Meyering  <meyering@redhat.com>
19639
19640         test-exclude.c: remove unmatched #endif
19641         * tests/test-exclude.c: Remove stray #endif, left over from
19642         the change of a week ago.
19643
19644 2011-02-19  Jim Meyering  <meyering@redhat.com>
19645
19646         git-version-gen: skip "-dirty" check when appropriate
19647         * build-aux/git-version-gen: Don't run any git commands when the
19648         version string comes from .tarball-version.  Prior to this, we
19649         would run git update-index --refresh even from a just-unpacked
19650         tarball directory, and that could affect a .git/ directory in a
19651         parent of the build directory.  Reported by Mike Frysinger.
19652
19653 2011-02-19  Bruno Haible  <bruno@clisp.org>
19654
19655         unictype/property-byname: Reduce the size of the 'data' segment.
19656         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19657
19658 2011-02-19  Bruno Haible  <bruno@clisp.org>
19659
19660         unictype/scripts: Reduce the size of the 'data' segment.
19661         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19662         '%pic'.
19663         * lib/unictype/scripts_byname.gperf: Regenerated.
19664
19665 2011-02-19  Bruno Haible  <bruno@clisp.org>
19666
19667         stdint: Update documentation.
19668         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19669
19670 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19671
19672         stdint: omit redundant check for wchar.h
19673         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19674         always tests whether wchar.h exists, so remove the now-redundant test.
19675
19676 2011-02-18  Bruno Haible  <bruno@clisp.org>
19677
19678         stdint: Cut dependency to module 'wchar'.
19679         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19680         include the necessary prerequisites.
19681         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19682         * modules/stdint (Depends-on): Remove wchar.
19683         (Makefile.am): Substitute HAVE_WCHAR_H.
19684         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19685
19686 2011-02-18  Eric Blake  <eblake@redhat.com>
19687
19688         longlong: skip, rather than fail, on cross-compilation
19689         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19690         when cross-compiling; regression from 2011-02-16.
19691
19692 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19693
19694         * NEWS: Mention 2011-02-08 change to stdlib.
19695
19696 2011-02-17  Bruno Haible  <bruno@clisp.org>
19697
19698         getloadavg: Add comments about platforms.
19699         * m4/getloadavg.m4: Add comment.
19700         * lib/getloadavg.c: Likewise.
19701
19702 2011-02-17  Bruno Haible  <bruno@clisp.org>
19703
19704         getloadavg: Fix link error on Solaris 2.6.
19705         * modules/getloadavg (Link): New section.
19706         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19707         linking test-getloadavg.
19708         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19709         getloadavg.
19710
19711 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19712
19713         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19714         It was 'int', but this doesn't match the IRIX 6.5 manual.
19715         Suggested by Bruno Haible in
19716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19717
19718 2011-02-17  Bruno Haible  <bruno@clisp.org>
19719
19720         havelib: Fix comments.
19721         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19722         change.
19723
19724 2011-02-17  Bruno Haible  <bruno@clisp.org>
19725
19726         havelib: Update config.rpath.
19727         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19728
19729 2011-02-17  Bruno Haible  <bruno@clisp.org>
19730
19731         getloadavg test: Add some plausibility checks.
19732         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19733         is improbable.
19734
19735 2011-02-16  Eric Blake  <eblake@redhat.com>
19736
19737         maintainer-makefile: make syntax-check a no-op from tarballs
19738         * top/maint.mk (no-vc-detected): New rule.
19739         (local-checks-available): Use it to avoid hanging if someone tries
19740         'make syntax-check' from a tarball.  Also append to any non-syntax
19741         checks already defined in cfg.mk.
19742
19743 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         longlong: tune, particularly for common case of c99
19746
19747         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19748         or running anything if c99, or if unsigned long long int does not
19749         work.  In either case, we know the answer without further tests.
19750         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19751         it at most once, and use its results for both long long int and
19752         unsigned long long int.  This is more likely to be efficient in
19753         the common case where the program wants to check for both long
19754         long int and unsigned long long int.
19755         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19756         since the answer is already known.
19757
19758 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19759
19760         getloadavg: set errno
19761         * lib/getloadavg.c: Set errno when returning -1.  If no other
19762         error number looks appropriate, set it to ENOSYS if the getloadavg
19763         looks like it can't possibly ever work, ENOTSUP otherwise.
19764         Suggested by Bruno Haible in
19765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19766
19767         getloadavg: trim unused parts and speed up 'configure'
19768         * NEWS: Document this.
19769         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19770         always compiled if getloadavg is absent.
19771         Move test code to ...
19772         * tests/test-getloadavg.c: New file, containing previous
19773         contents of test from lib/getloadavg.c.  It also contains
19774         suggestions by Bruno Haible in
19775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19776         * modules/getloadavg-tests: New file.
19777         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19778         Do tests in the same order as they're needed for getloadavg.c.
19779         Omit setgid-related tests that generate symbols KMEM_GROUP,
19780         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19781         Do only the tests that are needed to see whether the system has
19782         getloadavg, moving the other tests into ...
19783         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19784         NLIST_NAME_UNION; nobody should be using it.  Do not define
19785         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19786         relevant, as the user of this module shouldn't care how getloadavg
19787         is implemented.
19788
19789         getloadavg: omit unused var
19790         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19791
19792 2011-02-15  Jim Meyering  <meyering@redhat.com>
19793
19794         doc: update users.txt
19795         * users.txt: Update iwhd's URL.
19796
19797 2011-02-13  Bruno Haible  <bruno@clisp.org>
19798
19799         Consistent macro naming for macros that use GCC __attribute__.
19800         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19801         _ATTRIBUTE_NONNULL_.
19802         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19803         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19804         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19805         ATTRIBUTE_DEPRECATED.
19806         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19807         ATTRIBUTE_NORETURN.
19808         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19809         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19810         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19811         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19812         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19813         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19814         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19815         ATTRIBUTE_SENTINEL.
19816         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19817         ATTRIBUTE_RETURN_CHECK.
19818         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19819         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19820         ATTRIBUTE_NORETURN.
19821         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19822         Reported by Paul Eggert.
19823
19824 2011-02-13  Bruno Haible  <bruno@clisp.org>
19825
19826         Don't interfere with a program's definition of __attribute__.
19827         * lib/argp.h (__attribute__): Remove definition.
19828         (_GL_ATTRIBUTE_FORMAT): New macro.
19829         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19830         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19831         (_GL_ATTRIBUTE_FORMAT): New macro.
19832         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19833         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19834         GCC 3 or newer.
19835         * lib/error.h (__attribute__): Remove definition.
19836         (_GL_ATTRIBUTE_FORMAT): New macro.
19837         (error, error_at_line): Use it.
19838         * lib/hash.h (__attribute__): Remove definition.
19839         (ATTRIBUTE_WUR): Update definition. Define always.
19840         * lib/openat.h (__attribute__): Remove definition.
19841         (ATTRIBUTE_NORETURN): Update definition. Define always.
19842         * lib/sigpipe-die.h (__attribute__): Remove definition.
19843         (ATTRIBUTE_NORETURN): Update definition. Define always.
19844         * lib/vasnprintf.h (__attribute__): Remove definition.
19845         (_GL_ATTRIBUTE_FORMAT): New macro.
19846         (asnprintf, vasnprintf): Use it.
19847         * lib/xalloc.h (__attribute__): Remove definition.
19848         (ATTRIBUTE_NORETURN): Update definition. Define always.
19849         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19850         * lib/xmemdup0.h (__attribute__): Remove definition.
19851         (ATTRIBUTE_NORETURN): Update definition. Define always.
19852         * lib/xprintf.h (__attribute__): Remove definition.
19853         (_GL_ATTRIBUTE_FORMAT): New macro.
19854         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19855         * lib/xstrtol.h (__attribute__): Remove definition.
19856         (ATTRIBUTE_NORETURN): Update definition. Define always.
19857         * lib/xvasprintf.h (__attribute__): Remove definition.
19858         (_GL_ATTRIBUTE_FORMAT): New macro.
19859         (xasprintf, xvasprintf): Use it.
19860         * tests/test-argmatch.c (__attribute__): Remove definition.
19861         (ATTRIBUTE_NORETURN): Update definition. Define always.
19862         * tests/test-exclude.c (__attribute__): Remove definition.
19863         (ATTRIBUTE_NORETURN): Update definition. Define always.
19864         Reported by Paul Eggert.
19865
19866 2011-02-13  Bruno Haible  <bruno@clisp.org>
19867
19868         mbrtowc: Add more tests for native Windows platforms.
19869         * tests/test-mbrtowc-w32-1.sh: New file.
19870         * tests/test-mbrtowc-w32-2.sh: New file.
19871         * tests/test-mbrtowc-w32-3.sh: New file.
19872         * tests/test-mbrtowc-w32-4.sh: New file.
19873         * tests/test-mbrtowc-w32-5.sh: New file.
19874         * tests/test-mbrtowc-w32.c: New file.
19875         * modules/mbrtowc-tests (Files): Add them.
19876         (Makefile.am): Arrange to run these tests.
19877         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19878         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19879
19880 2011-02-13  Bruno Haible  <bruno@clisp.org>
19881
19882         mbrtowc: Work around native Windows bug.
19883         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19884         guess when no suitable locale for testing was found.
19885         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19886
19887 2011-02-13  Bruno Haible  <bruno@clisp.org>
19888
19889         mbsinit: Work around mingw bug.
19890         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19891         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19892         Windows.
19893         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19894
19895 2011-02-13  Bruno Haible  <bruno@clisp.org>
19896
19897         mbsinit: Don't crash for a NULL argument.
19898         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19899         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19900
19901 2011-02-13  Bruno Haible  <bruno@clisp.org>
19902
19903         Don't interfere with a program's definition of __attribute__.
19904         * lib/stdio.in.h (__attribute__): Remove definition.
19905         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19906         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19907         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19908         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19909         * lib/string.in.h (__attribute__): Remove definition.
19910         Reported by Paul Eggert.
19911
19912 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19913
19914         stdlib: don't get in the way of non-GCC __attribute__
19915         See thread starting at
19916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19917         Revert previous stdlib change, installing the following instead:
19918         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19919         to get in the way of a non-GCC compiler that supports __attribute__.
19920         (_GL_ATTRIBUTE_RETURN): New macro.
19921         (_Exit): Use it instead of __attribute__.
19922
19923 2011-02-12  Bruno Haible  <bruno@clisp.org>
19924
19925         quotearg test: Avoid test failure on mingw.
19926         * tests/test-quotearg.sh: Convert the locale identifier from native
19927         Windows syntax to Unix syntax.
19928
19929 2011-02-12  Bruno Haible  <bruno@clisp.org>
19930
19931         setlocale: Prefer gnulib's override over libintl's override.
19932         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19933         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19934         GNULIB_defined_setlocale is set.
19935
19936 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19937
19938         stdlib: support non-GCC __attribute__
19939
19940         Fix a serious and tricky problem encountered when attempting to
19941         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19942         5.5, but it crashed due to memory corruption on Solaris 10 with
19943         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19944         bits that are otherwise zero.  This tagging is optional inside
19945         Emacs but is preferred and is used when __attribute__ ((__aligned
19946         (8))) works, as it does with both recent-enough GCC and with Sun C
19947         5.11.  However, Sun C 5.11 is not GCC and does not #define
19948         __GNUC__ and __GNUC_MINOR__.
19949
19950         When I added the getloadavg module to Emacs, it brought in
19951         stdlib.in.h, which contained this fragment:
19952
19953            #ifndef __attribute__
19954            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19955            #  define __attribute__(Spec)   /* empty */
19956            # endif
19957            #endif
19958
19959         When files that include <stdlib.h> were compiled with Sun C 5.11,
19960         the above code disabled __attribute__ ((__aligned (8))), which
19961         caused variables to not be properly aligned, which eventually led
19962         to the pointer corruption mentioned above.  (This was a bit hard
19963         to diagnose, unfortunately.)
19964
19965         Several "#define __attribute__(X) /* empty */" code snippets need
19966         to be eradicated from Gnulib to work with non-GCC compilers that
19967         support __attribute__.  The Autoconf way to do this is to test for
19968         each kind of attribute that we want support for, and selectively
19969         enable that in source code.
19970
19971         Fix this problem just for stdlib.h, by adding a test for the
19972         __noreturn__ attribute, and change stdlib.in.h to use that test
19973         when needed.  This technique can be easily generalized to the
19974         other *.in.h files and attributes, and a similar technique can be
19975         used for *.h and *.c files.  This patch is enough to solve the
19976         problem for Emacs + getloadavg, and I thought I'd publish it for
19977         feedback before undertaking further, similar fixes in other
19978         modules.
19979
19980         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19981         because it's not needed for stdlib.h.  It merely substitutes the
19982         value directly into stdlib.h.  We may well need to #define it, or
19983         similar symbols, for other modules, but it's nice to also have an
19984         option to not #define it for applications like Emacs that do not
19985         need it.
19986
19987         * lib/stdlib.in.h (__attribute__): Do not #define.
19988         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19989         be defined only if the _Exit module is also used.
19990         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19992         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19993         platforms.
19994         * modules/_Exit (Files): Add m4/attribute.m4.
19995         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19996         * m4/attribute.m4: New file.
19997
19998 2011-02-12  Bruno Haible  <bruno@clisp.org>
19999
20000         wcsrtombs: Work around bug on native Windows.
20001         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20002         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20003         instead of len.
20004         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20005
20006 2011-02-12  Bruno Haible  <bruno@clisp.org>
20007
20008         mbsrtowcs: Work around bug on native Windows.
20009         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20010         against mingw bug.
20011         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20012
20013 2011-02-12  Bruno Haible  <bruno@clisp.org>
20014
20015         Avoid setlocale bugs in tests.
20016         * modules/btowc (Dependencies): Add setlocale.
20017         * modules/c-strcase (Dependencies): Likewise.
20018         * modules/mbmemcasecmp (Dependencies): Likewise.
20019         * modules/mbmemcasecoll (Dependencies): Likewise.
20020         * modules/mbrtowc (Dependencies): Likewise.
20021         * modules/mbscasecmp (Dependencies): Likewise.
20022         * modules/mbscasestr (Dependencies): Likewise.
20023         * modules/mbschr (Dependencies): Likewise.
20024         * modules/mbscspn (Dependencies): Likewise.
20025         * modules/mbsinit (Dependencies): Likewise.
20026         * modules/mbsncasecmp (Dependencies): Likewise.
20027         * modules/mbsnrtowcs (Dependencies): Likewise.
20028         * modules/mbspbrk (Dependencies): Likewise.
20029         * modules/mbspcasecmp (Dependencies): Likewise.
20030         * modules/mbsrchr (Dependencies): Likewise.
20031         * modules/mbsrtowcs (Dependencies): Likewise.
20032         * modules/mbsspn (Dependencies): Likewise.
20033         * modules/mbsstr (Dependencies): Likewise.
20034         * modules/nl_langinfo (Dependencies): Likewise.
20035         * modules/quotearg (Dependencies): Likewise.
20036         * modules/unicase/locale-language (Dependencies): Likewise.
20037         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20038         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20039         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20040         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20041         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20042         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20043         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20044         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20045         * modules/vasnprintf-posix (Dependencies): Likewise.
20046         * modules/wcrtomb (Dependencies): Likewise.
20047         * modules/wcsnrtombs (Dependencies): Likewise.
20048         * modules/wcsrtombs (Dependencies): Likewise.
20049
20050 2011-02-12  Bruno Haible  <bruno@clisp.org>
20051
20052         setlocale: Workaround native Windows bug.
20053         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20054         succeeds but sets LC_CTYPE to "C", report a failure.
20055         * tests/test-setlocale2.sh: New file.
20056         * tests/test-setlocale2.c: New file.
20057         * modules/setlocale-tests (Files): Add the new files.
20058         (Makefile.am): Enable test-setlocale2.sh test.
20059         * doc/posix-functions/setlocale.texi: Mention workaround.
20060
20061 2011-02-11  Bruno Haible  <bruno@clisp.org>
20062
20063         Tests for module 'setlocale'.
20064         * modules/setlocale-tests: New file.
20065         * tests/test-setlocale1.sh: New file.
20066         * tests/test-setlocale1.c: New file.
20067
20068         New module 'setlocale'.
20069         * lib/locale.in.h (setlocale): New declaration.
20070         * lib/setlocale.c: New file, based on
20071         gettext/gettext-runtime/intl/setlocale.c.
20072         * m4/setlocale.m4: New file.
20073         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20074         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20075         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20076         REPLACE_SETLOCALE.
20077         * modules/setlocale: New file.
20078         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20079         * doc/posix-functions/setlocale.texi: Mention the new module.
20080
20081 2011-02-11  Bruno Haible  <bruno@clisp.org>
20082
20083         Prepare for locale dependent tests on mingw.
20084         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20085         because it has the wrong locale encoding.
20086         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20087         French_France.1252 instead of "fr".
20088         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20089         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20090         because it has the wrong locale encoding.
20091         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20092         native Windows, try Turkish_Turkey.65001.
20093         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20094         Chinese_China.54936.
20095
20096         Prepare for locale dependent tests on mingw.
20097         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20098         differently.
20099         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20100         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20102         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20103
20104 2011-02-11  Eric Blake  <eblake@redhat.com>
20105
20106         strptime: avoid compiler warnings
20107         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20108         compiler warnings about dead code.
20109         Reported by Daniel P. Berrange.
20110
20111 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20112
20113         doc: update users.txt
20114         * users.txt: Add rcs.
20115
20116 2011-02-10  John W. Eaton  <jwe@gnu.org>
20117
20118         doc: update users.txt
20119         * users.txt: Add octave.
20120
20121 2011-02-10  Jim Meyering  <meyering@redhat.com>
20122
20123         doc: update users.txt
20124         * users.txt: Add iwhd.
20125
20126 2011-02-09  Bruno Haible  <bruno@clisp.org>
20127
20128         gnulib-tool: Make copyright notice adjustment more robust.
20129         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20130         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20131         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20132         License".
20133         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20134
20135 2011-02-06  Bruno Haible  <bruno@clisp.org>
20136
20137         New module 'towctrans'.
20138         * modules/towctrans: New file.
20139         * lib/wctype.in.h (towctrans): New declaration.
20140         * lib/towctrans.c: New file.
20141         * lib/towctrans-impl.h: New file.
20142         * m4/towctrans.m4: New file.
20143         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20144         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20145         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20146         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20147         * doc/posix-functions/towctrans.texi: Mention the new module.
20148
20149 2011-02-06  Bruno Haible  <bruno@clisp.org>
20150
20151         New module 'wctrans'.
20152         * modules/wctrans: New file.
20153         * lib/wctype.in.h (wctrans): New declaration.
20154         * lib/wctrans.c: New file.
20155         * lib/wctrans-impl.h: New file.
20156         * m4/wctrans.m4: New file.
20157         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20158         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20159         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20160         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20161         * doc/posix-functions/wctrans.texi: Mention the new module.
20162
20163 2011-02-06  Bruno Haible  <bruno@clisp.org>
20164
20165         New module 'iswctype'.
20166         * modules/iswctype: New file.
20167         * lib/wctype.in.h (iswctype): New declaration.
20168         * lib/iswctype.c: New file.
20169         * lib/iswctype-impl.h: New file.
20170         * m4/iswctype.m4: New file.
20171         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20172         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20173         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20174         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20175         * doc/posix-functions/iswctype.texi: Mention the new module and the
20176         HP-UX 11.00 problem.
20177
20178 2011-02-06  Bruno Haible  <bruno@clisp.org>
20179
20180         New module 'wctype'.
20181         * modules/wctype: Change to represent the wctype() substitute.
20182         * lib/wctype.in.h (wctype): New declaration.
20183         * lib/wctype.c: New file.
20184         * lib/wctype-impl.h: New file.
20185         * m4/wctype.m4: New file.
20186         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20187         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20188         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20189         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20190         * doc/posix-functions/wctype.texi: Mention the new module and the
20191         HP-UX 11.00 problem.
20192
20193 2011-02-06  Bruno Haible  <bruno@clisp.org>
20194
20195         wctype-h: Ensure wctype_t and wctrans_t are defined.
20196         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20197         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20198         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20199         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20200         HAVE_WCTRANS_T.
20201         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20202
20203 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20204
20205         flock: fix license typo
20206
20207         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20208         omitted.
20209
20210 2011-02-08  Bruno Haible  <bruno@clisp.org>
20211
20212         Split large sed scripts, for HP-UX sed.
20213         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20214         to avoid HP-UX limit of 99 commands, in the near future.
20215         * modules/stdlib (Makefile.am): Likewise.
20216         * modules/unistd (Makefile.am): Likewise.
20217         * modules/wchar (Makefile.am): Likewise.
20218         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20219         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20221
20222 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20223             Bruno Haible  <bruno@clisp.org>
20224
20225         stdlib: improve random_r modularization
20226         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20227         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20228         you also need the random_r module to get this material right.
20229         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20230         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20231         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20232
20233 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20234
20235         stdlib: don't depend on stdint
20236         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20237         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20238         be independent of whether stdint.h is needed.
20239         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20240         here, instead of ...
20241         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20242         struct random_data should be using the random_r module, not just
20243         the stdlib module (which wouldn't make sense: what package needs
20244         just struct random_data without also needing random_r?).
20245         * modules/stdlib (Depends-on): Remove stdint.
20246
20247         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20248         See the thread rooted at
20249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20250         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20251         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20252         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20253         __VMS)); previously it was always included (via fcntl--.h).
20254         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20255         hand; this is good enough for load averages.  Also, do not use
20256         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20257         flags directly if available and don't bother otherwise.  (Packages
20258         that need the extra reliability should use the modules that define
20259         these flags on older platforms that lack them.)
20260         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20261         fcntl-safer.
20262
20263 2011-02-08  Jim Meyering  <meyering@redhat.com>
20264
20265         di-set.h, ino-map.h: add multiple-inclusion guard
20266         Technically, the guard is required only for ino-map.h, due to its
20267         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20268         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20269         * lib/ino-map.h: Likewise.
20270
20271 2011-02-06  Bruno Haible  <bruno@clisp.org>
20272
20273         iswblank: Ensure declaration on glibc systems.
20274         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20275         * modules/iswblank (Dependencies): Add 'extensions'.
20276         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20277
20278 2011-02-06  Bruno Haible  <bruno@clisp.org>
20279
20280         New module 'iswblank'.
20281         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20282         * modules/iswblank: New file.
20283         * modules/wctype-h (Files): Remove lib/iswblank.c.
20284         (Makefile.am): Substitute GNULIB_ISWBLANK.
20285         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20286         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20287         (gl_WCTYPE_H_DEFAULTS): New macro.
20288         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20289         * modules/iswblank-tests: New file.
20290         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20291         * tests/test-wctype-h.c (main): Remove iswblank tests.
20292         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20293         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20294         of 'wctype-h'.
20295         * NEWS: Mention the change.
20296         * modules/mbchar (Depends-on): Add iswblank.
20297
20298 2011-02-08  Bruno Haible  <bruno@clisp.org>
20299
20300         di-set tests: Refactor.
20301         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20302         unnecessary includes.
20303         (ASSERT): Remove macro.
20304         (main): Make C90 compliant by avoiding variable declaration after
20305         statement.
20306         * modules/di-set-tests (Files): Add tests/macros.h.
20307
20308 2011-02-08  Bruno Haible  <bruno@clisp.org>
20309
20310         ino-map tests: Refactor.
20311         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20312         unnecessary includes.
20313         (ASSERT): Remove macro.
20314         (main): Make C90 compliant by avoiding variable declaration after
20315         statement.
20316         * modules/ino-map-tests (Files): Add tests/macros.h.
20317
20318 2011-02-08  Jim Meyering  <meyering@redhat.com>
20319
20320         di-set: add "const" to a cast
20321         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20322         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20323
20324 2011-02-06  Bruno Haible  <bruno@clisp.org>
20325
20326         Rename module 'wctype' to 'wctype-h'.
20327         * modules/wctype-h: Renamed from modules/wctype.
20328         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20329         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20330         (Files, Depends-on, Makefile.am): Update.
20331         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20332         (Files, Makefile.am): Update.
20333         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20334         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20335         * doc/posix-headers/wctype.texi: Update.
20336         * doc/posix-functions/iswalnum.texi: Update.
20337         * doc/posix-functions/iswalpha.texi: Update.
20338         * doc/posix-functions/iswblank.texi: Update.
20339         * doc/posix-functions/iswcntrl.texi: Update.
20340         * doc/posix-functions/iswdigit.texi: Update.
20341         * doc/posix-functions/iswgraph.texi: Update.
20342         * doc/posix-functions/iswlower.texi: Update.
20343         * doc/posix-functions/iswprint.texi: Update.
20344         * doc/posix-functions/iswpunct.texi: Update.
20345         * doc/posix-functions/iswspace.texi: Update.
20346         * doc/posix-functions/iswupper.texi: Update.
20347         * doc/posix-functions/iswxdigit.texi: Update.
20348         * doc/posix-functions/towlower.texi: Update.
20349         * doc/posix-functions/towupper.texi: Update.
20350         * NEWS: Mention the change.
20351         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20352         * modules/mbchar (Dependencies): Likewise.
20353         * modules/mbswidth (Dependencies): Likewise.
20354         * modules/quotearg (Dependencies): Likewise.
20355         * modules/regex (Dependencies): Likewise.
20356         * modules/wcscasecmp (Dependencies): Likewise.
20357         * modules/wcsncasecmp (Dependencies): Likewise.
20358         * modules/wcwidth (Dependencies): Likewise.
20359
20360 2011-02-06  Bruno Haible  <bruno@clisp.org>
20361
20362         New module 'wcswidth'.
20363         * modules/wcswidth: New file.
20364         * lib/wchar.in.h (wcswidth): New declaration.
20365         * lib/wcswidth.c: New file.
20366         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20367         * m4/wcswidth.m4: New file.
20368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20370         REPLACE_WCSWIDTH.
20371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20372         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20373         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20374         * doc/posix-functions/wcswidth.texi: Mention the new module.
20375
20376 2011-02-06  Bruno Haible  <bruno@clisp.org>
20377
20378         New module 'wcstok'.
20379         * modules/wcstok: New file.
20380         * lib/wchar.in.h (wcstok): New declaration.
20381         * lib/wcstok.c: New file.
20382         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20383         * m4/wcstok.m4: New file.
20384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20387         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20388         * doc/posix-functions/wcstok.texi: Mention the new module.
20389
20390 2011-02-06  Bruno Haible  <bruno@clisp.org>
20391
20392         New module 'wcsstr'.
20393         * modules/wcsstr: New file.
20394         * lib/wchar.in.h (wcsstr): New declaration.
20395         * lib/wcsstr.c: New file.
20396         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20397         * m4/wcsstr.m4: New file.
20398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20401         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20402         * doc/posix-functions/wcsstr.texi: Mention the new module.
20403
20404 2011-02-06  Bruno Haible  <bruno@clisp.org>
20405
20406         New module 'wcspbrk'.
20407         * modules/wcspbrk: New file.
20408         * lib/wchar.in.h (wcspbrk): New declaration.
20409         * lib/wcspbrk.c: New file.
20410         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20411         * m4/wcspbrk.m4: New file.
20412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20415         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20416         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20417
20418 2011-02-06  Bruno Haible  <bruno@clisp.org>
20419
20420         New module 'wcsspn'.
20421         * modules/wcsspn: New file.
20422         * lib/wchar.in.h (wcsspn): New declaration.
20423         * lib/wcsspn.c: New file.
20424         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20425         * m4/wcsspn.m4: New file.
20426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20429         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20430         * doc/posix-functions/wcsspn.texi: Mention the new module.
20431
20432 2011-02-06  Bruno Haible  <bruno@clisp.org>
20433
20434         New module 'wcscspn'.
20435         * modules/wcscspn: New file.
20436         * lib/wchar.in.h (wcscspn): New declaration.
20437         * lib/wcscspn.c: New file.
20438         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20439         * m4/wcscspn.m4: New file.
20440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20443         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20444         * doc/posix-functions/wcscspn.texi: Mention the new module.
20445
20446 2011-02-06  Bruno Haible  <bruno@clisp.org>
20447
20448         New module 'wcsrchr'.
20449         * modules/wcsrchr: New file.
20450         * lib/wchar.in.h (wcsrchr): New declaration.
20451         * lib/wcsrchr.c: New file.
20452         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20453         * m4/wcsrchr.m4: New file.
20454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20457         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20458         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20459
20460 2011-02-06  Bruno Haible  <bruno@clisp.org>
20461
20462         New module 'wcschr'.
20463         * modules/wcschr: New file.
20464         * lib/wchar.in.h (wcschr): New declaration.
20465         * lib/wcschr.c: New file.
20466         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20467         * m4/wcschr.m4: New file.
20468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20471         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20472         * doc/posix-functions/wcschr.texi: Mention the new module.
20473
20474 2011-02-06  Bruno Haible  <bruno@clisp.org>
20475
20476         New module 'wcsdup'.
20477         * modules/wcsdup: New file.
20478         * lib/wchar.in.h (wcsdup): New declaration.
20479         * lib/wcsdup.c: New file.
20480         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20481         * m4/wcsdup.m4: New file.
20482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20485         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20486         * doc/posix-functions/wcsdup.texi: Mention the new module.
20487
20488 2011-02-06  Bruno Haible  <bruno@clisp.org>
20489
20490         New module 'wcsxfrm'.
20491         * modules/wcsxfrm: New file.
20492         * lib/wchar.in.h (wcsxfrm): New declaration.
20493         * lib/wcsxfrm.c: New file.
20494         * lib/wcsxfrm-impl.h: New file.
20495         * m4/wcsxfrm.m4: New file.
20496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20499         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20500         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20501
20502 2011-02-06  Bruno Haible  <bruno@clisp.org>
20503
20504         New module 'wcscoll'.
20505         * modules/wcscoll: New file.
20506         * lib/wchar.in.h (wcscoll): New declaration.
20507         * lib/wcscoll.c: New file.
20508         * lib/wcscoll-impl.h: New file.
20509         * m4/wcscoll.m4: New file.
20510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20513         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20514         * doc/posix-functions/wcscoll.texi: Mention the new module.
20515
20516 2011-02-06  Bruno Haible  <bruno@clisp.org>
20517
20518         New module 'wcsncasecmp'.
20519         * modules/wcsncasecmp: New file.
20520         * lib/wchar.in.h (wcsncasecmp): New declaration.
20521         * lib/wcsncasecmp.c: New file.
20522         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20523         * m4/wcsncasecmp.m4: New file.
20524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20527         HAVE_WCSNCASECMP.
20528         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20529         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20530
20531 2011-02-06  Bruno Haible  <bruno@clisp.org>
20532
20533         New module 'wcscasecmp'.
20534         * modules/wcscasecmp: New file.
20535         * lib/wchar.in.h (wcscasecmp): New declaration.
20536         * lib/wcscasecmp.c: New file.
20537         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20538         * m4/wcscasecmp.m4: New file.
20539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20542         HAVE_WCSCASECMP.
20543         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20544         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20545
20546 2011-02-05  Bruno Haible  <bruno@clisp.org>
20547
20548         New module 'wcsncmp'.
20549         * modules/wcsncmp: New file.
20550         * lib/wchar.in.h (wcsncmp): New declaration.
20551         * lib/wcsncmp.c: New file.
20552         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20553         * m4/wcsncmp.m4: New file.
20554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20557         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20558         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20559
20560 2011-02-05  Bruno Haible  <bruno@clisp.org>
20561
20562         New module 'wcscmp'.
20563         * modules/wcscmp: New file.
20564         * lib/wchar.in.h (wcscmp): New declaration.
20565         * lib/wcscmp.c: New file.
20566         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20567         * m4/wcscmp.m4: New file.
20568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20571         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20572         * doc/posix-functions/wcscmp.texi: Mention the new module.
20573
20574 2011-02-05  Bruno Haible  <bruno@clisp.org>
20575
20576         New module 'wcsncat'.
20577         * modules/wcsncat: New file.
20578         * lib/wchar.in.h (wcsncat): New declaration.
20579         * lib/wcsncat.c: New file.
20580         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20581         * m4/wcsncat.m4: New file.
20582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20584         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20585         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20586         * doc/posix-functions/wcsncat.texi: Mention the new module.
20587
20588 2011-02-05  Bruno Haible  <bruno@clisp.org>
20589
20590         New module 'wcscat'.
20591         * modules/wcscat: New file.
20592         * lib/wchar.in.h (wcscat): New declaration.
20593         * lib/wcscat.c: New file.
20594         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20595         * m4/wcscat.m4: New file.
20596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20599         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20600         * doc/posix-functions/wcscat.texi: Mention the new module.
20601
20602 2011-02-05  Bruno Haible  <bruno@clisp.org>
20603
20604         New module 'wcpncpy'.
20605         * modules/wcpncpy: New file.
20606         * lib/wchar.in.h (wcpncpy): New declaration.
20607         * lib/wcpncpy.c: New file.
20608         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20609         * m4/wcpncpy.m4: New file.
20610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20612         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20613         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20614         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20615
20616 2011-02-05  Bruno Haible  <bruno@clisp.org>
20617
20618         New module 'wcsncpy'.
20619         * modules/wcsncpy: New file.
20620         * lib/wchar.in.h (wcsncpy): New declaration.
20621         * lib/wcsncpy.c: New file.
20622         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20623         * m4/wcsncpy.m4: New file.
20624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20627         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20628         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20629
20630 2011-02-05  Bruno Haible  <bruno@clisp.org>
20631
20632         New module 'wcpcpy'.
20633         * modules/wcpcpy: New file.
20634         * lib/wchar.in.h (wcpcpy): New declaration.
20635         * lib/wcpcpy.c: New file.
20636         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20637         * m4/wcpcpy.m4: New file.
20638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20640         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20641         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20642         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20643
20644 2011-02-05  Bruno Haible  <bruno@clisp.org>
20645
20646         New module 'wcscpy'.
20647         * modules/wcscpy: New file.
20648         * lib/wchar.in.h (wcscpy): New declaration.
20649         * lib/wcscpy.c: New file.
20650         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20651         * m4/wcscpy.m4: New file.
20652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20655         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20656         * doc/posix-functions/wcscpy.texi: Mention the new module.
20657
20658 2011-02-05  Bruno Haible  <bruno@clisp.org>
20659
20660         New module 'wcsnlen'.
20661         * modules/wcsnlen: New file.
20662         * lib/wchar.in.h (wcsnlen): New declaration.
20663         * lib/wcsnlen.c: New file.
20664         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20665         * m4/wcsnlen.m4: New file.
20666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20669         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20670         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20671
20672 2011-02-05  Bruno Haible  <bruno@clisp.org>
20673
20674         New module 'wcslen'.
20675         * modules/wcslen: New file.
20676         * lib/wchar.in.h (wcslen): New declaration.
20677         * lib/wcslen.c: New file.
20678         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20679         * m4/wcslen.m4: New file.
20680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20683         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20684         * doc/posix-functions/wcslen.texi: Mention the new module.
20685
20686 2011-02-05  Bruno Haible  <bruno@clisp.org>
20687
20688         New module 'wmemset'.
20689         * modules/wmemset: New file.
20690         * lib/wchar.in.h (wmemset): New declaration.
20691         * lib/wmemset.c: New file.
20692         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20693         * m4/wmemset.m4: New file.
20694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20696         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20697         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20698         * doc/posix-functions/wmemset.texi: Mention the new module.
20699
20700 2011-02-05  Bruno Haible  <bruno@clisp.org>
20701
20702         New module 'wmemmove'.
20703         * modules/wmemmove: New file.
20704         * lib/wchar.in.h (wmemmove): New declaration.
20705         * lib/wmemmove.c: New file.
20706         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20707         * m4/wmemmove.m4: New file.
20708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20710         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20711         HAVE_WMEMMOVE.
20712         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20713         * doc/posix-functions/wmemmove.texi: Mention the new module.
20714
20715 2011-02-05  Bruno Haible  <bruno@clisp.org>
20716
20717         New module 'wmemcpy'.
20718         * modules/wmemcpy: New file.
20719         * lib/wchar.in.h (wmemcpy): New declaration.
20720         * lib/wmemcpy.c: New file.
20721         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20722         * m4/wmemcpy.m4: New file.
20723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20725         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20726         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20727         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20728
20729 2011-02-05  Bruno Haible  <bruno@clisp.org>
20730
20731         New module 'wmemcmp'.
20732         * modules/wmemcmp: New file.
20733         * lib/wchar.in.h (wmemcmp): New declaration.
20734         * lib/wmemcmp.c: New file.
20735         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20736         * m4/wmemcmp.m4: New file.
20737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20739         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20740         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20741         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20742
20743 2011-02-07  Jim Meyering  <meyering@redhat.com>
20744
20745         di-set, ino-map: new modules, from coreutils
20746         * lib/di-set.c: New file.
20747         * lib/di-set.h: Likewise.
20748         * lib/ino-map.c: Likewise.
20749         * lib/ino-map.h: Likewise.
20750         * modules/di-set: Likewise.
20751         * modules/di-set-tests: Likewise.
20752         * modules/ino-map: Likewise.
20753         * modules/ino-map-tests: Likewise.
20754         * tests/test-di-set.c: Likewise.
20755         * tests/test-ino-map.c: Likewise.
20756
20757 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20758
20759         getloadavg: merge minor changes from Emacs
20760
20761         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20762         (getloadavg): Use memset, not bzero.
20763
20764         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20765         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20766         clash (bug#86).
20767
20768 2010-11-14  Bruno Haible  <bruno@clisp.org>
20769
20770         Allow multiple gnulib generated replacements to coexist.
20771         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20772         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20773         * lib/langinfo.in.h (nl_item): Likewise.
20774         * lib/math.in.h (_NaN, NAN): Likewise.
20775         * lib/netdb.in.h (struct addrinfo): Likewise.
20776         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20777         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20778         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20779         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20780         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20781         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20782         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20783         pthread_mutexattr_init, pthread_mutexattr_settype,
20784         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20785         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20786         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20787         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20788         * lib/sched.in.h (struct sched_param): Likewise.
20789         * lib/se-selinux.in.h (security_class_t, security_context_t,
20790         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20791         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20792         lsetfilecon, fsetfilecon, security_check_context,
20793         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20794         Likewise.
20795         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20796         Likewise.
20797         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20798         _gl_function_taking_int_returning_void_t, union sigval,
20799         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20800         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20801         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20802         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20803         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20804         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20805         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20806         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20807         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20808         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20809         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20810         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20811         socklen_t, rpl_fd_isset): Likewise.
20812         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20813         * lib/sys_time.in.h (struct timeval): Likewise.
20814         * lib/sys_times.in.h (struct tms): Likewise.
20815         * lib/sys_utsname.in.h (struct utsname):
20816         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20817         * lib/unistd.in.h (getpagesize): Likewise.
20818         * lib/wchar.in.h (mbstate_t): Likewise.
20819         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20820         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20821         towlower, towupper): Likewise.
20822         Reported by Sam Steingold <sds@gnu.org>.
20823
20824 2011-02-05  Eric Blake  <eblake@redhat.com>
20825
20826         unsetenv: work around Haiku issues
20827         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20828         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20829
20830 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20831
20832         libposix: avoid calling error() within libposix
20833         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20834         is defined.
20835
20836 2011-02-05  Eric Blake  <eblake@redhat.com>
20837
20838         strerror_r-posix: port to cygwin
20839         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20840         implementation.
20841         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20842         * tests/test-strerror_r.c (main): Fix test.
20843         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20844         issue.
20845
20846 2011-02-05  Bruno Haible  <bruno@clisp.org>
20847
20848         New module 'wmemchr'.
20849         * modules/wmemchr: New file.
20850         * lib/wchar.in.h (wmemchr): New declaration.
20851         * lib/wmemchr.c: New file.
20852         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20853         * m4/wmemchr.m4: New file.
20854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20856         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20857         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20858         * doc/posix-functions/wmemchr.texi: Mention the new module.
20859
20860 2011-02-04  Eric Blake  <eblake@redhat.com>
20861
20862         fdopendir: detect FreeBSD bug
20863         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20864         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20865
20866 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20867
20868         stdbool: do not define HAVE_STDBOOL_H
20869         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20870         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20871         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20872         imported from the latest Autoconf git.  It was motivated by Emacs,
20873         which uses gnulib but does not need HAVE_STDBOOL_H.
20874
20875 2011-02-04  Bruno Haible  <bruno@clisp.org>
20876
20877         wcsnrtombs: Prepare for new module wwcsnrtombs.
20878         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20879         * lib/wcsnrtombs.c: Include it.
20880         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20881
20882         wcsrtombs: Prepare for new module wwcsrtombs.
20883         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20884         * lib/wcsrtombs.c: Include it.
20885         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20886
20887         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20888         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20889         * lib/mbsnrtowcs.c: Include it.
20890         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20891
20892         mbsrtowcs: Prepare for new module mbsrtowwcs.
20893         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20894         * lib/mbsrtowcs.c: Include it.
20895         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20896
20897 2011-02-04  Bruno Haible  <bruno@clisp.org>
20898
20899         vasnprintf: Reduce use of malloc for small format strings.
20900         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20901         (arguments): Add room for the first 7 arguments.
20902         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20903         (char_directives, u8_directives, u16_directives, u32_directives): Add
20904         room for the first 7 directives.
20905         * lib/printf-parse.c: Include <string.h>.
20906         (PRINTF_PARSE): Change memory handling code so that it uses the first
20907         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20908         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20909         Reported by Pádraig Brady <P@draigbrady.com>.
20910
20911 2011-01-31  Eric Blake  <eblake@redhat.com>
20912
20913         dup2: work around Haiku bug
20914         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20915         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20916         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20917         * tests/test-dup2.c (main): Enhance test.
20918
20919 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20920
20921         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20922         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20923         declared by eglibc 2.11.2.
20924         * lib/stdio.in.h: Likewise.
20925
20926 2011-01-31  Eric Blake  <eblake@redhat.com>
20927
20928         ignore-value: add missing test dependency
20929         * tests/test-ignore-value.c: Revert previous change; stdio.h
20930         provides off_t.
20931         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20932
20933 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20934
20935         mktime: clarify long_int width checking
20936         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20937         the top level, to make it clearer that the assumption about
20938         long_int width is being checked.  See
20939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20940
20941 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20942
20943         ignore-value: Fix self-test.
20944         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20945
20946 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20947
20948         TYPE_MAXIMUM: avoid theoretically undefined behavior
20949         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20950         negative number, which the C Standard says has undefined behavior.
20951         In practice this is not a problem, but might as well do it by the book.
20952         Reported by Rich Felker and Eric Blake; see
20953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20954         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20955         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20957         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20958         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20959         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20960
20961         mktime: #undef mktime before #defining it
20962         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20963
20964         mktime: systematically normalize tm_isdst comparisons
20965         * lib/mktime.c (isdst_differ): New function.
20966         (__mktime_internal): Use it systematically for all isdst comparisons.
20967         This completes the fix for libc BZ #6723, and removes the need for
20968         normalizing tm_isdst.  See
20969         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20970         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20971
20972         mktime: fix some integer overflow issues and sidestep the rest
20973
20974         This was prompted by a bug report by Benjamin Lindner for MinGW
20975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20976         His bug is due to signed integer overflow (0 - INT_MIN), and I
20977         I scanned through mktime.c looking for other integer overflow
20978         problems, fixing all the bugs I found.
20979
20980         Although the C Standard says the resulting code is still not safe
20981         in the presence of integer overflow, in practice it should be good
20982         enough for all real-world two's-complement implementations, except
20983         for debugging environments that deliberately trap on integer
20984         overflow (e.g., gcc -ftrapv).
20985
20986         * lib/mktime.c (WRAPV): New macro.
20987         (SHR): Also check that long_int and time_t shift right in the
20988         usual way, before using the fast-but-unportable method.
20989         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20990         used.  The code already assumed two's complement, so there's
20991         no need to test for alternatives.  All uses removed.
20992         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20993         the C standard.  Problem reported by Rich Felker in
20994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20995         (twos_complement_arithmetic): Also check long_int and time_t.
20996         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20997         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20998         (__mktime_internal): Avoid integer overflow with unary subtraction
20999         in two instances where -1 - X is an adequate replacement for -X,
21000         since the calculations are approximate.
21001
21002 2011-01-29  Eric Blake  <eblake@redhat.com>
21003
21004         mktime: avoid infinite loop
21005         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21006         type; behavior is still undefined but portable to all known targets.
21007         Reported by Rich Felker.
21008
21009 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21010
21011         rename, unlink, same-inode: Relicense.
21012         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21013         * modules/unlink (License): Likewise.
21014         * modules/same-inode (License): Likewise.
21015
21016 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21017
21018         mktime: avoid problems on NetBSD 5 / i386
21019         * lib/mktime.c (long_int): New type.  This works around a problem
21020         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21021         but time_t is 64 bits, and where I expect the existing code is
21022         wrong in some cases.
21023         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21024         (ydhms_diff): Bring back the compile-time check for wide-enough
21025         year and yday.
21026
21027         mktime: fix misspelling in comment
21028         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21029         This merges all recent glibc changes of importance.
21030
21031 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21032
21033         move-if-change: cope with concurrent mv of identical file.
21034         * build-aux/move-if-change (CMPPROG): Accept environment
21035         variable as an override for `cmp'.
21036         (usage): Document CMPPROG.
21037         Adjust comparison to drop stdout.  Cope with failure of mv if
21038         the target file exists and is identical to the source, for
21039         parallel builds.
21040         Report from H.J. Lu against binutils in PR binutils/12283.
21041
21042 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21043
21044         * users.txt: Mention sharutils.
21045
21046 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21047
21048         * users.txt: Mention OATH Toolkit.
21049
21050 2011-01-27  Bruno Haible  <bruno@clisp.org>
21051
21052         Prepare for supporting FreeBSD 10.
21053         * build-aux/config.libpath: Remove handling of freebsd1*.
21054
21055 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21056
21057         Prepare for supporting FreeBSD 10.
21058         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21059         match FreeBSD 10.0.
21060
21061 2011-01-27  Bruno Haible  <bruno@clisp.org>
21062
21063         vma-iter, get-rusage-as: Add OpenBSD support.
21064         * modules/vma-iter (configure.ac): Test for mquery.
21065         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21066         * lib/vma-iter.c: Include <sys/mman.h>.
21067         (vma_iterate): Add an implementation based on mquery().
21068         * lib/resource-ext.h (get_rusage_as): Update comments.
21069         * lib/get-rusage-as.c: Likewise.
21070         * lib/get-rusage-data.c: Likewise.
21071
21072 2011-01-26  Karl Berry  <karl@gnu.org>
21073
21074         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21075         variables to make it easier to override the makeinfo program used.
21076
21077 2011-01-26  Eric Blake  <eblake@redhat.com>
21078
21079         fcntl: work around Haiku F_DUPFD bugs
21080         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21081         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21082         cloexec bit on duplication.
21083         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21084
21085 2011-01-26  Bruno Haible  <bruno@clisp.org>
21086
21087         Enable memory leak tests on AIX.
21088         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21089         * tests/test-fprintf-posix3.c (main): Likewise.
21090
21091 2011-01-26  Bruno Haible  <bruno@clisp.org>
21092
21093         Tests for module 'get-rusage-data'.
21094         * modules/get-rusage-data-tests: New file.
21095         * tests/test-get-rusage-data.c: New file.
21096
21097         New module 'get-rusage-data'.
21098         * lib/resource-ext.h (get_rusage_data): New declaration.
21099         * lib/get-rusage-data.c: New file.
21100         * modules/get-rusage-data: New file.
21101
21102 2011-01-25  Bruno Haible  <bruno@clisp.org>
21103
21104         get-rusage-as: Allow for easier testing.
21105         * lib/resource-ext.h (get_rusage_as): Add comment.
21106         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21107         (main): New function for interactive testing.
21108
21109 2011-01-25  Bruno Haible  <bruno@clisp.org>
21110
21111         vma-iter: Treat Haiku like BeOS.
21112         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21113         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21114
21115 2011-01-25  Eric Blake  <eblake@redhat.com>
21116
21117         c-stack: fix regression on cygwin when libsigsegv is present
21118         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21119
21120 2011-01-24  Bruno Haible  <bruno@clisp.org>
21121
21122         vma-iter: Avoid empty intervals.
21123         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21124         on an empty interval.
21125
21126 2011-01-24  Jim Meyering  <meyering@redhat.com>
21127
21128         u64: remove unnecessary #include
21129         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21130
21131 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21132
21133         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21134         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21135
21136 2011-01-23  Bruno Haible  <bruno@clisp.org>
21137
21138         New module 'vma-iter'.
21139         * lib/vma-iter.h: New file.
21140         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21141         * modules/vma-iter: New file.
21142         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21143         for get_rusage_as_via_iterator.
21144         (vma_iterate_callback): New function.
21145         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21146         * modules/get-rusage-as (Depends-on): Add vma-iter.
21147
21148 2011-01-23  Bruno Haible  <bruno@clisp.org>
21149
21150         uninorm: Tweak includes.
21151         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21152         Reported by Jim Meyering.
21153
21154 2011-01-23  Bruno Haible  <bruno@clisp.org>
21155
21156         get-rusage-as: Improve on NetBSD.
21157         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21158         /proc, like on FreeBSD.
21159
21160 2011-01-23  Jim Meyering  <meyering@redhat.com>
21161
21162         xreadlink.h: remove unnecessary #include
21163         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21164
21165         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21166         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21167
21168 2011-01-23  Bruno Haible  <bruno@clisp.org>
21169
21170         get-rusage-as: Fix bug.
21171         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21172         original limit when aborting the first loop.
21173
21174 2011-01-23  Bruno Haible  <bruno@clisp.org>
21175
21176         wctype: Ensure valid C syntax.
21177         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21178         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21179
21180 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21181
21182         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21184         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21185         as they are needed only for configure's test case.
21186         This removes two unnecessary symbols from config.h.
21187
21188         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21189         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21191         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21192         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21193         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21194         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21195         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21196         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21197         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21198         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21200         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21202         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21203         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21204         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21205         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21206
21207 2011-01-21  Eric Blake  <eblake@redhat.com>
21208
21209         maintainer-makefile: work with older git for submodule check
21210         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21211         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21212         Reported by Matthias Bolte.
21213
21214         bootstrap: minor portability fixes
21215         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21216         (usage): Omit leading capital and trailing . on help phrases, per
21217         GNU Coding Standards.
21218         (check_versions, top level): Prefix messages with script name.
21219
21220 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21221
21222         bootstrap: support --no-git option
21223         * build-aux/bootstrap: Add --no-git option, to be used when
21224         --gnulib-srcdir points to the exact desired checkout.
21225
21226 2011-01-21  Eric Blake  <eblake@redhat.com>
21227
21228         strerror_r-posix: work with glibc 2.13
21229         * lib/strerror_r.c (strerror_r): Fix return type.
21230
21231 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21232             Bruno Haible  <bruno@clisp.org>
21233
21234         uN_strstr: New unit tests.
21235         * modules/unistr/u8-strstr-tests: New file.
21236         * modules/unistr/u16-strstr-tests: New file.
21237         * modules/unistr/u32-strstr-tests: New file.
21238         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21239         * tests/unistr/test-u8-strstr.c: New file.
21240         * tests/unistr/test-u16-strstr.c: New file.
21241         * tests/unistr/test-u32-strstr.c: New file.
21242
21243 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21244             Bruno Haible  <bruno@clisp.org>
21245
21246         Make uN_strstr functions O(n) worst-case.
21247         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21248         16-bit and 32-bit unit cases, use the unibyte algorithm from
21249         lib/mbsstr.c.
21250         * lib/unistr/u8-strstr.c: Include <string.h>.
21251         (UNIT_IS_UINT8_T): New macro.
21252         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21253         (U_STRLEN, U_STRNLEN): New macros.
21254         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21255         (U_STRLEN, U_STRNLEN): New macros.
21256         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21257         (configure.ac): Update required libunistring version.
21258         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21259         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21260         malloca.
21261         (configure.ac): Update required libunistring version.
21262         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21263         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21264         malloca.
21265         (configure.ac): Update required libunistring version.
21266
21267 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21268             Bruno Haible  <bruno@clisp.org>
21269
21270         Prepare for faster uN_strstr functions.
21271         * lib/str-kmp.h: Support definable UNITs.
21272         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21273         needle_len argument.
21274         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21275         * lib/mbscasestr.c (mbscasestr): Likewise.
21276
21277 2011-01-21  Pádraig Brady <P@draigBrady.com>
21278
21279         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21280         * tests/test-malloca.c (main): Unset the environment variable
21281         to greatly speed up the test.
21282         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21283         * modules/malloca-tests: Depend on unsetenv.
21284
21285 2011-01-21  Pádraig Brady <P@draigBrady.com>
21286
21287         ignore-value: remove stdint dependency
21288         * lib/ignore-value.h: Remove <stdint.h>
21289         * modules/ignore-value: Remove stdint dependency.
21290
21291 2011-01-21  Jim Meyering  <meyering@redhat.com>
21292
21293         maint.mk: adjust variable name to be consistent with other gl_ vars
21294         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21295         to be lower case.
21296
21297 2011-01-20  Jim Meyering  <meyering@redhat.com>
21298
21299         maint.mk: make "check" depend on public-submodule-commit by default
21300         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21301
21302 2011-01-20  Bruno Haible  <bruno@clisp.org>
21303
21304         mbfile, mbiter: Complete change from 2008-12-21.
21305         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21306         * m4/mbiter.m4 (gl_MBITER): Likewise.
21307
21308 2011-01-20  Jim Meyering  <meyering@redhat.com>
21309
21310         init.sh: insert space between each function name and "()"
21311         * tests/init.sh: Make it a little easier to see that a function's
21312         name is "warn_", and not "warn" when looking at the first part of
21313         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21314
21315 2011-01-20  Jim Meyering  <meyering@redhat.com>
21316
21317         mountlist: clean up code formatting
21318         * lib/mountlist.c (read_file_system_list): Split a long line,
21319         correct bracing style, use NULL in place of "(struct statfs *)0",
21320         don't parenthesize return value, add spaces around "=" and after
21321         ";-in-for-stmt".
21322
21323 2011-01-14  Markus Duft <mduft@gentoo.org>
21324
21325         mountlist: add support for Interix
21326         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21327         Apply statvfs to all entries of /dev/fs.
21328         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21329         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21330
21331 2011-01-20  Jim Meyering  <meyering@redhat.com>
21332
21333         maint.mk: improve the public-submodule-commit rule
21334         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21335         to suppress printing of its commands... unless V=1.
21336         Add git submodule's --quiet option to suppress printing of e.g.,
21337         "Entering gnulib" output.
21338         "cd" into $(srcdir) before running git submodule.
21339
21340 2011-01-20  Bruno Haible  <bruno@clisp.org>
21341
21342         include_next: Fix bug introduced on 2011-01-18.
21343         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21344         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21345         ac_cv_header_... variable if the second argument is not 'check'.
21346         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21347         gl_NEXT_HEADERS_INTERNAL.
21348
21349 2011-01-20  Bruno Haible  <bruno@clisp.org>
21350
21351         Allow the user to avoid the GNULIB_TEST_* macros.
21352         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21353         Suggested by Paul Eggert.
21354
21355 2011-01-14  Jim Meyering  <meyering@redhat.com>
21356
21357         bootstrap: avoid failure when there is no .gitmodules file
21358         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21359         has been assigned to, even when its value is the empty string.
21360         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21361         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21362         Reported by John W. Eaton <jwe@gnu.org>.
21363
21364 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21365
21366         assume <ctype.h>, ..., <time.h> exist
21367         For years gnulib has been assuming the existence of the headers
21368         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21369         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21370         them, since they don't appear to be needed.
21371         * README (Portability guidelines): Document this.
21372         * lib/flock.c: Assume <fcntl.h> exists.
21373         * lib/regex_internal.h: Assume <locale.h> exists.
21374         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21376         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21377         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21378         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21379         * m4/regex.m4 (gl_REGEX): Likewise.
21380         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21381         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21382         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21383         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21384         * tests/test-argp.c: Likewise.
21385         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21386
21387         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21388         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21389         AA_APPLE_UNIVERSAL_BUILD.  See
21390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21391         * NEWS: Document this.
21392
21393 2011-01-19  Eric Blake  <eblake@redhat.com>
21394
21395         c-stack: assume stack overflow if SA_SIGINFO unsupported
21396         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21397         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21398         sigaction will work.
21399         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21400         behavior match Linux.
21401         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21402
21403         stdbool-tests: accomodate Haiku
21404         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21405
21406         binary-io: fix O_TEXT on Haiku
21407         * modules/binary-io (Depends-on): Add fcntl-h.
21408         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21409         than blindly undefining O_TEXT.
21410         Reported by Scott McCreary.
21411
21412 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21413
21414         include_next: do not check for standard headers like stddef.h
21415
21416         I found this problem when modifying Emacs to use gnulib.
21417         I noticed that it added HAVE_STDDEF_H to config.h, even though
21418         gnulib always assumes <stddef.h> exists as per README and this
21419         symbol is unnecessary.
21420         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21421         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21422         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21423         faster for headers like stddef.h that are known to exist.
21424         (gl_CHECK_NEXT_HEADERS): Use it.
21425         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21426         rather than gl_CHECK_NEXT_HEADERS.
21427         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21428         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21429
21430 2011-01-18  Eric Blake  <eblake@redhat.com>
21431
21432         ansi-c++-opt: skip C++ dependency style if C++ is unused
21433         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21434         tests when we know C++ compilation is not desired.
21435         Reported by Scott McCreary.
21436
21437 2011-01-18  Bruno Haible  <bruno@clisp.org>
21438
21439         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21440         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21441         (main): Perform test also when getrlimit and setrlimit don't exist or
21442         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21443         limiting the address space size using setrlimit, compare the address
21444         space size before and after the the test.
21445         * tests/test-dprintf-posix2.c: Likewise.
21446         * tests/test-fprintf-posix3.sh: Update skip messages.
21447         * tests/test-dprintf-posix2.sh: Likewise.
21448         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21449         * modules/dprintf-posix-tests (Depends-on): Likewise.
21450         Reported by Bruce Korb <bkorb@gnu.org> and
21451         Gary V. Vaughan <gary@gnu.org>.
21452
21453 2011-01-18  Bruno Haible  <bruno@clisp.org>
21454
21455         get-rusage-as: Improvement for Cygwin.
21456         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21457         areas that are merely reserved.
21458
21459 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21460
21461         strftime: remove dependencies on multibyte modules
21462
21463         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21464         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21465         only if __osf__ is defined, and I suspect OSF doesn't need these
21466         other modules.  If my guess is wrong, we'll need to come up with a
21467         variant of strftime that doesn't need the multibyte modules.
21468
21469         I discovered this problem when attempting modify Emacs to use the
21470         strftime module.  With the previous gnulib, this caused Emacs to
21471         need 31 new files, ranging from lib/config.charset to
21472         m4/wint_t.m4.  This was overkill and I expect would be offputting
21473         to the Emacs maintainers.  After this change, only 6 new files are
21474         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21475         stdbool.m4, and tm_gmtoff.m4.
21476
21477         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21478         Suggested by Bruno Haible in
21479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21481         and do not check for wchar.h.
21482         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21483         (Depends-on): Remove mbrlen, mbsinit, wchar.
21484
21485 2011-01-18  Bruno Haible  <bruno@clisp.org>
21486
21487         Tests for module 'get-rusage-as'.
21488         * modules/get-rusage-as-tests: New file.
21489         * tests/test-get-rusage-as.c: New file.
21490
21491         New module 'get-rusage-as'.
21492         * modules/get-rusage-as: New file.
21493         * lib/resource-ext.h: New file.
21494         * lib/get-rusage-as.c: New file.
21495
21496 2011-01-17  Eric Blake  <eblake@redhat.com>
21497
21498         sigaction: relax license from LGPLv3+ to LGPLv2+
21499         * modules/sigaction (License): Relax to LGPLv2+.
21500
21501 2011-01-14  Bruno Haible  <bruno@clisp.org>
21502
21503         filemode: Make function declarations usable in C++ mode.
21504         * lib/filemode.h: Enclose function declarations in extern "C" block.
21505         Reported by John W. Eaton <jwe@gnu.org>.
21506
21507 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21508
21509         save-cwd: no longer include "xgetcwd.h"
21510         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21511         This avoids a compilation failure in projects that use save-cwd
21512         without also using the xgetcwd module.
21513
21514 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21515
21516         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21517         This is so that a program like Emacs, which needs only dtoastr,
21518         does not have to bother with distributing and compiling ftoastr
21519         and ldtoastr.
21520         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21521         * modules/dtoastr, modules/ldtoastr: New files.
21522         * modules/ftoastr: Now works just for 'float'.
21523         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21524         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21525         dtoastr.c, ldtoastr.c.
21526
21527 2011-01-11  Jim Meyering  <meyering@redhat.com>
21528
21529         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21530         There is no need to work around the lack of the fchdir function,
21531         since gnulib can now provide a replacement when required.
21532         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21533         * modules/save-cwd (Depends-on): Add fchdir.
21534
21535 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         openat, save-cwd: avoid xmalloc
21538
21539         This removes a direct (but undocumented) dependency of openat on
21540         xalloc, along with an indirect dependency via save-cwd.  It also
21541         removes a dependency of save-cwd on xgetcwd, and thereby
21542         indirectly on xalloc.  This change causes the openat substitute
21543         to fall back on save_cwd when memory is tight, and for save_cwd to
21544         fail instead of dying when memory is tight, but that's good enough.
21545         Problem and initial idea for fix reported by Bastien Roucaries in
21546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21547
21548         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21549         xalloc.h (for xmalloc).
21550         (openat_proc_name): Use malloc, not xmalloc.
21551         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21552         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21553
21554         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21555         This avoids heap allocation for file names whose lengths are in
21556         the range 512..1023, with the upper bound increasing to at most
21557         4031 depending on the platform's PATH_MAX.  (We do not want
21558         pathmax.h here as it might supply a non-constant PATH_MAX.)
21559         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21560         Perhaps they should be moved to malloca.h?
21561         (OPENAT_BUFFER_SIZE): Use them.
21562
21563 2011-01-10  Bruno Haible  <bruno@clisp.org>
21564
21565         doc: Update users.txt.
21566         * users.txt: Add recutils.
21567
21568 2011-01-09  Karl Berry  <karl@gnu.org>
21569
21570         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21571
21572         * doc/configmake.texi: New file.
21573         * doc/gnulib.texi: Include it.
21574         * modules/configmake: Move documentation from here.
21575
21576 2011-01-09  Bruno Haible  <bruno@clisp.org>
21577
21578         Update to Unicode 6.0.0.
21579         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21580         (get_lbp): Update for Unicode 6.0.0.
21581         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21582         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21583         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21584         U+11001, U+11038..U+11046. Remove U+06DE.
21585         (uc_width): Fix bounds of planes.
21586         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21587         lib/uniwidth/width.c.
21588         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21589         trailing whitespace removed.
21590         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21591         without comments, but with the original copyright notice.
21592         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21593         * lib/unicase/ignorable.h: Likewise.
21594         * lib/unicase/tocasefold.h: Likewise.
21595         * lib/unicase/tolower.h: Likewise.
21596         * lib/unicase/totitle.h: Likewise.
21597         * lib/unicase/toupper.h: Likewise.
21598         * lib/unictype/bidi_of.h: Likewise.
21599         * lib/unictype/blocks.h: Likewise.
21600         * lib/unictype/categ_C.h: Likewise.
21601         * lib/unictype/categ_Cn.h: Likewise.
21602         * lib/unictype/categ_L.h: Likewise.
21603         * lib/unictype/categ_Ll.h: Likewise.
21604         * lib/unictype/categ_Lm.h: Likewise.
21605         * lib/unictype/categ_Lo.h: Likewise.
21606         * lib/unictype/categ_Lu.h: Likewise.
21607         * lib/unictype/categ_M.h: Likewise.
21608         * lib/unictype/categ_Mc.h: Likewise.
21609         * lib/unictype/categ_Me.h: Likewise.
21610         * lib/unictype/categ_Mn.h: Likewise.
21611         * lib/unictype/categ_N.h: Likewise.
21612         * lib/unictype/categ_Nd.h: Likewise.
21613         * lib/unictype/categ_No.h: Likewise.
21614         * lib/unictype/categ_P.h: Likewise.
21615         * lib/unictype/categ_Po.h: Likewise.
21616         * lib/unictype/categ_S.h: Likewise.
21617         * lib/unictype/categ_Sc.h: Likewise.
21618         * lib/unictype/categ_Sk.h: Likewise.
21619         * lib/unictype/categ_Sm.h: Likewise.
21620         * lib/unictype/categ_So.h: Likewise.
21621         * lib/unictype/categ_of.h: Likewise.
21622         * lib/unictype/combining.h: Likewise.
21623         * lib/unictype/ctype_alnum.h: Likewise.
21624         * lib/unictype/ctype_alpha.h: Likewise.
21625         * lib/unictype/ctype_graph.h: Likewise.
21626         * lib/unictype/ctype_lower.h: Likewise.
21627         * lib/unictype/ctype_print.h: Likewise.
21628         * lib/unictype/ctype_punct.h: Likewise.
21629         * lib/unictype/ctype_upper.h: Likewise.
21630         * lib/unictype/decdigit.h: Likewise.
21631         * lib/unictype/digit.h: Likewise.
21632         * lib/unictype/numeric.h: Likewise.
21633         * lib/unictype/pr_alphabetic.h: Likewise.
21634         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21635         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21636         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21637         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21638         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21639         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21640         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21641         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21642         * lib/unictype/pr_case_ignorable.h: Likewise.
21643         * lib/unictype/pr_cased.h: Likewise.
21644         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21645         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21646         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21647         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21648         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21649         * lib/unictype/pr_combining.h: Likewise.
21650         * lib/unictype/pr_composite.h: Likewise.
21651         * lib/unictype/pr_currency_symbol.h: Likewise.
21652         * lib/unictype/pr_decimal_digit.h: Likewise.
21653         * lib/unictype/pr_deprecated.h: Likewise.
21654         * lib/unictype/pr_format_control.h: Likewise.
21655         * lib/unictype/pr_grapheme_base.h: Likewise.
21656         * lib/unictype/pr_grapheme_extend.h: Likewise.
21657         * lib/unictype/pr_grapheme_link.h: Likewise.
21658         * lib/unictype/pr_id_continue.h: Likewise.
21659         * lib/unictype/pr_id_start.h: Likewise.
21660         * lib/unictype/pr_ideographic.h: Likewise.
21661         * lib/unictype/pr_lowercase.h: Likewise.
21662         * lib/unictype/pr_math.h: Likewise.
21663         * lib/unictype/pr_numeric.h: Likewise.
21664         * lib/unictype/pr_other_alphabetic.h: Likewise.
21665         * lib/unictype/pr_other_id_continue.h: Likewise.
21666         * lib/unictype/pr_other_math.h: Likewise.
21667         * lib/unictype/pr_punctuation.h: Likewise.
21668         * lib/unictype/pr_sentence_terminal.h: Likewise.
21669         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21670         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21671         * lib/unictype/pr_unified_ideograph.h: Likewise.
21672         * lib/unictype/pr_uppercase.h: Likewise.
21673         * lib/unictype/pr_xid_continue.h: Likewise.
21674         * lib/unictype/pr_xid_start.h: Likewise.
21675         * lib/unictype/scripts.h: Likewise.
21676         * lib/unictype/scripts_byname.gperf: Likewise.
21677         * lib/unictype/sy_java_ident.h: Likewise.
21678         * lib/unigbrk/gbrkprop.h: Likewise.
21679         * lib/unilbrk/lbrkprop1.h: Likewise.
21680         * lib/unilbrk/lbrkprop2.h: Likewise.
21681         * lib/uninorm/decomposition-table2.h: Likewise.
21682         * lib/uniwbrk/wbrkprop.h: Likewise.
21683         * tests/unicase/test-cased.c: Likewise.
21684         * tests/unicase/test-ignorable.c: Likewise.
21685         * tests/unicase/test-uc_tolower.c: Likewise.
21686         * tests/unicase/test-uc_totitle.c: Likewise.
21687         * tests/unicase/test-uc_toupper.c: Likewise.
21688         * tests/unictype/test-categ_C.c: Likewise.
21689         * tests/unictype/test-categ_Cn.c: Likewise.
21690         * tests/unictype/test-categ_L.c: Likewise.
21691         * tests/unictype/test-categ_Ll.c: Likewise.
21692         * tests/unictype/test-categ_Lm.c: Likewise.
21693         * tests/unictype/test-categ_Lo.c: Likewise.
21694         * tests/unictype/test-categ_Lu.c: Likewise.
21695         * tests/unictype/test-categ_M.c: Likewise.
21696         * tests/unictype/test-categ_Mc.c: Likewise.
21697         * tests/unictype/test-categ_Me.c: Likewise.
21698         * tests/unictype/test-categ_Mn.c: Likewise.
21699         * tests/unictype/test-categ_N.c: Likewise.
21700         * tests/unictype/test-categ_Nd.c: Likewise.
21701         * tests/unictype/test-categ_No.c: Likewise.
21702         * tests/unictype/test-categ_P.c: Likewise.
21703         * tests/unictype/test-categ_Po.c: Likewise.
21704         * tests/unictype/test-categ_S.c: Likewise.
21705         * tests/unictype/test-categ_Sc.c: Likewise.
21706         * tests/unictype/test-categ_Sk.c: Likewise.
21707         * tests/unictype/test-categ_Sm.c: Likewise.
21708         * tests/unictype/test-categ_So.c: Likewise.
21709         * tests/unictype/test-ctype_alnum.c: Likewise.
21710         * tests/unictype/test-ctype_alpha.c: Likewise.
21711         * tests/unictype/test-ctype_graph.c: Likewise.
21712         * tests/unictype/test-ctype_lower.c: Likewise.
21713         * tests/unictype/test-ctype_print.c: Likewise.
21714         * tests/unictype/test-ctype_punct.c: Likewise.
21715         * tests/unictype/test-ctype_upper.c: Likewise.
21716         * tests/unictype/test-decdigit.h: Likewise.
21717         * tests/unictype/test-digit.h: Likewise.
21718         * tests/unictype/test-numeric.h: Likewise.
21719         * tests/unictype/test-pr_alphabetic.c: Likewise.
21720         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21721         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21722         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21723         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21724         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21725         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21726         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21727         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21728         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21729         * tests/unictype/test-pr_cased.c: Likewise.
21730         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21731         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21732         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21733         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21734         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21735         * tests/unictype/test-pr_combining.c: Likewise.
21736         * tests/unictype/test-pr_composite.c: Likewise.
21737         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21738         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21739         * tests/unictype/test-pr_deprecated.c: Likewise.
21740         * tests/unictype/test-pr_format_control.c: Likewise.
21741         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21742         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21743         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21744         * tests/unictype/test-pr_id_continue.c: Likewise.
21745         * tests/unictype/test-pr_id_start.c: Likewise.
21746         * tests/unictype/test-pr_ideographic.c: Likewise.
21747         * tests/unictype/test-pr_lowercase.c: Likewise.
21748         * tests/unictype/test-pr_math.c: Likewise.
21749         * tests/unictype/test-pr_numeric.c: Likewise.
21750         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21751         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21752         * tests/unictype/test-pr_other_math.c: Likewise.
21753         * tests/unictype/test-pr_punctuation.c: Likewise.
21754         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21755         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21756         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21757         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21758         * tests/unictype/test-pr_uppercase.c: Likewise.
21759         * tests/unictype/test-pr_xid_continue.c: Likewise.
21760         * tests/unictype/test-pr_xid_start.c: Likewise.
21761         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21762         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21763         changes.
21764         * lib/unictype/categ_Cc.h: Likewise.
21765         * lib/unictype/categ_Cf.h: Likewise.
21766         * lib/unictype/categ_Co.h: Likewise.
21767         * lib/unictype/categ_Cs.h: Likewise.
21768         * lib/unictype/categ_Lt.h: Likewise.
21769         * lib/unictype/categ_Nl.h: Likewise.
21770         * lib/unictype/categ_Pc.h: Likewise.
21771         * lib/unictype/categ_Pd.h: Likewise.
21772         * lib/unictype/categ_Pe.h: Likewise.
21773         * lib/unictype/categ_Pf.h: Likewise.
21774         * lib/unictype/categ_Pi.h: Likewise.
21775         * lib/unictype/categ_Ps.h: Likewise.
21776         * lib/unictype/categ_Z.h: Likewise.
21777         * lib/unictype/categ_Zl.h: Likewise.
21778         * lib/unictype/categ_Zp.h: Likewise.
21779         * lib/unictype/categ_Zs.h: Likewise.
21780         * lib/unictype/ctype_blank.h: Likewise.
21781         * lib/unictype/ctype_cntrl.h: Likewise.
21782         * lib/unictype/ctype_digit.h: Likewise.
21783         * lib/unictype/ctype_space.h: Likewise.
21784         * lib/unictype/ctype_xdigit.h: Likewise.
21785         * lib/unictype/mirror.h: Likewise.
21786         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21787         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21788         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21789         * lib/unictype/pr_bidi_control.h: Likewise.
21790         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21791         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21792         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21793         * lib/unictype/pr_bidi_pdf.h: Likewise.
21794         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21795         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21796         * lib/unictype/pr_dash.h: Likewise.
21797         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21798         * lib/unictype/pr_diacritic.h: Likewise.
21799         * lib/unictype/pr_extender.h: Likewise.
21800         * lib/unictype/pr_hex_digit.h: Likewise.
21801         * lib/unictype/pr_hyphen.h: Likewise.
21802         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21803         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21804         * lib/unictype/pr_ignorable_control.h: Likewise.
21805         * lib/unictype/pr_iso_control.h: Likewise.
21806         * lib/unictype/pr_join_control.h: Likewise.
21807         * lib/unictype/pr_left_of_pair.h: Likewise.
21808         * lib/unictype/pr_line_separator.h: Likewise.
21809         * lib/unictype/pr_logical_order_exception.h: Likewise.
21810         * lib/unictype/pr_non_break.h: Likewise.
21811         * lib/unictype/pr_not_a_character.h: Likewise.
21812         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21813         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21814         * lib/unictype/pr_other_id_start.h: Likewise.
21815         * lib/unictype/pr_other_lowercase.h: Likewise.
21816         * lib/unictype/pr_other_uppercase.h: Likewise.
21817         * lib/unictype/pr_paired_punctuation.h: Likewise.
21818         * lib/unictype/pr_paragraph_separator.h: Likewise.
21819         * lib/unictype/pr_pattern_syntax.h: Likewise.
21820         * lib/unictype/pr_pattern_white_space.h: Likewise.
21821         * lib/unictype/pr_private_use.h: Likewise.
21822         * lib/unictype/pr_quotation_mark.h: Likewise.
21823         * lib/unictype/pr_radical.h: Likewise.
21824         * lib/unictype/pr_soft_dotted.h: Likewise.
21825         * lib/unictype/pr_space.h: Likewise.
21826         * lib/unictype/pr_titlecase.h: Likewise.
21827         * lib/unictype/pr_variation_selector.h: Likewise.
21828         * lib/unictype/pr_white_space.h: Likewise.
21829         * lib/unictype/pr_zero_width.h: Likewise.
21830         * lib/unictype/sy_c_ident.h: Likewise.
21831         * lib/unictype/sy_c_whitespace.h: Likewise.
21832         * lib/unictype/sy_java_whitespace.h: Likewise.
21833         * lib/uninorm/composition-table.gperf: Likewise.
21834         * lib/uninorm/decomposition-table1.h: Likewise.
21835         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21836         LB8.
21837         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21838         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21839         * modules/unictype/*: Bump version number of expected libunistring
21840         version.
21841
21842 2011-01-09  Bruno Haible  <bruno@clisp.org>
21843
21844         Update to Unicode 5.2.0.
21845         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21846         trailing whitespace removed.
21847
21848 2011-01-09  Bruno Haible  <bruno@clisp.org>
21849
21850         New Unicode character properties, from Unicode 5.2.0.
21851         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21852         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21853         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21854         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21855         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21856         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21857         uc_is_property_cased, uc_is_property_case_ignorable,
21858         uc_is_property_changes_when_lowercased,
21859         uc_is_property_changes_when_uppercased,
21860         uc_is_property_changes_when_titlecased,
21861         uc_is_property_changes_when_casefolded,
21862         uc_is_property_changes_when_casemapped): New declarations.
21863         * lib/unictype/pr_byname.gperf: Add the new properties.
21864         * modules/unictype/property-byname (Depends-on): Depend on the new
21865         properties modules.
21866         * modules/unictype/property-all (Depends-on): Likewise.
21867         * MODULES.html.sh (Unicode string functions): Add
21868         unictype/property-case-ignorable, unictype/property-cased,
21869         unictype/property-changes-when-casefolded,
21870         unictype/property-changes-when-casemapped,
21871         unictype/property-changes-when-lowercased,
21872         unictype/property-changes-when-titlecased,
21873         unictype/property-changes-when-uppercased.
21874
21875         New module 'unictype/property-changes-when-casemapped'.
21876         * modules/unictype/property-changes-when-casemapped: New file.
21877         * lib/unictype/pr_changes_when_casemapped.c: New file.
21878         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21879         generated by gen-uni-tables.
21880         * modules/unictype/property-changes-when-casemapped-tests: New file.
21881         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21882         automatically generated by gen-uni-tables.
21883
21884         New module 'unictype/property-changes-when-casefolded'.
21885         * modules/unictype/property-changes-when-casefolded: New file.
21886         * lib/unictype/pr_changes_when_casefolded.c: New file.
21887         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21888         generated by gen-uni-tables.
21889         * modules/unictype/property-changes-when-casefolded-tests: New file.
21890         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21891         automatically generated by gen-uni-tables.
21892
21893         New module 'unictype/property-changes-when-titlecased'.
21894         * modules/unictype/property-changes-when-titlecased: New file.
21895         * lib/unictype/pr_changes_when_titlecased.c: New file.
21896         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21897         generated by gen-uni-tables.
21898         * modules/unictype/property-changes-when-titlecased-tests: New file.
21899         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21900         automatically generated by gen-uni-tables.
21901
21902         New module 'unictype/property-changes-when-uppercased'.
21903         * modules/unictype/property-changes-when-uppercased: New file.
21904         * lib/unictype/pr_changes_when_uppercased.c: New file.
21905         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21906         generated by gen-uni-tables.
21907         * modules/unictype/property-changes-when-uppercased-tests: New file.
21908         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21909         automatically generated by gen-uni-tables.
21910
21911         New module 'unictype/property-changes-when-lowercased'.
21912         * modules/unictype/property-changes-when-lowercased: New file.
21913         * lib/unictype/pr_changes_when_lowercased.c: New file.
21914         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21915         generated by gen-uni-tables.
21916         * modules/unictype/property-changes-when-lowercased-tests: New file.
21917         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21918         automatically generated by gen-uni-tables.
21919
21920         New module 'unictype/property-case-ignorable'.
21921         * modules/unictype/property-case-ignorable: New file.
21922         * lib/unictype/pr_case_ignorable.c: New file.
21923         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21924         by gen-uni-tables.
21925         * modules/unictype/property-case-ignorable-tests: New file.
21926         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21927         generated by gen-uni-tables.
21928
21929         New module 'unictype/property-cased'.
21930         * modules/unictype/property-cased: New file.
21931         * lib/unictype/pr_cased.c: New file.
21932         * lib/unictype/pr_cased.h: New file, automatically generated by
21933         gen-uni-tables.
21934         * modules/unictype/property-cased-tests: New file.
21935         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21936         gen-uni-tables.
21937
21938 2011-01-09  Bruno Haible  <bruno@clisp.org>
21939
21940         Update to Unicode 5.2.0.
21941         * lib/gen-uni-tables.c (output_predicate, output_category,
21942         output_combclass, output_bidi_category, output_decimal_digit_test,
21943         output_decimal_digit, output_digit_test, output_digit,
21944         output_numeric_test, output_numeric, output_mirror, output_scripts,
21945         output_scripts_byname, output_blocks, output_ident_category): Fix
21946         comment header.
21947         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21948         get_wbp.
21949         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21950         items.
21951         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21952         Changes_When_Lowercased, Changes_When_Uppercased,
21953         Changes_When_Titlecased, Changes_When_Casefolded,
21954         Changes_When_Casemapped.
21955         (is_property_alphabetic, is_property_default_ignorable_code_point):
21956         Update for Unicode 5.2.0.
21957         (is_property_cased, is_property_case_ignorable,
21958         is_property_changes_when_lowercased,
21959         is_property_changes_when_uppercased,
21960         is_property_changes_when_titlecased,
21961         is_property_changes_when_casefolded,
21962         is_property_changes_when_casemapped): New functions.
21963         (output_properties): Output also the properties cased, case_ignorable,
21964         changes_when_lowercased, changes_when_uppercased,
21965         changes_when_titlecased, changes_when_casefolded,
21966         changes_when_casemapped.
21967         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21968         Unicode TR#11 revision 17 -> 19.
21969         (LBP_CP): New enumeration value.
21970         (LBP_*): Adjust values accordingly.
21971         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21972         TR#14 revision 22 -> 24.
21973         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21974         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21975         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21976         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21977         is_WBP_MIDLETTER.
21978         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21979         the code1 and code2 of each composition rule.
21980         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21981         * lib/unicase/ignorable.h: Likewise.
21982         * lib/unicase/tocasefold.h: Likewise.
21983         * lib/unicase/tolower.h: Likewise.
21984         * lib/unicase/totitle.h: Likewise.
21985         * lib/unicase/toupper.h: Likewise.
21986         * lib/unictype/bidi_of.h: Likewise.
21987         * lib/unictype/blocks.h: Likewise.
21988         * lib/unictype/categ_C.h: Likewise.
21989         * lib/unictype/categ_Cf.h: Likewise.
21990         * lib/unictype/categ_Cn.h: Likewise.
21991         * lib/unictype/categ_L.h: Likewise.
21992         * lib/unictype/categ_Ll.h: Likewise.
21993         * lib/unictype/categ_Lm.h: Likewise.
21994         * lib/unictype/categ_Lo.h: Likewise.
21995         * lib/unictype/categ_Lu.h: Likewise.
21996         * lib/unictype/categ_M.h: Likewise.
21997         * lib/unictype/categ_Mc.h: Likewise.
21998         * lib/unictype/categ_Mn.h: Likewise.
21999         * lib/unictype/categ_N.h: Likewise.
22000         * lib/unictype/categ_Nd.h: Likewise.
22001         * lib/unictype/categ_Nl.h: Likewise.
22002         * lib/unictype/categ_No.h: Likewise.
22003         * lib/unictype/categ_P.h: Likewise.
22004         * lib/unictype/categ_Pd.h: Likewise.
22005         * lib/unictype/categ_Po.h: Likewise.
22006         * lib/unictype/categ_S.h: Likewise.
22007         * lib/unictype/categ_Sc.h: Likewise.
22008         * lib/unictype/categ_So.h: Likewise.
22009         * lib/unictype/categ_of.h: Likewise.
22010         * lib/unictype/combining.h: Likewise.
22011         * lib/unictype/ctype_alnum.h: Likewise.
22012         * lib/unictype/ctype_alpha.h: Likewise.
22013         * lib/unictype/ctype_graph.h: Likewise.
22014         * lib/unictype/ctype_lower.h: Likewise.
22015         * lib/unictype/ctype_print.h: Likewise.
22016         * lib/unictype/ctype_punct.h: Likewise.
22017         * lib/unictype/ctype_upper.h: Likewise.
22018         * lib/unictype/decdigit.h: Likewise.
22019         * lib/unictype/digit.h: Likewise.
22020         * lib/unictype/numeric.h: Likewise.
22021         * lib/unictype/pr_alphabetic.h: Likewise.
22022         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22023         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22024         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22025         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22026         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22027         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22028         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22029         * lib/unictype/pr_combining.h: Likewise.
22030         * lib/unictype/pr_composite.h: Likewise.
22031         * lib/unictype/pr_currency_symbol.h: Likewise.
22032         * lib/unictype/pr_dash.h: Likewise.
22033         * lib/unictype/pr_decimal_digit.h: Likewise.
22034         * lib/unictype/pr_deprecated.h: Likewise.
22035         * lib/unictype/pr_diacritic.h: Likewise.
22036         * lib/unictype/pr_extender.h: Likewise.
22037         * lib/unictype/pr_grapheme_base.h: Likewise.
22038         * lib/unictype/pr_grapheme_extend.h: Likewise.
22039         * lib/unictype/pr_grapheme_link.h: Likewise.
22040         * lib/unictype/pr_id_continue.h: Likewise.
22041         * lib/unictype/pr_id_start.h: Likewise.
22042         * lib/unictype/pr_ideographic.h: Likewise.
22043         * lib/unictype/pr_ignorable_control.h: Likewise.
22044         * lib/unictype/pr_logical_order_exception.h: Likewise.
22045         * lib/unictype/pr_lowercase.h: Likewise.
22046         * lib/unictype/pr_numeric.h: Likewise.
22047         * lib/unictype/pr_other_alphabetic.h: Likewise.
22048         * lib/unictype/pr_punctuation.h: Likewise.
22049         * lib/unictype/pr_sentence_terminal.h: Likewise.
22050         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22051         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22052         * lib/unictype/pr_unified_ideograph.h: Likewise.
22053         * lib/unictype/pr_uppercase.h: Likewise.
22054         * lib/unictype/pr_xid_continue.h: Likewise.
22055         * lib/unictype/pr_xid_start.h: Likewise.
22056         * lib/unictype/pr_zero_width.h: Likewise.
22057         * lib/unictype/scripts.h: Likewise.
22058         * lib/unictype/scripts_byname.gperf: Likewise.
22059         * lib/unictype/sy_java_ident.h: Likewise.
22060         * lib/unigbrk/gbrkprop.h: Likewise.
22061         * lib/unilbrk/lbrkprop1.h: Likewise.
22062         * lib/unilbrk/lbrkprop2.h: Likewise.
22063         * lib/unilbrk/lbrktables.h: Likewise.
22064         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22065         LBP_CP. Implement rule LB30.
22066         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22067         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22068         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22069         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22070         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22071         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22072         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22073         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22074         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22075         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22076         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22077         bits instead of 16 bits in the code1 and code2 of each composition
22078         rule.
22079         (uc_composition): Update for Unicode 5.2.0.
22080         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22081         * lib/uninorm/decomposition-table2.h: Likewise.
22082         * lib/uniwbrk/wbrkprop.h: Likewise.
22083         * tests/unicase/test-cased.c: Likewise.
22084         * tests/unicase/test-ignorable.c: Likewise.
22085         * tests/unicase/test-uc_tolower.c: Likewise.
22086         * tests/unicase/test-uc_totitle.c: Likewise.
22087         * tests/unicase/test-uc_toupper.c: Likewise.
22088         * tests/unictype/test-categ_C.c: Likewise.
22089         * tests/unictype/test-categ_Cf.c: Likewise.
22090         * tests/unictype/test-categ_Cn.c: Likewise.
22091         * tests/unictype/test-categ_L.c: Likewise.
22092         * tests/unictype/test-categ_Ll.c: Likewise.
22093         * tests/unictype/test-categ_Lm.c: Likewise.
22094         * tests/unictype/test-categ_Lo.c: Likewise.
22095         * tests/unictype/test-categ_Lu.c: Likewise.
22096         * tests/unictype/test-categ_M.c: Likewise.
22097         * tests/unictype/test-categ_Mc.c: Likewise.
22098         * tests/unictype/test-categ_Mn.c: Likewise.
22099         * tests/unictype/test-categ_N.c: Likewise.
22100         * tests/unictype/test-categ_Nd.c: Likewise.
22101         * tests/unictype/test-categ_Nl.c: Likewise.
22102         * tests/unictype/test-categ_No.c: Likewise.
22103         * tests/unictype/test-categ_P.c: Likewise.
22104         * tests/unictype/test-categ_Pd.c: Likewise.
22105         * tests/unictype/test-categ_Po.c: Likewise.
22106         * tests/unictype/test-categ_S.c: Likewise.
22107         * tests/unictype/test-categ_Sc.c: Likewise.
22108         * tests/unictype/test-categ_So.c: Likewise.
22109         * tests/unictype/test-ctype_alnum.c: Likewise.
22110         * tests/unictype/test-ctype_alpha.c: Likewise.
22111         * tests/unictype/test-ctype_graph.c: Likewise.
22112         * tests/unictype/test-ctype_lower.c: Likewise.
22113         * tests/unictype/test-ctype_print.c: Likewise.
22114         * tests/unictype/test-ctype_punct.c: Likewise.
22115         * tests/unictype/test-ctype_upper.c: Likewise.
22116         * tests/unictype/test-decdigit.h: Likewise.
22117         * tests/unictype/test-digit.h: Likewise.
22118         * tests/unictype/test-numeric.h: Likewise.
22119         * tests/unictype/test-pr_alphabetic.c: Likewise.
22120         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22121         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22122         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22123         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22124         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22125         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22126         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22127         * tests/unictype/test-pr_combining.c: Likewise.
22128         * tests/unictype/test-pr_composite.c: Likewise.
22129         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22130         * tests/unictype/test-pr_dash.c: Likewise.
22131         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22132         * tests/unictype/test-pr_deprecated.c: Likewise.
22133         * tests/unictype/test-pr_diacritic.c: Likewise.
22134         * tests/unictype/test-pr_extender.c: Likewise.
22135         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22136         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22137         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22138         * tests/unictype/test-pr_id_continue.c: Likewise.
22139         * tests/unictype/test-pr_id_start.c: Likewise.
22140         * tests/unictype/test-pr_ideographic.c: Likewise.
22141         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22142         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22143         * tests/unictype/test-pr_lowercase.c: Likewise.
22144         * tests/unictype/test-pr_numeric.c: Likewise.
22145         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22146         * tests/unictype/test-pr_punctuation.c: Likewise.
22147         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22148         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22149         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22150         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22151         * tests/unictype/test-pr_uppercase.c: Likewise.
22152         * tests/unictype/test-pr_xid_continue.c: Likewise.
22153         * tests/unictype/test-pr_xid_start.c: Likewise.
22154         * tests/unictype/test-pr_zero_width.c: Likewise.
22155         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22156         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22157         changed behaviour: line breaking is now disallowed between a letter
22158         or '=' and '('.
22159         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22160         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22161         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22162         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22163         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22164         lib/uniwidth/width.c.
22165         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22166         without comments, but with the original copyright notice.
22167         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22168         changes.
22169         * lib/unictype/categ_Cc.h: Likewise.
22170         * lib/unictype/categ_Co.h: Likewise.
22171         * lib/unictype/categ_Cs.h: Likewise.
22172         * lib/unictype/categ_Lt.h: Likewise.
22173         * lib/unictype/categ_Me.h: Likewise.
22174         * lib/unictype/categ_Pc.h: Likewise.
22175         * lib/unictype/categ_Pe.h: Likewise.
22176         * lib/unictype/categ_Pf.h: Likewise.
22177         * lib/unictype/categ_Pi.h: Likewise.
22178         * lib/unictype/categ_Ps.h: Likewise.
22179         * lib/unictype/categ_Sk.h: Likewise.
22180         * lib/unictype/categ_Sm.h: Likewise.
22181         * lib/unictype/categ_Z.h: Likewise.
22182         * lib/unictype/categ_Zl.h: Likewise.
22183         * lib/unictype/categ_Zp.h: Likewise.
22184         * lib/unictype/categ_Zs.h: Likewise.
22185         * lib/unictype/ctype_blank.h: Likewise.
22186         * lib/unictype/ctype_cntrl.h: Likewise.
22187         * lib/unictype/ctype_digit.h: Likewise.
22188         * lib/unictype/ctype_space.h: Likewise.
22189         * lib/unictype/ctype_xdigit.h: Likewise.
22190         * lib/unictype/mirror.h: Likewise.
22191         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22192         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22193         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22194         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22195         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22196         * lib/unictype/pr_bidi_control.h: Likewise.
22197         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22198         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22199         * lib/unictype/pr_bidi_pdf.h: Likewise.
22200         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22201         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22202         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22203         * lib/unictype/pr_format_control.h: Likewise.
22204         * lib/unictype/pr_hex_digit.h: Likewise.
22205         * lib/unictype/pr_hyphen.h: Likewise.
22206         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22207         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22208         * lib/unictype/pr_iso_control.h: Likewise.
22209         * lib/unictype/pr_join_control.h: Likewise.
22210         * lib/unictype/pr_left_of_pair.h: Likewise.
22211         * lib/unictype/pr_line_separator.h: Likewise.
22212         * lib/unictype/pr_math.h: Likewise.
22213         * lib/unictype/pr_non_break.h: Likewise.
22214         * lib/unictype/pr_not_a_character.h: Likewise.
22215         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22216         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22217         * lib/unictype/pr_other_id_continue.h: Likewise.
22218         * lib/unictype/pr_other_id_start.h: Likewise.
22219         * lib/unictype/pr_other_lowercase.h: Likewise.
22220         * lib/unictype/pr_other_math.h: Likewise.
22221         * lib/unictype/pr_other_uppercase.h: Likewise.
22222         * lib/unictype/pr_paired_punctuation.h: Likewise.
22223         * lib/unictype/pr_paragraph_separator.h: Likewise.
22224         * lib/unictype/pr_pattern_syntax.h: Likewise.
22225         * lib/unictype/pr_pattern_white_space.h: Likewise.
22226         * lib/unictype/pr_private_use.h: Likewise.
22227         * lib/unictype/pr_quotation_mark.h: Likewise.
22228         * lib/unictype/pr_radical.h: Likewise.
22229         * lib/unictype/pr_soft_dotted.h: Likewise.
22230         * lib/unictype/pr_space.h: Likewise.
22231         * lib/unictype/pr_titlecase.h: Likewise.
22232         * lib/unictype/pr_variation_selector.h: Likewise.
22233         * lib/unictype/pr_white_space.h: Likewise.
22234         * lib/unictype/sy_c_ident.h: Likewise.
22235         * lib/unictype/sy_c_whitespace.h: Likewise.
22236         * lib/unictype/sy_java_whitespace.h: Likewise.
22237         * modules/uni*/*: Bump version number of expected libunistring version.
22238         Reported by Simon Josefsson.
22239
22240 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22241
22242         useless-if-before-free: fix typo in --help and make the internal,
22243         automatic version date update process work once again.
22244         --help output contained a NUL character instead of the
22245         backslash-zero that was intended.  Also, the "must lie within
22246         the first 8 lines" line is on line 9, and hence not getting
22247         automatically updated.
22248         * build-aux/useless-if-before-free: Fix the former by adding a
22249         backslash, and the latter by condensing the three lines of what-it-does
22250         to a single line, leaving one line of slack for the future.
22251
22252 2011-01-09  Bruno Haible  <bruno@clisp.org>
22253
22254         uniwidth/width: Fix width of U+1D173..U+1D17A.
22255         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22256         symbolic_width, output_width_property_test): New functions.
22257         (main): Invoke output_nonspacing_property, output_width_property_test.
22258         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22259         U+1D173..U+1D17A.
22260         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22261         1.
22262         * modules/uniwidth/*: Bump version number of expected libunistring
22263         version.
22264         * modules/unilbrk/*: Likewise.
22265
22266 2011-01-08  Bruno Haible  <bruno@clisp.org>
22267
22268         uninorm tests: Preserve copyright of Unicode data file.
22269         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22270         Mention modifications.
22271
22272 2011-01-08  Bruno Haible  <bruno@clisp.org>
22273
22274         gen-uni-tables: Prepare for Unicode 5.2.0.
22275         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22276         (debug_output_lbp, output_lbp): Update.
22277
22278 2011-01-08  Bruno Haible  <bruno@clisp.org>
22279
22280         unilbrk: Clarify gen-uni-tables.c code.
22281         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22282         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22283         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22284
22285 2011-01-07  Bruno Haible  <bruno@clisp.org>
22286
22287         strtod: Restore errno when successfully parsing Infinity or NaN.
22288         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22289         restore the original errno.
22290
22291 2011-01-07  Bruno Haible  <bruno@clisp.org>
22292
22293         remove test: Avoid failure on HP-UX 11.
22294         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22295
22296 2011-01-07  Bruno Haible  <bruno@clisp.org>
22297
22298         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22299         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22300         error code.
22301
22302 2011-01-07  Pádraig Brady <P@draigBrady.com>
22303
22304         ignore-value: fixup comments, and add Eric Blake
22305         as an author since he rewrote the macros.
22306         * lib/ignore-value.h (ignore_value):  State that
22307         we now support aggregates.  Also specify exactly
22308         when the GCC warn_unused_result feature was added.
22309
22310 2011-01-06  Eric Blake  <eblake@redhat.com>
22311
22312         ignore-value: support aggregate types
22313         * lib/ignore-value.h (ignore_value): Provide separate gcc
22314         definition.
22315         * modules/ignore-value-tests: New test module.
22316         * tests/test-ignore-value.c: New test.
22317
22318         maint.mk: improve sc_prohibit_strcmp regex
22319         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22320         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22321         definition of STRNEQ.
22322
22323         signal: work around Haiku issue with SIGBUS
22324         * lib/siglist.h: Add comment.
22325         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22326         strsignal's favoring of SIGSEGV.
22327         * tests/test-signal.c (main): Avoid test failure.
22328         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22329         Reported by Scott McCreary.
22330
22331         maint.mk: add pre-release check to ensure submodule commits are public
22332         * top/maint.mk (public-submodule-commit): New rule.
22333         (submodule-checks): New variable.
22334         (alpha beta stable): Depend on the variable.
22335
22336 2011-01-05  Pádraig Brady <P@draigBrady.com>
22337         and Jim Meyering  <meyering@redhat.com>
22338
22339         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22340         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22341         (ATTRIBUTE_DEPRECATED): Define.
22342         (_ignore_case): New function.
22343         (ignore_value): New macro, to replace the old function.
22344         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22345         * modules/ignore-value (Depends-on): Add stdint.
22346
22347 2011-01-04  Eric Blake  <eblake@redhat.com>
22348
22349         doc: regenerate INSTALL
22350         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22351         @firstparagraphindent support, now that autoconf dropped it.
22352         (INSTALL_PRELUDE): Reinstate old macro.
22353         * doc/install.texi: Resync from autoconf.
22354         * doc/INSTALL: Reflect recent autoconf update.
22355         * doc/INSTALL.ISO: Likewise.
22356         * doc/INSTALL.UTF-8: Likewise.
22357         Reported by Karl Berry.
22358
22359 2011-01-04  Bruce Korb  <address@hidden>
22360
22361         git-version-gen: avoid a sub-shell
22362         * build-aux/git-version-gen: Redirect stderr in `...` via
22363         "exec 2>...", rather than via an added sub-shell.
22364
22365 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22366
22367         git-version-gen: use (...) rather than sh -c '...'
22368         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22369         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22370
22371 2011-01-03  Jim Meyering  <meyering@redhat.com>
22372
22373         git-version-gen: convert leading TABs to spaces
22374         * build-aux/git-version-gen: Expand leading TABs.
22375
22376         git-version-gen: handle failed "git rev-list"
22377         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22378         from git and proceeding as if it had succeeded but printed no SHA1
22379         checksums, suppress the diagnostic and handle the failure.
22380         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22381
22382         git-version-gen: include command name in one more diagnostic
22383         * build-aux/git-version-gen: When the required .tarball-version file
22384         was missing or unreadable, you might see the diagnostic from "cat",
22385         but no trace of the name of the invoking script.  Now, you still see
22386         the diagnostic from cat, but also get one from "git-version-gen: ".
22387         Inspired by a patch from Bruce Korb.
22388
22389         update-copyright: adjust test to match changed code
22390         * tests/test-update-copyright.sh: Change test's expected output
22391         to match new actual output.
22392
22393 2011-01-02  Bruno Haible  <bruno@clisp.org>
22394
22395         getlogin_r: Avoid test failure on HP-UX 11.
22396         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22397         ERANGE when the second argument is zero.
22398         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22399         portability problem.
22400
22401 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22402
22403         * build-aux/update-copyright: doc Simon's changes
22404
22405 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22406
22407         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22408         environment variable.
22409
22410 2011-01-02  Bruno Haible  <bruno@clisp.org>
22411
22412         unigbrk: Avoid gcc warnings.
22413         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22414         unused variable.
22415         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22416         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22417         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22418         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22419         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22420         Change type of first argument to 'const char *'.
22421         (main): Remove unused variable.
22422         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22423         type of first argument to 'const char *'.
22424         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22425         Likewise.
22426         (main): Change type of variable 's'.
22427         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22428         to 'int'.
22429
22430 2011-01-02  Bruno Haible  <bruno@clisp.org>
22431
22432         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22433         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22434         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22435         bug.
22436         * lib/pwrite.c: Undo 2010-12-31 patch.
22437         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22438
22439 2011-01-02  Bruno Haible  <bruno@clisp.org>
22440
22441         pread: Fix test whether it works.
22442         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22443
22444 2011-01-02  Bruno Haible  <bruno@clisp.org>
22445
22446         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22447         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22448         ends in "6". Don't require a specific month name. Try also the locale
22449         names found on HP-UX 11 and Solaris 7.
22450
22451 2011-01-02  Bruno Haible  <bruno@clisp.org>
22452
22453         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22454         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22455         C linkage.
22456         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22457
22458 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22459
22460         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22461         for consistency, since the "cluster" term is not used elsewhere.
22462         * lib/unigbrk.in.h: Update name.
22463         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22464         * lib/unigbrk/u16-grapheme-next.c: Update name.
22465         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22466         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22467         * lib/unigbrk/u32-grapheme-next.c: Update name.
22468         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22469         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22470         * lib/unigbrk/u8-grapheme-next.c: Update name.
22471         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22472         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22473         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22474         Suggested by Bruno Haible.
22475
22476 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22477
22478         Remove module 'u8-grapheme-len' as too redundant with
22479         'u8-grapheme-next'.
22480         * modules/unigbrk/u8-grapheme-len: Delete file.
22481         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22482         * lib/unigbrk.in.h: Remove prototype for deleted function.
22483         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22484         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22485
22486         Remove module 'u16-grapheme-len' as too redundant with
22487         'u16-grapheme-next'.
22488         * modules/unigbrk/u16-grapheme-len: Delete file.
22489         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22490         * lib/unigbrk.in.h: Remove prototype for deleted function.
22491         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22492         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22493
22494         Remove module 'u32-grapheme-len' as too redundant with
22495         'u32-grapheme-next'.
22496         * modules/unigbrk/u32-grapheme-len: Delete file.
22497         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22498         * lib/unigbrk.in.h: Remove prototype for deleted function.
22499         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22500         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22501
22502         Suggested by Bruno Haible.
22503
22504 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22505
22506         * unigbrk.in.h: Fix typo: "ben" => "been".
22507         Reported by Bruno Haible.
22508
22509 2011-01-01  Jim Meyering  <meyering@redhat.com>
22510
22511         maint: update almost all copyright ranges to include 2011
22512         Run the new "make update-copyright" rule.
22513
22514 2011-01-01  Jim Meyering  <meyering@redhat.com>
22515
22516         maint: update-copyright: exempt doc/INSTALL*
22517         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22518         since they are generated.  Suggested by Bruno Haible.
22519
22520 2011-01-01  Jim Meyering  <meyering@redhat.com>
22521
22522         maint: refine the update-copyright rule
22523         * Makefile (update-copyright): Also exclude any file that includes
22524         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22525         code that merely generates the comment.
22526
22527 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22528
22529         New module 'u8-grapheme-len'.
22530         * modules/unigbrk/u8-grapheme-len: New file.
22531         * modules/unigbrk/u8-grapheme-len-tests: New file.
22532         * lib/unigbrk.in.h: Add prototype for new function.
22533         * lib/unigbrk/u8-grapheme-len.c: New file.
22534         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22535
22536         New module 'u16-grapheme-len'.
22537         * modules/unigbrk/u16-grapheme-len: New file.
22538         * modules/unigbrk/u16-grapheme-len-tests: New file.
22539         * lib/unigbrk.in.h: Add prototype for new function.
22540         * lib/unigbrk/u16-grapheme-len.c: New file.
22541         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22542
22543         New module 'u32-grapheme-len'.
22544         * modules/unigbrk/u32-grapheme-len: New file.
22545         * modules/unigbrk/u32-grapheme-len-tests: New file.
22546         * lib/unigbrk.in.h: Add prototype for new function.
22547         * lib/unigbrk/u32-grapheme-len.c: New file.
22548         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22549
22550         New module 'u8-grapheme-next'.
22551         * modules/unigbrk/u8-grapheme-next: New file.
22552         * modules/unigbrk/u8-grapheme-next-tests: New file.
22553         * lib/unigbrk.in.h: Add prototype for new function.
22554         * lib/unigbrk/u8-grapheme-next.c: New file.
22555         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22556
22557         New module 'u16-grapheme-next'.
22558         * modules/unigbrk/u16-grapheme-next: New file.
22559         * modules/unigbrk/u16-grapheme-next-tests: New file.
22560         * lib/unigbrk.in.h: Add prototype for new function.
22561         * lib/unigbrk/u16-grapheme-next.c: New file.
22562         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22563
22564         New module 'u32-grapheme-next'.
22565         * modules/unigbrk/u32-grapheme-next: New file.
22566         * modules/unigbrk/u32-grapheme-next-tests: New file.
22567         * lib/unigbrk.in.h: Add prototype for new function.
22568         * lib/unigbrk/u32-grapheme-next.c: New file.
22569         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22570
22571         New module 'u8-grapheme-prev'.
22572         * modules/unigbrk/u8-grapheme-prev: New file.
22573         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22574         * lib/unigbrk.in.h: Add prototype for new function.
22575         * lib/unigbrk/u8-grapheme-prev.c: New file.
22576         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22577
22578         New module 'u16-grapheme-prev'.
22579         * modules/unigbrk/u16-grapheme-prev: New file.
22580         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22581         * lib/unigbrk.in.h: Add prototype for new function.
22582         * lib/unigbrk/u16-grapheme-prev.c: New file.
22583         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22584
22585         New module 'u32-grapheme-prev'.
22586         * modules/unigbrk/u32-grapheme-prev: New file.
22587         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22588         * lib/unigbrk.in.h: Add prototype for new function.
22589         * lib/unigbrk/u32-grapheme-prev.c: New file.
22590         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22591
22592         New module 'u8-grapheme-breaks'.
22593         * modules/unigbrk/u8-grapheme-breaks: New file.
22594         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22595         * lib/unigbrk.in.h: Add prototype for new function.
22596         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22597         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22598
22599         New module 'u16-grapheme-breaks'.
22600         * modules/unigbrk/u16-grapheme-breaks: New file.
22601         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22602         * lib/unigbrk.in.h: Add prototype for new function.
22603         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22604         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22605
22606         New module 'u32-grapheme-breaks'.
22607         * modules/unigbrk/u32-grapheme-breaks: New file.
22608         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22609         * lib/unigbrk.in.h: Add prototype for new function.
22610         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22611         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22612
22613         New module 'ulc-grapheme-breaks'.
22614         * modules/unigbrk/ulc-grapheme-breaks: New file.
22615         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22616         * m4/locale-ar.m4: New file.
22617         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22618         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22619         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22620
22621 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22622
22623         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22624         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22625         modified how this file was generated before I initially submitted
22626         the module, but failed to regenerate it.  This meant that several
22627         of the level2 entries were wrong.
22628         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22629         Remove the division-by-2 that is folded into the table now that
22630         gbrkprop.h has been regenerated properly.  Now -1 entries are
22631         handled correctly.
22632
22633         New module 'unigbrk/uc-gbrk-prop-tests'.
22634         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22635         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22636         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22637         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22638
22639 2011-01-01  Bruno Haible  <bruno@clisp.org>
22640
22641         Avoid use of hexadecimal escapes.
22642         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22643         instead of hexadecimal escapes.
22644
22645 2011-01-01  Jim Meyering  <meyering@redhat.com>
22646
22647         maint: new rule to update copyright year ranges
22648         * Makefile (update-copyright): New rule.
22649
22650         maint: indent with TABs in Makefile
22651         * Makefile: Expand leading sequences of spaces to TABs
22652
22653         version-etc: update the copyright year it reports
22654         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22655
22656 2010-12-31  Bruno Haible  <bruno@clisp.org>
22657
22658         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22659         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22660         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22661         zero.
22662
22663 2010-12-31  Bruno Haible  <bruno@clisp.org>
22664
22665         pwrite: Work around HP-UX 11.11 bug.
22666         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22667         works and set REPLACE_PWRITE if not.
22668         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22669         function.
22670         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22671
22672 2010-12-31  Bruno Haible  <bruno@clisp.org>
22673
22674         pread: Work around HP-UX 11 bugs.
22675         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22676         and set REPLACE_PREAD if not.
22677         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22678
22679 2010-12-31  Eric Blake  <eblake@redhat.com>
22680
22681         nl_langinfo: fix YESEXPR on Irix 6.5
22682         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22683         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22684         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22685         it.
22686
22687 2010-12-31  Bruno Haible  <bruno@clisp.org>
22688
22689         iconv: Document HP-UX 11 bug.
22690         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22691
22692 2010-12-31  Bruno Haible  <bruno@clisp.org>
22693
22694         ldexpl: Fix link error on HP-UX 11.
22695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22696         LDEXPL_LIBM, using $ISNANL_LIBM.
22697
22698 2010-12-31  Eric Blake  <eblake@redhat.com>
22699
22700         ftello: avoid compilation failure with SunStudio c89
22701         * lib/ftello.c (ftello): Use lseek, not llseek.
22702
22703         tests: avoid failing coreutils tests on cygwin
22704         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22705         (create_exe_shims_): Return 0 when skipping.
22706
22707 2010-12-31  Bruno Haible  <bruno@clisp.org>
22708
22709         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22710         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22711
22712 2010-12-31  Bruno Haible  <bruno@clisp.org>
22713
22714         waitpid: Fix link error in C++ mode.
22715         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22716
22717 2010-12-31  Bruno Haible  <bruno@clisp.org>
22718
22719         isnan: Use GCC built-ins when possible.
22720         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22721         __builtin_isnan.
22722         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22723         (isnan): Define using GCC built-ins for GCC >= 4.0.
22724
22725 2010-12-31  Bruno Haible  <bruno@clisp.org>
22726
22727         isnand: Fix mistake.
22728         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22729         __builtin_isnand.
22730
22731 2010-12-31  Bruno Haible  <bruno@clisp.org>
22732
22733         open: Avoid C++ error on HP-UX 11.
22734         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22735
22736 2010-12-31  Bruno Haible  <bruno@clisp.org>
22737
22738         time_r: Add missing declarations on HP-UX 11.
22739         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22740         instead of HAVE_LOCALTIME_R.
22741         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22742         HAVE_LOCALTIME_R always.
22743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22744         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22745         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22746         HAVE_LOCALTIME_R.
22747         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22748         * doc/posix-functions/localtime_r.texi: Likewise.
22749
22750 2010-12-29  Eric Blake  <eblake@redhat.com>
22751
22752         mountlist: tweak previous commit
22753         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22754         Reported by Paul Eggert.
22755
22756         mountlist: fix local drive detection on cygwin
22757         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22758         that works for cygwin.
22759
22760 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22761
22762         ftoastr, snprintf: ftoastr + snprintf module
22763         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22764         since the snprintf module now should be good enough here.
22765         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22766         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22767         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22768         GNULIB_SNPRINTF only for the test directory, and the latter
22769         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22770         seems to suffice by itself.
22771
22772 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22773
22774         alloca: one step towards thread-safety
22775         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22776         need for a static variable.  All callers changed.  This does not
22777         make the alloca replacement thread-safe, but it's one step.
22778
22779         tests: minor indenting change
22780         * tests/init.sh: Sync from coreutils housekeeping patch
22781         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22782         to keep lines within 80 columns.
22783
22784 2010-12-28  Jim Meyering  <meyering@redhat.com>
22785
22786         regex: don't infloop on persistent failing calloc
22787         * lib/regexec.c (build_trtable): Return failure indication upon
22788         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22789         In glibc, this was fixed for version 2.13:
22790         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22791
22792 2010-12-28  Bruno Haible  <bruno@clisp.org>
22793             Paul Eggert <eggert@cs.ucla.edu>
22794
22795         linkat: Make implementation robust against system behaviour variations.
22796         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22797         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22798         way, and to -2 if it needs a generic runtime test.
22799         * lib/linkat.c (solaris_optimized_link_immediate,
22800         solaris_optimized_link_follow): New functions.
22801         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22802         (check_same_link): Use it.
22803
22804 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22805
22806         New module 'unigbrk/base'.
22807         * modules/unigbrk/base: New file.
22808         * lib/unigbrk.in.h: New file.
22809
22810         New module 'unigbrk/uc-gbrk-prop'.
22811         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22812         * modules/unigbrk/uc-gbrk-prop: New file.
22813         * lib/unigbrk/gbrkprop.h: New file.
22814         * lib/unigbrk/uc-gbrk-prop.c: New file.
22815
22816         New module 'unigbrk/uc-is-grapheme-break'.
22817         * modules/unigbrk/uc-is-grapheme-break: New file.
22818         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22819         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22820         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22821         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22822         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22823
22824         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22825
22826 2010-12-27  Bruno Haible  <bruno@clisp.org>
22827
22828         linkat test: Avoid failure on Solaris 11 2010-11.
22829         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22830
22831 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22832
22833         utimens: work around glibc rounding bug on more platforms
22834         * lib/utimens.c (fdutimens): Work around rounding bug even if
22835         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22837
22838 2010-12-27  Bruno Haible  <bruno@clisp.org>
22839
22840         select tests: Improve comments.
22841         * tests/test-select.c (do_select): Add comments.
22842
22843 2010-12-27  Bruno Haible  <bruno@clisp.org>
22844
22845         select tests: Safer way of handling timeout.
22846         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22847         at every invocation.
22848
22849 2010-12-27  Bruno Haible  <bruno@clisp.org>
22850
22851         select tests: Use 'bool' where appropriate.
22852         * tests/test-select.c (connect_to_socket): Change argument type to
22853         'bool'.
22854
22855 2010-12-27  Bruno Haible  <bruno@clisp.org>
22856
22857         select tests: Use existing modules.
22858         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22859         (configure.ac): Don't test for unistd.h.
22860         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22861         declared in <unistd.h>.
22862
22863 2010-12-27  Bruno Haible  <bruno@clisp.org>
22864
22865         mbrtowc: Work around a Solaris 7 bug.
22866         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22867         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22868         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22869         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22870         MBRTOWC_NULL_ARG1_BUG.
22871         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22872         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22873         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22874         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22875
22876 2010-12-27  Jim Meyering  <meyering@redhat.com>
22877
22878         read-file.c: tweak syntax
22879         * lib/read-file.c (fread_file): Remove space after "*" in function
22880         definitions.
22881
22882 2010-12-27  Bruno Haible  <bruno@clisp.org>
22883
22884         times test: Avoid gcc warnings on OSF/1.
22885         * tests/test-times.c (main): Cast printf arguments from clock_t to
22886         'long int'.
22887
22888 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22889
22890         utimens: work around glibc rounding bug on older Linux kernels
22891         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22892         on Linux with a glibc whose utimes might not work, then work
22893         around a longstanding glibc bug involving rounding rather than
22894         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22896
22897 2010-12-26  Bruno Haible  <bruno@clisp.org>
22898
22899         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22900         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22901         _GL_CXXALIAS_SYS.
22902         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22903
22904 2010-12-26  Bruno Haible  <bruno@clisp.org>
22905
22906         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22907         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22908         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22909         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22910         looking for the declaration.
22911         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22912         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22913         problem.
22914         * doc/posix-functions/inet_pton.texi: Likewise.
22915
22916 2010-12-26  Bruno Haible  <bruno@clisp.org>
22917
22918         arpa_inet: Use the common idioms with C++ support.
22919         * lib/arpa_inet.in.h: Include c++defs.h.
22920         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22921         support.
22922         * modules/arpa_inet (Depends-on): Add c++defs.
22923         (Makefile.am): Substitute the contents of c++defs.h.
22924         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22925         * modules/arpa_inet-c++-tests: New file.
22926         * tests/test-arpa_inet-c++.cc: New file.
22927
22928 2010-12-25  Bruno Haible  <bruno@clisp.org>
22929
22930         Fix more C++ link errors on Solaris 8.
22931         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22932         $(LIB_EACCESS).
22933         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22934         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22935         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22936         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22937         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22938
22939 2010-12-25  Bruno Haible  <bruno@clisp.org>
22940
22941         printf-posix: Fix link error when a non-GCC compiler is used.
22942         * lib/stdio.in.h (printf): When not using GCC, override printf
22943         correctly.
22944         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22945
22946 2010-12-25  Bruno Haible  <bruno@clisp.org>
22947
22948         strerror_r-posix: Update doc.
22949         * doc/posix-functions/strerror_r.texi: Update doc about the return
22950         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22951
22952 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         utimens: simplify the logic of the previous change
22955         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22956         This should not affect whether the test succeeds or fails.
22957
22958         utimens: configure better on hosts with NFS clock skew
22959         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22960         uses the clock of the local host.  It might use the clock of the
22961         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22963
22964 2010-12-25  Bruno Haible  <bruno@clisp.org>
22965
22966         ptsname test: Avoid failure on Solaris.
22967         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22968         open a pseudo-terminal; don't use BSD-style ptys.
22969         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22970
22971 2010-12-25  Bruno Haible  <bruno@clisp.org>
22972
22973         ptsname: Avoid ERANGE failure on some systems.
22974         * lib/ptsname.c (buffer): Increase size.
22975
22976 2010-12-25  Bruno Haible  <bruno@clisp.org>
22977
22978         rename, renameat: Avoid test failures at NFS mounted locations.
22979         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22980         so that subsequent mkdir calls succeed.
22981
22982 2010-12-25  Bruno Haible  <bruno@clisp.org>
22983
22984         iswblank: Fix C++ link error on Solaris 8.
22985         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22986         _GL_FUNCDECL_SYS.
22987
22988 2010-12-25  Bruno Haible  <bruno@clisp.org>
22989
22990         unistd: Fix C++ link error on Solaris 8.
22991         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22992
22993 2010-12-25  Bruno Haible  <bruno@clisp.org>
22994
22995         readlink doc: Mention an old glibc bug.
22996         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22997
22998 2010-12-25  Bruno Haible  <bruno@clisp.org>
22999
23000         fcntl-h: Fix for use of C++ on glibc systems.
23001         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23002         also on glibc systems in C++ mode.
23003         Reported by Gary V. Vaughan <gary@gnu.org>.
23004
23005 2010-12-25  Bruno Haible  <bruno@clisp.org>
23006
23007         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23008         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23009
23010 2010-12-25  Bruno Haible  <bruno@clisp.org>
23011
23012         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23013         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23014         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23015         test whether truncl works according to ISO C 99 with IEC 60559.
23016         * m4/truncl-ieee.m4: New file.
23017         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23018         m4/signbit.m4.
23019         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23020
23021 2010-12-25  Bruno Haible  <bruno@clisp.org>
23022
23023         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23024         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23025         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23026         test whether ceill works according to ISO C 99 with IEC 60559.
23027         * m4/ceill-ieee.m4: New file.
23028         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23029         m4/signbit.m4.
23030         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23031
23032 2010-12-25  Bruno Haible  <bruno@clisp.org>
23033
23034         Ensure all prerequisites of <wchar.h> are included.
23035         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23036         before <wchar.h>.
23037         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23038         gl_MBRLEN_NUL_RETVAL): Likewise.
23039         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23040         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23041         AC_FUNC_MBRTOWC): Likewise.
23042         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23043         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23045         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23046         Likewise.
23047         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23048         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23049         (gl_WCHAR_H): Improve comments.
23050         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23051
23052 2010-12-25  Bruno Haible  <bruno@clisp.org>
23053
23054         strtok_r: Fix C syntax error in autoconf macro.
23055         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23056         characters in test program.
23057
23058 2010-12-24  Bruno Haible  <bruno@clisp.org>
23059
23060         ceil, trunc, round: Fix gcc warnings.
23061         * lib/ceil.c (MIN): Undefine before redefining.
23062         * lib/trunc.c (MIN): Likewise.
23063         * lib/round.c (MIN): Likewise.
23064         Include <math.h> first.
23065
23066 2010-12-24  Bruno Haible  <bruno@clisp.org>
23067
23068         select tests: Avoid failures on OSF/1 5.1.
23069         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23070         failure of closing the last socket; it may fail with ECONNRESET.
23071
23072 2010-12-24  Eric Blake  <eblake@redhat.com>
23073
23074         stdint: avoid HP-UX 10.20 preprocessor bug
23075         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23076         than #if.
23077         * tests/test-floor2.c (main): Likewise.
23078         Reported by Peter O'Gorman.
23079
23080         pipe: make obsoletion transition easier
23081         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23082         * modules/pipe (Files): Include revived file.
23083         (Include): Drop reference, to mirror getdate's behavior.
23084
23085 2010-12-24  Bruno Haible  <bruno@clisp.org>
23086
23087         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23088         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23089         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23090         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23091
23092 2010-12-24  Bruno Haible  <bruno@clisp.org>
23093
23094         gethostname: Ensure declaration on NonStop Kernel.
23095         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23096         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23097
23098 2010-12-24  Bruno Haible  <bruno@clisp.org>
23099
23100         sys_select: Ensure all necessary types on NonStop Kernel.
23101         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23102         include <sys/time.h>.
23103         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23104         NonStop Kernel.
23105         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23106
23107 2010-12-24  Bruno Haible  <bruno@clisp.org>
23108
23109         sys_select: Remove unneeded include.
23110         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23111         have <sys/select.h>.
23112
23113 2010-12-24  Bruno Haible  <bruno@clisp.org>
23114
23115         gethostname: Provide a fallback for HOST_NAME_MAX.
23116         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23117         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23118         instead.
23119         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23120
23121 2010-12-24  Bruno Haible  <bruno@clisp.org>
23122
23123         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23124         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23125         (SA_RESTART): Likewise.
23126         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23127
23128 2010-12-24  Bruno Haible  <bruno@clisp.org>
23129
23130         signal: Define NSIG.
23131         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23132         * tests/test-signal.c (nsig): New variable.
23133         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23134
23135 2010-12-24  Bruno Haible  <bruno@clisp.org>
23136
23137         rename, renameat: Avoid test failures on OSF/1 5.1.
23138         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23139         alternative error codes.
23140         * tests/test-renameat.c (main): Likewise.
23141
23142 2010-12-24  Bruno Haible  <bruno@clisp.org>
23143
23144         *printf: Detect large precisions bug on Solaris 10/SPARC.
23145         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23146         by Paul Eggert.
23147         * tests/test-snprintf-posix.h (test_function): Add this test code here
23148         too.
23149         * tests/test-sprintf-posix.h (test_function): Likewise.
23150         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23151         * tests/test-vasprintf-posix.c (test_function): Likewise.
23152         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23153         around by gnulib.
23154         * doc/posix-functions/printf.texi: Likewise.
23155         * doc/posix-functions/snprintf.texi: Likewise.
23156         * doc/posix-functions/sprintf.texi: Likewise.
23157         * doc/posix-functions/vfprintf.texi: Likewise.
23158         * doc/posix-functions/vprintf.texi: Likewise.
23159         * doc/posix-functions/vsnprintf.texi: Likewise.
23160         * doc/posix-functions/vsprintf.texi: Likewise.
23161         * doc/posix-functions/dprintf.texi: Undo last commit.
23162         * doc/posix-functions/vdprintf.texi: Likewise.
23163
23164 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23165
23166         tests: port test-fdutimensat.c to Solaris 8
23167         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23168         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23169         On Solaris 8, it fails with errno == ENOSYS, because there is no
23170         futimens (so it can't use the fd), and there is no lutimens (so it
23171         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23172
23173         vsnprintf: make more consistent with snprintf; doc fixes
23174
23175         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23176         the byte count return problem was promoted from the snprintf-posix
23177         to the snprintf module.
23178         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23179         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23180         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23181         * tests/test-snprintf.c (main): Check the byte count returned.
23182         * tests/test-vsnprintf.c (main): Likewise.
23183
23184 2010-12-23  Eric Blake  <eblake@redhat.com>
23185
23186         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23187         * modules/sigpipe (License): Relax license.
23188
23189 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23190
23191         doc: document Solaris printf bug with large float precisions
23192         * doc/posix-functions/dprintf.texi (dprintf):
23193         * doc/posix-functions/fprintf.texi (fprintf):
23194         * doc/posix-functions/printf.texi (printf):
23195         * doc/posix-functions/snprintf.texi (snprintf):
23196         * doc/posix-functions/sprintf.texi (sprintf):
23197         * doc/posix-functions/vdprintf.texi (vdprintf):
23198         * doc/posix-functions/vfprintf.texi (vfprintf):
23199         * doc/posix-functions/vprintf.texi (vprintf):
23200         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23201         * doc/posix-functions/vsprintf.texi (vsprintf):
23202         Mention that these functions mishandle large floating point
23203         precisions on Solaris 10.  The same bug is also present in Solaris
23204         8, and I assume earlier.  This causes "cd gnulib-tests; make
23205         check" to fail on Solaris 8 (and I assume, later) when building
23206         the latest coreutils, in test-vasprintf-posix's call to
23207         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23208         the wide flavors (e.g., wprintf) so this patch just updates the
23209         documentation for the narrow ones.
23210
23211         test-posixtm.c: add two tests
23212         * tests/test-posixtm.c: Add two tests, to highlight the
23213         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23214         around this bug; this is merely to document it.
23215
23216 2010-12-22  Bruno Haible  <bruno@clisp.org>
23217
23218         getlogin_r: Work around portability problem on OSF/1.
23219         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23220         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23221         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23222         test for a truncated result.
23223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23224         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23225         * modules/getlogin_r (Depends-on): Add memchr.
23226         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23227
23228 2010-12-22  Bruno Haible  <bruno@clisp.org>
23229
23230         ptsname: Avoid test failure on OSF/1 5.1.
23231         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23232         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23233         (same_slave): New function.
23234         (main): Use it to compare ptsname's result with the expected file name.
23235
23236 2010-12-22  Bruno Haible  <bruno@clisp.org>
23237
23238         Port extended stdio modules to HP NonStop Kernel.
23239         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23240         macros.
23241         * lib/fbufmode.c: Update comments.
23242         * lib/fflush.c: Likewise.
23243         * lib/fpurge.c: Likewise.
23244         * lib/freadable.c: Likewise.
23245         * lib/freadahead.c: Likewise.
23246         * lib/freading.c: Likewise.
23247         * lib/freadptr.c: Likewise.
23248         * lib/freadseek.c: Likewise.
23249         * lib/fseeko.c: Likewise.
23250         * lib/fseterr.c: Likewise.
23251         * lib/fwritable.c: Likewise.
23252         * lib/fwriting.c: Likewise.
23253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23254
23255 2010-12-22  Bruno Haible  <bruno@clisp.org>
23256
23257         ttyname_r: Work around bug on OSF/1 5.1.
23258         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23259         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23260         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23261         present.
23262         * lib/ttyname_r.c (ttyname_r): Update comments.
23263
23264 2010-12-22  Bruno Haible  <bruno@clisp.org>
23265
23266         round: Implement result sign according to IEEE 754.
23267         * lib/round.c (MIN, MINUS_ZERO): New macros.
23268         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23269         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23270         * tests/test-round-ieee.c (main): Likewise.
23271         * tests/test-roundl-ieee.c (main): Likewise.
23272
23273         trunc: Implement result sign according to IEEE 754.
23274         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23275         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23276         * tests/test-trunc2.c: Include minus-zero.h.
23277         (MINUS_ZERO): New macro.
23278         (trunc_reference): Keep in sync with lib/trunc.c.
23279         * tests/test-truncf2.c: Include minus-zero.h.
23280         (MINUS_ZERO): New macro.
23281         (truncf_reference): Keep in sync with lib/trunc.c.
23282         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23283         * tests/test-trunc-ieee.c (main): Likewise.
23284         * tests/test-truncl-ieee.c (main): Likewise.
23285
23286         ceil: Implement result sign according to IEEE 754.
23287         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23288         (FUNC): Return -0.0 for -1 < x < 0.
23289         * tests/test-ceil2.c: Include minus-zero.h.
23290         (MINUS_ZERO): New macro.
23291         (ceil_reference): Keep in sync with lib/ceil.c.
23292         * tests/test-ceilf2.c: Include minus-zero.h.
23293         (MINUS_ZERO): New macro.
23294         (ceilf_reference): Keep in sync with lib/ceil.c.
23295         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23296         * tests/test-ceil-ieee.c (main): Likewise.
23297         * tests/test-ceill-ieee.c (main): Likewise.
23298
23299         floor: Implement result sign according to IEEE 754.
23300         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23301         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23302         * tests/test-floorf2.c (floorf_reference): Likewise.
23303         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23304         * tests/test-floor-ieee.c (main): Likewise.
23305         * tests/test-floorl-ieee.c (main): Likewise.
23306
23307 2010-12-22  Bruno Haible  <bruno@clisp.org>
23308
23309         getaddrinfo: Update doc.
23310         * doc/posix-functions/gai_strerror.texi: Return type is also different
23311         on AIX and HP-UX.
23312
23313 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23314
23315         getaddrinfo, inet_ntop: Update doc for Solaris.
23316         * doc/posix-functions/gai_strerror.texi: Return type is also an
23317         issue on Solaris 9 and earlier.
23318         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23319         on Solaris 10 and earlier.
23320
23321 2010-12-21  Bruno Haible  <bruno@clisp.org>
23322
23323         New module 'roundl-ieee'.
23324         * modules/roundl-ieee: New file.
23325         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23326         test whether roundl works according to ISO C 99 with IEC 60559.
23327         * m4/roundl-ieee.m4: New file.
23328         * modules/roundl-ieee-tests: New file.
23329         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23330         * tests/test-roundl.c (main): Remove signbit tests.
23331         * modules/roundl-tests (Depends-on): Remove signbit.
23332         * doc/posix-functions/roundl.texi: Mention the new module.
23333
23334 2010-12-21  Bruno Haible  <bruno@clisp.org>
23335
23336         New module 'truncl-ieee'.
23337         * modules/truncl-ieee: New file.
23338         * modules/truncl-ieee-tests: New file.
23339         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23340         * tests/test-truncl.c (main): Remove signbit tests.
23341         * modules/truncl-tests (Depends-on): Remove signbit.
23342         * doc/posix-functions/truncl.texi: Mention the new module.
23343
23344 2010-12-21  Bruno Haible  <bruno@clisp.org>
23345
23346         New module 'ceill-ieee'.
23347         * modules/ceill-ieee: New file.
23348         * modules/ceill-ieee-tests: New file.
23349         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23350         * tests/test-ceill.c (main): Remove signbit tests.
23351         * modules/ceill-tests (Depends-on): Remove signbit.
23352         * doc/posix-functions/ceill.texi: Mention the new module.
23353
23354 2010-12-21  Bruno Haible  <bruno@clisp.org>
23355
23356         New module 'floorl-ieee'.
23357         * modules/floorl-ieee: New file.
23358         * modules/floorl-ieee-tests: New file.
23359         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23360         * tests/test-floorl.c (main): Remove signbit tests.
23361         * modules/floorl-tests (Depends-on): Remove signbit.
23362         * doc/posix-functions/floorl.texi: Mention the new module.
23363
23364 2010-12-21  Bruno Haible  <bruno@clisp.org>
23365
23366         New module 'round-ieee'.
23367         * modules/round-ieee: New file.
23368         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23369         whether round works according to ISO C 99 with IEC 60559.
23370         * m4/round-ieee.m4: New file.
23371         * modules/round-ieee-tests: New file.
23372         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23373         * tests/test-round1.c (main): Remove signbit tests.
23374         * modules/round-tests (Depends-on): Remove 'signbit'.
23375         * doc/posix-functions/round.texi: Mention the new module.
23376
23377 2010-12-21  Bruno Haible  <bruno@clisp.org>
23378
23379         New module 'trunc-ieee'.
23380         * modules/trunc-ieee: New file.
23381         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23382         whether trunc works according to ISO C 99 with IEC 60559.
23383         * m4/trunc-ieee.m4: New file.
23384         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23386         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23387         * modules/trunc-ieee-tests: New file.
23388         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23389         * tests/test-trunc1.c (main): Remove signbit tests.
23390         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23391         * doc/posix-functions/trunc.texi: Mention the new module.
23392
23393 2010-12-21  Bruno Haible  <bruno@clisp.org>
23394
23395         New module 'ceil-ieee'.
23396         * modules/ceil-ieee: New file.
23397         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23398         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23399         ISO C 99 with IEC 60559.
23400         * m4/ceil-ieee.m4: New file.
23401         * modules/ceil (Files): Add lib/ceil.c.
23402         (Depends-on): Add 'float'.
23403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23404         * lib/math.in.h (ceil): New declaration.
23405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23406         REPLACE_CEIL.
23407         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23408         * modules/ceil-ieee-tests: New file.
23409         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23410         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23411         * doc/posix-functions/ceil.texi: Mention the new module.
23412
23413 2010-12-21  Bruno Haible  <bruno@clisp.org>
23414
23415         New module 'floor-ieee'.
23416         * modules/floor-ieee: New file.
23417         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23418         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23419         ISO C 99 with IEC 60559.
23420         * m4/floor-ieee.m4: New file.
23421         * modules/floor (Files): Add lib/floor.c.
23422         (Depends-on): Add 'float'.
23423         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23424         * lib/math.in.h (floor): New declaration.
23425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23426         REPLACE_FLOOR.
23427         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23428         * modules/floor-ieee-tests: New file.
23429         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23430         * tests/test-math-c++.cc: Check the signature of 'floor'.
23431         * doc/posix-functions/floor.texi: Mention the new module.
23432
23433 2010-12-21  Bruno Haible  <bruno@clisp.org>
23434
23435         New module 'roundf-ieee'.
23436         * modules/roundf-ieee: New file.
23437         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23438         test whether roundf works according to ISO C 99 with IEC 60559.
23439         * m4/roundf-ieee.m4: New file.
23440         * modules/roundf-ieee-tests: New file.
23441         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23442         * tests/test-roundf1.c (main): Remove signbit tests.
23443         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23444         * doc/posix-functions/roundf.texi: Mention the new module.
23445
23446 2010-12-21  Bruno Haible  <bruno@clisp.org>
23447
23448         New module 'truncf-ieee'.
23449         * modules/truncf-ieee: New file.
23450         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23451         test whether truncf works according to ISO C 99 with IEC 60559.
23452         * m4/truncf-ieee.m4: New file.
23453         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23455         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23456         * modules/truncf-ieee-tests: New file.
23457         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23458         * tests/test-truncf1.c (main): Remove signbit tests.
23459         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23460         * doc/posix-functions/truncf.texi: Mention the new module.
23461
23462 2010-12-21  Bruno Haible  <bruno@clisp.org>
23463
23464         New module 'ceilf-ieee'.
23465         * modules/ceilf-ieee: New file.
23466         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23467         test whether ceilf works according to ISO C 99 with IEC 60559.
23468         * m4/ceilf-ieee.m4: New file.
23469         * modules/ceilf-ieee-tests: New file.
23470         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23471         * tests/test-ceilf1.c (main): Remove signbit tests.
23472         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23473         * doc/posix-functions/ceilf.texi: Mention the new module.
23474
23475 2010-12-21  Bruno Haible  <bruno@clisp.org>
23476
23477         New module 'floorf-ieee'.
23478         * modules/floorf-ieee: New file.
23479         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23480         test whether floorf works according to ISO C 99 with IEC 60559.
23481         * m4/floorf-ieee.m4: New file.
23482         * modules/floorf-ieee-tests: New file.
23483         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23484         * tests/test-floorf1.c (main): Remove signbit tests.
23485         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23486         * doc/posix-functions/floorf.texi: Mention the new module.
23487
23488 2010-12-21  Bruno Haible  <bruno@clisp.org>
23489
23490         Support for minus zero in autoconf macros.
23491         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23492         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23493         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23494         * tests/minus-zero.h: Update comments.
23495
23496 2010-12-21  Bruno Haible  <bruno@clisp.org>
23497
23498         Tests for module 'ceil'.
23499         * modules/ceil-tests: New file.
23500         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23501         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23502
23503 2010-12-21  Bruno Haible  <bruno@clisp.org>
23504
23505         Tests for module 'floor'.
23506         * modules/floor-tests: New file.
23507         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23508         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23509
23510 2010-12-21  Bruno Haible  <bruno@clisp.org>
23511
23512         math: Fix indentation.
23513         * lib/math.in.h (floorf): Fix indentation.
23514
23515 2010-12-21  Bruno Haible  <bruno@clisp.org>
23516
23517         Fix cross-compilation guesses on Solaris.
23518         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23519         not match "solaris2.10".
23520         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23521         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23522         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23523
23524 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23525
23526         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23527         This fixes a problem observed with the latest coreutils snapshot
23528         that caused a test to fail on Solaris 8.  src/csplit.c's call
23529         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23530         earlier, instead of returning the number of bytes that would have
23531         been generated; this causes csplit to incorrectly report memory
23532         exhaustion.
23533         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23534         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23535         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23536         comments to match.
23537         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23538         Fix typo in matching older versions of Solaris: "solaris2.10"
23539         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23540         only for guessing while cross-compiling.
23541         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23542
23543 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23544
23545         ftoastr: fix comment again
23546         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23548         Also, simplify example a bit by using flags = 0.
23549
23550 2010-12-20  Bruno Haible  <bruno@clisp.org>
23551
23552         round*, trunc*: Update documentation regarding glibc.
23553         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23554         * doc/posix-functions/round.texi: Likewise.
23555         * doc/posix-functions/roundl.texi: Likewise.
23556         * doc/posix-functions/truncf.texi: Likewise.
23557         * doc/posix-functions/trunc.texi: Likewise.
23558         * doc/posix-functions/truncl.texi: Likewise.
23559
23560 2010-12-20  Bruno Haible  <bruno@clisp.org>
23561
23562         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23563         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23564         * doc/posix-functions/round.texi: Likewise.
23565         * doc/posix-functions/roundl.texi: Likewise.
23566
23567 2010-12-20  Bruno Haible  <bruno@clisp.org>
23568
23569         ttyname_r: Add missing declaration on HP-UX 11.
23570         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23571         HAVE_TTYNAME_R.
23572         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23573         declared. Set HAVE_TTYNAME_R always.
23574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23575         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23576         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23577         HAVE_TTYNAME_R.
23578         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23579
23580 2010-12-20  Bruno Haible  <bruno@clisp.org>
23581
23582         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23583         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23584         * doc/posix-functions/getlogin_r.texi: Likewise.
23585         * tests/test-getlogin.c: Include <errno.h>.
23586         (main): Avoid test failure on HP-UX 11.11.
23587         * tests/test-getlogin_r.c (main): Likewise.
23588
23589 2010-12-20  Bruno Haible  <bruno@clisp.org>
23590
23591         getlogin_r: Add missing declaration on HP-UX 11.
23592         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23593         declared also when it exists as a function.
23594         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23595
23596 2010-12-20  Bruno Haible  <bruno@clisp.org>
23597
23598         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23599         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23600         through wcrtomb.
23601
23602 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         ftoastr: fix comment
23605         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23606         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23607
23608 2010-12-19  Bruno Haible  <bruno@clisp.org>
23609
23610         isnan: Ensure it is a macro.
23611         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23612         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23613         Solaris.
23614
23615 2010-12-19  Bruno Haible  <bruno@clisp.org>
23616
23617         ldexpl test: Fix link error on OSF/1 5.1.
23618         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23619
23620 2010-12-19  Bruno Haible  <bruno@clisp.org>
23621
23622         wctype: Make it work in C++ mode on OSF/1 5.1.
23623         * lib/wctype.in.h (iswblank): Declare but not define here.
23624         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23625         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23626         * modules/wctype (Files): Add lib/iswblank.c.
23627
23628 2010-12-19  Bruno Haible  <bruno@clisp.org>
23629
23630         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23631         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23632         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23633
23634 2010-12-19  Bruno Haible  <bruno@clisp.org>
23635
23636         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23638         _POSIX_PII_SOCKET.
23639         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23640         * doc/posix-functions/recvfrom.texi: Likewise.
23641         * doc/posix-functions/send.texi: Likewise.
23642         * doc/posix-functions/sendto.texi: Likewise.
23643
23644 2010-12-19  Bruno Haible  <bruno@clisp.org>
23645
23646         tcgetsid: Add missing declaration on OSF/1 5.1.
23647         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23648         HAVE_TCGETSID.
23649         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23650         Don't set HAVE_TCGETSID.
23651         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23652         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23653         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23654         HAVE_TCGETSID.
23655         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23656
23657 2010-12-19  Bruno Haible  <bruno@clisp.org>
23658
23659         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23660         * lib/stdio.in.h: During the include_next statement, let recursive
23661         includes of this file include only the system header file.
23662
23663 2010-12-19  Bruno Haible  <bruno@clisp.org>
23664
23665         iconv_open: Fix regression from 2010-12-04.
23666         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23667         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23668
23669 2010-12-19  Bruno Haible  <bruno@clisp.org>
23670
23671         stdbool test: Avoid a gcc warning.
23672         * tests/test-stdbool.c (main): Fail if e1 is false.
23673         Reported by Jim Meyering.
23674
23675 2010-12-19  Jim Meyering  <meyering@redhat.com>
23676
23677         setenv: restore to working order
23678         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23679         mistakenly removed.
23680         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23681         HAVE_SETENV.
23682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23683         HAVE_SETENV.
23684
23685 2010-12-19  Bruno Haible  <bruno@clisp.org>
23686
23687         Document some different function declarations on OSF/1 5.1.
23688         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23689         * doc/posix-functions/inet_ntop.texi: Likewise.
23690         * doc/posix-functions/gethostname.texi: Likewise.
23691         * lib/unistd.in.h (gethostname): Update comment.
23692
23693 2010-12-19  Bruno Haible  <bruno@clisp.org>
23694
23695         doc: Mention vasprintf-posix module.
23696         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23697         the 'vasprintf-posix' module.
23698         * doc/glibc-functions/vasprintf.texi: Likewise.
23699
23700 2010-12-19  Bruno Haible  <bruno@clisp.org>
23701
23702         unsetenv: Add missing declaration on OSF/1 5.1.
23703         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23704         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23705         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23707         not HAVE_UNSETENV.
23708         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23709         HAVE_UNSETENV.
23710         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23711
23712 2010-12-19  Bruno Haible  <bruno@clisp.org>
23713
23714         setenv: Add missing declaration on OSF/1 5.1.
23715         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23716         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23717         declared. Don't set HAVE_SETENV.
23718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23719         not HAVE_SETENV.
23720         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23721         HAVE_SETENV.
23722         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23723
23724 2010-12-19  Bruno Haible  <bruno@clisp.org>
23725
23726         nl_langinfo tests: Avoid gcc warning.
23727         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23728
23729 2010-12-19  Bruno Haible  <bruno@clisp.org>
23730
23731         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23732         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23733         _GL_CXXALIAS_SYS.
23734
23735 2010-12-19  Bruno Haible  <bruno@clisp.org>
23736
23737         stdbool: Relax test.
23738         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23739         address to 'bool' work in static initializer, for compilers other than
23740         GCC.
23741
23742 2010-12-19  Bruno Haible  <bruno@clisp.org>
23743
23744         ftello: Add missing declaration on OSF/1 5.1.
23745         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23746         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23748         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23749         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23750
23751 2010-12-19  Bruno Haible  <bruno@clisp.org>
23752
23753         fseeko: Add missing declaration on OSF/1 5.1.
23754         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23755         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23757         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23758         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23759
23760 2010-12-19  Bruno Haible  <bruno@clisp.org>
23761
23762         fchdir: Add missing declaration on OSF/1 5.1.
23763         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23766         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23767         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23768
23769 2010-12-19  Bruno Haible  <bruno@clisp.org>
23770
23771         relocatable-prog-wrapper: Separate from relocatable-prog.
23772         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23773         uninstall-relocwrapper rule here.
23774         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23775         Reported by Ian Beckwith <ianb@erislabs.net>.
23776
23777 2010-12-19  Bruno Haible  <bruno@clisp.org>
23778
23779         unistr/u8-mbsnlen: Add missing dependency.
23780         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23781         Reported by Ian Beckwith <ianb@erislabs.net>.
23782
23783 2010-12-19  Bruno Haible  <bruno@clisp.org>
23784
23785         iconv: Make it possible again to use this module without 'iconv-h'.
23786         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23787         if it is not defined.
23788         Reported by Ian Beckwith <ianb@erislabs.net>.
23789
23790 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         acl: port to Solaris 8 when copying from tmpfs to ufs
23793         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23794         error number.  Problem observed on Solaris 8 with latest
23795         coreutils, with "mv A B", where A is on a tmpfs file system and B
23796         is on a ufs file system.  This caused coreutils' mv/part-symlink
23797         test to fail.
23798
23799         tests: set fail=0 at start
23800         * tests/init.sh (setup_): Move fail=0 initialization here ...
23801         (mktempd_): ... from here, so that tests can rely on fail being
23802         set to 0 initially.  This fixes a problem in coreutils; see:
23803         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23804
23805 2010-12-18  Bruno Haible  <bruno@clisp.org>
23806
23807         memmem-simple: Stylistic changes.
23808         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23809         Fix preprocessor directive indentation.
23810
23811 2010-12-15  Pádraig Brady <P@draigBrady.com>
23812
23813         memmem, memmem-simple: reorganize and expand empty needle check
23814         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23815         functional checks to memmem-simple so that one has a fully functional
23816         memmem by using just this module.
23817         Restrict the performance only check to the memmem module.
23818         Also expand the empty needle check to ensure the correct
23819         pointer is returned, not just a non NULL pointer.
23820         * doc/glibc-functions/memmem.texi: Rearrange the portability
23821         documentation to correlate with the rearranged checks.
23822         Clarify exactly how the memmem and memmem-simple modules
23823         relate to each other.
23824
23825 2010-12-15  Pádraig Brady <P@draigBrady.com>
23826             Bruno Haible  <bruno@clisp.org>
23827
23828         Improve cross-compilation guesses for uClibc.
23829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23830         that uClibc does not have the glibc bug.
23831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23832         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23833
23834 2010-12-14  Eric Blake  <eblake@redhat.com>
23835
23836         configmake: provide fallbacks for oldest supported autotools
23837         * m4/configmake.m4: New file.
23838         * modules/configmake (Files): Ship it.
23839         (configure.ac): Use it to guarantee fallbacks.
23840
23841 2010-12-13  Pádraig Brady <P@draigBrady.com>
23842
23843         read-file: Improve handling of large files
23844         * lib/read-file.c (fread_file): Minimize realloc()s
23845         for regular files, and better manage sizes around SIZE_MAX.
23846
23847 2010-12-13  Eric Blake  <eblake@redhat.com>
23848
23849         cloexec, fcntl: relax license
23850         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23851         consent from all contributors.
23852         * modules/fcntl (License): Likewise.
23853
23854 2010-12-10  Bruno Haible  <bruno@clisp.org>
23855
23856         Tests for module 'pipe-posix'.
23857         * modules/pipe-posix-tests: New file.
23858         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23859
23860 2010-12-10  Bruno Haible  <bruno@clisp.org>
23861
23862         pipe-posix: Make it work in C++ mode.
23863         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23864         (pipe): Use common idiom, not a macro definition.
23865         * lib/pipe.c: New file.
23866         * m4/pipe.m4: New file.
23867         * modules/pipe-posix (Description): Enhance.
23868         (Files): Add lib/pipe.c, m4/pipe.m4.
23869         (configure.ac): Invoke gl_FUNC_PIPE.
23870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23871         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23872         * tests/test-unistd-c++.cc: Check the signature of pipe.
23873
23874 2010-12-10  Bruno Haible  <bruno@clisp.org>
23875
23876         Rename module 'pipe' to 'spawn-pipe'.
23877         * modules/spawn-pipe: New file, renamed from modules/pipe.
23878         (Files, configure.ac, Makefile.am): Update.
23879         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23880         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23881         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23882         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23883         "spawn-pipe.h" instead of "pipe.h".
23884         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23885         to gl_SPAWN_PIPE.
23886         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23887         (Files, Makefile.am): Update.
23888         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23889         Update.
23890         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23891         Include "spawn-pipe.h" instead of "pipe.h".
23892         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23893         * lib/javacomp.c: Likewise.
23894         * lib/javaversion.c: Likewise.
23895         * lib/pipe-filter-gi.c: Likewise.
23896         * lib/pipe-filter-ii.c: Likewise.
23897         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23898         * modules/javacomp (Depends-on): Likewise.
23899         * modules/javaversion (Depends-on): Likewise.
23900         * modules/pipe-filter-gi (Depends-on): Likewise.
23901         * modules/pipe-filter-ii (Depends-on): Likewise.
23902         * MODULES.html.sh (Executing programs): Update.
23903         * NEWS: Mention the change.
23904
23905 2010-12-10  Eric Blake  <eblake@redhat.com>
23906
23907         pipe-posix: new module
23908         * modules/pipe-posix: New file.
23909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23910         (gl_UNISTD_H): Check for declaration.
23911         * modules/unistd (Makefile.am): Substitute it.
23912         * lib/unistd.in.h (pipe): Provide it for mingw.
23913         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23914         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23915
23916 2010-12-07  Bruno Haible  <bruno@clisp.org>
23917
23918         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23919         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23920         u8_strcmp_gnu.
23921         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23922
23923 2010-12-06  Bruno Haible  <bruno@clisp.org>
23924
23925         Update internal documentation.
23926         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23927
23928 2010-12-04  Bruno Haible  <bruno@clisp.org>
23929
23930         Put more information about failed tests into the test return codes.
23931         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23932         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23933         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23934         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23935         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23936         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23937         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23938         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23939         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23941         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23942         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23943         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23944         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23945         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23946         returns a bit mask.
23947         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23948         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23949         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23950         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23951         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23952         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23953         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23955         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23956         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23958         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23959         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23960         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23961         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23962         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23963         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23964         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23965         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23966         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23968         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23969         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23970         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23971         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23972         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23973         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23974         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23975         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23976         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23977         gl_PRINTF_PRECISION): Likewise.
23978         * m4/regex.m4 (gl_REGEX): Likewise.
23979         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23980         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23981         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23982         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23985         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23986         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23987         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23989         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23990         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23992         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23993         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23994         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23995         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23996         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23998         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23999         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24000         enumerated value.
24001         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24002
24003 2010-12-04  Bruno Haible  <bruno@clisp.org>
24004
24005         Update for Solaris 11 2010-11.
24006         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24007         Express, released in November 2010.
24008
24009 2010-12-04  Bruno Haible  <bruno@clisp.org>
24010
24011         nproc: Relax license.
24012         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24013         and Paul Eggert.
24014         Requested by Ludovic Courtès <ludo@gnu.org>.
24015
24016 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24017
24018         utimecmp: fine-grained src to nearby coarse-grained dest
24019
24020         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24021         and the source is on a file system with higher-resolution time
24022         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24023         not work, and the time stamps are close together, the algorithm to
24024         determine the exact resolution from the read-back mtime was buggy:
24025         it had a "!=" where it should have had an "==".  This bug has been
24026         in the code ever since it was introduced to gnulib.
24027         Problem reported by Dan Jacobson in
24028         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24029
24030 2010-11-30  Bruno Haible  <bruno@clisp.org>
24031
24032         strerror_r-posix: Fix autoconf test.
24033         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24034
24035 2010-11-28  Bruno Haible  <bruno@clisp.org>
24036             Paul Eggert  <eggert@cs.ucla.edu>
24037
24038         Tests for module 'getdomainname'.
24039         * modules/getdomainname-tests: New file.
24040         * tests/test-getdomainname.c: New file, based on
24041         tests/test-gethostname.c.
24042
24043 2010-11-28  Bruno Haible  <bruno@clisp.org>
24044             Paul Eggert  <eggert@cs.ucla.edu>
24045
24046         getdomainname: Use the system function when possible.
24047         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24048         (getdomainname): Replace if needed. Provide the declaration if it is
24049         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24050         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24051         (getdomainname): When the system has getdomainname, call the system
24052         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24053         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24054         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24055         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24056         the function if its second argument is of type 'int' or if it is found
24057         in libnsl.
24058         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24059         <sys/systeminfo.h> and sysinfo().
24060         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24062         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24063         HAVE_GETDOMAINNAME.
24064         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24065         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24066         * doc/glibc-functions/getdomainname.texi: Document the problems with
24067         the getdomainname declaration.
24068
24069 2010-11-28  Bruno Haible  <bruno@clisp.org>
24070
24071         sys_socket: Ensure ss_family field on AIX.
24072         * lib/sys_socket.in.h (ss_family): New macro definition.
24073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24074         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24075         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24076         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24077         * modules/sys_socket (Makefile.am): Substitute
24078         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24079         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24080
24081 2010-11-27  Bruno Haible  <bruno@clisp.org>
24082
24083         readline: Improve configure output.
24084         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24085         "checking for readline..." result understandable.
24086
24087 2010-11-27  Bruno Haible  <bruno@clisp.org>
24088
24089         *printf-posix: Detect a bug on Solaris 10/x86.
24090         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24091         for floating-point output.
24092         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24093         directive.
24094         * tests/test-snprintf-posix.h (test_function): Likewise.
24095         * tests/test-sprintf-posix.h (test_function): Likewise.
24096         * tests/test-vasprintf-posix.c (test_function): Likewise.
24097         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24098         * doc/posix-functions/printf.texi: Likewise.
24099         * doc/posix-functions/snprintf.texi: Likewise.
24100         * doc/posix-functions/sprintf.texi: Likewise.
24101         * doc/posix-functions/vfprintf.texi: Likewise.
24102         * doc/posix-functions/vprintf.texi: Likewise.
24103         * doc/posix-functions/vsnprintf.texi: Likewise.
24104         * doc/posix-functions/vsprintf.texi: Likewise.
24105         * doc/glibc-functions/obstack_printf.texi: Likewise.
24106         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24107
24108 2010-11-27  Bruno Haible  <bruno@clisp.org>
24109
24110         Fix link error when module libunistring-optional is in use.
24111         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24112         * modules/striconveha-tests (Makefile.am): Likewise.
24113
24114 2010-11-27  Bruno Haible  <bruno@clisp.org>
24115
24116         regex: Mention link dependencies.
24117         * modules/regex (Link): New section.
24118         * modules/rpmatch (Link): Likewise.
24119         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24120
24121 2010-11-27  Bruno Haible  <bruno@clisp.org>
24122
24123         ftoastr: Fix compilation error on Solaris.
24124         * lib/ftoastr.c: Include <config.h>.
24125
24126 2010-11-27  Bruno Haible  <bruno@clisp.org>
24127
24128         getloadavg: Update documentation.
24129         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24130
24131 2010-11-27  Bruno Haible  <bruno@clisp.org>
24132
24133         sys_socket: Fix test whether the functions are declared.
24134         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24135         not <sys/select.h>.
24136
24137 2010-11-27  Bruno Haible  <bruno@clisp.org>
24138
24139         getpass: Make sure to get system declaration on some platforms.
24140         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24141         gl_USE_SYSTEM_EXTENSIONS.
24142         * modules/getpass (Depends-on): Add extensions.
24143
24144 2010-11-26  Bruno Haible  <bruno@clisp.org>
24145
24146         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24147         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24148         'iconv' module is present.
24149         (ICONV_CONST): New macro.
24150         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24151         ICONV_CONST.
24152         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24153         set ICONV_CONST.
24154         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24155         here.
24156         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24157         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24158         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24159         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24160         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24161         present.
24162
24163 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24164
24165         ftoastr: comment fix
24166         * lib/ftoastr.c: "little" -> "little or no" in comment
24167
24168 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24169
24170         stdint: port to GCC 4.3 + OSX + Octave
24171         On this platform, stdint.h is buggy and defines int64_t to long
24172         long int.  The replacement defined it to long int, causing
24173         problems with C++ style name mangling.  Instead, trust the system
24174         definition if INT64_MAX is defined, and likewise for the unsigned
24175         variant.   Problem reported by Jarno Rajahalme in
24176         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24177         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24178         and don't mess with int64_t and INT64_MAX in this case.
24179         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24180
24181 2010-11-24  Bruno Haible  <bruno@clisp.org>
24182
24183         doc: Corrections regarding MacOS X 10.4 and 10.5.
24184         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24185         MacOS X.
24186         Reported by Simon Josefsson.
24187
24188 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24189
24190         Uninstall ".bin" files installed by relocwrapper.
24191         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24192         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24193         unless it is already there.
24194
24195 2010-11-21  Bruno Haible  <bruno@clisp.org>
24196
24197         Update for NetBSD 5.0.
24198         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24199         NetBSD; the test fails on NetBSD 5.0.
24200         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24201         about NetBSD.
24202
24203 2010-11-21  Bruno Haible  <bruno@clisp.org>
24204
24205         Update for HP-UX 11.23 and HP-UX 11.31.
24206         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24207         HP-UX.
24208
24209 2010-11-21  Bruno Haible  <bruno@clisp.org>
24210
24211         Update for MacOS X 10.5.
24212         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24213         MacOS X; the test fails on MacOS X 10.5.8.
24214         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24215         about MacOS X.
24216
24217 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24218
24219         bootstrap: add bootstrap_sync option.
24220         See discussion at
24221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24223         * build-aux/bootstrap: Accept --bootstrap-sync to update
24224         bootstrap if it is not identical to the local gnulib's
24225         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24226         enable this by default.  Accept --no-bootstrap-sync to disable
24227         it.
24228
24229 2010-11-20  Bruno Haible  <bruno@clisp.org>
24230
24231         Ensure that <features.h> is included before __GLIBC__ is tested.
24232         * lib/printf-parse.h: Include <features.h>.
24233         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24234         Reported by Mike Frysinger <vapier@gentoo.org>.
24235
24236         Ensure that <features.h> is included before __GLIBC__ is tested.
24237         * lib/wchar.in.h: Include <features.h>.
24238         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24239         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24240         Reported by Mike Frysinger <vapier@gentoo.org>.
24241
24242         Ensure that <features.h> is included before __GLIBC__ is tested.
24243         * lib/arpa_inet.in.h: Include <features.h>.
24244         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24245         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24246         Reported by Mike Frysinger <vapier@gentoo.org>.
24247
24248         Ensure that <features.h> is included before __GLIBC__ is tested.
24249         * build-aux/link-warning.h: Include <features.h>.
24250         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24251         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24252         Reported by Mike Frysinger <vapier@gentoo.org>.
24253
24254         Ensure that <features.h> is included before __GLIBC__ is tested.
24255         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24256         Reported by Mike Frysinger <vapier@gentoo.org>.
24257
24258 2010-11-20  Bruno Haible  <bruno@clisp.org>
24259
24260         memmem: Fix autoconf test.
24261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24262
24263 2010-11-20  Bruno Haible  <bruno@clisp.org>
24264
24265         Port to uClibc.
24266         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24267         * lib/fcntl.in.h: Likewise.
24268         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24269         * lib/mbrtowc.c (mbrtowc): Likewise.
24270         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24271         * lib/strerror_r.c: Likewise.
24272         * lib/unistr/u8-strnlen.c: Likewise.
24273         * lib/vasnprintf.c (decimal_point_char): Likewise.
24274         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24275         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24277         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24278         * tests/test-sigaction.c (handler, main): Likewise.
24279         * lib/freading.h: Treat uClibc like a non-glibc platform.
24280         * lib/freading.c: Likewise.
24281         * lib/gettext.h: Likewise.
24282         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24283         Likewise.
24284         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24285         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24286         * lib/propername.c (proper_name_utf8): Likewise.
24287         * lib/spawn.in.h: Likewise.
24288         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24289         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24290         mem_cd_iconveh_internal): Likewise.
24291         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24292         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24293         strstr, strcasestr): Likewise.
24294         * lib/unicodeio.c (unicode_to_mb): Likewise.
24295         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24296         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24297         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24298         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24299         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24300         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24301         * lib/unistr/u8-stpncpy.c: Likewise.
24302         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24303         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24304         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24305         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24306         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24307         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24308         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24309         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24311         Likewise.
24312         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24313         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24314         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24317         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24318         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24319         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24320         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24321         * tests/test-striconveha.c (main): Likewise.
24322         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24323         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24324         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24325         * doc/posix-functions/getline.texi: Likewise.
24326         Reported by Mike Frysinger <vapier@gentoo.org>.
24327
24328 2010-11-20  Bruno Haible  <bruno@clisp.org>
24329
24330         nproc: Fix condition.
24331         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24332         HAVE_PTHREAD_AFFINITY_NP.
24333
24334 2010-11-20  Bruno Haible  <bruno@clisp.org>
24335
24336         Fix a comment.
24337         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24338
24339 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24340
24341         ftoastr: don't assume snprintf
24342         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24343         Implement a subset of snprintf here, by using sprintf safely.
24344         * modules/ftoastr (Depends-on): Remove snprintf.
24345
24346 2010-11-19  Jim Meyering  <meyering@redhat.com>
24347
24348         test-rename.h: fix compilation failure
24349         * tests/test-rename.h (test_rename): Add omitted "}".
24350
24351 2010-11-17  Jim Meyering  <meyering@redhat.com>
24352
24353         maint.mk: add a URL discussing the no-@acronym policy
24354         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24355
24356 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24357
24358         ftoastr: depend on snprintf, improve comments
24359         * lib/ftoastr.c: Also mention Loitsch's draft.
24360         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24361         needed in the current implementation, but it might simplify
24362         speeding up the code later.
24363         * modules/ftoastr: Depend on snprintf; this improves portability.
24364         Suggested by Bruno Haible in the same email.
24365
24366         ftoastr: port to hosts lacking strtof and strtold
24367         Problem reported by Bruno Haible in
24368         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24369         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24370         environment and strtold (and presumably strtof) are not available.
24371         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24372         (configure.ac): Require gl_C99_STRTOLD.
24373
24374 2010-11-18  Bruno Haible  <bruno@clisp.org>
24375
24376         c-strtold: Avoid link error on AIX 7.
24377         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24378         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24379         (gl_C_STRTOLD): Test whether strtold_l exists.
24380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24381
24382 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24383
24384         intprops: new macro INT_BITS_STRLEN_BOUND
24385         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24386         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24387         not exposed.  Also, it uses a slightly tighter bound than before;
24388         though this makes no practical difference, we might as well be as
24389         tight as we easily can.
24390
24391         ftoastr: new module, for lossless conversion of floats to short strings
24392         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24393         * modules/ftoastr: New files.
24394
24395 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24396
24397         bootstrap: port to Solaris sed
24398         * build-aux/bootstrap (get_version): Port to Solaris sed.
24399         See Ralf Wildenhues's note in
24400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24401
24402 2010-11-14  Jim Meyering  <meyering@redhat.com>
24403
24404         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24405         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24406         and move definition closer to sole use.
24407
24408 2010-11-13  Jim Meyering  <meyering@redhat.com>
24409
24410         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24411         Now we require at least autoconf-2.59, which means the work-around
24412         is no longer needed.
24413         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24414         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24415         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24416         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24417         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24418
24419 2010-11-13  Bruno Haible  <bruno@clisp.org>
24420
24421         rename, renameat: Avoid test failures at NFS mounted locations.
24422         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24423         functions.
24424         (test_rename): Use assert_nonexistent.
24425         * tests/test-rename.c: Include <dirent.h>.
24426         * tests/test-renameat.c: Likewise.
24427         Reported by Gary V. Vaughan <gary@gnu.org>.
24428
24429         rename, renameat: Document Linux bug with NFS
24430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24431         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24432         * doc/posix-functions/renameat.texi: Likewise.
24433         Suggested by Eric Blake.
24434
24435 2010-11-13  Bruno Haible  <bruno@clisp.org>
24436
24437         rename test: Add comments.
24438         * tests/test-rename.h (test_rename): Add structure and comments.
24439
24440 2010-11-13  Eric Blake  <eblake@redhat.com>
24441
24442         maintainer-makefile: cover a few more files
24443         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24444         scripts generated within C files, for libvirt.
24445
24446 2010-11-13  Bruno Haible  <bruno@clisp.org>
24447
24448         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24449         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24450         character, return the number of bytes that belong together, not always
24451         1.
24452         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24453         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24454         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24455         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24456         number of bytes of an invalid character.
24457         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24458         (main): Invoke it.
24459         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24460         results.
24461         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24462         malformed byte sequences.
24463         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24464         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24465         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24466         Reported by Ben Pfaff and Paolo Bonzini.
24467
24468 2010-11-13  Bruno Haible  <bruno@clisp.org>
24469
24470         openat: Work around glibc bug with fchownat() and empty file names.
24471         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24472         (gl_FUNC_FCHOWNAT): Invoke it.
24473         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24474         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24475         Reported by Gary V. Vaughan <gary@gnu.org>.
24476
24477 2010-11-13  Bruno Haible  <bruno@clisp.org>
24478
24479         openat: Ensure autoconf macro ordering.
24480         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24481         gl_USE_SYSTEM_EXTENSIONS.
24482         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24483
24484 2010-11-13  Bruno Haible  <bruno@clisp.org>
24485
24486         Update comments.
24487         * lib/unistr/u8-check.c: Update file name in comments.
24488         * lib/unistr/u8-mblen.c: Likewise.
24489         * lib/unistr/u8-prev.c: Likewise.
24490         * lib/unistr/u8-strmblen.c: Likewise.
24491         * lib/unistr/u8-strmbtouc.c: Likewise.
24492
24493 2010-11-13  Jim Meyering  <meyering@redhat.com>
24494
24495         tests: avoid test failure on Solaris 10 due to lack of PATH export
24496         * tests/test-update-copyright.sh: Don't forget to export PATH.
24497
24498         init.sh: ensure that IFS is defined, just in case...
24499         * tests/init.sh (setup_): Ensure that IFS is defined,
24500         so that saving and restoring it works as expected.  This
24501         appears to be useful at least for an old version of dash
24502         from a long time ago (RH 6).  See here for details:
24503         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24504
24505         maint.mk: tighten "test a == b" check
24506         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24507         test to files that contain something like #!/bin/sh.
24508         Without this, coreutils would get two false positives in
24509         the comments of C source files.
24510
24511 2010-11-12  Eric Blake  <eblake@redhat.com>
24512
24513         bootstrap: fix typo in previous attempt
24514         * build-aux/bootstrap (buildreq): Correct the grouping.
24515         Reported by Paul Eggert.
24516
24517         maintainer-makefile: prohibit test x == x
24518         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24519         Based on a report by Matthias Bolte.
24520
24521         bootstrap: allow FreeBSD gzip
24522         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24523         which has no '.' and goes to stderr.
24524         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24525         Reported by Matthias Bolte.
24526
24527         maintainer-makefile: check for i18n setup
24528         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24529         will likely work.
24530
24531 2010-11-12  Bruno Haible  <bruno@clisp.org>
24532
24533         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24534         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24535         * lib/nanosleep.c (nanosleep): Likewise.
24536
24537 2010-11-11  Bruno Haible  <bruno@clisp.org>
24538
24539         fcntl-h: Fix for use of C++ on glibc systems.
24540         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24541         also on glibc systems in C++ mode.
24542         Reported by Gary V. Vaughan <gary@gnu.org>.
24543
24544 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24545
24546         mknod: avoid false failure with dash
24547         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24548
24549 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24550
24551         unlink: Fix "is it should" typo in diagnostic.
24552         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24553         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24554
24555 2010-11-11  Bruno Haible  <bruno@clisp.org>
24556
24557         Tests for module 'strerror_r-posix'.
24558         * modules/strerror_r-posix-tests: New file.
24559         * tests/test-strerror_r.c: New file.
24560         * tests/test-string-c++.cc: Check the signature of strerror_r.
24561
24562         New module 'strerror_r-posix'.
24563         * lib/string.in.h (strerror_r): New declaration.
24564         * lib/strerror_r.c: New file.
24565         * m4/strerror_r.m4: New file.
24566         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24567         of strerror_r.
24568         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24569         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24570         * modules/strerror_r-posix: New file.
24571         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24572         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24573         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24574         portability problems.
24575
24576 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24577
24578         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24579         line is also considered for output. Quoted function name in shell
24580         command, so temporary files for functions like MyClass::operator()
24581         are removed correctly without errors.
24582
24583 2010-11-09  Bruno Haible  <bruno@clisp.org>
24584
24585         * doc/posix-functions/strerror.texi: List more failing platforms.
24586
24587         * doc/posix-functions/strerror.texi: Add a comment.
24588
24589 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24590
24591         fdopendir: fix bug on MacOS X when low on file descriptors
24592
24593         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24594         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24595         All callers changed.
24596         (fdopendir): Invoke save_cwd at the top level, not after using
24597         multiple dup() calls to use up file descriptors.  Then retry
24598         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24599         less than the maximum number of open file descriptors, because
24600         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24601         on Mac OS X 10.6.4 for tar 1.24
24602         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24603         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24604         and for tar 1.25
24605         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24606
24607 2010-11-07  Bruno Haible  <bruno@clisp.org>
24608
24609         vasnprintf: Support I flag on glibc systems.
24610         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24611         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24612         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24613         snprintf function.
24614         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24615         glibc systems.
24616         * tests/test-vasnprintf-posix3.c: New file.
24617         * modules/vasnprintf-posix-tests (Files): Add it.
24618         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24619
24620 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24621
24622         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24623         * MODULES.html.sh: For compiler warnings, use name
24624         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24625
24626 2010-11-05  Eric Blake  <eblake@redhat.com>
24627
24628         ceil, floor: avoid spurious failure with icc
24629         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24630         [denormals-as-zero] when optimizing without -mieee-fp option.
24631         * tests/test-floorf2.c (floorf_reference): Likewise.
24632         * tests/test-ceilf1.c (dummy): New function.
24633         (main): Use it to outsmart icc's optimization.
24634         * tests/test-floorf1.c (dummy, main): Likewise.
24635
24636         tests: require working signbit
24637         * modules/ceilf-tests (Depends-on): Add signbit.
24638         * modules/ceill-tests (Depends-on): Likewise.
24639         * modules/floorf-tests (Depends-on): Likewise.
24640         * modules/floorl-tests (Depends-on): Likewise.
24641         * modules/round-tests (Depends-on): Likewise.
24642         * modules/roundf-tests (Depends-on): Likewise.
24643         * modules/roundl-tests (Depends-on): Likewise.
24644         * modules/trunc-tests (Depends-on): Likewise.
24645         * modules/truncf-tests (Depends-on): Likewise.
24646         * modules/truncl-tests (Depends-on): Likewise.
24647
24648         strtod: work around icc bug
24649         * lib/strtod.c (minus_zero): Define to working value.
24650         (strtod): Use it to avoid icc bug.
24651
24652         copysign: enhance tests
24653         * modules/copysign-tests (Files): Add minus-zero.h.
24654         * tests/test-copysign.c (main): Also test zeros.
24655
24656 2010-11-04  Eric Blake  <eblake@redhat.com>
24657
24658         ceil, floor, round, trunc: enhance tests of -0
24659         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24660         * tests/test-ceill.c (main): Likewise.
24661         * tests/test-floorf1.c (main): Likewise.
24662         * tests/test-floorl.c (main): Likewise.
24663         * tests/test-round1.c (main): Likewise.
24664         * tests/test-roundf1.c (main): Likewise.
24665         * tests/test-roundl.c (main): Likewise.
24666         * tests/test-trunc1.c (main): Likewise.
24667         * tests/test-truncf1.c (main): Likewise.
24668         * tests/test-truncl.c (main): Likewise.
24669
24670 2010-11-04  Eric Blake  <eblake@redhat.com>
24671
24672         frexp, tests: work around ICC bug with -zero
24673         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24674         works with more compilers.
24675         * tests/minus-zero.h: New file.
24676         * modules/ceilf-tests (Files): Include it.
24677         * modules/ceill-tests (Files): Likewise.
24678         * modules/floorf-tests (Files): Likewise.
24679         * modules/floorl-tests (Files): Likewise.
24680         * modules/frexp-nolibm-tests (Files): Likewise.
24681         * modules/frexp-tests (Files): Likewise.
24682         * modules/frexpl-nolibm-tests (Files): Likewise.
24683         * modules/frexpl-tests (Files): Likewise.
24684         * modules/isnan-tests (Files): Likewise.
24685         * modules/isnand-nolibm-tests (Files): Likewise.
24686         * modules/isnand-tests (Files): Likewise.
24687         * modules/isnanf-nolibm-tests (Files): Likewise.
24688         * modules/isnanf-tests (Files): Likewise.
24689         * modules/isnanl-nolibm-tests (Files): Likewise.
24690         * modules/isnanl-tests (Files): Likewise.
24691         * modules/round-tests (Files): Likewise.
24692         * modules/roundf-tests (Files): Likewise.
24693         * modules/roundl-tests (Files): Likewise.
24694         * modules/ldexpl-tests (Files): Likewise.
24695         * modules/signbit-tests (Files): Likewise.
24696         * modules/snprintf-posix-tests (Files): Likewise.
24697         * modules/sprintf-posix-tests (Files): Likewise.
24698         * modules/strtod-tests (Files): Likewise.
24699         * modules/trunc-tests (Files): Likewise.
24700         * modules/truncf-tests (Files): Likewise.
24701         * modules/truncl-tests (Files): Likewise.
24702         * modules/vsnprintf-posix-tests (Files): Likewise.
24703         * modules/vsprintf-posix-tests (Files): Likewise.
24704         * modules/vasnprintf-posix-tests (Files): Likewise.
24705         * modules/vasprintf-posix-tests (Files): Likewise.
24706         * tests/test-ceilf1.c (main): Use it.
24707         * tests/test-ceill.c (main): Likewise.
24708         * tests/test-floorf1.c (main): Likewise.
24709         * tests/test-floorl.c (main): Likewise.
24710         * tests/test-frexp.c (main): Likewise.
24711         * tests/test-frexpl.c (main): Likewise.
24712         * tests/test-isnan.c (main): Likewise.
24713         * tests/test-isnand.h (main): Likewise.
24714         * tests/test-isnanf.h (main): Likewise.
24715         * tests/test-isnanl.h (main): Likewise.
24716         * tests/test-ldexpl.c (main): Likewise.
24717         * tests/test-round.c (main): Likewise.
24718         * tests/test-roundf.c (main): Likewise.
24719         * tests/test-roundl.c (main): Likewise.
24720         * tests/test-signbit.c (test_signbitf, test_signbitd)
24721         (test_signbitl): Likewise.
24722         * tests/test-snprintf-posix.h (test_function): Likewise.
24723         * tests/test-sprintf-posix.h (test_function): Likewise.
24724         * tests/test-strtod.c (main): Likewise.
24725         * tests/test-trunc1.c (main): Likewise.
24726         * tests/test-truncf1.c (main): Likewise.
24727         * tests/test-truncl.c (main): Likewise.
24728
24729         isnanl: work around icc bug
24730         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24731
24732 2010-11-03  Eric Blake  <eblake@redhat.com>
24733
24734         tests: fix compiler warnings
24735         * tests/test-getopt.h (test_getopt): Fix condition.
24736         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24737         * tests/test-pipe2.c (main): Likewise.
24738         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24739
24740         utimens: fix broken m4 test
24741         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24742
24743 2010-10-28  Bruno Haible  <bruno@clisp.org>
24744
24745         posix_spawn*, getdtablesize: Relax license.
24746         * modules/posix_spawn (License): Change to LGPLv2+.
24747         * modules/posix_spawnp (License): Likewise.
24748         * modules/posix_spawn-internal (License): Likewise.
24749         * modules/posix_spawnattr_init (License): Likewise.
24750         * modules/posix_spawnattr_getflags (License): Likewise.
24751         * modules/posix_spawnattr_setflags (License): Likewise.
24752         * modules/posix_spawnattr_getpgroup (License): Likewise.
24753         * modules/posix_spawnattr_setpgroup (License): Likewise.
24754         * modules/posix_spawnattr_getschedparam (License): Likewise.
24755         * modules/posix_spawnattr_setschedparam (License): Likewise.
24756         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24757         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24758         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24759         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24760         * modules/posix_spawnattr_getsigmask (License): Likewise.
24761         * modules/posix_spawnattr_setsigmask (License): Likewise.
24762         * modules/posix_spawnattr_destroy (License): Likewise.
24763         * modules/posix_spawn_file_actions_init (License): Likewise.
24764         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24765         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24766         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24767         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24768         * modules/getdtablesize (License): Likewise.
24769         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24770
24771 2010-10-26  Bruno Haible  <bruno@clisp.org>
24772
24773         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24774         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24775         Cygwin and mingw.
24776         Suggested by Eric Blake.
24777
24778 2010-10-26  Bruno Haible  <bruno@clisp.org>
24779
24780         stdio: Work around compilation error due to renameat() on Solaris 10.
24781         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24782         * lib/renameat.c: Don't include <unistd.h> here.
24783         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24784         Reported by Paul Eggert and Eric Blake.
24785
24786 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24787
24788         renameat: port to Solaris 10, which declares renameat in unistd.h
24789
24790         * lib/renameat.c: Include unistd.h before stdio.h, because
24791         Solaris 10 declares renameat in unistd.h.  Problem encountered
24792         when building GNU tar 1.24 on Solaris 10.
24793
24794 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24795
24796         fdopendir: fix C89 compilation
24797         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24798         compilers.
24799
24800 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24801
24802         inttostr: simplify by removing unnecessary redundancy
24803         * lib/anytostr.c: Don't include verify.h.
24804         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24805         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24806         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24807         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24808         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24809         Likewise.
24810         * modules/inttostr (Depends-on): Remove 'verify'.
24811
24812 2010-10-23  Bruno Haible  <bruno@clisp.org>
24813
24814         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24815         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24816         Reported by Eric Blake.
24817
24818 2010-10-23  Bruno Haible  <bruno@clisp.org>
24819
24820         Tests: Fix LOCALE_JA on MirBSD 10.
24821         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24822         to an UTF-8 locale.
24823         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24824         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24825         Reported by Eric Blake.
24826
24827 2010-10-21  Bruno Haible  <bruno@clisp.org>
24828
24829         nl_langinfo test: Avoid test failure on NetBSD 5.
24830         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24831         Reported by Eric Blake.
24832
24833 2010-10-21  Eric Blake  <eblake@redhat.com>
24834
24835         c-stack: work around libsigsegv 2.8 bug
24836         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24837         overflow on at least PowerPC64.
24838
24839 2010-10-17  Bruno Haible  <bruno@clisp.org>
24840
24841         userspec: Drop redundant file.
24842         * modules/userspec (Files): Remove lib/inttostr.h.
24843
24844 2010-10-17  Bruno Haible  <bruno@clisp.org>
24845
24846         nl_langinfo tests: Silence some warnings.
24847         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24848         Reported by Jim Meyering.
24849
24850 2010-10-17  Bruno Haible  <bruno@clisp.org>
24851
24852         Make use of GCC's attribute __alloc_size__.
24853         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24854         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24855         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24856         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24857         __alloc_size__.
24858         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24859         Suggested by Jim Meyering.
24860
24861 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24862
24863         bootstrap: anchor .gitignore entries.
24864         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24865         with...
24866         (insert_vc_ignore): ... this new function, which prepends `/' to
24867         all .gitignore entries before passing them to
24868         insert_sorted_if_absent.
24869
24870 2010-10-16  Bruno Haible  <bruno@clisp.org>
24871
24872         nextafter: Fix configure check.
24873         * modules/nextafter (configure.ac): Correct expected prototype.
24874
24875 2010-10-16  Bruno Haible  <bruno@clisp.org>
24876
24877         termios: Update documentation.
24878         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24879
24880 2010-10-16  Bruno Haible  <bruno@clisp.org>
24881
24882         tests: Make them compile with TinyCC.
24883         * tests/test-strstr.c (main): Remove parentheses around array
24884         initializer.
24885
24886 2010-10-15  Eric Blake  <eblake@redhat.com>
24887
24888         ignore-value: make header idempotent
24889         * lib/ignore-value.h: Add double-inclusion guards.
24890         Reported by Stefan Berger.
24891
24892 2010-10-15  Jim Meyering  <meyering@redhat.com>
24893
24894         GNUmakefile: handle "stable" target, not "major"
24895         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24896         lists in maint.mk and announce-gen.  Without this, "make stable"
24897         would fail to ensure that $(VERSION) is up to date.
24898
24899 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24900
24901         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24902         & co.
24903
24904 2010-10-14  Bruno Haible  <bruno@clisp.org>
24905
24906         vasnprintf: Don't set errno to 0.
24907         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24908         block that sets it to 0.
24909         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24910
24911 2010-10-14  Bruno Haible  <bruno@clisp.org>
24912
24913         socketlib: Fix.
24914         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24915         gl_PREREQ_SYS_H_WINSOCK2.
24916         Reported by Ian Beckwith <ianb@erislabs.net>.
24917
24918 2010-10-13  Jim Meyering  <meyering@redhat.com>
24919
24920         test-select-stdin.c: avoid warn_unused_result warnings
24921         * tests/test-select-stdin.c: Include "macros.h".
24922         ASSERT that read and fflush succeed.
24923
24924 2010-10-13  Jim Meyering  <meyering@redhat.com>
24925
24926         git-version-gen: do require git-VC'd files in cwd
24927         * build-aux/git-version-gen: Reject a git version string
24928         if there are no commits associated with the current directory.
24929         This avoids an unlikely false-positive (unrelated dir whose parent
24930         repository also contains a tag matching v*), as pointed out
24931         by Giuseppe Scrivano in
24932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24933
24934 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24935
24936         argv-iter: omit nonconforming declaration
24937         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24938         enum arg_iter_err declaration, which doesn't conform to C99.
24939         Solaris 10 cc warns about this.
24940
24941 2010-10-13  Eric Blake  <eblake@redhat.com>
24942
24943         termios: fix compilation on mingw
24944         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24945         (gl_TERMIOS_H): Adjust it on mingw.
24946         * modules/termios (Makefile.am): Substitute new key.
24947         * lib/termios.in.h (includes): Make include_next conditional.
24948         * doc/posix-headers/termios.texi (termios.h): Update
24949         documentation.
24950         Reported by Daniel P. Berrange.
24951
24952 2010-10-13  Jim Meyering  <meyering@redhat.com>
24953
24954         git-version-gen: don't require that .git/ be in the current dir
24955         * build-aux/git-version-gen: Adjust this script so that it works
24956         when run from any working directory beneath the top-level .git/-
24957         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24959
24960         test-select: avoid warn_unused_result warnings
24961         * tests/test-select.c: Include "macros.h".
24962         ASSERT that each call to read, write, and pipe succeeds.
24963         While not technically required, also check each "close".
24964         * modules/select-tests (Files): Add tests/macros.h.
24965
24966         test-symlinkat: remove declaration of unused local
24967         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24968
24969         test-inttostr: avoid shadowing warnings
24970         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24971         and use malloc rather than the stack for the same reason as
24972         mentioned in the comment justifying the other allocation.
24973
24974 2010-10-11  Bruno Haible  <bruno@clisp.org>
24975
24976         stdlib: Allow multiple gnulib generated replacements to coexist.
24977         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24978         Reported by Sam Steingold <sds@gnu.org>.
24979
24980 2010-10-11  Jim Meyering  <meyering@redhat.com>
24981
24982         fix a documentation typo
24983         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24984
24985 2010-10-11  Eric Blake  <eblake@redhat.com>
24986
24987         futimens: work around Solaris 11 bug
24988         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24989         * tests/test-futimens.h (test_futimens): Enhance, rather than
24990         weaken test.
24991         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24992
24993 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24994
24995         Indentation.
24996         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24997         higher-level operators more to the left.
24998
24999 2010-10-11  Jim Meyering  <meyering@redhat.com>
25000
25001         test-futimens: avoid unwarranted test failure on Solaris 5.11
25002         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25003         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25004         because it tries to dereference the NULL name argument.
25005
25006 2010-10-11  Bruno Haible  <bruno@clisp.org>
25007
25008         Indentation.
25009         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25010         indentation.
25011
25012 2010-10-11  Jim Meyering  <meyering@redhat.com>
25013
25014         spawn.in.h: make indentation consistent with parentheses
25015         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25016         Make indentation consistent with parentheses.
25017
25018 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25019
25020         Fix mismatched parens in previous commit
25021         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25022         parens.
25023
25024 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25025
25026         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25027
25028         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25029         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25030         * lib/malloca.c: Include "verify.h".
25031         (verify1): Remove, replacing with a verify call.
25032         * lib/relocwrapper.c (verify1): Likewise.
25033         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25034         Likewise.
25035         * modules/malloca (Depends-on): Add 'verify'.
25036         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25037         * modules/vasnprintf (Depends-on): Add 'verify'.
25038         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25039         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25040         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25041         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25042         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25043         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25044         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25045
25046         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25047
25048         Formerly the style was sometimes 2*X - 1, because the C standard
25049         was wrongly thought to disallow ?: in integral constant expressions.
25050         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25051         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25052         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25053         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25054         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25055         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25056         verify that time_t cannot be floating.
25057
25058 2010-10-08  Eric Blake  <eblake@redhat.com>
25059
25060         time: enforce recent POSIX ruling that time_t is integral
25061         * lib/time.in.h (__time_t_must_be_integral): Detect any
25062         problematic systems, allowing the rest of gnulib to assume POSIX.
25063
25064 2010-10-08  Jim Meyering  <meyering@redhat.com>
25065
25066         fdopendir: fix a bug on systems lacking openat and /proc support
25067         OpenBSD 4.7 is one such system.  The most noticeable effect was
25068         failure of any application making nontrivial use of fts: rm, du,
25069         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25070           ./rm: traversal failed: `a': Bad file descriptor
25071         Debugging that, you see that even though FD 6 was closed just
25072         prior to the opendir call in fd_clone_opendir, its resulting
25073         dir->dd_fd was 8, rather than the expected value of 6:
25074
25075         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25076         93                close (fd);
25077         (gdb) n
25078         94                dir = fd_clone_opendir (dupfd);
25079         (gdb) n
25080         95                saved_errno = errno;
25081         (gdb) p dir->dd_fd
25082         $11 = 8
25083
25084         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25085         The problem is that on OpenBSD, fd_clone_opendir has to resort
25086         to using the old-style save/restore CWD mechanism, due to its
25087         lack of openat/proc support, and *that* would steal the FD (6)
25088         that opendir was supposed to use.
25089
25090         The fix is to squirrel away the desired FD so that save_cwd uses a
25091         different one, and then free the dest FD right before calling opendir.
25092         That guarantees opendir will use the required file descriptor.
25093
25094         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25095
25096 2010-10-08  Bruno Haible  <bruno@clisp.org>
25097
25098         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25099         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25100
25101 2010-10-08  Bruno Haible  <bruno@clisp.org>
25102
25103         nanosleep: Make replacement POSIX compliant.
25104         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25105         is out of range.
25106         Reported by Jim Meyering.
25107
25108 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25109
25110         bootstrap: add hook for altering gnulib.mk, for Bison
25111         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25112         the Bison bootstrapping process can rewrite file names and variables
25113         in this file before later parts of 'bootstrap' use the file.
25114         Bison wants to include lib/gnulib.mk from the top-level makefile,
25115         so it needs the file names in this file to be relative to the top
25116         level, not relative to lib; plus it needs variable names to be
25117         rewritten.
25118         (slurp): Use the new function.
25119
25120         bootstrap: reformat for readability
25121         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25122
25123 2010-10-08  Eric Blake  <eblake@redhat.com>
25124
25125         docs: update cygwin progress
25126         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25127         1.7.7.
25128         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25129         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25130         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25131         * doc/posix-functions/carg.texi (carg): Likewise.
25132         * doc/posix-functions/cargf.texi (cargf): Likewise.
25133         * doc/posix-functions/casin.texi (casin): Likewise.
25134         * doc/posix-functions/casinf.texi (casinf): Likewise.
25135         * doc/posix-functions/casinh.texi (casinh): Likewise.
25136         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25137         * doc/posix-functions/catan.texi (catan): Likewise.
25138         * doc/posix-functions/catanf.texi (catanf): Likewise.
25139         * doc/posix-functions/catanh.texi (catanh): Likewise.
25140         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25141         * doc/posix-functions/ccos.texi (ccos): Likewise.
25142         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25143         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25144         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25145         * doc/posix-functions/cexp.texi (cexp): Likewise.
25146         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25147         * doc/posix-functions/cimag.texi (cimag): Likewise.
25148         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25149         * doc/posix-functions/clog.texi (clog): Likewise.
25150         * doc/posix-functions/clogf.texi (clogf): Likewise.
25151         * doc/posix-functions/conj.texi (conj): Likewise.
25152         * doc/posix-functions/conjf.texi (conjf): Likewise.
25153         * doc/posix-functions/cpow.texi (cpow): Likewise.
25154         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25155         * doc/posix-functions/cproj.texi (cproj): Likewise.
25156         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25157         * doc/posix-functions/creal.texi (creal): Likewise.
25158         * doc/posix-functions/crealf.texi (crealf): Likewise.
25159         * doc/posix-functions/csin.texi (csin): Likewise.
25160         * doc/posix-functions/csinf.texi (csinf): Likewise.
25161         * doc/posix-functions/csinh.texi (csinh): Likewise.
25162         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25163         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25164         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25165         * doc/posix-functions/ctan.texi (ctan): Likewise.
25166         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25167         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25168         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25169         * doc/posix-headers/complex.texi (complex.h): Likewise.
25170
25171 2010-10-07  Jim Meyering  <meyering@redhat.com>
25172
25173         parse-datetime: avoid compilation failure on OpenBSD 4.7
25174         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25175         This works around a compilation failure on OpenBSD 4.7:
25176         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25177
25178 2010-10-07  Eric Blake  <eblake@redhat.com>
25179
25180         docs: update cygwin progress
25181         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25182         1.7.6.
25183         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25184         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25185         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25186         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25187         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25188         Likewise.
25189         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25190         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25191         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25192         Likewise.
25193         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25194         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25195         Likewise.
25196         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25197         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25198         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25199         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25200         Likewise.
25201         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25202         Likewise.
25203         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25204
25205         docs: update parse-datetime history
25206         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25207         documentation of this function's history and alternatives.
25208
25209         cygwin: use more robust version check
25210         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25211         exclude an eventual cygwin 1.9.1.
25212         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25214         (gl_FUNC_STRCASESTR): Likewise.
25215         Reported by Bruno Haible.
25216
25217 2010-10-06  Bruno Haible  <bruno@clisp.org>
25218
25219         string, sys_select: Avoid #including large headers unless necessary.
25220         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25221         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25222         OSF/1, BeOS, Haiku.
25223         Reported by Jim Meyering.
25224
25225 2010-10-05  Eric Blake  <eblake@redhat.com>
25226
25227         memmem, strstr, strcasestr: fix bug with long periodic needle
25228         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25229         periodic needle having false positive.
25230         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25231         and cygwin 1.7.7.
25232         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25234         (gl_FUNC_STRCASESTR): Likewise.
25235         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25236         * tests/test-memmem.c (main): Expose the bug.
25237         * tests/test-strcasestr.c (main): Likewise.
25238         * tests/test-strstr.c (main): Likewise.
25239         * tests/test-c-strcasestr.c (main): Likewise.
25240         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25241         * doc/posix-functions/strstr.texi (strstr): Likewise.
25242         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25243         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25244
25245 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25246
25247         parse-datetime: do some more renaming
25248         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25249         parse_datetime, not get_date.  Mention the renaming.
25250         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25251         in comments.
25252         * m4/bison.m4: Likewise.
25253
25254 2010-10-05  Eric Blake  <eblake@redhat.com>
25255
25256         parse-datetime: better name than get_date
25257         * NEWS: Reword the deprecation notice.
25258         * modules/get_date: Rename to modules/parse-datetime.
25259         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25260         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25261         * lib/get_date.y: Rename to lib/parse-datetime.y.
25262         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25263         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25264         * doc/getdate.texi: Provide fallback wrapper.
25265         * lib/getdate.h: Move guts, and wrap...
25266         * lib/parse-datetime.h: ...new file.
25267         * lib/parse-datetime.y (get_date): Rename...
25268         (parse_datetime): ...to this.
25269         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25270         (gl_PARSE_DATETIME): ...to this.
25271         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25272         documentation.
25273         * modules/getdate (Files): Provide fallback docs and header.
25274         (Notice, Depends-on): Update references.
25275         * tests/test-parse-datetime.c: Likewise.
25276         * DEPENDENCIES: Likewise.
25277         * MODULES.html.sh (Date and time <time.h>): Likewise.
25278         * doc/parse-datetime.texi (Date input formats)
25279         (Authors of parse_datetime): Likewise.
25280         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25281         (Include): Likewise.
25282         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25283         * gnulib-tool: Likewise.
25284         * m4/bison.m4 (gl_BISON): Likewise.
25285         Suggested by Bruno Haible.
25286
25287 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25288
25289         more ports to Solaris tr, which needs [] around ranges
25290         * gnulib-tool: Solaris tr needs [] around ranges.
25291         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25292         * tests/test-pipe-filter-gi1.c (main): Likewise.
25293         * tests/test-pipe-filter-ii1.c (main): Likewise.
25294
25295 2010-10-05  Eric Blake  <eblake@redhat.com>
25296
25297         bootstrap: fix Solaris regression
25298         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25299         around ranges.
25300         Reported by Pádraig Brady.
25301
25302         bootstrap: work with pkg-config
25303         * build-aux/bootstrap (check_versions): Also transliterate - in
25304         prerequisite name.
25305         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25306         prerequisites that were already found, to avoid confusion.
25307         Reported by Justin Clift.
25308
25309         faccessat: remove unused wrappers
25310         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25311         presence of these wrappers dragged in -lgen on Solaris.
25312         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25313
25314 2010-10-05  Jim Meyering  <meyering@redhat.com>
25315
25316         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25317         * Makefile (sc_pragma_columns): New syntax-check rule.
25318
25319 2010-10-04  Bruno Haible  <bruno@clisp.org>
25320
25321         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25322         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25323         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25324         Reported by Bruce Korb and Eric Blake.
25325
25326 2010-10-04  Bruno Haible  <bruno@clisp.org>
25327
25328         threadlib: Make option --with-libpth-prefix work.
25329         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25330         use $LIBPTH, not just -lpth.
25331
25332 2010-10-04  Bruno Haible  <bruno@clisp.org>
25333
25334         Avoid line length limitation from HP NonStop system header files.
25335         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25336         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25337         * lib/ctype.in.h: Likewise.
25338         * lib/dirent.in.h: Likewise.
25339         * lib/errno.in.h: Likewise.
25340         * lib/fcntl.in.h: Likewise.
25341         * lib/float.in.h: Likewise.
25342         * lib/getopt.in.h: Likewise.
25343         * lib/iconv.in.h: Likewise.
25344         * lib/inttypes.in.h: Likewise.
25345         * lib/langinfo.in.h: Likewise.
25346         * lib/locale.in.h: Likewise.
25347         * lib/math.in.h: Likewise.
25348         * lib/netdb.in.h: Likewise.
25349         * lib/netinet_in.in.h: Likewise.
25350         * lib/poll.in.h: Likewise.
25351         * lib/pthread.in.h: Likewise.
25352         * lib/pty.in.h: Likewise.
25353         * lib/sched.in.h: Likewise.
25354         * lib/se-selinux.in.h: Likewise.
25355         * lib/search.in.h: Likewise.
25356         * lib/signal.in.h: Likewise.
25357         * lib/spawn.in.h: Likewise.
25358         * lib/stdarg.in.h: Likewise.
25359         * lib/stddef.in.h: Likewise.
25360         * lib/stdint.in.h: Likewise.
25361         * lib/stdio.in.h: Likewise.
25362         * lib/stdlib.in.h: Likewise.
25363         * lib/string.in.h: Likewise.
25364         * lib/strings.in.h: Likewise.
25365         * lib/sys_file.in.h: Likewise.
25366         * lib/sys_ioctl.in.h: Likewise.
25367         * lib/sys_select.in.h: Likewise.
25368         * lib/sys_socket.in.h: Likewise.
25369         * lib/sys_stat.in.h: Likewise.
25370         * lib/sys_time.in.h: Likewise.
25371         * lib/sys_times.in.h: Likewise.
25372         * lib/sys_utsname.in.h: Likewise.
25373         * lib/sys_wait.in.h: Likewise.
25374         * lib/sysexits.in.h: Likewise.
25375         * lib/termios.in.h: Likewise.
25376         * lib/time.in.h: Likewise.
25377         * lib/unistd.in.h: Likewise.
25378         * lib/wchar.in.h: Likewise.
25379         * lib/wctype.in.h: Likewise.
25380         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25381         * modules/ctype (Makefile.am): Likewise.
25382         * modules/dirent (Makefile.am): Likewise.
25383         * modules/errno (Makefile.am): Likewise.
25384         * modules/fcntl-h (Makefile.am): Likewise.
25385         * modules/float (Makefile.am): Likewise.
25386         * modules/getopt-posix (Makefile.am): Likewise.
25387         * modules/iconv-h (Makefile.am): Likewise.
25388         * modules/inttypes (Makefile.am): Likewise.
25389         * modules/langinfo (Makefile.am): Likewise.
25390         * modules/locale (Makefile.am): Likewise.
25391         * modules/math (Makefile.am): Likewise.
25392         * modules/netdb (Makefile.am): Likewise.
25393         * modules/netinet_in (Makefile.am): Likewise.
25394         * modules/poll-h (Makefile.am): Likewise.
25395         * modules/pthread (Makefile.am): Likewise.
25396         * modules/pty (Makefile.am): Likewise.
25397         * modules/sched (Makefile.am): Likewise.
25398         * modules/search (Makefile.am): Likewise.
25399         * modules/selinux-h (Makefile.am): Likewise.
25400         * modules/signal (Makefile.am): Likewise.
25401         * modules/spawn (Makefile.am): Likewise.
25402         * modules/stdarg (Makefile.am): Likewise.
25403         * modules/stddef (Makefile.am): Likewise.
25404         * modules/stdint (Makefile.am): Likewise.
25405         * modules/stdio (Makefile.am): Likewise.
25406         * modules/stdlib (Makefile.am): Likewise.
25407         * modules/string (Makefile.am): Likewise.
25408         * modules/strings (Makefile.am): Likewise.
25409         * modules/sys_file (Makefile.am): Likewise.
25410         * modules/sys_ioctl (Makefile.am): Likewise.
25411         * modules/sys_select (Makefile.am): Likewise.
25412         * modules/sys_socket (Makefile.am): Likewise.
25413         * modules/sys_stat (Makefile.am): Likewise.
25414         * modules/sys_time (Makefile.am): Likewise.
25415         * modules/sys_times (Makefile.am): Likewise.
25416         * modules/sys_utsname (Makefile.am): Likewise.
25417         * modules/sys_wait (Makefile.am): Likewise.
25418         * modules/sysexits (Makefile.am): Likewise.
25419         * modules/termios (Makefile.am): Likewise.
25420         * modules/time (Makefile.am): Likewise.
25421         * modules/unistd (Makefile.am): Likewise.
25422         * modules/wchar (Makefile.am): Likewise.
25423         * modules/wctype (Makefile.am): Likewise.
25424
25425 2010-10-04  Bruno Haible  <bruno@clisp.org>
25426
25427         read-file tests: Avoid a test failure on NonStop Kernel.
25428         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25429         a regular file.
25430         Reported by Joachim Schmitz <schmitz@hp.com>.
25431
25432 2010-10-03  Bruno Haible  <bruno@clisp.org>
25433
25434         gnulib-tool: Fixes for --create-testdir with --libtool.
25435         * gnulib-tool (func_get_automake_snippet): Don't augment
25436         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25437         an executable.
25438         (func_create_testdir): Handle module 'alloca' like func_import.
25439         Reported by Bruce Korb <bruce.korb@gmail.com>.
25440
25441 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25442
25443         Avoid some lines longer than 80 characters.
25444         * lib/stdint.in.h: Break long comment lines.
25445         * lib/math.in.h: Likewise.
25446         (_GL_NUM_UINT_WORDS): New macro, for readability.
25447         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25448         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25449         * lib/stdlib.in.h: Likewise.
25450         * lib/spawn.in.h: Likewise.
25451         * lib/sys_socket.in.h: Update an URL.
25452         * lib/sys_stat.in.h: Break long line.
25453
25454 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25455
25456         Improve pmccabe2html.
25457         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25458         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25459         when the sources change. Remove the line in the HTML about "Used
25460         ranges" (which implied that there might be other unused ranges),
25461         rename "Resume" to "Summary" (easier to understand for more users).
25462         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25463         styles, and some unnecessary blank lines.
25464
25465 2010-10-03  Bruno Haible  <bruno@clisp.org>
25466             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25467
25468         acl: Add support for ACLs on NonStop Kernel.
25469         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25470         Check whether the function aclsort() exists.
25471         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25472         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25473         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25474         (acl_nontrivial [HAVE_ACLSORT]: New function.
25475         (file_has_acl): Implement for NonStop Kernel.
25476         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25477         (qset_acl): Implement for NonStop Kernel.
25478         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25479         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25480         (main): Implement for NonStop Kernel.
25481         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25482         Kernel. Handle this flavor.
25483         * tests/test-set-mode-acl.sh: Likewise.
25484         * tests/test-copy-acl.sh: Likewise.
25485         * tests/test-copy-file.sh: Likewise.
25486
25487 2010-10-03  Bruno Haible  <bruno@clisp.org>
25488
25489         Info about ACLs on NonStop Kernel.
25490         * doc/acl-resources.txt: Add info about NonStop Kernel.
25491         References by Joachim Schmitz <schmitz@hp.com>.
25492
25493 2010-10-02  Bruno Haible  <bruno@clisp.org>
25494
25495         Define missing EDQUOT on NonStop Kernel.
25496         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25497         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25498         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25499         missing.
25500         * doc/posix-headers/errno.texi: Mention the NSK bug.
25501         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25502         Reported by Joachim Schmitz <schmitz@hp.com>.
25503
25504 2010-10-02  Bruno Haible  <bruno@clisp.org>
25505
25506         Update doc for POSIX:2008.
25507         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25508         Update URL of POSIX specification.
25509
25510 2010-10-02  Bruno Haible  <bruno@clisp.org>
25511
25512         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25513         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25514         from gnulib, not from Automake.
25515
25516 2010-10-02  Bruno Haible  <bruno@clisp.org>
25517
25518         New module 'system-posix'.
25519         * modules/system-posix: New file.
25520         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25521         module is present.
25522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25523         GNULIB_SYSTEM_POSIX.
25524         * modules/stdlib (Depends-on): Remove sys_wait.
25525         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25526         * doc/posix-functions/system.texi: Mention the new module.
25527         * doc/posix-headers/stdlib.texi: Likewise.
25528         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25529         define test_sys_wait_macros to a no-op.
25530         Reported by Sam Steingold <sds@gnu.org>.
25531
25532 2010-09-30  Bruno Haible  <bruno@clisp.org>
25533
25534         More renaming from 'getdate' to 'get_date'.
25535         * doc/get_date.texi: Renamed from doc/getdate.texi.
25536         * modules/get_date (Files): Update.
25537         * MODULES.html.sh (Date and time <time.h>): Update.
25538         * DEPENDENCIES: Update.
25539         * gnulib-tool: Update comment.
25540         * m4/bison.m4 (gl_BISON): Likewise.
25541         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25542
25543 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25544
25545         bootstrap: support ACLOCAL_FLAGS during aclocal
25546         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25547         can add additional -I dir for third-party .m4 files.
25548
25549 2010-09-30  Eric Blake  <eblake@redhat.com>
25550
25551         bootstrap: use glibtoolize on MacOS
25552         * build-aux/bootstrap (check_versions): Convert libtool into
25553         libtoolize.
25554         (tool search): Move libtool check earlier, and look for
25555         glibtoolize for MacOS.
25556         (gnulib_tool_options): Auto-add --libtool when appropriate.
25557         Reported by Justin Clift.
25558
25559         poll: fix typo that broke test on MacOS
25560         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25561         Reported by Justin Clift.
25562
25563         getdate: rename to get_date
25564         Note: getdate.h is not renamed, to minimize client impact.
25565         * modules/getdate: Mark obsolete.  Move old contents...
25566         * modules/get_date: ...to new module name.
25567         * modules/getdate-tests: Move...
25568         * modules/get_date-tests: ...here.
25569         * m4/getdate.m4: Move...
25570         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25571         * lib/getdate.y: Move...
25572         * lib/get_date.y: ...here.
25573         * tests/test-getdate.c: Move...
25574         * tests/test-get_date.c: ...here.
25575         * doc/posix-functions/getdate.texi (getdate): Update name.
25576         * NEWS: Mention the change.
25577
25578 2010-09-29  Bruno Haible  <bruno@clisp.org>
25579
25580         Separate the module 'waitpid' from the module 'sys_wait'.
25581         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25582         present.
25583         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25584         gl_MODULE_INDICATOR_FOR_TESTS.
25585         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25586         * modules/sys_wait (Depends-on): Remove waitpid.
25587         (Makefile.am): Substitute GNULIB_WAITPID.
25588         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25589         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25590         signature only if the 'waitpid' module is present.
25591         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25592         * NEWS: Mention the change.
25593         * modules/grantpt (Depends-on): Add waitpid.
25594         * modules/wait-process (Depends-on): Likewise.
25595
25596 2010-09-29  Bruno Haible  <bruno@clisp.org>
25597
25598         More tests for module 'sys_wait'.
25599         * modules/sys_wait-c++-tests: New file.
25600         * tests/test-sys_wait-c++.cc: New file.
25601         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25602         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25603
25604 2010-09-29  Bruno Haible  <bruno@clisp.org>
25605
25606         New module 'waitpid'.
25607         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25608         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25609         Don't include <process.h>.
25610         (waitpid): Declare only, using modern idiom.
25611         * m4/waitpid.m4: New file.
25612         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25613         * modules/waitpid: New file.
25614         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25615         (Makefile.am): Update.
25616         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25617
25618 2010-09-28  Bruno Haible  <bruno@clisp.org>
25619
25620         poll: Assume ANSI C.
25621         * lib/poll.c (poll): Use an ANSI C declaration.
25622
25623 2010-09-28  Bruno Haible  <bruno@clisp.org>
25624
25625         poll-h: Create poll.h on all platforms.
25626         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25627         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25628         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25629         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25630         (gl_REPLACE_POLL_H): Don't set POLL_H.
25631         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25632         * modules/poll-h (Depends-on): Add include_next.
25633         (Makefile.am): Create poll.h unconditionally. Substitute also
25634         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25635
25636 2010-09-28  Bruno Haible  <bruno@clisp.org>
25637
25638         Tests for module 'poll-h'.
25639         * modules/poll-h-c++-tests: New file.
25640         * tests/test-poll-h-c++.cc: New file.
25641
25642         Tests for module 'poll-h'.
25643         * modules/poll-h-tests: New file.
25644         * tests/test-poll-h.c: New file.
25645
25646 2010-09-28  Bruno Haible  <bruno@clisp.org>
25647
25648         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25649         * modules/poll-h (Depends-on): Add 'extensions'.
25650
25651 2010-09-28  Bruno Haible  <bruno@clisp.org>
25652
25653         New module 'poll-h'.
25654         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25655         (poll): Use modern idiom.
25656         * modules/poll-h: New file.
25657         * modules/poll (Files): Remove lib/poll.in.h.
25658         (Depends-on): Add poll-h.
25659         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25660         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25661         * m4/poll_h.m4: New file.
25662         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25663         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25664         and invoke gl_REPLACE_POLL_H.
25665         * lib/poll.c: Use common idiom.
25666         * tests/test-poll.c: Likewise.
25667         * doc/posix-headers/poll.texi: Mention the poll-h module.
25668         Suggested by Eric Blake.
25669
25670 2010-09-26  Bruno Haible  <bruno@clisp.org>
25671
25672         sys_wait: Implement WSTOPSIG.
25673         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25674         Reported by Simon Josefsson.
25675
25676 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25677
25678         stdlib, sys_wait: Avoid compilation error on mingw.
25679         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25680
25681 2010-09-26  Bruno Haible  <bruno@clisp.org>
25682
25683         stdlib tests: Avoid code duplication.
25684         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25685         * modules/sys_wait-tests (Files): Likewise.
25686         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25687         * tests/test-stdlib.c: Include test-sys_wait.h.
25688         (main): Invoke test_sys_wait_macros.
25689         * tests/test-sys_wait.c: Include test-sys_wait.h.
25690         (main): Invoke test_sys_wait_macros.
25691
25692 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25693
25694         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25695         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25696         sure Windows sockets are working before calling getaddrinfo.
25697         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25698         * doc/gnulib.texi (Windows sockets): Fix typo.
25699
25700 2010-09-25  Bruno Haible  <bruno@clisp.org>
25701
25702         Tests for module 'regex-quote'.
25703         * modules/regex-quote-tests: New file.
25704         * tests/test-regex-quote.c: New file.
25705
25706         New module 'regex-quote'.
25707         * lib/regex-quote.h: New file.
25708         * lib/regex-quote.c: New file.
25709         * modules/regex-quote: New file.
25710         Suggested by Reuben Thomas <rrt@sc3d.org>.
25711
25712 2010-09-24  Bruno Haible  <bruno@clisp.org>
25713
25714         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25715         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25716
25717 2010-09-23  Bruno Haible  <bruno@clisp.org>
25718
25719         setenv: Relax license.
25720         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25721         Blake.
25722         Requested by Eric Blake.
25723
25724 2010-09-22  Bruno Haible  <bruno@clisp.org>
25725
25726         termios: Relax license.
25727         * modules/termios (License): Change to LGPLv2+.
25728         Requested by Eric Blake.
25729
25730 2010-09-22  Bruno Haible  <bruno@clisp.org>
25731
25732         threadlib: Allow the package to change the default to 'no'.
25733         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25734         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25735         Reported by Paul Eggert.
25736
25737 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25738             Bruno Haible  <bruno@clisp.org>
25739
25740         Fix endless loop in mbmemcasecoll.
25741         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25742         byte.
25743         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25744
25745 2010-09-22  Bruno Haible  <bruno@clisp.org>
25746
25747         Tests for module 'memcoll'.
25748         * modules/memcoll-tests: New file.
25749         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25750
25751         memcoll, xmemcoll: Clarify size vs. length.
25752         * modules/memcoll.c (memcoll0): Clarify specification.
25753         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25754         passed to collate_error.
25755
25756 2010-09-22  Bruno Haible  <bruno@clisp.org>
25757
25758         Tests for module 'memcasecmp'.
25759         * modules/memcasecmp-tests: New file.
25760         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25761
25762 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25763
25764         * lib/pthread.in.h: Add split double-inclusion guard, and include
25765         system <pthread.h> if there is one.  Use @@-style as in other
25766         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25767         pthread.h doesn't.
25768         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25769         (pthread_mutexattr_settype, pthread_mutex_trylock):
25770         New static inline functions, if there's no system <pthread.h>.
25771         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25772         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25773         Approximate with mutexes if the system lacks spinlocks, as in
25774         MacOS.
25775         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25776         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25777         @@-style.  Check for spinlocks separately.
25778         (gl_PTHREAD_DEFAULTS): New macro.
25779         * modules/pthread: Redo to use a more typical style for in.h files.
25780
25781 2010-09-21  Eric Blake  <eblake@redhat.com>
25782
25783         net_if: enhance tests
25784         * tests/test-net_if.c (main): Move signature checks earlier.
25785         Print failures to stderr.
25786         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25787         Document the bug that we do not yet fix.
25788
25789 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25790
25791         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25792         about gnulib, not GSS.
25793
25794 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25795
25796         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25797         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25798         for Emacs.
25799         * build-aux/pmccabe2html: Make Makefile.am example code more
25800         cut-and-paste friendly.
25801
25802 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25803
25804         * tests/test-net_if.c: New file.
25805         * modules/net_if-tests: New file.
25806
25807 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25808
25809         pthread: add pthread_spin_destroy
25810         * lib/pthread.in.h (pthread_spin_destroy): New function.
25811
25812 2010-09-19  Bruno Haible  <bruno@clisp.org>
25813
25814         gnulib-tool: Fix --help output.
25815         * gnulib-tool (func_usage): Fix help message.
25816         Reported by Reuben Thomas <rrt@sc3d.org>.
25817
25818 2010-09-18  Jim Meyering  <meyering@redhat.com>
25819
25820         maint.mk: avoid unexpanded \n in two diagnostics
25821         * top/maint.mk (sc_prohibit_always_true_header_tests):
25822         Don't use a literal \n in a halt=... assignment.  It would not be
25823         expanded, and the two \n bytes would appear in the diagnostic output
25824         rather than the desired newline.  Use halt=$$(printf ... instead.
25825         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25826
25827 2010-09-18  Bruno Haible  <bruno@clisp.org>
25828
25829         netinet_in: Doc tweak.
25830         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25831         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25832
25833 2010-09-18  Jim Meyering  <meyering@redhat.com>
25834
25835         init.sh: correct an outdated comment
25836         * tests/init.sh (create_exe_shims_):  s/function/alias/
25837
25838         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25839         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25840         a file named "*.exe" is removed between the glob expansion and the
25841         processing of that oddly named file.
25842
25843 2010-09-17  Eric Blake  <eblake@redhat.com>
25844
25845         mirbsd: add some more support
25846         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25847         in BSD family.
25848         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25849         devices as OpenBSD.
25850         * m4/host-os.m4 (mirbsd): Add MirBSD.
25851
25852         tests: fix unportable assumption on sys/wait.h
25853         * tests/test-sys_wait.c (main): Relax test.
25854         * tests/test-stdlib.c (main): Likewise.
25855
25856         init.sh: accomodate directory with no .exes
25857         * tests/init.sh: Accomodate directory containing only scripts.
25858
25859         tests: avoid compiler warning
25860         * tests/test-stdlib.c (main): Use the variable.
25861
25862         fdutimens, fdutimensat: update signature, again
25863         * lib/utimens.h (gl_futimens): Delete, and move signature...
25864         (fdutimens): ...here.
25865         (fdutimensat): Rearrange signature.
25866         (lutimensat): Rename variable for clarity.
25867         * lib/fdutimensat.c (fdutimensat): Update signature.
25868         * lib/utimens.c (fdutimens): Likewise.
25869         (gl_futimens): Delete.
25870         (utimens, lutimens): Update callers.
25871         * lib/futimens.c (futimens): Likewise.
25872         * tests/test-fdutimensat.c: Likewise.
25873         * tests/test-utimens.c: Likewise.
25874         * tests/test-futimens.h: Update comment.
25875         * NEWS: Mention this.
25876         Suggested by Paul Eggert.
25877
25878 2010-09-17  Bruno Haible  <bruno@clisp.org>
25879
25880         Take over the maintenance of some older macros from Autoconf.
25881         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25882         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25883         GNU Autoconf.
25884         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25885         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25886
25887 2010-09-17  Eric Blake  <eblake@redhat.com>
25888
25889         fdutimensat: drop atflag validation
25890         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25891         with valid fd, to close a race scenario where futimens is
25892         unsupported and FILE was replaced by a symlink.
25893         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25894         accordingly.
25895         Suggested by Paul Eggert.
25896
25897 2010-09-16  Bruno Haible  <bruno@clisp.org>
25898
25899         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25900         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25901
25902 2010-09-16  Bruno Haible  <bruno@clisp.org>
25903
25904         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25905         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25906         login_tty exists.
25907         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25908
25909 2010-09-16  Bruno Haible  <bruno@clisp.org>
25910
25911         login_tty: Make the replacement code work on BSD systems.
25912         * lib/login_tty.c: Include <sys/ioctl.h>.
25913         (login_tty): Use ioctl TIOCSCTTY when available.
25914         * modules/login_tty (Depends-on): Add sys_ioctl.
25915         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25916
25917 2010-09-16  Bruno Haible  <bruno@clisp.org>
25918
25919         login_tty: Stricter unit test.
25920         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25921         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25922         and tcgetsid() after login_tty.
25923         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25924
25925 2010-09-16  Bruno Haible  <bruno@clisp.org>
25926
25927         New module 'tcgetsid'.
25928         * lib/tcgetsid.c: New file.
25929         * m4/tcgetsid.m4: New file.
25930         * modules/tcgetsid: New file.
25931         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25932         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25933         GNULIB_TCGETSID, HAVE_TCGETSID.
25934         * lib/termios.in.h: Include <sys/types.h>.
25935         (tcgetsid): New declaration.
25936         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25937         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25938         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25939         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25940
25941 2010-09-16  Bruno Haible  <bruno@clisp.org>
25942
25943         Tests for module 'termios'.
25944         * modules/termios-c++-tests: New file.
25945         * modules/termios-tests: New file.
25946         * tests/test-termios-c++.cc: New file.
25947         * tests/test-termios.c: New file.
25948
25949         New module 'termios'.
25950         * modules/termios: New file.
25951         * lib/termios.in.h: New file.
25952         * m4/termios_h.m4: New file.
25953         * doc/posix-headers/termios.texi: Mention the new module.
25954
25955 2010-09-16  Eric Blake  <eblake@redhat.com>
25956
25957         fdutimensat: add an atflag parameter
25958         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25959         * lib/utimens.h (fdutimensat): Update prototype.
25960         * tests/test-fdutimensat.c: Adjust test to match.
25961         * NEWS: Document the change.
25962         Suggested by Paul Eggert.
25963
25964 2010-09-16  Bruno Haible  <bruno@clisp.org>
25965
25966         Fix typos in comments.
25967         * lib/striconveh.h: Fix typo in comment.
25968         * lib/login_tty.c (login_tty): Likewise.
25969
25970 2010-09-15  Bruno Haible  <bruno@clisp.org>
25971
25972         stdlib: clarify MirBSD WEXITSTATUS bug
25973         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25974         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25975
25976 2010-09-15  Eric Blake  <eblake@redhat.com>
25977
25978         stdlib: work around MirBSD WEXITSTATUS bug
25979         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25980         * modules/stdlib (Depends-on): Add sys_wait.
25981         * tests/test-sys_wait.c (main): Enhance test.
25982         * tests/test-stdlib.c (main): Likewise.
25983         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25984
25985         docs: mention MacOS issue with WEXITSTATUS(constant)
25986         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25987         issue.
25988         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25989
25990         strnlen: add tests
25991         * modules/strnlen-tests: New file.
25992         * tests/test-strnlen.c: Likewise.
25993
25994 2010-09-14  Bruno Haible  <bruno@clisp.org>
25995
25996         unistr/base: Avoid link errors when module 'libunistring' is also used.
25997         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25998         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25999         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26000         Declare also when HAVE_LIBUNISTRING is set.
26001         Reported by Pádraig Brady <P@draigbrady.com>.
26002
26003 2010-09-14  Eric Blake  <eblake@redhat.com>
26004
26005         test-rawmemchr: make more robust
26006         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26007         (Depends-on, configure.ac): Add needed prerequisites to use it.
26008         * modules/memchr-tests (Files, Depends-on, configure.ac):
26009         Likewise, to avoid implicit reliance on memchr module prereqs.
26010         * tests/test-memchr.c (main): Ensure proper masking.
26011         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26012         reads.
26013
26014         memchr: detect glibc Alpha bug
26015         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26016         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26017         Alpha.
26018         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26019         * tests/test-memchr.c (main): Enhance test.
26020         Reported by Nelson H. F. Beebe.
26021
26022 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26023
26024         fts, getcwd, glob: audit for dirfd returning -1
26025         * lib/fts.c (opendir): Remove #define; no longer used.
26026         (opendirat): New arg PDIR_FD.  All callers changed.
26027         (fts_build, _opendir2): Use new opendirat to avoid the need for
26028         dirfd, or for checking whether dirfd returns a negative value.
26029         Don't use opendir; always use openat followed by fdopendir.
26030         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26031         it.
26032         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26033         returns -1 here.
26034         * modules/fts (Depends-on): Remove dirfd.
26035         * modules/getcwd (Depends-on): Likewise.
26036
26037 2010-09-13  Eric Blake  <eblake@redhat.com>
26038
26039         float: fix broken MirBSD header
26040         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26041         * doc/posix-headers/float.texi (float.h): Document it.
26042
26043 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26044
26045         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26046         * lib/fts.c (opendirat): New arg extra_flags.
26047         (__opendir2): Use it to avoid following symlinks when opening
26048         a directory, if symlinks are not supposed to be followed.  See
26049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26050
26051         fdopendir: preserve argument fd before returning
26052         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26053         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26054         (fdopendir): Use them, arranging for FD to be open to the same
26055         directory that it was when it started.  (It might be temporarily
26056         closed while fdopendir is running, so this not thread- or
26057         signal-safe.)  Be careful to do the right thing even when file
26058         descriptors are scarce and dup fails with errno == EMFILE.  See
26059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26060
26061 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26062
26063         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26064         * NEWS: Document change.
26065         * m4/regex.m4: Disable test for regoff_t size.
26066
26067 2010-09-13  Jim Meyering  <meyering@redhat.com>
26068
26069         fts: don't operate on an invalid file descriptor after failed dup
26070         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26071         negative file descriptor.
26072
26073 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26074
26075         savedir: add streamsavedir, deprecate fdsavedir
26076         * NEWS: Mention deprecation of fdsavedir.
26077         * lib/savedir.c (streamsavedir): New extern function, whose name
26078         ends in "savedir" to be consistent with the others.  This differs
26079         from savedirstream in that it doesn't close its argument.  The
26080         next version of GNU tar will use this instead of fdsavedir, to
26081         avoid some race conditions and conserve file descriptors.
26082         (savedirstream): Reimplement as a wrapper around streamsavedir.
26083         (fdsavedir): Add a comment deprecating this function.  As far as
26084         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26085         * lib/savedir.h (streamsavedir): New decl.
26086         (fdsavedir): Add a comment deprecating this.
26087
26088 2010-09-10  Bruno Haible  <bruno@clisp.org>
26089
26090         langinfo: Fix last commit.
26091         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26092         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26094
26095 2010-09-10  Bruno Haible  <bruno@clisp.org>
26096
26097         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26098         * lib/progreloc.c (O_EXEC): Define fallback.
26099
26100 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26101
26102         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26103         * NEWS: Document recent changes to fcntl-h.
26104         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26105         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26106         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26107         Similarly for O_SEARCH; this last was already true, but not documented.
26108         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26109         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26110         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26111         Likewise.
26112         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26113         is zero, not whether it is defined.
26114         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26115         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26116         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26117
26118 2010-09-10  Bruno Haible  <bruno@clisp.org>
26119
26120         langinfo, nl_langinfo: Fix for IRIX 5.3.
26121         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26122         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26123         HAVE_LANGINFO_YESEXPR.
26124         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26125         HAVE_LANGINFO_YESEXPR.
26126         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26127         HAVE_LANGINFO_T_FMT_AMPM is 0.
26128         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26129         HAVE_LANGINFO_YESEXPR is 0.
26130         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26131         NOEXPR.
26132         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26133         * doc/posix-functions/nl_langinfo.texi: Likewise.
26134         Reported by Eric Blake.
26135
26136 2010-09-10  Bruno Haible  <bruno@clisp.org>
26137
26138         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26139         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26140         on FreeBSD 8.0 and OpenBSD 4.6.
26141         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26142         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26143         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26144         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26145         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26146         ac_includes_default.
26147         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26148
26149 2010-09-09  Eric Blake  <eblake@redhat.com>
26150
26151         strsignal: work around NetBSD bug
26152         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26153         * lib/string.in.h (includes): Likewise.
26154         * doc/posix-functions/strsignal.texi (strsignal): Document the
26155         bug.
26156         Reported by Nelson H. F. Beebe.
26157
26158         gnulib-tool: work with NetBSD /bin/sh
26159         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26160         (func_get_description, func_get_comment, func_get_status)
26161         (func_get_notice, func_get_applicability, func_get_filelist)
26162         (func_get_dependencies, func_get_autoconf_early_snippet)
26163         (func_get_autoconf_snippet, func_get_automake_snippet)
26164         (func_get_include_directive, func_get_link_directive)
26165         (func_get_license, func_get_maintainer, func_import): Avoid
26166         shell syntax errors from parsing syntax extensions.
26167
26168 2010-09-09  Bruno Haible  <bruno@clisp.org>
26169
26170         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26171         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26172         a reliable way to determine whether the 'alias' command works.
26173
26174 2010-09-08  Jim Meyering  <meyering@redhat.com>
26175
26176         init.sh: penalize a set-x-impaired shell; don't disqualify it
26177         * tests/init.sh: Too many shells corrupt application stderr when
26178         you set -x, so we can't afford to disqualify them, since at least
26179         on Irix-6.5, that would disqualify all bourne shells.
26180         Instead, use a two-pass approach.
26181         On the first pass, try to find a shell that meets the stricter
26182         condition that set -x does not corrupt stderr.
26183         If no shell meets the stricter condition, retest each candidate
26184         shell, but without that extra condition.  Finally, when
26185         VERBOSE=yes is requested and set -x might cause trouble, simply
26186         issue a warning and refrain from enabling debug output.
26187
26188 2010-09-08  Eric Blake  <eblake@redhat.com>
26189
26190         unsetenv: fix OpenBSD bug
26191         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26192         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26193         documentation.
26194         Reported by Jim Meyering.
26195
26196         strtod: work around IRIX 6.5 bug
26197         * lib/strtod.c (strtod): Reparse number on shorter string if
26198         exponent parse was invalid.
26199         * tests/test-strtod.c (main): Add check for "0x1p 2".
26200         Reported by Tom G. Christensen.
26201
26202         getopt: optimize previous patch
26203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26204         empty variable.  Speed up awk script.
26205         Reported by Paolo Bonzini.
26206
26207 2010-09-08  Jim Meyering  <meyering@redhat.com>
26208
26209         test.sh: disqualify shells for which set -x corrupts stderr
26210         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26211         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26212         appear in stderr output.  For example, this command:
26213             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26214         prints "P=1" on those two systems:
26215
26216 2010-09-08  Bruno Haible  <bruno@clisp.org>
26217
26218         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26219         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26220         commands, because some shells ignore redirections when there is an
26221         error in the command lookup.
26222         Reported by Eric Blake.
26223
26224 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26225
26226         * lib/regex.h: Fix a mention of `regex_compile' (should be
26227         `re_compile_pattern').
26228         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26229         (re_set_registers): Correct name of parameter in comment.
26230
26231         * doc/regex.texi: Add documentation for missing syntax flags.
26232         Remove commented-out documentation of defunct syntax option
26233         RE_NO_EMPTY_ALTS.
26234         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26235         Add documentation of re_set_registers.
26236         Document trick to re-use a pattern buffer by setting fastmap manually.
26237         Update documentation of struct re_pattern_buffer per public members.
26238         Uncomment documentation of equivalence class operators and
26239         collating symbol operators, since they are now implemented,
26240         Explain leftmost-longest matching in relation to alternatives.
26241         Tidy documentation of substring matching.
26242         Remove POSIX documentation, which is done better in
26243         glibc, and refer the reader there. Keep BSD API documentation, as
26244         that is not readily available elsewhere.
26245
26246 2010-09-07  Eric Blake  <eblake@redhat.com>
26247
26248         getopt: handle POSIXLY_CORRECT set but not exported
26249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26250         export state of POSIXLY_CORRECT, due to bash set -o posix.
26251         Reported by Dustin J. Mitchell.
26252
26253 2010-09-05  Bruno Haible  <bruno@clisp.org>
26254
26255         gnulib-tool: Highlight the changed options.
26256         * gnulib-tool (func_usage): Display the --import, --add-import,
26257         --remove-import explanations in bold font.
26258
26259 2010-09-06  Karl Berry  <karl@gnu.org>
26260
26261         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26262
26263 2010-09-05  Bruno Haible  <bruno@clisp.org>
26264
26265         uniwidth/width: Update comment.
26266         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26267         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26268
26269 2010-09-05  Bruno Haible  <bruno@clisp.org>
26270
26271         isinf, isnan: Relax license.
26272         * modules/isinf (License): Change from GPL to LGPL, with consent from
26273         Ben Pfaff.
26274         * modules/isnan (License): Likewise.
26275         Requested by Ludovic Courtès.
26276
26277 2010-09-04  Bruno Haible  <bruno@clisp.org>
26278
26279         gnulib-tool: Help migration from --import to --add-import or --update.
26280         * gnulib-tool: Emit a verbose error message when --import is used
26281         without any module name.
26282
26283 2010-09-04  Bruno Haible  <bruno@clisp.org>
26284
26285         Update doc about gnulib-tool.
26286         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26287         'gnulib-tool --update' in more detail.
26288         Reported by Eric Blake.
26289
26290 2010-09-04  Bruno Haible  <bruno@clisp.org>
26291
26292         gnulib-tool: Change --import. New options --add/remove-import.
26293         * gnulib-tool: New options --add-import, --remove-import.
26294         (func_usage): Document them.
26295         (have_associative): Define always.
26296         (func_import): In import mode, don't merge the specified settings with
26297         the cached settings. Implement remove-import mode.
26298         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26299         Explain when to use them versus --import.
26300         (Simple update): Use --add-import instead of --import.
26301         * NEWS: Mention the change.
26302
26303 2010-09-04  Bruno Haible  <bruno@clisp.org>
26304
26305         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26306         separate gnulib.mk.
26307
26308 2010-09-04  Bruno Haible  <bruno@clisp.org>
26309
26310         gnulib-tool: Don't talk about CVS any more.
26311         * gnulib-tool (func_usage, func_import): Write "version control"
26312         instead of CVS.
26313
26314 2010-09-04  Jim Meyering  <meyering@redhat.com>
26315
26316         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26317         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26318         false positives (whose names may be ill-chosen) when searching
26319         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26320         would cause a false-positive.
26321
26322         avoid coreutils "make distcheck" failure
26323         Coreutils tests with an absolute build directory name that contains
26324         a space.  Not quoting this directory name caused a failure.
26325         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26326         * tests/test-vc-list-files-cvs.sh: Likewise.
26327
26328 2010-09-04  Bruno Haible  <bruno@clisp.org>
26329
26330         gnulib-tool: Avoid error when run in a package without Makefile.am.
26331         * gnulib-tool: When collecting the m4dirs in a package that does not
26332         have a Makefile.am, eliminate those directories that contain no
26333         gnulib-cache.m4. Fix expression that counts these directories.
26334
26335 2010-09-04  Bruno Haible  <bruno@clisp.org>
26336
26337         update-copyright test: Improve output when perl is missing or too old.
26338         * tests/test-update-copyright.sh: Move test of Perl version down after
26339         the test whether Perl exists. Provide an explanation relating Perl's
26340         error message to Automake's SKIP: message.
26341
26342 2010-09-04  Bruno Haible  <bruno@clisp.org>
26343
26344         Don't augment PATH in TESTS_ENVIRONMENT.
26345         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26346         set abs_aux_dir instead of augmenting PATH.
26347         * modules/vc-list-files-tests (Makefile.am): Likewise.
26348         * tests/test-update-copyright.sh: Augment PATH here.
26349         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26350         path_prepend_.
26351         * tests/test-vc-list-files-git.sh: Likewise.
26352
26353 2010-09-04  Jim Meyering  <meyering@redhat.com>
26354
26355         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26356         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26357
26358 2010-09-04  Bruno Haible  <bruno@clisp.org>
26359
26360         strdup: Fix compilation error in C++ mode.
26361         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26362         the macro.
26363
26364 2010-09-04  Bruno Haible  <bruno@clisp.org>
26365
26366         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26367         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26368         macro into a function.
26369         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26370
26371 2010-09-04  Bruno Haible  <bruno@clisp.org>
26372
26373         Set PATH_SEPARATOR the same way autoconf does.
26374         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26375         the value of PATH_SEPARATOR the same way autoconf-generated configure
26376         scripts do.
26377         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26378         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26379
26380 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26381
26382         Set PATH_SEPARATOR the same way autoconf does.
26383         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26384         the same way autoconf-generated configure scripts do.
26385         * posix-modules: Likewise.
26386
26387 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26388
26389         hash: fix safe_hasher const typo
26390         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26391         const; otherwise, there is a type error later.
26392
26393 2010-09-02  Jim Meyering  <meyering@redhat.com>
26394
26395         test-update-copyright.sh: require perl 5.8.0
26396         * tests/test-update-copyright.sh: Require 5.8.0,
26397         which Tom G. Christensen has confirmed is adequate,
26398         while 5.6.1 is not.
26399
26400 2010-09-02  Eric Blake  <eblake@redhat.com>
26401
26402         tests: init.sh improvements for re-exec'ing with zsh
26403         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26404         -vx through shell re-exec.
26405         Reported by Tom G. Christensen.
26406
26407         wctype: fix typo in previous commit
26408         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26409         Reported by Ludovic Courtès.
26410
26411 2010-09-02  Jim Meyering  <meyering@redhat.com>
26412
26413         test-update-copyright.sh: skip test if Perl is too old
26414         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26415         Reported by Tom G. Christensen.
26416
26417 2010-09-02  Bruno Haible  <bruno@clisp.org>
26418
26419         wctype: Avoid compilation error on IRIX 6.5.30.
26420         * lib/wctype.in.h (iswblank): Declare with a replacement if
26421         REPLACE_ISWBLANK is set.
26422         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26423         declared. Set REPLACE_ISWBLANK.
26424         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26425         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26426         * doc/posix-headers/wctype.texi: Likewise.
26427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26428
26429 2010-09-01  Bruno Haible  <bruno@clisp.org>
26430
26431         New module 'socketlib'.
26432         * modules/socketlib: New file.
26433         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26434         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26435         * modules/sockets (Depends-on): Add socketlib.
26436         Suggested by Sam Steingold <sds@gnu.org>.
26437
26438 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26439
26440         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26441
26442         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26443         when one needs search access to a directory but not read access.
26444         On systems where it is available, it works in some cases where
26445         O_RDONLY does not, namely on directories that are searchable but
26446         not readable, and which need only to be searchable.  If O_SEARCH
26447         is not available, fall back to the traditional method of using
26448         O_RDONLY.
26449
26450         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26451         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26452         when opening a directory that needs only to be searchable.
26453         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26454         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26455         * lib/openat-proc.c (openat_proc_name): Likewise.
26456         * lib/openat.c (openat_needs_fchdir): Likewise.
26457         * lib/save-cwd.c (save_cwd): Likewise.
26458         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26459
26460 2010-08-28  Bruno Haible  <bruno@clisp.org>
26461
26462         New module 'host-cpu-c-abi'.
26463         * modules/host-cpu-c-abi: New file.
26464         * m4/host-cpu-c-abi.m4: New file, based on part of
26465         clisp/src/m4/general.m4.
26466         Requested by Sam Steingold <sds@gnu.org>.
26467
26468 2010-08-31  Eric Blake  <eblake@redhat.com>
26469         and Jim Meyering  <meyering@redhat.com>
26470
26471         hash: factor, and guard against misbehaving hasher function
26472         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26473         of table->hasher's return value.  Also protect against a hash value
26474         so large that adding it to table->bucket results in a NULL pointer.
26475         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26476         Use it in place of open-coded check-and-abort.
26477
26478 2010-08-30  Bruno Haible  <bruno@clisp.org>
26479
26480         hash: silence spurious clang warning
26481         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26482         Reported by Eric Blake.
26483
26484 2010-08-30  Eric Blake  <eblake@redhat.com>
26485
26486         strstr, memmem, strcasestr: avoid leaked shell message
26487         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26488         FreeBSD.
26489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26491
26492         tests: silence clang warning
26493         * tests/test-malloca.c (do_allocation): Avoid dead store.
26494
26495 2010-08-29  Bruno Haible  <bruno@clisp.org>
26496
26497         gettext: Fix recent mistake.
26498         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26499
26500 2010-08-29  Bruno Haible  <bruno@clisp.org>
26501
26502         selinux-h: Offer a --without-selinux option.
26503         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26504         --without-selinux was specified, skip all tests and define
26505         HAVE_SELINUX_SELINUX_H to 0.
26506         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26507         set LIB_SELINUX to empty.
26508         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26509         gl_LIBSELINUX. If --without-selinux was specified, replace
26510         selinux/context.h.
26511         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26512
26513 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26514             Bruno Haible  <bruno@clisp.org>
26515
26516         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26517         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26518         of HAVE_REALLOC.
26519         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26520         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26521         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26522         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26523
26524 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26525             Bruno Haible  <bruno@clisp.org>
26526
26527         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26528         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26529         HAVE_CALLOC.
26530         * lib/xmalloc.c: Update accordingly.
26531         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26532         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26533         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26534
26535 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26536             Bruno Haible  <bruno@clisp.org>
26537
26538         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26539         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26540         HAVE_MALLOC.
26541         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26542         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26543         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26544
26545 2010-08-29  Bruno Haible  <bruno@clisp.org>
26546
26547         Update modules list.
26548         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26549         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26550         (String handling <string.h>): Add astrxfrm.
26551         (File system functions): Add readlinkat.
26552
26553 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26554
26555         Tests for module 'realloc-gnu'.
26556         * modules/realloc-gnu-tests: New file.
26557         * tests/test-realloc-gnu.c: New file.
26558
26559         Tests for module 'calloc-gnu'.
26560         * modules/calloc-gnu-tests: New file.
26561         * tests/test-calloc-gnu.c: New file.
26562
26563         Tests for module 'malloc-gnu'.
26564         * modules/malloc-gnu-tests: New file.
26565         * tests/test-malloc-gnu.c: New file.
26566
26567 2010-08-28  Bruno Haible  <bruno@clisp.org>
26568
26569         Rename module 'realloc' -> 'realloc-gnu'.
26570         * modules/realloc-gnu: New file, copied from modules/realloc.
26571         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26572         obsolete.
26573         * modules/mgetgroups (Depends-on): Update.
26574         * doc/posix-functions/realloc.texi: Update.
26575         * NEWS: Mention the change.
26576
26577         Rename module 'calloc' -> 'calloc-gnu'.
26578         * modules/calloc-gnu: New file, copied from modules/calloc.
26579         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26580         obsolete.
26581         * doc/posix-functions/calloc.texi: Update.
26582         * NEWS: Mention the change.
26583
26584         Rename module 'malloc' -> 'malloc-gnu'.
26585         * modules/malloc-gnu: New file, copied from modules/malloc.
26586         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26587         obsolete.
26588         * modules/argp (Depends-on): Update.
26589         * modules/regex (Depends-on): Update.
26590         * doc/posix-functions/malloc.texi: Update.
26591         * NEWS: Mention the change.
26592
26593 2010-08-28  Eric Blake  <eblake@redhat.com>
26594
26595         pread, pwrite: add missing dependency
26596         * modules/pread (Depends-on): Add extensions.
26597         * modules/pwrite (Depends-on): Likewise.
26598
26599 2010-08-28  Bruno Haible  <bruno@clisp.org>
26600
26601         unistr/u*-strchr: Fix tests dependencies.
26602         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26603         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26604         Reported by Ian Beckwith <ianb@erislabs.net>.
26605
26606 2010-08-28  Bruno Haible  <bruno@clisp.org>
26607
26608         read-file: Don't occupy too much unused memory.
26609         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26610
26611 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26612             Eric Blake  <eblake@redhat.com>
26613             Bruno Haible  <bruno@clisp.org>
26614
26615         read-file: Avoid memory reallocations with regular files.
26616         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26617         (fread_file): With regular files, use the remaining length as the
26618         initial buffer size.  Check against overflow.
26619         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26620         sys_stat.
26621
26622 2010-08-28  Bruno Haible  <bruno@clisp.org>
26623
26624         ftello: Relax license.
26625         * modules/ftello (License): Relax to LGPLv2+.
26626         Reported by Eric Blake.
26627
26628 2010-08-28  Bruno Haible  <bruno@clisp.org>
26629
26630         Avoid relocwrapper link errors due to gnulib replacement functions.
26631         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26632         function.
26633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26634
26635 2010-08-28  Bruno Haible  <bruno@clisp.org>
26636
26637         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26638         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26639         defined.
26640         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26641         Suggested by Eric Blake.
26642
26643 2010-08-28  Bruno Haible  <bruno@clisp.org>
26644
26645         sys_socket, netdb: Ensure socklen_t gets defined.
26646         * modules/sys_socket (Depends-on): Add socklen.
26647         * modules/netdb (Depends-on): Likewise.
26648         * modules/getaddrinfo (Depends-on): Remove socklen.
26649         * modules/getsockopt (Depends-on): Likewise.
26650         * modules/setsockopt (Depends-on): Likewise.
26651         * tests/test-sys_socket.c: Check that socklen_t is defined.
26652         * tests/test-netdb.c: Likewise.
26653         * m4/socklen.m4: Update comments.
26654         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26655
26656 2010-08-27  Eric Blake  <eblake@redhat.com>
26657
26658         login_tty: add missing dependency
26659         * modules/login_tty (Depends-on): Add pty.
26660
26661 2010-08-26  Eric Blake  <eblake@redhat.com>
26662
26663         lib-symbol-versions: fix m4 quoting
26664         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26665         format for AC_LINK_IFELSE.
26666
26667         glob: fix compile test
26668         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26669
26670         btowc: fix missing file
26671         * modules/btowc (Files): Also ship locale-fr.m4.
26672
26673         lseek: fix link test
26674         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26675         AC_LINK_IFELSE.
26676
26677         include_next: silence autoconf 2.68 warning
26678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26679         AC_COMPILE_IFELSE as special.
26680         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26681         autoconf < 2.68.
26682
26683         acl: fix compilation test
26684         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26685         AC_COMPILE_IFELSE.
26686
26687 2010-08-26  Bruno Haible  <bruno@clisp.org>
26688
26689         Modernize AC_TRY_RUN invocations.
26690         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26691         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26692         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26693         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26694         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26695         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26696         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26698         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26699         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26700         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26701         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26702         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26703         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26704         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26705         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26706         gl_MBRLEN_NUL_RETVAL): Likewise.
26707         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26708         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26709         Likewise.
26710         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26711         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26712         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26713         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26714         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26715         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26716         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26717         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26718         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26719         Likewise.
26720         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26721         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26722         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26723         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26724         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26725         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26727         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26728         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26730
26731 2010-08-26  Bruno Haible  <bruno@clisp.org>
26732
26733         Modernize AC_TRY_LINK invocations.
26734         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26735         AC_TRY_LINK.
26736         * m4/argp.m4 (gl_ARGP): Likewise.
26737         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26738         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26739         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26740         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26741         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26742         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26743         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26744         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26745         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26746         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26747         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26748         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26749         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26750         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26751         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26752         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26753         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26754         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26755         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26756         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26757         Likewise.
26758         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26759         Likewise.
26760         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26761         Likewise.
26762         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26763         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26764         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26765         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26766         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26767         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26768         * m4/servent.m4 (gl_SERVENT): Likewise.
26769         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26770         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26771         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26772         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26773         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26774         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26775         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26776         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26777         * modules/tsearch-tests (configure.ac): Likewise.
26778
26779 2010-08-26  Bruno Haible  <bruno@clisp.org>
26780
26781         Modernize AC_TRY_COMPILE invocations.
26782         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26783         AC_TRY_COMPILE.
26784         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26785         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26786         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26787         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26788         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26789         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26790         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26791         * m4/lock.m4 (gl_LOCK): Likewise.
26792         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26793         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26794         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26795         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26796         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26797         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26798         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26799         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26800         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26801         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26802         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26803         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26804         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26805         extraneous semicolon.
26806
26807 2010-08-26  Jim Meyering  <meyering@redhat.com>
26808
26809         stat-time: relax license LGPL
26810         * modules/stat-time (License): Change from GPL to LGPL,
26811         with consent from all contributors, for use in libguile.
26812         Requested by Ludovic Courtès.
26813
26814 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26815
26816         poll: return immediately on POLLHUP.
26817         * lib/poll.c (poll): Always set timeout before wait_timeout is
26818         computed.
26819
26820 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26821
26822         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26823         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26824         rmdir ("dir/.//"), unlinkat.
26825
26826 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         stdbool: avoid spurious failure with modern xlc
26829         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26830
26831 2010-08-24  Bruno Haible  <bruno@clisp.org>
26832
26833         getloadavg: simplify code
26834         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26835         gl_have_func. Update comments.
26836
26837 2010-08-24  Eric Blake  <eblake@redhat.com>
26838
26839         getloadavg: don't define SVR4 on cygwin
26840         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26841         only define SVR4 when -lkvm is required.
26842         Reported by Yaakov Selkowitz.
26843
26844 2010-08-24  Bruno Haible  <bruno@clisp.org>
26845
26846         priv-set: fix comment
26847         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26848
26849 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26850
26851         priv-set: fix comments
26852         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26853         to match code, as suggested by David Bartley in:
26854         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26855
26856 2010-08-23  Eric Blake  <eblake@redhat.com>
26857
26858         stdbool: avoid rejecting clang
26859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26860         * tests/test-stdbool.c: Enable more tests if using the system
26861         <stdbool.h> instead of the gnulib replacement.
26862         (main): Move xlc bug test to a runtime test for all compilers.
26863         Reported by Anders Kaseorg.
26864
26865         argz: fix shell quoting issue
26866         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26867         Reported by Charles Wilson.
26868
26869 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26870             Erik Faye-Lund <kusmabite@gmail.com>
26871
26872         poll, select: handle ERROR_BROKEN_PIPE.
26873         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26874         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26875         * lib/select.c (win32_compute_revents): Do not mark a pipe
26876         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26877
26878 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26879
26880         fts: allow compilation with C++
26881         * lib/fts_.h: Specify extern "C" linkage with C++.
26882
26883 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26884
26885         Fix gnulib-tool sed script de-commentation for AIX sed.
26886         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26887         sed.
26888
26889 2010-08-17  Eric Blake  <eblake@redhat.com>
26890
26891         test-stddef: test for (some) offsetof bugs
26892         * tests/test-stddef.c: Enhance test to ensure correct type of
26893         offsetof.
26894         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26895         that we are not fixing at this time.
26896
26897 2010-08-15  Bruno Haible  <bruno@clisp.org>
26898
26899         stpncpy: Allow stpncpy to be defined as a macro.
26900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26901         if it's already correctly declared.
26902         * lib/string.in.h (stpncpy): Undefine before redefining.
26903         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26904
26905 2010-08-14  Bruno Haible  <bruno@clisp.org>
26906
26907         Rename module 'memxfrm' to 'amemxfrm'.
26908         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26909         (amemxfrm): Renamed from memxfrm.
26910         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26911         (amemxfrm): Renamed from memxfrm.
26912         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26913         * NEWS: Mention the change.
26914         * MODULES.html.sh (String handling <string.h>): Update.
26915         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26916         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26917         * lib/unicase/u16-casexfrm.c: Likewise.
26918         * lib/unicase/u32-casexfrm.c: Likewise.
26919         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26920         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26921         * lib/uninorm/u16-normxfrm.c: Likewise.
26922         * lib/uninorm/u32-normxfrm.c: Likewise.
26923         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26924         memxfrm.
26925         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26926         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26927         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26928         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26929         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26930         Suggested by Paul Eggert.
26931
26932 2010-08-14  Bruno Haible  <bruno@clisp.org>
26933
26934         Tests for module 'astrxfrm'.
26935         * modules/astrxfrm-tests: New file.
26936         * tests/test-astrxfrm.c: New file.
26937
26938         New module 'astrxfrm'.
26939         * lib/astrxfrm.h: New file.
26940         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26941         * modules/astrxfrm: New file.
26942
26943 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26944
26945         regex: Tweak doc.
26946         * doc/regex.texi (Overview): Don't mention regex.c.
26947         (GNU Regular Expression Compiling): Likewise.
26948         (Match-end-of-line Operator): Mention 'not_eol'.
26949
26950 2010-08-14  Brian Gough  <bjg@gnu.org>
26951             Bruno Haible  <bruno@clisp.org>
26952
26953         git-merge-changelog: add doc relating to use with bzr and hg.
26954         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26955
26956 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26957
26958         pthread: fix pthread.h creation for srcdir != builddir
26959         * modules/pthread (Makefile.am): Fix the rule to work also in a
26960         non-srcdir build.
26961
26962 2010-08-13  Karl Berry  <karl@gnu.org>
26963
26964         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26965         * doc/posix-*/*: force line break before @url of POSIX
26966         specifications.
26967         Suggested by Werner Lemberg.
26968
26969 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26970
26971         strtod: fix const diagnostic
26972         * lib/strtod.c (strtod): Don't assign const char * to char *,
26973         as this elicits a warning from GCC when warnings are enabled.
26974
26975 2010-08-10  Pádraig Brady <P@draigbrady.com>
26976         and Eric Blake  <eblake@redhat.com>
26977
26978         copy-acl: ignore ENOTSUP on HP-UX
26979         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26980         so that it is available for HP-UX.
26981         * lib/copy-acl.c (qcopy_acl): Use it.
26982         Reported by Patrick M. Callahan.
26983
26984 2010-08-10  Eric Blake  <eblake@redhat.com>
26985
26986         open, chown: relax license
26987         * modules/open (License): Change to LGPLv2+, with consent by all
26988         authors, for use in augeas.
26989         * modules/chown (License): Likewise.
26990         * modules/lchown (Likewise): Likewise.
26991         Requested by Adam Stokes.
26992
26993 2010-08-09  Karl Berry  <karl@gnu.org>
26994
26995         * build-aux/ar-lib: new file, import from Automake.
26996         * config/srclist.txt: autocheck for updates.
26997
26998 2010-08-09  Eric Blake  <eblake@redhat.com>
26999
27000         readlinkat: adjust client modules
27001         * modules/areadlinkat (Depends-on): Use readlinkat, not
27002         symlinkat.
27003         * modules/areadlinkat-with-size (Depends-on): Likewise.
27004
27005         mknod: be more vocal about danger of running tests as root
27006         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27007         root, since that is just asking for problems.
27008         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27009
27010         readlinkat: split into its own module
27011         * modules/symlinkat: Split readlinkat...
27012         * modules/readlinkat: ...into separate module.
27013         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27014         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27015         * lib/symlinkat.c (readlinkat): Move...
27016         * lib/readlinkat.c: ...into new file.
27017         * modules/symlinkat-tests: Split readlinkat test...
27018         * modules/readlinkat-tests: ...into separate module.
27019         * tests/test-symlinkat.c: Split...
27020         * tests/test-readlinkat.c: ...into new file.
27021         * NEWS: Document the split.
27022         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27023         * lib/unistd.in.h (readlinkat): Likewise.
27024         Suggested by Bruno Haible.
27025
27026 2010-08-08  Bruno Haible  <bruno@clisp.org>
27027
27028         memxfrm: Speed up.
27029         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27030         that usually only one call to strxfrm is necessary for each string
27031         part.
27032         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27033
27034 2010-08-07  Karl Berry  <karl@gnu.org>
27035
27036         * doc/posix-headers/limits.texi,
27037         * doc/posix-functions/malloc.texi,
27038         * doc/posix-functions/strsignal.texi: missing @item.
27039         * doc/ld-version-script.texi: spurious leading i.
27040         * doc/regex.texi (Interval Operators): no commas inside @var.
27041
27042 2010-08-01  Bruno Haible  <bruno@clisp.org>
27043
27044         Integrate the regex documentation.
27045         * doc/gnulib.texi: Define 'cn' index.
27046         (Regular expressions): New a chapter that includes regex.texi and
27047         regexprops-generic.texi.
27048         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27049         syntax.
27050
27051         Whitespace cleanup.
27052         * doc/regex.texi: Remove trailing spaces.
27053
27054         Add regex documentation.
27055         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27056         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27057         Written by Kathy A. Hargreaves and Karl Berry.
27058
27059 2010-08-01  Bruno Haible  <bruno@clisp.org>
27060
27061         link: Update documentation.
27062         * doc/posix-functions/link.texi: Update regarding Solaris.
27063
27064 2010-07-31  Bruno Haible  <bruno@clisp.org>
27065
27066         Update modules list.
27067         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27068         (String handling <string.h>): Add memcmp2, memxfrm.
27069         (Container data structures): Add xlist, xsublist, xoset.
27070         (Core language properties): Add alignof, unused-parameter.
27071         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27072         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27073         (Unibyte characters <ctype.h>): New section.
27074         (String handling <string.h>): New section.
27075         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27076         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27077         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27078         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27079         tan, tanh, tanl, y0, y1, yn.
27080         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27081         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27082         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27083         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27084         unlockpt, vdprintf, vdprintf-posix.
27085         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27086         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27087         xconcat-filename.
27088         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27089         getdtablesize, pipe2, pipe2-safer.
27090         (Security): New section.
27091         (Networking functions): Add accept4.
27092         (Signal handling): Add sigpipe.
27093         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27094         mbmemcasecoll.
27095         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27096         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27097         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27098         pipe-filter-ii.
27099         (Misc): Add argp-version-etc, login_tty, parse-duration.
27100
27101 2010-07-31  Bruno Haible  <bruno@clisp.org>
27102
27103         Improve doc in MODULES.html.
27104         * modules/linkat (Description): Add the word "function".
27105         * modules/mkfifo (Description): Likewise.
27106         * modules/mknod (Description): Likewise.
27107         * modules/remove (Description): Likewise.
27108         * modules/renameat (Description): Likewise.
27109         * modules/stat (Description): Likewise.
27110         * modules/symlink (Description): Likewise.
27111         * modules/unlink (Description): Likewise.
27112
27113 2010-07-31  Bruno Haible  <bruno@clisp.org>
27114
27115         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27116         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27117         option --enable/disable-c++ instead of --enable/disable-cxx.
27118         * NEWS: Mention the change.
27119
27120 2010-07-31  Bruno Haible  <bruno@clisp.org>
27121
27122         readlink, areadlink: Relax test a bit.
27123         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27124         alternative to ENOTDIR.
27125         * tests/test-areadlink.h (test_areadlink): Likewise.
27126         Reported by Rainer Tammer.
27127
27128 2010-07-31  Bruno Haible  <bruno@clisp.org>
27129
27130         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27131         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27132         character, perform the search using U_STRCHR.
27133         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27134         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27135         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27136         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27137         Suggested by Paolo Bonzini.
27138
27139 2010-07-31  Bruno Haible  <bruno@clisp.org>
27140
27141         unistr/u*-strstr: Fix dependencies.
27142         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27143         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27144         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27145
27146 2010-07-31  Bruno Haible  <bruno@clisp.org>
27147
27148         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27149         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27150         the beginning of the loop.
27151         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27152         cases in 'switch' statement.
27153
27154         unistr/u8-strchr: Fix several bugs.
27155         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27156         the string. When not found, return NULL, not a pointer near the end.
27157
27158         More tests for unistr/u8-strchr.
27159         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27160         that the function does not read past the first occurrence of the byte
27161         being searched.
27162         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27163         * tests/unistr/test-u16-strchr.c (main): New function.
27164         * tests/unistr/test-u32-strchr.c (main): New function.
27165
27166 2010-07-31  Bruno Haible  <bruno@clisp.org>
27167
27168         posix-modules: Ignore backup files of documentation files.
27169         * posix-modules: grep only through files named *.texi.
27170
27171 2010-07-31  Bruno Haible  <bruno@clisp.org>
27172
27173         symlinkat: Fix documentation.
27174         * doc/posix-functions/readlinkat.texi: Fix module name.
27175
27176 2010-07-31  Bruno Haible  <bruno@clisp.org>
27177
27178         fchownat: Replace also when chown has the trailing slash bug.
27179         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27180         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27181         introduced on 2010-04-10.
27182         Reported by Rainer Tammer.
27183
27184 2010-07-31  Bruno Haible  <bruno@clisp.org>
27185
27186         linkat: Work around AIX 7.1 bug.
27187         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27188         whether linkat handles trailing slash correctly. If not, replace linkat
27189         and define LINKAT_TRAILING_SLASH_BUG.
27190         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27191         check whether (fd1,file1) points to a directory if file1 or file2 ends
27192         in a slash. Code taken from lib/link.c.
27193         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27194         Reported by Rainer Tammer.
27195
27196 2010-07-31  Bruno Haible  <bruno@clisp.org>
27197
27198         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27199         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27200         This disables an xlc optimization that was causing wrong test results.
27201         Reported by Rainer Tammer.
27202
27203 2010-07-31  Bruno Haible  <bruno@clisp.org>
27204
27205         iconv: Work around AIX 6.1..7.1 bug.
27206         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27207         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27208         cross-compiling, guess no on all versions of AIX.
27209         Reported by Rainer Tammer.
27210
27211 2010-07-31  Bruno Haible  <bruno@clisp.org>
27212
27213         readlink: Relax test a bit.
27214         * tests/test-readlink.h (test_readlink): Allow different errno value
27215         when readlink is called with a file name that ends in / and refers to
27216         a file.
27217         Suggested by Eric Blake.
27218         Reported by Rainer Tammer.
27219
27220 2010-07-31  Bruno Haible  <bruno@clisp.org>
27221
27222         copysign: Does not require -lm on glibc systems.
27223         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27224         gl_COMMON_DOUBLE_MATHFUNC.
27225         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27226
27227 2010-07-31  Bruno Haible  <bruno@clisp.org>
27228
27229         duplocale: Work around AIX 7.1 bug.
27230         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27231         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27232         * lib/duplocale.c (rpl_duplocale): Update comment.
27233         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27234         Reported by Rainer Tammer.
27235
27236 2010-07-30  Bruno Haible  <bruno@clisp.org>
27237
27238         dirfd: Avoid link error on AIX 7.1.
27239         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27240         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27241         exist, set REPLACE_DIRFD.
27242         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27243         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27244         * doc/posix-functions/dirfd.texi: Update.
27245         Reported by Rainer Tammer.
27246
27247 2010-07-30  Eric Blake  <eblake@redhat.com>
27248
27249         strtod: next round of AIX fixes
27250         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27251         exponent.
27252         * tests/test-strtod.c (main): Enhance tests.
27253         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27254         Reported by Rainer Tammer.
27255
27256         futimens: fix configure check
27257         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27258         Reported by Bruno Haible.
27259
27260 2010-07-30  Bruno Haible  <bruno@clisp.org>
27261
27262         getline: Update regarding AIX.
27263         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27264         Reported by Rainer Tammer.
27265
27266 2010-07-30  Bruno Haible  <bruno@clisp.org>
27267
27268         wcwidth: Drop replacement on AIX 7.
27269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27270         AIX 7.
27271         Reported by Rainer Tammer.
27272
27273 2010-07-30  Bruno Haible  <bruno@clisp.org>
27274
27275         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27276         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27277         a 'char *'.
27278         Reported by Rainer Tammer.
27279
27280 2010-07-30  Bruno Haible  <bruno@clisp.org>
27281
27282         unlink: Update regarding AIX.
27283         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27284         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27285         Reported by Rainer Tammer.
27286
27287 2010-07-30  Bruno Haible  <bruno@clisp.org>
27288
27289         symlink: Update regarding AIX.
27290         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27291         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27292         Reported by Rainer Tammer.
27293
27294 2010-07-30  Bruno Haible  <bruno@clisp.org>
27295
27296         strndup: Update regarding AIX.
27297         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27298         AIX 7.
27299         Reported by Rainer Tammer.
27300
27301 2010-07-30  Bruno Haible  <bruno@clisp.org>
27302
27303         stat: Update regarding AIX.
27304         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27305         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27306         Reported by Rainer Tammer.
27307
27308 2010-07-30  Bruno Haible  <bruno@clisp.org>
27309
27310         truncl: Fix autoconf test.
27311         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27312         whether truncl works.
27313         Reported by Rainer Tammer.
27314
27315 2010-07-30  Bruno Haible  <bruno@clisp.org>
27316
27317         round: Update regarding AIX.
27318         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27319         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27320         Reported by Rainer Tammer.
27321
27322 2010-07-30  Bruno Haible  <bruno@clisp.org>
27323
27324         rename: Update regarding AIX.
27325         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27326         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27327         Reported by Rainer Tammer.
27328
27329 2010-07-30  Bruno Haible  <bruno@clisp.org>
27330
27331         printf.m4: Update regarding AIX.
27332         * m4/printf.m4: Update comments regarding AIX.
27333         Reported by Rainer Tammer.
27334
27335 2010-07-30  Bruno Haible  <bruno@clisp.org>
27336
27337         iconv: Update regarding AIX.
27338         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27339         AIX 7.
27340         Reported by Rainer Tammer.
27341
27342 2010-07-30  Bruno Haible  <bruno@clisp.org>
27343
27344         getopt: Update regarding AIX.
27345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27346         no on AIX.
27347         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27348         Reported by Rainer Tammer.
27349
27350 2010-07-30  Bruno Haible  <bruno@clisp.org>
27351
27352         ldexpl; Update regarding AIX.
27353         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_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         frexpl: Update regarding AIX.
27360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27361         on AIX 7.
27362         Reported by Rainer Tammer.
27363
27364 2010-07-30  Bruno Haible  <bruno@clisp.org>
27365
27366         open, fopen: Update regarding AIX.
27367         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27368         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27369         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27370         * doc/posix-functions/fopen.texi: Likewise.
27371         Reported by Rainer Tammer.
27372
27373 2010-07-30  Bruno Haible  <bruno@clisp.org>
27374
27375         chown: Update doc regarding AIX.
27376         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27377         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27378         Reported by Rainer Tammer.
27379
27380 2010-07-30  Eric Blake  <eblake@redhat.com>
27381
27382         strtod: fix bug in replacement function on AIX
27383         * lib/strtod.c (strtod): Special case broken "0x" parse in
27384         underlying strtod.
27385         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27386         * doc/posix-functions/strtod.texi (strtod): Likewise.
27387         Reported by Rainer Tammer.
27388
27389 2010-07-30  Bruno Haible  <bruno@clisp.org>
27390
27391         mbrlen: Fix cross-compilation guess for AIX.
27392         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27393         guess. Leftover from 2008-12-22.
27394
27395 2010-07-30  Bruno Haible  <bruno@clisp.org>
27396
27397         mbrtowc: Fix cross-compilation guess for AIX.
27398         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27399         guess. Leftover from 2008-12-21.
27400
27401 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27402
27403         init.sh: work around trap limitation of some shells
27404         * tests/init.sh (setup_): Move exit trap outside of shell function.
27405
27406 2010-07-29  Eric Blake  <eblake@redhat.com>
27407
27408         strtod: aid debugging
27409         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27410         understanding why strtod is rejected.
27411
27412 2010-07-28  Bruno Haible  <bruno@clisp.org>
27413
27414         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27415         * lib/unistr/u8-chr.c: Include <string.h>.
27416         * tests/unistr/test-u8-chr.c: Likewise.
27417         * tests/unistr/test-u16-chr.c: Likewise.
27418         * tests/unistr/test-u32-chr.c: Likewise.
27419         * tests/unistr/test-u8-strchr.c: Likewise.
27420         * tests/unistr/test-u16-strchr.c: Likewise.
27421         * tests/unistr/test-u32-strchr.c: Likewise.
27422         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27423         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27424         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27425         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27426
27427 2010-07-28  Bruno Haible  <bruno@clisp.org>
27428
27429         Use spaces for indentation, not tabs.
27430         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27431
27432 2010-07-27  Bruno Haible  <bruno@clisp.org>
27433
27434         mbspcasecmp: Fix function specification.
27435         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27436         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27437         Reported by Eric Blake <eblake@redhat.com>.
27438
27439 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27440
27441         timespec: use cast and not conditional, as truncation isn't possible
27442         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27443         instead of a conditional.  Comment about the situation in more detail.
27444         This undoes most of the 2009-10-29 patch.
27445
27446 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27447
27448         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27449         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27450         * lib/unistr/u8-strchr.c: Likewise.
27451         * modules/unistr/u8-chr: Depend on memchr.
27452
27453         unistr/u*-strchr: add tests
27454         * modules/unistr/u8-strchr-tests: New file.
27455         * modules/unistr/u16-strchr-tests: New file.
27456         * modules/unistr/u32-strchr-tests: New file.
27457         * tests/unistr/test-strchr.h: New file.
27458         * tests/unistr/test-u8-strchr.c: New file.
27459         * tests/unistr/test-u16-strchr.c: New file.
27460         * tests/unistr/test-u32-strchr.c: New file.
27461
27462         unistr/u*-chr: test multibyte sequences more
27463         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27464         test vector.
27465         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27466         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27467         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27468
27469         unistr/u*-chr: test multibyte sequences
27470         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27471
27472         unistr/u*-chr: prepare for multibyte tests
27473         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27474         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27475         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27476         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27477         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27478         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27479
27480 2010-07-18  Bruno Haible  <bruno@clisp.org>
27481
27482         unistr/u8-strchr: Optimize non-ASCII argument case.
27483         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27484         because the first byte often matches anyway.
27485         Reported by Pádraig Brady <P@draigbrady.com>.
27486
27487 2010-07-15  Karl Berry  <karl@gnu.org>
27488
27489         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27490
27491 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27492
27493         getcwd: on Solaris, work better if ancestors are inaccessible
27494         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27495         buffer and size, try again with a large buffer.  This works better
27496         on Solaris, since its getcwd succeeds even if the path to the root
27497         is inaccessible, and this is helpful in common cases such as .zfs
27498         hidden directories.  Problem reported by J Chapman Flack in
27499         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27500         Use system getcwd if it's declared, not merely if it's partly
27501         working; use the partly-working test only to avoid needless effort
27502         if the system getcwd fails.
27503         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27504         comment that was already obsolete and is now even more obsolete.
27505         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27506         now might call strdup.
27507
27508 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27509
27510         pthread: Add enough so that coreutils/src/sort.c compiles.
27511         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27512         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27513         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27514         Include <sys/types.h>, in case it defines pthread_t.
27515         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27516         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27517         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27518         (pthread_rwlockattr_t, pthread_spinlock_t):
27519         New typedefs, if HAVE_PTHREAD_T is not defined.
27520         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27521         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27522         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27523         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27524         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27525         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27526         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27527         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27528         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27529         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27530         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27531         New macros.
27532         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27533         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27534         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27535         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27536         (pthread_spin_unlock): New dummy functions.
27537         (pthread_create): Return EAGAIN; don't set errno.
27538         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27539         require AC_C_INLINE.
27540         * modules/pthread (Depends-on): Add sched, time.
27541         (pthread.h): Use AM_V_GEN.
27542
27543 2010-07-13  Bruno Haible  <bruno@clisp.org>
27544
27545         striconveh: Don't malloc memory if the result buffer is sufficient.
27546         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27547         buffer if its size is sufficient.
27548         Reported by Ludovic Courtès <ludo@gnu.org>.
27549
27550 2010-07-13  Bruno Haible  <bruno@clisp.org>
27551
27552         strtod: Add safety check.
27553         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27554
27555 2010-07-12  Bruno Haible  <bruno@clisp.org>
27556
27557         Unify tests that set gl_cv_func_ldexpl_no_libm.
27558         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27559         gl_FUNC_LDEXPL.
27560         (gl_FUNC_LDEXPL): Invoke it.
27561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27562
27563 2010-07-12  Bruno Haible  <bruno@clisp.org>
27564
27565         Unify tests that set gl_cv_func_ldexp_no_libm.
27566         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27567         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27568         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27569         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27570         * modules/strtod (Files): Add m4/ldexp.m4.
27571
27572 2010-07-12  Bruno Haible  <bruno@clisp.org>
27573
27574         Unify tests that set gl_cv_func_frexpl_no_libm.
27575         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27576         gl_FUNC_FREXPL_NO_LIBM.
27577         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27578         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27579
27580 2010-07-12  Bruno Haible  <bruno@clisp.org>
27581
27582         Unify tests that set gl_cv_func_frexp_no_libm.
27583         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27584         gl_FUNC_FREXP_NO_LIBM.
27585         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27586         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27587
27588 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27589
27590         memcoll: clarify sizes versus lengths, document better, and tweak perf
27591         * lib/memcoll.c (strcoll_loop, memcoll0):
27592         Improve quality of descriptive comments.  Name variables
27593         consistently as to whether they are lengths (which do not include
27594         terminating null) versus sizes (which do).
27595         * lib/xmemcoll.c (xmemcoll0): Likewise.
27596         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27597         returned when s1size == 0; this is easier to compile and saves
27598         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27599
27600 2010-07-12  Bruno Haible  <bruno@clisp.org>
27601
27602         Tests for module '_Exit'.
27603         * modules/_Exit-tests: New file.
27604         * tests/test-_Exit.sh: New file.
27605         * tests/test-_Exit.c: New file.
27606
27607         New module '_Exit'.
27608         * lib/stdlib.in.h (__attribute__): New macro.
27609         (_Exit): New declaration.
27610         * lib/_Exit.c: New file.
27611         * m4/_Exit.m4: New file.
27612         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27613         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27614         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27615         * modules/_Exit: New file.
27616         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27617         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27618
27619 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27620
27621         strtod: make it more-accurate typically, and don't require libm
27622         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27623         Include limits.h.  Don't include string.h.
27624         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27625         (locale_isspace): New function, so that no casts are needed to
27626         check whether *s is a space.
27627         (ldexp): Provide an unused dummy if not available.
27628         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27629         (strtod): Use them.  This implementation prefers to use the
27630         underlying strtod if available, falling back on our own code
27631         only to fix known bugs.  This is more likely to produce an
27632         accurate result.  Also, it avoids the use of libm functions.
27633         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27634         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27635         was absent, but it caused a test failure with coreutils.
27636         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27637         with libm.
27638         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27639         * modules/strtod-tests (Makefile.am): Likewise.
27640
27641 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27642             Bruno Haible  <bruno@clisp.org>
27643
27644         unistr/u8-strchr: Optimize ASCII argument case.
27645         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27646
27647 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27648
27649         (x)memcoll: minor tweaks
27650         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27651         is after the type that it qualifies.
27652         (memcoll0): Likewise.
27653         * lib/memcoll.h (memcoll0): Likewise.
27654         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27655         * lib/xmemcoll.h (xmemcoll0): Likewise.
27656         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27657         differs from memcoll in that the NUL byte is part of the argument.
27658         Omit the abort-checks, as performance is a real issue here.  Plus,
27659         the checks were wrong anyway (an off-by-one error).  Omit local
27660         variable 'diff', as it's a bit clearer that way.
27661         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27662         no longer needed.
27663
27664 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27665
27666         (x)memcoll: speedup when input is known to be NUL delimited
27667         * lib/memcoll.c: Include stdlib.
27668         (memcoll0): New function.
27669         (strcoll_loop): New function, refactored for use in both memcoll
27670         and memcoll0.
27671         * lib/memcoll.h (memcoll0): Add prototype.
27672         * lib/xmemcoll.c (xmemcoll0): New function.
27673         (collate_error): New function, refactored for use in both xmemcoll
27674         and xmemcoll0.
27675         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27676         * m4/memcoll.m4: add inline invocation.
27677
27678 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27679
27680         * build-aux/bootstrap: Remove any local translations
27681         from the translation project synchronization directory,
27682         so that local only translations are not distributed.
27683
27684 2010-07-04  Bruno Haible  <bruno@clisp.org>
27685
27686         fsusage: Clarify which code applies to which platforms.
27687         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27688         platform.
27689         * lib/fsusage.c (get_fs_usage): Likewise.
27690
27691 2010-07-04  Bruno Haible  <bruno@clisp.org>
27692
27693         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27694         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27695         Reported by Martin Lambers <marlam@marlam.de>.
27696
27697 2010-07-04  Jim Meyering  <meyering@redhat.com>
27698
27699         hash: once again explicitly disallow insertion of NULL
27700         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27701         inserting a NULL pointer cannot work with these functions.
27702         Add a comment with details.
27703         This reverts part of the 2010-07-01 commit, 5bef1a35
27704         "hash: extend module to deal with non-pointer keys".
27705
27706 2010-07-01  Bruno Haible  <bruno@clisp.org>
27707
27708         stdbool: Update doc.
27709         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27710         Info from Christian Weisgerber <naddy@mips.inka.de>.
27711
27712 2010-07-01  Jim Meyering  <meyering@redhat.com>
27713
27714         hash: extend module to deal with non-pointer keys
27715         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27716         but that allows insertion of non-pointer entries.
27717         Do not disallow an ENTRY value of NULL.
27718         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27719         * lib/hash.h (hash_insert0): Declare.
27720
27721 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27722
27723         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27724         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27725         not present (i.e. with autoconf 2.59 and when using gettextize, not
27726         gnulib), require AC_GNU_SOURCE instead.
27727
27728 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27729
27730         idpriv-drop: Fix tests.
27731         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27732         not to the test-idpriv-droptemp program.
27733
27734 2010-06-29  Bruno Haible  <bruno@clisp.org>
27735
27736         string: Fix syntax error with g++ 2.96.
27737         * lib/string.in.h (__pure__): Remove definition.
27738         (_GL_ATTRIBUTE_PURE): New macro.
27739         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27740         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27741         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27742
27743 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27744
27745         unitypes: Fix bug introduced on 2010-05-18.
27746         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27747
27748 2010-06-22  Eric Blake  <eblake@redhat.com>
27749
27750         memmem: slight optimization
27751         * lib/str-two-way.h (critical_factorization): Update comments.
27752         Reduce work during factorization phase.
27753         Reported by Carlos Bueno <carlos@bueno.org>.
27754
27755 2010-06-21  Bruno Haible  <bruno@clisp.org>
27756
27757         Fix HAVE_CALLOC_POSIX misnomer.
27758         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27759         !HAVE_CALLOC_POSIX.
27760         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27761         HAVE_CALLOC_POSIX.
27762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27763         instead of HAVE_CALLOC_POSIX.
27764         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27765         HAVE_CALLOC_POSIX.
27766
27767         Use modern idiom for calloc() replacement.
27768         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27769         AC_FUNC_CALLOC.
27770         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27771         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27772         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27773         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27774         (gl_REPLACE_CALLOC): New macro.
27775
27776 2010-06-21  Bruno Haible  <bruno@clisp.org>
27777
27778         Fix HAVE_REALLOC_POSIX misnomer.
27779         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27780         !HAVE_REALLOC_POSIX.
27781         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27782         HAVE_REALLOC_POSIX.
27783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27784         instead of HAVE_REALLOC_POSIX.
27785         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27786         HAVE_REALLOC_POSIX.
27787
27788         Use modern idiom for realloc() replacement.
27789         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27790         AC_FUNC_REALLOC.
27791         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27792         Autoconf's AC_FUNC_REALLOC.
27793         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27794         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27795         (gl_REPLACE_REALLOC): New macro.
27796         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27797
27798 2010-06-21  Bruno Haible  <bruno@clisp.org>
27799
27800         Fix HAVE_MALLOC_POSIX misnomer.
27801         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27802         !HAVE_MALLOC_POSIX.
27803         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27804         HAVE_MALLOC_POSIX.
27805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27806         instead of HAVE_MALLOC_POSIX.
27807         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27808         HAVE_MALLOC_POSIX.
27809
27810         Use modern idiom for malloc() replacement.
27811         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27812         AC_FUNC_MALLOC.
27813         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27814         Autoconf's AC_FUNC_MALLOC.
27815         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27816         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27817         (gl_REPLACE_MALLOC): New macro.
27818         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27819
27820 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27821
27822         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27823         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27824         This macro takes 3 arguments, not 4.
27825
27826 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27827
27828         ipv6: fix detection under mingw
27829         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27830         in6_addr.
27831
27832 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27833
27834         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27835         that strtod() works when cross-compiling to a glibc version known
27836         to work.
27837
27838 2010-06-15  Bruno Haible  <bruno@clisp.org>
27839
27840         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27841
27842 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27843
27844         select: Correct timeout.
27845         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27846
27847 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27848
27849         git-version-gen: init shell var to avoid env var influence
27850         * build-aux/git-version-gen (v): Init shell var to empty.
27851
27852 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27853
27854         priv-set: Don't assume that priv.h exists merely because getppriv does.
27855         See Jan Andersen's bug report about AIX 5L in
27856         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27857         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27858         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27859         * lib/priv-set.h: Likewise.
27860         * tests/test-priv-set.c: Likewise.
27861
27862 2010-06-13  Bruno Haible  <bruno@clisp.org>
27863
27864         relocatable: Make it easier to test whether to install wrappers.
27865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27866         RELOCATABLE_VIA_WRAPPER.
27867
27868 2010-06-13  Bruno Haible  <bruno@clisp.org>
27869
27870         gnulib-tool: Display specified modules and dependencies differently.
27871         * gnulib-tool (func_show_module_list): New function.
27872         (func_import, func_create_testdir): Invoke it.
27873         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27874
27875 2010-06-13  Bruno Haible  <bruno@clisp.org>
27876
27877         gnulib-tool: Align code of func_import and func_create_testdir.
27878         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27879         specified_modules.
27880
27881 2010-06-12  Jim Meyering  <meyering@redhat.com>
27882
27883         test-inttostr: avoid spurious failure on Solaris 9
27884         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27885         to accept "%ju".  Reported by Bruno Haible.
27886
27887 2010-06-11  Jim Meyering  <meyering@redhat.com>
27888
27889         test-sys_socket: mark variables as used more readably
27890         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27891         as "used" explicitly via (void) statement casts.  This is more
27892         readable than using them in an artificial return expression.
27893         Suggestion from Bruno Haible.
27894
27895 2010-06-11  Bruno Haible  <bruno@clisp.org>
27896
27897         Avoid some more warnings from "gcc -Wwrite-strings".
27898         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27899         to 'const char *'.
27900         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27901         * tests/test-c-strcasestr.c (main): Likewise.
27902         * tests/test-mbscasestr1.c (main): Likewise.
27903         * tests/test-mbscasestr2.c (main): Likewise.
27904         * tests/test-memmem.c (main): Likewise.
27905         * tests/test-strstr.c (main): Likewise.
27906         * tests/test-strcasestr.c (main): Likewise.
27907
27908 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27909
27910         init.sh: change framework_failure_ to fail with status 99, not 1
27911         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27912         automake's parallel-tests rule that this is an unexpected failure,
27913         even if the test is listed in XFAIL_TESTS.
27914
27915 2010-06-11  Jim Meyering  <meyering@redhat.com>
27916
27917         test-inttostr: avoid warnings about 4-6KB literal strings
27918         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27919         Include "macros.h", for its definition of ASSERT.
27920         (CK): s/assert/ASSERT/
27921         * modules/inttostr-tests (Files): Add macros.h.
27922
27923         init.sh: don't use $ME_ or skip_ before they are defined
27924         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27925         their first uses.  Also hoist their companions: warn_, fail_,
27926         framework_failure_, $stderr_fileno.  Prompted by a patch from
27927         Stefano Lattarini.
27928
27929         test-sys_socket: avoid set-but-not-used warnings from gcc
27930         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27931         avoid warning about set-but-not-used variables.
27932
27933         test-xvasprintf: avoid 'const' discard warnings
27934         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27935         "const" when assigning from literal strings.
27936         (test_xasprintf): Add "void" in function argument list to placate
27937         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27938
27939         tests: avoid compilation warnings in argmatch and exclude tests...
27940         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27941         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27942         Since it always exits, declare with the "noreturn" attribute.
27943         * tests/test-argmatch.c: Likewise.
27944
27945         tests: avoid 'const' discard warnings in mbsstr tests
27946         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27947         * tests/test-mbsstr2.c (main): Likewise.
27948
27949         test-verify: avoid warning from gcc's -Wmissing-declarations
27950         * tests/test-verify.c (function): Declare to be static.
27951
27952         test-inttostr.c: include <string.h> for use of strcmp
27953         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27954
27955         test-linkat: avoid failed assertion on "other" architectures
27956         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27957         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27958         sparc: https://bugs.launchpad.net/bugs/591968
27959
27960 2010-06-11  Jim Meyering  <meyering@redhat.com>
27961
27962         printf.m4: avoid autoconf's "Expanded Before Required" warning
27963         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27964         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27965         autoconf warning.
27966
27967 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27968
27969         Replacement header templates are now named with ".in", not "_".
27970         * doc/gnulib-intro.texi: Correct.
27971
27972 2010-06-10  Jim Meyering  <meyering@redhat.com>
27973
27974         inttostr-tests: depend on snprintf, not snprintf-posix
27975         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27976         snprintf-posix, to avoid this aclocal failure:
27977           missing file gnulib-tests/vasnprintf.c
27978           configure.ac:45: error: expected source file, required through \
27979           AC_LIBSOURCES, not found
27980
27981 2010-06-10  Jim Meyering  <meyering@redhat.com>
27982
27983         inttostr: add a new function, inttostr, and tests
27984         The namesake function was not available.  The existence of the
27985         template file, inttostr.c makes its addition nontrivial.
27986         * lib/anytostr.c: Rename from inttostr.c.
27987         (anytostr): Rename from inttostr.
27988         * lib/inttostr.c: New file.
27989         * modules/inttostr (Files): Add anytostr.c.
27990         (Makefile.am): Set lib_SOURCES instead of ...
27991         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27992         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27993         * lib/offtostr.c: Likewise.
27994         * lib/uinttostr.c: Likewise.
27995         * lib/umaxtostr.c: Likewise.
27996         * modules/inttostr-tests: New file.
27997         * tests/test-inttostr.c: New file.  Test these functions.
27998
27999 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28000             Bruno Haible  <bruno@clisp.org>
28001
28002         Add "Extending Gnulib" chapter to manual.
28003         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28004         chapter.
28005         (Extending Gnulib): New chapter.
28006         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28007         chapter.
28008
28009 2010-06-09  Bruno Haible  <bruno@clisp.org>
28010
28011         Avoid relocwrapper link errors due to gnulib replacement functions.
28012         * lib/areadlink.c: Use the system's malloc, realloc functions.
28013         (areadlink): Set errno to ENOMEM explicitly.
28014         * modules/areadlink (Depends-on): Remove malloc-posix.
28015         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28016
28017 2010-06-09  Bruno Haible  <bruno@clisp.org>
28018
28019         Avoid relocwrapper link errors due to gnulib replacement functions.
28020         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28021         * lib/malloca.c: Likewise.
28022         * lib/relocatable.c: Likewise.
28023         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28024         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28025         * lib/setenv.c: Use the system's malloc, realloc functions.
28026         * lib/strerror.c: Use the system's sprintf function.
28027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28028
28029 2010-06-04  Bruno Haible  <bruno@clisp.org>
28030
28031         Prefer documented low-level autoconf macro names.
28032         * m4/lib-link.m4: Use m4_translit instead of translit.
28033         * m4/environ.m4: Likewise.
28034         * m4/mathfunc.m4: Likewise.
28035         * m4/onceonly.m4: Likewise.
28036         * m4/stdint.m4: Likewise.
28037         Suggested by Eric Blake.
28038
28039 2010-06-04  Martin Lambers  <marlam@marlam.de>
28040             Bruno Haible  <bruno@clisp.org>
28041
28042         havelib: Allow library names with '+' characters.
28043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28044         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28045
28046 2010-06-09  Bruno Haible  <bruno@clisp.org>
28047
28048         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28049         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28050         realloc failed.
28051
28052 2010-06-08  Peter Simons  <simons@cryp.to>
28053
28054         maint.mk: make the news-check rule more configurable
28055         * top/maint.mk (news-check-lines-spec): New variable.
28056         (news-check): Use "sed -n 1,10p" in place of "head".
28057
28058 2010-06-07  Jim Meyering  <meyering@redhat.com>
28059
28060         do-release-commit-and-tag: fix typo in --help
28061         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28062
28063         regex: avoid new dead-code warning with gcc-4.6.0
28064         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28065         if-block containing a while-loop.  It's been unused for at least
28066         5 years.
28067
28068 2010-06-05  Bruno Haible  <bruno@clisp.org>
28069
28070         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28071         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28072
28073 2010-06-04  Bruno Haible  <bruno@clisp.org>
28074
28075         Update to GNU gettext 0.18.1.
28076         * modules/gettext (configure.ac): Require gettext infrastructure from
28077         version 0.18.1.
28078
28079 2010-06-03  Bruno Haible  <bruno@clisp.org>
28080
28081         Don't use AC_LIBOBJ with file names in subdirectories.
28082         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28083         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28084         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28085         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28086         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28087         gl_LIBUNISTRING_LIBSOURCE.
28088         (Makefile.am): Augment lib_SOURCES here, conditionally.
28089         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28090
28091 2010-06-03  Bruno Haible  <bruno@clisp.org>
28092
28093         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28094         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28095         expansion does not end with a newline.
28096         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28097         unnecessary newline.
28098
28099 2010-06-03  Bruno Haible  <bruno@clisp.org>
28100
28101         Reduce dependencies.
28102         * tests/test-quotearg.h: New file, extracted from
28103         tests/test-quotearg.c.
28104         * tests/test-quotearg-simple.c: New file, extracted from
28105         tests/test-quotearg.c.
28106         * tests/test-quotearg.c: Don't include <ctype.h>.
28107         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28108         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28109         use_quote_double_quotes, use_quotearg_colon): Moved to
28110         tests/test-quotearg.h.
28111         (results_g, flag_results, custom_quotes, custom_results): Moved
28112         to tests/test-quotearg-simple.c.
28113         (main): Moved the part that does not depend on gettext to
28114         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28115         performed.
28116         * modules/quotearg-simple: New file.
28117         * modules/quotearg-simple-tests: New file.
28118         * modules/quotearg (Depends-on): Add quotearg-simple.
28119         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28120         (Files): Add tests/test-quotearg.h.
28121         Reported by Paolo Bonzini.
28122
28123 2010-06-03  Bruno Haible  <bruno@clisp.org>
28124
28125         Reduce dependencies.
28126         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28127
28128 2010-06-03  Bruno Haible  <bruno@clisp.org>
28129
28130         time: Undefine more broken macros.
28131         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28132         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28133         Reported by Eric Blake.
28134
28135 2010-06-03  Bruno Haible  <bruno@clisp.org>
28136
28137         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28138         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28139         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28140         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28141         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28142         Reported by Ludovic Courtès <ludo@gnu.org>.
28143
28144 2010-06-02  Eric Blake  <eblake@redhat.com>
28145
28146         time: work with mingw + pthreads-win32 library
28147         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28148         if timespec is defined only in pthread.h.
28149         * modules/time (Makefile.am): Substitute it.
28150         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28151         <pthread.h>, when needed.
28152         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28153         from the library.
28154
28155 2010-05-31  Bruno Haible  <bruno@clisp.org>
28156
28157         Avoid expanding two macros in the wrong order.
28158         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28159         gl_LIBUNISTRING if it is defined.
28160         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28161         autoconf >= 2.64.
28162         Reported by Ludovic Courtès <ludo@gnu.org>.
28163
28164 2010-05-27  Jim Meyering  <meyering@redhat.com>
28165
28166         maint.mk: also prohibit "#undef" of always-defined symbols
28167         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28168         Allow more than one space before the symbol name.
28169         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28170         the regexp uses alternation.
28171
28172 2010-05-26  Eric Blake  <eblake@redhat.com>
28173
28174         maint.mk: avoid echo -e
28175         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28176         Convert all uses of echo -* to printf.
28177         Reported by Matthias Bolte.
28178
28179 2010-05-25  Bruno Haible  <bruno@clisp.org>
28180
28181         Update to GNU gettext 0.18, part 2.
28182         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28183         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28184
28185 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28186
28187         Add missing include in test-pwrite.c.
28188         * tests/test-pwrite.c: Include string.h, for strcmp.
28189
28190 2010-05-24  Bruno Haible  <bruno@clisp.org>
28191
28192         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28193
28194 2010-05-24  Bruno Haible  <bruno@clisp.org>
28195
28196         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28197         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28198         iconveh_error argument.
28199         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28200         U_STRCONV_TO_LOCALE.
28201         * lib/unistr/u16-strcoll.c: Likewise.
28202         * lib/unistr/u32-strcoll.c: Likewise.
28203         * modules/unistr/u8-strcoll (Depends-on): Add
28204         uniconv/u8-strconv-to-enc, localcharset. Remove
28205         uniconv/u8-strconv-to-locale.
28206         (configure.ac): Bump version number.
28207         * modules/unistr/u16-strcoll (Depends-on): Add
28208         uniconv/u16-strconv-to-enc, localcharset. Remove
28209         uniconv/u16-strconv-to-locale.
28210         (configure.ac): Bump version number.
28211         * modules/unistr/u32-strcoll (Depends-on): Add
28212         uniconv/u32-strconv-to-enc, localcharset. Remove
28213         uniconv/u32-strconv-to-locale.
28214         (configure.ac): Bump version number.
28215
28216 2010-05-24  Bruno Haible  <bruno@clisp.org>
28217
28218         Avoid a test failure on NetBSD 5.0.
28219         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28220         an iconv() bug.
28221
28222 2010-05-24  Bruno Haible  <bruno@clisp.org>
28223
28224         Adjust #include directive style.
28225         * modules/regex (Includes): Recommend to write <regex.h>.
28226
28227 2010-05-24  Bruno Haible  <bruno@clisp.org>
28228
28229         regex: Don't require alloca.
28230         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28231         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28232         only inside if (0).
28233
28234 2010-05-23  Jim Meyering  <meyering@redhat.com>
28235
28236         test-renameat.c: include <sys/stat.h>
28237         * tests/test-renameat.c: Include <sys/stat.h>; required for
28238         definition of S_IS* macros.
28239
28240 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28241
28242         Update maintainer documentation for 'relocatable-prog' module.
28243         * doc/relocatable-maint.texi: Update.
28244         Comments by Bruno Haible.
28245
28246 2010-05-23  Bruno Haible  <bruno@clisp.org>
28247
28248         git-merge-changelog: Enable --split-merged-entry by default.
28249         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28250         (usage): Don't mention this option any more.
28251         Reported by Ralf Wildenhues.
28252
28253 2010-05-23  Jim Meyering  <meyering@redhat.com>
28254
28255         test-pwrite: do not leave behind a test file named "out"
28256         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28257         The trivial-looking use of init.sh is really necessary.
28258         It ensures that the temporary file, "out", is created in
28259         a temporary directory, and removed upon termination.
28260         * tests/test-pwrite.sh: Re-add file.
28261         * modules/pwrite-tests: Reference it.
28262
28263 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28264
28265         Fix output redirection buglet in init.sh.
28266         * tests/init.sh: Fix redirection of stderr.
28267
28268 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28269
28270         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28271
28272 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28273
28274         * modules/valgrind-tests: New file.
28275         * m4/valgrind-tests.m4: New file.
28276         * doc/valgrind-tests.texi: New file.
28277         * doc/gnulib.texi (Running self-tests under valgrind): New
28278         section.
28279
28280 2010-05-19  Bruno Haible  <bruno@clisp.org>
28281
28282         Clean up dead code in recent commit.
28283         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28284         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28285         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28286         Suggested by Paolo Bonzini.
28287
28288 2010-05-19  Bruno Haible  <bruno@clisp.org>
28289
28290         Avoid valgrind error reports from libunistring.
28291         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28292         * modules/libunistring (Files): Add it.
28293         * modules/libunistring-optional (Files): Likewise.
28294
28295 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28296             Bruno Haible  <bruno@clisp.org>
28297
28298         New module 'libunistring-optional'.
28299         * modules/libunistring-optional: New file.
28300         * m4/libunistring-base.m4: New file.
28301         * m4/libunistring-optional.m4: New file.
28302         * lib/unicase.in.h: Renamed from lib/unicase.h.
28303         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28304         * lib/unictype.in.h: Renamed from lib/unictype.h.
28305         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28306         * lib/uniname.in.h: Renamed from lib/uniname.h.
28307         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28308         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28309         * lib/unistr.in.h: Renamed from lib/unistr.h.
28310         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28311         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28312         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28313         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28314         gl_LIBUNISTRING. If the library was found, determine the installed
28315         version and set LIBUNISTRING_VERSION.
28316         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28317         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28318         handle a configuration option --with-included-libunistring.
28319         * modules/libunistring (Files): Add m4/absolute-header.m4.
28320         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28321         Add m4/libunistring-base.m4.
28322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28323         (Makefile.am): Build unicase.h from unicase.in.h.
28324         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28325         Add m4/libunistring-base.m4.
28326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28327         (Makefile.am): Build uniconv.h from uniconv.in.h.
28328         * modules/unictype/base (Files): Use unictype.in.h instead of
28329         unictype.h. Add m4/libunistring-base.m4.
28330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28331         (Makefile.am): Build unictype.h from unictype.in.h.
28332         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28333         Add m4/libunistring-base.m4.
28334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28335         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28336         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28337         Add m4/libunistring-base.m4.
28338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28339         (Makefile.am): Build uniname.h from uniname.in.h.
28340         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28341         Add m4/libunistring-base.m4.
28342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28343         (Makefile.am): Build uninorm.h from uninorm.in.h.
28344         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28345         unistdio.h. Add m4/libunistring-base.m4.
28346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28347         (Makefile.am): Build unistdio.h from unistdio.in.h.
28348         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28349         Add m4/libunistring-base.m4.
28350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28351         (Makefile.am): Build unistr.h from unistr.in.h.
28352         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28353         Add m4/libunistring-base.m4.
28354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28355         (Makefile.am): Build unitypes.h from unitypes.in.h.
28356         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28357         Add m4/libunistring-base.m4.
28358         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28359         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28360         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28361         uniwidth.h. Add m4/libunistring-base.m4.
28362         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28363         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28364         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28365         instead of augmenting lib_SOURCES.
28366         * modules/unicase/empty-suffix-context: Likewise.
28367         * modules/unicase/locale-language: Likewise.
28368         * modules/unicase/tolower: Likewise.
28369         * modules/unicase/totitle: Likewise.
28370         * modules/unicase/toupper: Likewise.
28371         * modules/unicase/u8-casecmp: Likewise.
28372         * modules/unicase/u8-casecoll: Likewise.
28373         * modules/unicase/u8-casefold: Likewise.
28374         * modules/unicase/u8-casexfrm: Likewise.
28375         * modules/unicase/u8-ct-casefold: Likewise.
28376         * modules/unicase/u8-ct-tolower: Likewise.
28377         * modules/unicase/u8-ct-totitle: Likewise.
28378         * modules/unicase/u8-ct-toupper: Likewise.
28379         * modules/unicase/u8-is-cased: Likewise.
28380         * modules/unicase/u8-is-casefolded: Likewise.
28381         * modules/unicase/u8-is-lowercase: Likewise.
28382         * modules/unicase/u8-is-titlecase: Likewise.
28383         * modules/unicase/u8-is-uppercase: Likewise.
28384         * modules/unicase/u8-prefix-context: Likewise.
28385         * modules/unicase/u8-suffix-context: Likewise.
28386         * modules/unicase/u8-tolower: Likewise.
28387         * modules/unicase/u8-totitle: Likewise.
28388         * modules/unicase/u8-toupper: Likewise.
28389         * modules/unicase/u16-casecmp: Likewise.
28390         * modules/unicase/u16-casecoll: Likewise.
28391         * modules/unicase/u16-casefold: Likewise.
28392         * modules/unicase/u16-casexfrm: Likewise.
28393         * modules/unicase/u16-ct-casefold: Likewise.
28394         * modules/unicase/u16-ct-tolower: Likewise.
28395         * modules/unicase/u16-ct-totitle: Likewise.
28396         * modules/unicase/u16-ct-toupper: Likewise.
28397         * modules/unicase/u16-is-cased: Likewise.
28398         * modules/unicase/u16-is-casefolded: Likewise.
28399         * modules/unicase/u16-is-lowercase: Likewise.
28400         * modules/unicase/u16-is-titlecase: Likewise.
28401         * modules/unicase/u16-is-uppercase: Likewise.
28402         * modules/unicase/u16-prefix-context: Likewise.
28403         * modules/unicase/u16-suffix-context: Likewise.
28404         * modules/unicase/u16-tolower: Likewise.
28405         * modules/unicase/u16-totitle: Likewise.
28406         * modules/unicase/u16-toupper: Likewise.
28407         * modules/unicase/u32-casecmp: Likewise.
28408         * modules/unicase/u32-casecoll: Likewise.
28409         * modules/unicase/u32-casefold: Likewise.
28410         * modules/unicase/u32-casexfrm: Likewise.
28411         * modules/unicase/u32-ct-casefold: Likewise.
28412         * modules/unicase/u32-ct-tolower: Likewise.
28413         * modules/unicase/u32-ct-totitle: Likewise.
28414         * modules/unicase/u32-ct-toupper: Likewise.
28415         * modules/unicase/u32-is-cased: Likewise.
28416         * modules/unicase/u32-is-casefolded: Likewise.
28417         * modules/unicase/u32-is-lowercase: Likewise.
28418         * modules/unicase/u32-is-titlecase: Likewise.
28419         * modules/unicase/u32-is-uppercase: Likewise.
28420         * modules/unicase/u32-prefix-context: Likewise.
28421         * modules/unicase/u32-suffix-context: Likewise.
28422         * modules/unicase/u32-tolower: Likewise.
28423         * modules/unicase/u32-totitle: Likewise.
28424         * modules/unicase/u32-toupper: Likewise.
28425         * modules/unicase/ulc-casecmp: Likewise.
28426         * modules/unicase/ulc-casecoll: Likewise.
28427         * modules/unicase/ulc-casexfrm: Likewise.
28428         * modules/uniconv/u8-conv-from-enc: Likewise.
28429         * modules/uniconv/u8-conv-to-enc: Likewise.
28430         * modules/uniconv/u8-strconv-from-enc: Likewise.
28431         * modules/uniconv/u8-strconv-from-locale: Likewise.
28432         * modules/uniconv/u8-strconv-to-enc: Likewise.
28433         * modules/uniconv/u8-strconv-to-locale: Likewise.
28434         * modules/uniconv/u16-conv-from-enc: Likewise.
28435         * modules/uniconv/u16-conv-to-enc: Likewise.
28436         * modules/uniconv/u16-strconv-from-enc: Likewise.
28437         * modules/uniconv/u16-strconv-from-locale: Likewise.
28438         * modules/uniconv/u16-strconv-to-enc: Likewise.
28439         * modules/uniconv/u16-strconv-to-locale: Likewise.
28440         * modules/uniconv/u32-conv-from-enc: Likewise.
28441         * modules/uniconv/u32-conv-to-enc: Likewise.
28442         * modules/uniconv/u32-strconv-from-enc: Likewise.
28443         * modules/uniconv/u32-strconv-from-locale: Likewise.
28444         * modules/uniconv/u32-strconv-to-enc: Likewise.
28445         * modules/uniconv/u32-strconv-to-locale: Likewise.
28446         * modules/unictype/bidicategory-byname: Likewise.
28447         * modules/unictype/bidicategory-name: Likewise.
28448         * modules/unictype/bidicategory-of: Likewise.
28449         * modules/unictype/bidicategory-test: Likewise.
28450         * modules/unictype/block-list: Likewise.
28451         * modules/unictype/block-test: Likewise.
28452         * modules/unictype/category-C: Likewise.
28453         * modules/unictype/category-Cc: Likewise.
28454         * modules/unictype/category-Cf: Likewise.
28455         * modules/unictype/category-Cn: Likewise.
28456         * modules/unictype/category-Co: Likewise.
28457         * modules/unictype/category-Cs: Likewise.
28458         * modules/unictype/category-L: Likewise.
28459         * modules/unictype/category-Ll: Likewise.
28460         * modules/unictype/category-Lm: Likewise.
28461         * modules/unictype/category-Lo: Likewise.
28462         * modules/unictype/category-Lt: Likewise.
28463         * modules/unictype/category-Lu: Likewise.
28464         * modules/unictype/category-M: Likewise.
28465         * modules/unictype/category-Mc: Likewise.
28466         * modules/unictype/category-Me: Likewise.
28467         * modules/unictype/category-Mn: Likewise.
28468         * modules/unictype/category-N: Likewise.
28469         * modules/unictype/category-Nd: Likewise.
28470         * modules/unictype/category-Nl: Likewise.
28471         * modules/unictype/category-No: Likewise.
28472         * modules/unictype/category-P: Likewise.
28473         * modules/unictype/category-Pc: Likewise.
28474         * modules/unictype/category-Pd: Likewise.
28475         * modules/unictype/category-Pe: Likewise.
28476         * modules/unictype/category-Pf: Likewise.
28477         * modules/unictype/category-Pi: Likewise.
28478         * modules/unictype/category-Po: Likewise.
28479         * modules/unictype/category-Ps: Likewise.
28480         * modules/unictype/category-S: Likewise.
28481         * modules/unictype/category-Sc: Likewise.
28482         * modules/unictype/category-Sk: Likewise.
28483         * modules/unictype/category-Sm: Likewise.
28484         * modules/unictype/category-So: Likewise.
28485         * modules/unictype/category-Z: Likewise.
28486         * modules/unictype/category-Zl: Likewise.
28487         * modules/unictype/category-Zp: Likewise.
28488         * modules/unictype/category-Zs: Likewise.
28489         * modules/unictype/category-and: Likewise.
28490         * modules/unictype/category-and-not: Likewise.
28491         * modules/unictype/category-byname: Likewise.
28492         * modules/unictype/category-name: Likewise.
28493         * modules/unictype/category-none: Likewise.
28494         * modules/unictype/category-of: Likewise.
28495         * modules/unictype/category-or: Likewise.
28496         * modules/unictype/category-test: Likewise.
28497         * modules/unictype/combining-class: Likewise.
28498         * modules/unictype/ctype-alnum: Likewise.
28499         * modules/unictype/ctype-alpha: Likewise.
28500         * modules/unictype/ctype-blank: Likewise.
28501         * modules/unictype/ctype-cntrl: Likewise.
28502         * modules/unictype/ctype-digit: Likewise.
28503         * modules/unictype/ctype-graph: Likewise.
28504         * modules/unictype/ctype-lower: Likewise.
28505         * modules/unictype/ctype-print: Likewise.
28506         * modules/unictype/ctype-punct: Likewise.
28507         * modules/unictype/ctype-space: Likewise.
28508         * modules/unictype/ctype-upper: Likewise.
28509         * modules/unictype/ctype-xdigit: Likewise.
28510         * modules/unictype/decimal-digit: Likewise.
28511         * modules/unictype/digit: Likewise.
28512         * modules/unictype/mirror: Likewise.
28513         * modules/unictype/numeric: Likewise.
28514         * modules/unictype/property-alphabetic: Likewise.
28515         * modules/unictype/property-ascii-hex-digit: Likewise.
28516         * modules/unictype/property-bidi-arabic-digit: Likewise.
28517         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28518         * modules/unictype/property-bidi-block-separator: Likewise.
28519         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28520         * modules/unictype/property-bidi-common-separator: Likewise.
28521         * modules/unictype/property-bidi-control: Likewise.
28522         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28523         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28524         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28525         * modules/unictype/property-bidi-european-digit: Likewise.
28526         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28527         * modules/unictype/property-bidi-left-to-right: Likewise.
28528         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28529         * modules/unictype/property-bidi-other-neutral: Likewise.
28530         * modules/unictype/property-bidi-pdf: Likewise.
28531         * modules/unictype/property-bidi-segment-separator: Likewise.
28532         * modules/unictype/property-bidi-whitespace: Likewise.
28533         * modules/unictype/property-byname: Likewise.
28534         * modules/unictype/property-combining: Likewise.
28535         * modules/unictype/property-composite: Likewise.
28536         * modules/unictype/property-currency-symbol: Likewise.
28537         * modules/unictype/property-dash: Likewise.
28538         * modules/unictype/property-decimal-digit: Likewise.
28539         * modules/unictype/property-default-ignorable-code-point: Likewise.
28540         * modules/unictype/property-deprecated: Likewise.
28541         * modules/unictype/property-diacritic: Likewise.
28542         * modules/unictype/property-extender: Likewise.
28543         * modules/unictype/property-format-control: Likewise.
28544         * modules/unictype/property-grapheme-base: Likewise.
28545         * modules/unictype/property-grapheme-extend: Likewise.
28546         * modules/unictype/property-grapheme-link: Likewise.
28547         * modules/unictype/property-hex-digit: Likewise.
28548         * modules/unictype/property-hyphen: Likewise.
28549         * modules/unictype/property-id-continue: Likewise.
28550         * modules/unictype/property-id-start: Likewise.
28551         * modules/unictype/property-ideographic: Likewise.
28552         * modules/unictype/property-ids-binary-operator: Likewise.
28553         * modules/unictype/property-ids-trinary-operator: Likewise.
28554         * modules/unictype/property-ignorable-control: Likewise.
28555         * modules/unictype/property-iso-control: Likewise.
28556         * modules/unictype/property-join-control: Likewise.
28557         * modules/unictype/property-left-of-pair: Likewise.
28558         * modules/unictype/property-line-separator: Likewise.
28559         * modules/unictype/property-logical-order-exception: Likewise.
28560         * modules/unictype/property-lowercase: Likewise.
28561         * modules/unictype/property-math: Likewise.
28562         * modules/unictype/property-non-break: Likewise.
28563         * modules/unictype/property-not-a-character: Likewise.
28564         * modules/unictype/property-numeric: Likewise.
28565         * modules/unictype/property-other-alphabetic: Likewise.
28566         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28567         * modules/unictype/property-other-grapheme-extend: Likewise.
28568         * modules/unictype/property-other-id-continue: Likewise.
28569         * modules/unictype/property-other-id-start: Likewise.
28570         * modules/unictype/property-other-lowercase: Likewise.
28571         * modules/unictype/property-other-math: Likewise.
28572         * modules/unictype/property-other-uppercase: Likewise.
28573         * modules/unictype/property-paired-punctuation: Likewise.
28574         * modules/unictype/property-paragraph-separator: Likewise.
28575         * modules/unictype/property-pattern-syntax: Likewise.
28576         * modules/unictype/property-pattern-white-space: Likewise.
28577         * modules/unictype/property-private-use: Likewise.
28578         * modules/unictype/property-punctuation: Likewise.
28579         * modules/unictype/property-quotation-mark: Likewise.
28580         * modules/unictype/property-radical: Likewise.
28581         * modules/unictype/property-sentence-terminal: Likewise.
28582         * modules/unictype/property-soft-dotted: Likewise.
28583         * modules/unictype/property-space: Likewise.
28584         * modules/unictype/property-terminal-punctuation: Likewise.
28585         * modules/unictype/property-test: Likewise.
28586         * modules/unictype/property-titlecase: Likewise.
28587         * modules/unictype/property-unassigned-code-value: Likewise.
28588         * modules/unictype/property-unified-ideograph: Likewise.
28589         * modules/unictype/property-uppercase: Likewise.
28590         * modules/unictype/property-variation-selector: Likewise.
28591         * modules/unictype/property-white-space: Likewise.
28592         * modules/unictype/property-xid-continue: Likewise.
28593         * modules/unictype/property-xid-start: Likewise.
28594         * modules/unictype/property-zero-width: Likewise.
28595         * modules/unictype/scripts: Likewise.
28596         * modules/unictype/syntax-c-ident: Likewise.
28597         * modules/unictype/syntax-c-whitespace: Likewise.
28598         * modules/unictype/syntax-java-ident: Likewise.
28599         * modules/unictype/syntax-java-whitespace: Likewise.
28600         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28601         * modules/unilbrk/u8-width-linebreaks: Likewise.
28602         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28603         * modules/unilbrk/u16-width-linebreaks: Likewise.
28604         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28605         * modules/unilbrk/u32-width-linebreaks: Likewise.
28606         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28607         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28608         * modules/uniname/uniname: Likewise.
28609         * modules/uninorm/canonical-decomposition: Likewise.
28610         * modules/uninorm/composition: Likewise.
28611         * modules/uninorm/decomposing-form: Likewise.
28612         * modules/uninorm/decomposition: Likewise.
28613         * modules/uninorm/filter: Likewise.
28614         * modules/uninorm/nfc: Likewise.
28615         * modules/uninorm/nfd: Likewise.
28616         * modules/uninorm/nfkc: Likewise.
28617         * modules/uninorm/nfkd: Likewise.
28618         * modules/uninorm/u8-normalize: Likewise.
28619         * modules/uninorm/u8-normcmp: Likewise.
28620         * modules/uninorm/u8-normcoll: Likewise.
28621         * modules/uninorm/u8-normxfrm: Likewise.
28622         * modules/uninorm/u16-normalize: Likewise.
28623         * modules/uninorm/u16-normcmp: Likewise.
28624         * modules/uninorm/u16-normcoll: Likewise.
28625         * modules/uninorm/u16-normxfrm: Likewise.
28626         * modules/uninorm/u32-normalize: Likewise.
28627         * modules/uninorm/u32-normcmp: Likewise.
28628         * modules/uninorm/u32-normcoll: Likewise.
28629         * modules/uninorm/u32-normxfrm: Likewise.
28630         * modules/unistdio/u8-asnprintf: Likewise.
28631         * modules/unistdio/u8-asprintf: Likewise.
28632         * modules/unistdio/u8-snprintf: Likewise.
28633         * modules/unistdio/u8-sprintf: Likewise.
28634         * modules/unistdio/u8-u8-asnprintf: Likewise.
28635         * modules/unistdio/u8-u8-asprintf: Likewise.
28636         * modules/unistdio/u8-u8-snprintf: Likewise.
28637         * modules/unistdio/u8-u8-sprintf: Likewise.
28638         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28639         * modules/unistdio/u8-u8-vasprintf: Likewise.
28640         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28641         * modules/unistdio/u8-u8-vsprintf: Likewise.
28642         * modules/unistdio/u8-vasnprintf: Likewise.
28643         * modules/unistdio/u8-vasprintf: Likewise.
28644         * modules/unistdio/u8-vsnprintf: Likewise.
28645         * modules/unistdio/u8-vsprintf: Likewise.
28646         * modules/unistdio/u16-asnprintf: Likewise.
28647         * modules/unistdio/u16-asprintf: Likewise.
28648         * modules/unistdio/u16-snprintf: Likewise.
28649         * modules/unistdio/u16-sprintf: Likewise.
28650         * modules/unistdio/u16-u16-asnprintf: Likewise.
28651         * modules/unistdio/u16-u16-asprintf: Likewise.
28652         * modules/unistdio/u16-u16-snprintf: Likewise.
28653         * modules/unistdio/u16-u16-sprintf: Likewise.
28654         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28655         * modules/unistdio/u16-u16-vasprintf: Likewise.
28656         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28657         * modules/unistdio/u16-u16-vsprintf: Likewise.
28658         * modules/unistdio/u16-vasnprintf: Likewise.
28659         * modules/unistdio/u16-vasprintf: Likewise.
28660         * modules/unistdio/u16-vsnprintf: Likewise.
28661         * modules/unistdio/u16-vsprintf: Likewise.
28662         * modules/unistdio/u32-asnprintf: Likewise.
28663         * modules/unistdio/u32-asprintf: Likewise.
28664         * modules/unistdio/u32-snprintf: Likewise.
28665         * modules/unistdio/u32-sprintf: Likewise.
28666         * modules/unistdio/u32-u32-asnprintf: Likewise.
28667         * modules/unistdio/u32-u32-asprintf: Likewise.
28668         * modules/unistdio/u32-u32-snprintf: Likewise.
28669         * modules/unistdio/u32-u32-sprintf: Likewise.
28670         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28671         * modules/unistdio/u32-u32-vasprintf: Likewise.
28672         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28673         * modules/unistdio/u32-u32-vsprintf: Likewise.
28674         * modules/unistdio/u32-vasnprintf: Likewise.
28675         * modules/unistdio/u32-vasprintf: Likewise.
28676         * modules/unistdio/u32-vsnprintf: Likewise.
28677         * modules/unistdio/u32-vsprintf: Likewise.
28678         * modules/unistdio/ulc-asnprintf: Likewise.
28679         * modules/unistdio/ulc-asprintf: Likewise.
28680         * modules/unistdio/ulc-fprintf: Likewise.
28681         * modules/unistdio/ulc-snprintf: Likewise.
28682         * modules/unistdio/ulc-sprintf: Likewise.
28683         * modules/unistdio/ulc-vasnprintf: Likewise.
28684         * modules/unistdio/ulc-vasprintf: Likewise.
28685         * modules/unistdio/ulc-vfprintf: Likewise.
28686         * modules/unistdio/ulc-vsnprintf: Likewise.
28687         * modules/unistdio/ulc-vsprintf: Likewise.
28688         * modules/unistr/u8-check: Likewise.
28689         * modules/unistr/u8-chr: Likewise.
28690         * modules/unistr/u8-cmp: Likewise.
28691         * modules/unistr/u8-cmp2: Likewise.
28692         * modules/unistr/u8-cpy: Likewise.
28693         * modules/unistr/u8-cpy-alloc: Likewise.
28694         * modules/unistr/u8-endswith: Likewise.
28695         * modules/unistr/u8-mblen: Likewise.
28696         * modules/unistr/u8-mbsnlen: Likewise.
28697         * modules/unistr/u8-mbtouc: Likewise.
28698         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28699         * modules/unistr/u8-mbtoucr: Likewise.
28700         * modules/unistr/u8-move: Likewise.
28701         * modules/unistr/u8-next: Likewise.
28702         * modules/unistr/u8-prev: Likewise.
28703         * modules/unistr/u8-set: Likewise.
28704         * modules/unistr/u8-startswith: Likewise.
28705         * modules/unistr/u8-stpcpy: Likewise.
28706         * modules/unistr/u8-stpncpy: Likewise.
28707         * modules/unistr/u8-strcat: Likewise.
28708         * modules/unistr/u8-strchr: Likewise.
28709         * modules/unistr/u8-strcmp: Likewise.
28710         * modules/unistr/u8-strcoll: Likewise.
28711         * modules/unistr/u8-strcpy: Likewise.
28712         * modules/unistr/u8-strcspn: Likewise.
28713         * modules/unistr/u8-strdup: Likewise.
28714         * modules/unistr/u8-strlen: Likewise.
28715         * modules/unistr/u8-strmblen: Likewise.
28716         * modules/unistr/u8-strmbtouc: Likewise.
28717         * modules/unistr/u8-strncat: Likewise.
28718         * modules/unistr/u8-strncmp: Likewise.
28719         * modules/unistr/u8-strncpy: Likewise.
28720         * modules/unistr/u8-strnlen: Likewise.
28721         * modules/unistr/u8-strpbrk: Likewise.
28722         * modules/unistr/u8-strrchr: Likewise.
28723         * modules/unistr/u8-strspn: Likewise.
28724         * modules/unistr/u8-strstr: Likewise.
28725         * modules/unistr/u8-strtok: Likewise.
28726         * modules/unistr/u8-to-u16: Likewise.
28727         * modules/unistr/u8-to-u32: Likewise.
28728         * modules/unistr/u8-uctomb: Likewise.
28729         * modules/unistr/u16-check: Likewise.
28730         * modules/unistr/u16-chr: Likewise.
28731         * modules/unistr/u16-cmp: Likewise.
28732         * modules/unistr/u16-cmp2: Likewise.
28733         * modules/unistr/u16-cpy: Likewise.
28734         * modules/unistr/u16-cpy-alloc: Likewise.
28735         * modules/unistr/u16-endswith: Likewise.
28736         * modules/unistr/u16-mblen: Likewise.
28737         * modules/unistr/u16-mbsnlen: Likewise.
28738         * modules/unistr/u16-mbtouc: Likewise.
28739         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28740         * modules/unistr/u16-mbtoucr: Likewise.
28741         * modules/unistr/u16-move: Likewise.
28742         * modules/unistr/u16-next: Likewise.
28743         * modules/unistr/u16-prev: Likewise.
28744         * modules/unistr/u16-set: Likewise.
28745         * modules/unistr/u16-startswith: Likewise.
28746         * modules/unistr/u16-stpcpy: Likewise.
28747         * modules/unistr/u16-stpncpy: Likewise.
28748         * modules/unistr/u16-strcat: Likewise.
28749         * modules/unistr/u16-strchr: Likewise.
28750         * modules/unistr/u16-strcmp: Likewise.
28751         * modules/unistr/u16-strcoll: Likewise.
28752         * modules/unistr/u16-strcpy: Likewise.
28753         * modules/unistr/u16-strcspn: Likewise.
28754         * modules/unistr/u16-strdup: Likewise.
28755         * modules/unistr/u16-strlen: Likewise.
28756         * modules/unistr/u16-strmblen: Likewise.
28757         * modules/unistr/u16-strmbtouc: Likewise.
28758         * modules/unistr/u16-strncat: Likewise.
28759         * modules/unistr/u16-strncmp: Likewise.
28760         * modules/unistr/u16-strncpy: Likewise.
28761         * modules/unistr/u16-strnlen: Likewise.
28762         * modules/unistr/u16-strpbrk: Likewise.
28763         * modules/unistr/u16-strrchr: Likewise.
28764         * modules/unistr/u16-strspn: Likewise.
28765         * modules/unistr/u16-strstr: Likewise.
28766         * modules/unistr/u16-strtok: Likewise.
28767         * modules/unistr/u16-to-u32: Likewise.
28768         * modules/unistr/u16-to-u8: Likewise.
28769         * modules/unistr/u16-uctomb: Likewise.
28770         * modules/unistr/u32-check: Likewise.
28771         * modules/unistr/u32-chr: Likewise.
28772         * modules/unistr/u32-cmp: Likewise.
28773         * modules/unistr/u32-cmp2: Likewise.
28774         * modules/unistr/u32-cpy: Likewise.
28775         * modules/unistr/u32-cpy-alloc: Likewise.
28776         * modules/unistr/u32-endswith: Likewise.
28777         * modules/unistr/u32-mblen: Likewise.
28778         * modules/unistr/u32-mbsnlen: Likewise.
28779         * modules/unistr/u32-mbtouc: Likewise.
28780         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28781         * modules/unistr/u32-mbtoucr: Likewise.
28782         * modules/unistr/u32-move: Likewise.
28783         * modules/unistr/u32-next: Likewise.
28784         * modules/unistr/u32-prev: Likewise.
28785         * modules/unistr/u32-set: Likewise.
28786         * modules/unistr/u32-startswith: Likewise.
28787         * modules/unistr/u32-stpcpy: Likewise.
28788         * modules/unistr/u32-stpncpy: Likewise.
28789         * modules/unistr/u32-strcat: Likewise.
28790         * modules/unistr/u32-strchr: Likewise.
28791         * modules/unistr/u32-strcmp: Likewise.
28792         * modules/unistr/u32-strcoll: Likewise.
28793         * modules/unistr/u32-strcpy: Likewise.
28794         * modules/unistr/u32-strcspn: Likewise.
28795         * modules/unistr/u32-strdup: Likewise.
28796         * modules/unistr/u32-strlen: Likewise.
28797         * modules/unistr/u32-strmblen: Likewise.
28798         * modules/unistr/u32-strmbtouc: Likewise.
28799         * modules/unistr/u32-strncat: Likewise.
28800         * modules/unistr/u32-strncmp: Likewise.
28801         * modules/unistr/u32-strncpy: Likewise.
28802         * modules/unistr/u32-strnlen: Likewise.
28803         * modules/unistr/u32-strpbrk: Likewise.
28804         * modules/unistr/u32-strrchr: Likewise.
28805         * modules/unistr/u32-strspn: Likewise.
28806         * modules/unistr/u32-strstr: Likewise.
28807         * modules/unistr/u32-strtok: Likewise.
28808         * modules/unistr/u32-to-u16: Likewise.
28809         * modules/unistr/u32-to-u8: Likewise.
28810         * modules/unistr/u32-uctomb: Likewise.
28811         * modules/uniwbrk/u8-wordbreaks: Likewise.
28812         * modules/uniwbrk/u16-wordbreaks: Likewise.
28813         * modules/uniwbrk/u32-wordbreaks: Likewise.
28814         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28815         * modules/uniwbrk/wordbreak-property: Likewise.
28816         * modules/uniwidth/u8-strwidth: Likewise.
28817         * modules/uniwidth/u8-width: Likewise.
28818         * modules/uniwidth/u16-strwidth: Likewise.
28819         * modules/uniwidth/u16-width: Likewise.
28820         * modules/uniwidth/u32-strwidth: Likewise.
28821         * modules/uniwidth/u32-width: Likewise.
28822         * modules/uniwidth/width: Likewise.
28823         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28824         with $(LIBUNISTRING).
28825         * modules/unicase/ignorable-tests: Likewise.
28826         * modules/unicase/locale-language-tests: Likewise.
28827         * modules/unicase/tolower-tests: Likewise.
28828         * modules/unicase/totitle-tests: Likewise.
28829         * modules/unicase/toupper-tests: Likewise.
28830         * modules/unicase/u8-casecmp-tests: Likewise.
28831         * modules/unicase/u8-casecoll-tests: Likewise.
28832         * modules/unicase/u8-casefold-tests: Likewise.
28833         * modules/unicase/u8-is-cased-tests: Likewise.
28834         * modules/unicase/u8-is-casefolded-tests: Likewise.
28835         * modules/unicase/u8-is-lowercase-tests: Likewise.
28836         * modules/unicase/u8-is-titlecase-tests: Likewise.
28837         * modules/unicase/u8-is-uppercase-tests: Likewise.
28838         * modules/unicase/u8-tolower-tests: Likewise.
28839         * modules/unicase/u8-totitle-tests: Likewise.
28840         * modules/unicase/u8-toupper-tests: Likewise.
28841         * modules/unicase/u16-casecmp-tests: Likewise.
28842         * modules/unicase/u16-casecoll-tests: Likewise.
28843         * modules/unicase/u16-casefold-tests: Likewise.
28844         * modules/unicase/u16-is-cased-tests: Likewise.
28845         * modules/unicase/u16-is-casefolded-tests: Likewise.
28846         * modules/unicase/u16-is-lowercase-tests: Likewise.
28847         * modules/unicase/u16-is-titlecase-tests: Likewise.
28848         * modules/unicase/u16-is-uppercase-tests: Likewise.
28849         * modules/unicase/u16-tolower-tests: Likewise.
28850         * modules/unicase/u16-totitle-tests: Likewise.
28851         * modules/unicase/u16-toupper-tests: Likewise.
28852         * modules/unicase/u32-casecmp-tests: Likewise.
28853         * modules/unicase/u32-casecoll-tests: Likewise.
28854         * modules/unicase/u32-casefold-tests: Likewise.
28855         * modules/unicase/u32-is-cased-tests: Likewise.
28856         * modules/unicase/u32-is-casefolded-tests: Likewise.
28857         * modules/unicase/u32-is-lowercase-tests: Likewise.
28858         * modules/unicase/u32-is-titlecase-tests: Likewise.
28859         * modules/unicase/u32-is-uppercase-tests: Likewise.
28860         * modules/unicase/u32-tolower-tests: Likewise.
28861         * modules/unicase/u32-totitle-tests: Likewise.
28862         * modules/unicase/u32-toupper-tests: Likewise.
28863         * modules/unicase/ulc-casecmp-tests: Likewise.
28864         * modules/unicase/ulc-casecoll-tests: Likewise.
28865         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28866         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28867         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28868         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28869         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28870         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28871         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28872         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28873         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28874         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28875         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28876         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28877         * modules/unictype/bidicategory-byname-tests: Likewise.
28878         * modules/unictype/bidicategory-name-tests: Likewise.
28879         * modules/unictype/bidicategory-of-tests: Likewise.
28880         * modules/unictype/bidicategory-test-tests: Likewise.
28881         * modules/unictype/block-list-tests: Likewise.
28882         * modules/unictype/block-of-tests: Likewise.
28883         * modules/unictype/block-test-tests: Likewise.
28884         * modules/unictype/category-C-tests: Likewise.
28885         * modules/unictype/category-Cc-tests: Likewise.
28886         * modules/unictype/category-Cf-tests: Likewise.
28887         * modules/unictype/category-Cn-tests: Likewise.
28888         * modules/unictype/category-Co-tests: Likewise.
28889         * modules/unictype/category-Cs-tests: Likewise.
28890         * modules/unictype/category-L-tests: Likewise.
28891         * modules/unictype/category-Ll-tests: Likewise.
28892         * modules/unictype/category-Lm-tests: Likewise.
28893         * modules/unictype/category-Lo-tests: Likewise.
28894         * modules/unictype/category-Lt-tests: Likewise.
28895         * modules/unictype/category-Lu-tests: Likewise.
28896         * modules/unictype/category-M-tests: Likewise.
28897         * modules/unictype/category-Mc-tests: Likewise.
28898         * modules/unictype/category-Me-tests: Likewise.
28899         * modules/unictype/category-Mn-tests: Likewise.
28900         * modules/unictype/category-N-tests: Likewise.
28901         * modules/unictype/category-Nd-tests: Likewise.
28902         * modules/unictype/category-Nl-tests: Likewise.
28903         * modules/unictype/category-No-tests: Likewise.
28904         * modules/unictype/category-P-tests: Likewise.
28905         * modules/unictype/category-Pc-tests: Likewise.
28906         * modules/unictype/category-Pd-tests: Likewise.
28907         * modules/unictype/category-Pe-tests: Likewise.
28908         * modules/unictype/category-Pf-tests: Likewise.
28909         * modules/unictype/category-Pi-tests: Likewise.
28910         * modules/unictype/category-Po-tests: Likewise.
28911         * modules/unictype/category-Ps-tests: Likewise.
28912         * modules/unictype/category-S-tests: Likewise.
28913         * modules/unictype/category-Sc-tests: Likewise.
28914         * modules/unictype/category-Sk-tests: Likewise.
28915         * modules/unictype/category-Sm-tests: Likewise.
28916         * modules/unictype/category-So-tests: Likewise.
28917         * modules/unictype/category-Z-tests: Likewise.
28918         * modules/unictype/category-Zl-tests: Likewise.
28919         * modules/unictype/category-Zp-tests: Likewise.
28920         * modules/unictype/category-Zs-tests: Likewise.
28921         * modules/unictype/category-and-not-tests: Likewise.
28922         * modules/unictype/category-and-tests: Likewise.
28923         * modules/unictype/category-byname-tests: Likewise.
28924         * modules/unictype/category-name-tests: Likewise.
28925         * modules/unictype/category-none-tests: Likewise.
28926         * modules/unictype/category-of-tests: Likewise.
28927         * modules/unictype/category-or-tests: Likewise.
28928         * modules/unictype/category-test-withtable-tests: Likewise.
28929         * modules/unictype/combining-class-tests: Likewise.
28930         * modules/unictype/ctype-alnum-tests: Likewise.
28931         * modules/unictype/ctype-alpha-tests: Likewise.
28932         * modules/unictype/ctype-blank-tests: Likewise.
28933         * modules/unictype/ctype-cntrl-tests: Likewise.
28934         * modules/unictype/ctype-digit-tests: Likewise.
28935         * modules/unictype/ctype-graph-tests: Likewise.
28936         * modules/unictype/ctype-lower-tests: Likewise.
28937         * modules/unictype/ctype-print-tests: Likewise.
28938         * modules/unictype/ctype-punct-tests: Likewise.
28939         * modules/unictype/ctype-space-tests: Likewise.
28940         * modules/unictype/ctype-upper-tests: Likewise.
28941         * modules/unictype/ctype-xdigit-tests: Likewise.
28942         * modules/unictype/decimal-digit-tests: Likewise.
28943         * modules/unictype/digit-tests: Likewise.
28944         * modules/unictype/mirror-tests: Likewise.
28945         * modules/unictype/numeric-tests: Likewise.
28946         * modules/unictype/property-alphabetic-tests: Likewise.
28947         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28948         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28949         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28950         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28951         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28952         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28953         * modules/unictype/property-bidi-control-tests: Likewise.
28954         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28955         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28956         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28957         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28958         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28959         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28960         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28961         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28962         * modules/unictype/property-bidi-pdf-tests: Likewise.
28963         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28964         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28965         * modules/unictype/property-byname-tests: Likewise.
28966         * modules/unictype/property-combining-tests: Likewise.
28967         * modules/unictype/property-composite-tests: Likewise.
28968         * modules/unictype/property-currency-symbol-tests: Likewise.
28969         * modules/unictype/property-dash-tests: Likewise.
28970         * modules/unictype/property-decimal-digit-tests: Likewise.
28971         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28972         * modules/unictype/property-deprecated-tests: Likewise.
28973         * modules/unictype/property-diacritic-tests: Likewise.
28974         * modules/unictype/property-extender-tests: Likewise.
28975         * modules/unictype/property-format-control-tests: Likewise.
28976         * modules/unictype/property-grapheme-base-tests: Likewise.
28977         * modules/unictype/property-grapheme-extend-tests: Likewise.
28978         * modules/unictype/property-grapheme-link-tests: Likewise.
28979         * modules/unictype/property-hex-digit-tests: Likewise.
28980         * modules/unictype/property-hyphen-tests: Likewise.
28981         * modules/unictype/property-id-continue-tests: Likewise.
28982         * modules/unictype/property-id-start-tests: Likewise.
28983         * modules/unictype/property-ideographic-tests: Likewise.
28984         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28985         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28986         * modules/unictype/property-ignorable-control-tests: Likewise.
28987         * modules/unictype/property-iso-control-tests: Likewise.
28988         * modules/unictype/property-join-control-tests: Likewise.
28989         * modules/unictype/property-left-of-pair-tests: Likewise.
28990         * modules/unictype/property-line-separator-tests: Likewise.
28991         * modules/unictype/property-logical-order-exception-tests: Likewise.
28992         * modules/unictype/property-lowercase-tests: Likewise.
28993         * modules/unictype/property-math-tests: Likewise.
28994         * modules/unictype/property-non-break-tests: Likewise.
28995         * modules/unictype/property-not-a-character-tests: Likewise.
28996         * modules/unictype/property-numeric-tests: Likewise.
28997         * modules/unictype/property-other-alphabetic-tests: Likewise.
28998         * modules/unictype/property-other-default-ignorable-code-point-tests:
28999         Likewise.
29000         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29001         * modules/unictype/property-other-id-continue-tests: Likewise.
29002         * modules/unictype/property-other-id-start-tests: Likewise.
29003         * modules/unictype/property-other-lowercase-tests: Likewise.
29004         * modules/unictype/property-other-math-tests: Likewise.
29005         * modules/unictype/property-other-uppercase-tests: Likewise.
29006         * modules/unictype/property-paired-punctuation-tests: Likewise.
29007         * modules/unictype/property-paragraph-separator-tests: Likewise.
29008         * modules/unictype/property-pattern-syntax-tests: Likewise.
29009         * modules/unictype/property-pattern-white-space-tests: Likewise.
29010         * modules/unictype/property-private-use-tests: Likewise.
29011         * modules/unictype/property-punctuation-tests: Likewise.
29012         * modules/unictype/property-quotation-mark-tests: Likewise.
29013         * modules/unictype/property-radical-tests: Likewise.
29014         * modules/unictype/property-sentence-terminal-tests: Likewise.
29015         * modules/unictype/property-soft-dotted-tests: Likewise.
29016         * modules/unictype/property-space-tests: Likewise.
29017         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29018         * modules/unictype/property-test-tests: Likewise.
29019         * modules/unictype/property-titlecase-tests: Likewise.
29020         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29021         * modules/unictype/property-unified-ideograph-tests: Likewise.
29022         * modules/unictype/property-uppercase-tests: Likewise.
29023         * modules/unictype/property-variation-selector-tests: Likewise.
29024         * modules/unictype/property-white-space-tests: Likewise.
29025         * modules/unictype/property-xid-continue-tests: Likewise.
29026         * modules/unictype/property-xid-start-tests: Likewise.
29027         * modules/unictype/property-zero-width-tests: Likewise.
29028         * modules/unictype/scripts-tests: Likewise.
29029         * modules/unictype/syntax-c-ident-tests: Likewise.
29030         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29031         * modules/unictype/syntax-java-ident-tests: Likewise.
29032         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29033         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29034         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29035         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29036         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29037         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29038         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29039         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29040         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29041         * modules/uniname/uniname-tests: Likewise.
29042         * modules/uninorm/canonical-decomposition-tests: Likewise.
29043         * modules/uninorm/compat-decomposition-tests: Likewise.
29044         * modules/uninorm/composition-tests: Likewise.
29045         * modules/uninorm/decomposing-form-tests: Likewise.
29046         * modules/uninorm/decomposition-tests: Likewise.
29047         * modules/uninorm/filter-tests: Likewise.
29048         * modules/uninorm/nfc-tests: Likewise.
29049         * modules/uninorm/nfd-tests: Likewise.
29050         * modules/uninorm/nfkc-tests: Likewise.
29051         * modules/uninorm/nfkd-tests: Likewise.
29052         * modules/uninorm/u8-normcmp-tests: Likewise.
29053         * modules/uninorm/u8-normcoll-tests: Likewise.
29054         * modules/uninorm/u16-normcmp-tests: Likewise.
29055         * modules/uninorm/u16-normcoll-tests: Likewise.
29056         * modules/uninorm/u32-normcmp-tests: Likewise.
29057         * modules/uninorm/u32-normcoll-tests: Likewise.
29058         * modules/unistdio/u8-asnprintf-tests: Likewise.
29059         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29060         * modules/unistdio/u8-vasprintf-tests: Likewise.
29061         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29062         * modules/unistdio/u8-vsprintf-tests: Likewise.
29063         * modules/unistdio/u16-asnprintf-tests: Likewise.
29064         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29065         * modules/unistdio/u16-vasprintf-tests: Likewise.
29066         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29067         * modules/unistdio/u16-vsprintf-tests: Likewise.
29068         * modules/unistdio/u32-asnprintf-tests: Likewise.
29069         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29070         * modules/unistdio/u32-vasprintf-tests: Likewise.
29071         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29072         * modules/unistdio/u32-vsprintf-tests: Likewise.
29073         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29074         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29075         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29076         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29077         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29078         * modules/unistr/u8-check-tests: Likewise.
29079         * modules/unistr/u8-chr-tests: Likewise.
29080         * modules/unistr/u8-cmp-tests: Likewise.
29081         * modules/unistr/u8-cmp2-tests: Likewise.
29082         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29083         * modules/unistr/u8-cpy-tests: Likewise.
29084         * modules/unistr/u8-mblen-tests: Likewise.
29085         * modules/unistr/u8-mbsnlen-tests: Likewise.
29086         * modules/unistr/u8-mbtouc-tests: Likewise.
29087         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29088         * modules/unistr/u8-mbtoucr-tests: Likewise.
29089         * modules/unistr/u8-move-tests: Likewise.
29090         * modules/unistr/u8-next-tests: Likewise.
29091         * modules/unistr/u8-prev-tests: Likewise.
29092         * modules/unistr/u8-set-tests: Likewise.
29093         * modules/unistr/u8-stpcpy-tests: Likewise.
29094         * modules/unistr/u8-stpncpy-tests: Likewise.
29095         * modules/unistr/u8-strcat-tests: Likewise.
29096         * modules/unistr/u8-strcmp-tests: Likewise.
29097         * modules/unistr/u8-strcoll-tests: Likewise.
29098         * modules/unistr/u8-strcpy-tests: Likewise.
29099         * modules/unistr/u8-strdup-tests: Likewise.
29100         * modules/unistr/u8-strlen-tests: Likewise.
29101         * modules/unistr/u8-strmblen-tests: Likewise.
29102         * modules/unistr/u8-strmbtouc-tests: Likewise.
29103         * modules/unistr/u8-strncat-tests: Likewise.
29104         * modules/unistr/u8-strncmp-tests: Likewise.
29105         * modules/unistr/u8-strncpy-tests: Likewise.
29106         * modules/unistr/u8-strnlen-tests: Likewise.
29107         * modules/unistr/u8-to-u16-tests: Likewise.
29108         * modules/unistr/u8-to-u32-tests: Likewise.
29109         * modules/unistr/u8-uctomb-tests: Likewise.
29110         * modules/unistr/u16-check-tests: Likewise.
29111         * modules/unistr/u16-chr-tests: Likewise.
29112         * modules/unistr/u16-cmp-tests: Likewise.
29113         * modules/unistr/u16-cmp2-tests: Likewise.
29114         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29115         * modules/unistr/u16-cpy-tests: Likewise.
29116         * modules/unistr/u16-mblen-tests: Likewise.
29117         * modules/unistr/u16-mbsnlen-tests: Likewise.
29118         * modules/unistr/u16-mbtouc-tests: Likewise.
29119         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29120         * modules/unistr/u16-mbtoucr-tests: Likewise.
29121         * modules/unistr/u16-move-tests: Likewise.
29122         * modules/unistr/u16-next-tests: Likewise.
29123         * modules/unistr/u16-prev-tests: Likewise.
29124         * modules/unistr/u16-set-tests: Likewise.
29125         * modules/unistr/u16-stpcpy-tests: Likewise.
29126         * modules/unistr/u16-stpncpy-tests: Likewise.
29127         * modules/unistr/u16-strcat-tests: Likewise.
29128         * modules/unistr/u16-strcmp-tests: Likewise.
29129         * modules/unistr/u16-strcoll-tests: Likewise.
29130         * modules/unistr/u16-strcpy-tests: Likewise.
29131         * modules/unistr/u16-strdup-tests: Likewise.
29132         * modules/unistr/u16-strlen-tests: Likewise.
29133         * modules/unistr/u16-strmblen-tests: Likewise.
29134         * modules/unistr/u16-strmbtouc-tests: Likewise.
29135         * modules/unistr/u16-strncat-tests: Likewise.
29136         * modules/unistr/u16-strncmp-tests: Likewise.
29137         * modules/unistr/u16-strncpy-tests: Likewise.
29138         * modules/unistr/u16-strnlen-tests: Likewise.
29139         * modules/unistr/u16-to-u32-tests: Likewise.
29140         * modules/unistr/u16-to-u8-tests: Likewise.
29141         * modules/unistr/u16-uctomb-tests: Likewise.
29142         * modules/unistr/u32-check-tests: Likewise.
29143         * modules/unistr/u32-chr-tests: Likewise.
29144         * modules/unistr/u32-cmp-tests: Likewise.
29145         * modules/unistr/u32-cmp2-tests: Likewise.
29146         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29147         * modules/unistr/u32-cpy-tests: Likewise.
29148         * modules/unistr/u32-mblen-tests: Likewise.
29149         * modules/unistr/u32-mbsnlen-tests: Likewise.
29150         * modules/unistr/u32-mbtouc-tests: Likewise.
29151         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29152         * modules/unistr/u32-mbtoucr-tests: Likewise.
29153         * modules/unistr/u32-move-tests: Likewise.
29154         * modules/unistr/u32-next-tests: Likewise.
29155         * modules/unistr/u32-prev-tests: Likewise.
29156         * modules/unistr/u32-set-tests: Likewise.
29157         * modules/unistr/u32-stpcpy-tests: Likewise.
29158         * modules/unistr/u32-stpncpy-tests: Likewise.
29159         * modules/unistr/u32-strcat-tests: Likewise.
29160         * modules/unistr/u32-strcmp-tests: Likewise.
29161         * modules/unistr/u32-strcoll-tests: Likewise.
29162         * modules/unistr/u32-strcpy-tests: Likewise.
29163         * modules/unistr/u32-strdup-tests: Likewise.
29164         * modules/unistr/u32-strlen-tests: Likewise.
29165         * modules/unistr/u32-strmblen-tests: Likewise.
29166         * modules/unistr/u32-strmbtouc-tests: Likewise.
29167         * modules/unistr/u32-strncat-tests: Likewise.
29168         * modules/unistr/u32-strncmp-tests: Likewise.
29169         * modules/unistr/u32-strncpy-tests: Likewise.
29170         * modules/unistr/u32-strnlen-tests: Likewise.
29171         * modules/unistr/u32-to-u16-tests: Likewise.
29172         * modules/unistr/u32-to-u8-tests: Likewise.
29173         * modules/unistr/u32-uctomb-tests: Likewise.
29174         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29175         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29176         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29177         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29178         * modules/uniwidth/u8-strwidth-tests: Likewise.
29179         * modules/uniwidth/u8-width-tests: Likewise.
29180         * modules/uniwidth/u16-strwidth-tests: Likewise.
29181         * modules/uniwidth/u16-width-tests: Likewise.
29182         * modules/uniwidth/u32-strwidth-tests: Likewise.
29183         * modules/uniwidth/u32-width-tests: Likewise.
29184         * modules/uniwidth/width-tests: Likewise.
29185
29186 2010-05-18  Richard Jones  <rjones@redhat.com>
29187
29188         doc: users.txt: list hivex
29189         * users.txt: Add hivex.
29190
29191 2010-05-18  Richard Jones  <rjones@redhat.com>
29192
29193         doc: users.txt: list febootstrap
29194         * users.txt: Add febootstrap.
29195
29196 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29197
29198         bootstrap: fix an error when gnulib is not used as a git submodule
29199         * build-aux/bootstrap (gnulib_path): If its length is zero then
29200         assign "gnulib" to it.
29201         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29202
29203 2010-05-16  Bruno Haible  <bruno@clisp.org>
29204
29205         Avoid autoconf warnings about AM_ICONV.
29206         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29207         2.64.
29208
29209 2010-05-16  Bruno Haible  <bruno@clisp.org>
29210
29211         absolute-header: Make the macro usable in more situations.
29212         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29213         from gl_ABSOLUTE_HEADER.
29214         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29215
29216 2010-05-16  James Youngman  <jay@gnu.org>
29217
29218         doc: update users.txt
29219         * users.txt: Add CSSC.
29220
29221 2010-05-16  Jim Meyering  <meyering@redhat.com>
29222
29223         init.sh: fix an error in the previous change; add more comments
29224         * tests/init.sh: Compare exit code in loop against 9, not 2.
29225         Patch by Bruno Haible.
29226         Make the two tests more similar by adding an empty "then" clause.
29227         Add comments.
29228
29229         init.sh: avoid unnecessary shell re-exec
29230         * tests/init.sh: Improve the re-exec-required check to first test the
29231         current shell.  If it passes the test, do not search for a shell that
29232         does pass, and do not re-exec.  This test is particularly contorted to
29233         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29234         of $(...) evokes a syntax error and causes immediate shell exit with
29235         status 2.  Bruno Haible reported that the re-exec made it impossible
29236         to single-step through any init.sh-using script.
29237
29238 2010-05-16  Bruno Haible  <bruno@clisp.org>
29239
29240         Fix collision between gnulib's and libintl's printf replacements.
29241         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29242         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29243         (printf): When using GNU C, map the __printf__ function to rpl_printf
29244         via __asm__. When not using GNU C, define rpl_printf instead of
29245         __printf__.
29246         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29247         commit.
29248         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29249         commit.
29250         * m4/asm-underscore.m4: New file.
29251         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29252         * modules/stdio (Files): Add m4/asm-underscore.m4.
29253         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29254         Reported by Ben Pfaff.
29255
29256 2010-05-16  Bruno Haible  <bruno@clisp.org>
29257
29258         verify: Avoid skipping the test on openSUSE 11.0.
29259         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29260
29261 2010-05-13  Bruno Haible  <bruno@clisp.org>
29262
29263         Avoid useless warnings from G++.
29264         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29265         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29266         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29267
29268 2010-05-11  Jim Meyering  <meyering@redhat.com>
29269
29270         maint.mk: tweak preceding change
29271         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29272         regexps tighter by anchoring at EOL, and make the new group "shy"
29273         for slightly decreased overhead.
29274
29275 2010-05-11  Eric Blake  <eblake@redhat.com>
29276
29277         maint.mk: gnulib doesn't guarantee NSIG
29278         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29279
29280 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29281
29282         test-pwrite.c: Remove unused variable declaration.
29283         * tests/test-pwrite.c (main): Remove read_buf declaration.
29284
29285         Remove useless test-pwrite.sh file.
29286         * tests/test-pwrite.sh: Delete file.
29287         * modules/pwrite-tests: Remove references.
29288         Reported by Bruno Haible.
29289
29290 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29291
29292         init.sh: fix a typo
29293         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29294
29295 2010-05-10  Jim Meyering  <meyering@redhat.com>
29296
29297         maint.mk: avoid using a temporary file in the always-defined-macros check
29298         * top/maint.mk (.re-defmac): Remove rule.
29299         (gl_trap_): Remove definition.
29300         (sc_prohibit_always-defined_macros): Rewrite not to create and
29301         depend on a temporary file.  Instead, depend on GNU grep's ability
29302         to read a list of regular expressions from stdin when given "-f -".
29303
29304 2010-05-09  Bruno Haible  <bruno@clisp.org>
29305
29306         Update to GNU gettext 0.18, part 1.
29307         * m4/gettext.m4: Update to GNU gettext 0.18.
29308         * m4/intl.m4: Likewise.
29309         * m4/po.m4: Likewise.
29310         * modules/gettext (Files): Add m4/fcntl-o.m4.
29311         (configure.ac): Require gettext infrastructure from version 0.18.
29312
29313 2010-05-09  Jim Meyering  <meyering@redhat.com>
29314
29315         init.sh: enable MALLOC_PERTURB_
29316         * tests/init.sh: Enable glibc's malloc-perturbing option.
29317
29318         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29319         With my recent change in init.sh from the two-line form:
29320             -#   : ${srcdir=.}
29321             -#   . "$srcdir/init.sh"; path_prepend_ .
29322             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29323         I noticed that using the one-line form would cause this test
29324         to fail with a false-positive, or to stop working altogether,
29325         depending on whether help-version changed or all the tests did.
29326         * top/maint.mk (_hv_regex): Remove this definition.
29327         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29328         (_hv_regex_strong): Use a stronger regex to check for conformance.
29329         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29330         Give a separate diagnostic for lack of conforming use.
29331
29332         maint.mk: prohibit definition of symbols defined by gnulib
29333         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29334         definition of symbols defined by gnulib.
29335
29336 2010-05-09  Bruno Haible  <bruno@clisp.org>
29337
29338         acl: Avoid test failure on Cygwin-hosted mingw.
29339         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29340
29341 2010-05-09  Bruno Haible  <bruno@clisp.org>
29342
29343         error: Use system's fcntl function.
29344         * lib/error.c (fcntl): Undefine.
29345
29346 2010-05-09  Jim Meyering  <meyering@redhat.com>
29347
29348         verify: adjust formatting to be more consistent
29349         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29350         argument-list '('s, and after one comma.
29351
29352 2010-05-09  Bruno Haible  <bruno@clisp.org>
29353
29354         error: More reliable output on mingw.
29355         * lib/error.c: Include <windows.h>.
29356         (is_open): New function.
29357         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29358         defined.
29359
29360 2010-05-09  Bruno Haible  <bruno@clisp.org>
29361
29362         vasnprintf: Fix syntax errors in libintl build on mingw.
29363         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29364         pad_ourselves and prec_ourselves after use.
29365
29366 2010-05-08  Bruno Haible  <bruno@clisp.org>
29367
29368         * lib/config.charset: Update comments for Cygwin 1.7.
29369         * lib/localcharset.c: Likewise.
29370
29371 2010-05-07  Jim Meyering  <meyering@redhat.com>
29372
29373         init.sh: improve comments
29374         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29375         . "${srcdir=.}/init.sh"; path_prepend_ .
29376         Add a note about path_prepend_ and the alternative of using
29377         TESTS_ENVIRONMENT.
29378
29379 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29380
29381         exclude: Unescape hashed patterns in wildcard mode.
29382         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29383         to the hash list.
29384         * tests/test-exclude8.sh: New test case.
29385         * modules/exclude-tests: Add new test.
29386
29387 2010-05-05  Eric Blake  <eblake@redhat.com>
29388
29389         verify: automate tests
29390         * modules/verify-tests: New module.
29391         * tests/test-verify.sh: New file.
29392         * tests/test-verify.c: Guard each negative test with a unique id.
29393         Also avoid warning about unused left hand of comma expressions.
29394
29395 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29396
29397         Further improvements to verify.h, suggested by Eric Blake.
29398         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29399         the GL_* versions, to avoid collision with OpenGL.
29400         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29401         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29402         than testing merely whether it's defined.
29403
29404         Modify verify.h to pacify gcc -Wredundant_decls.
29405         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29406         These use the prefix "GL_" since they're likely to be useful elsewhere.
29407         We may need to break them out into a different .h file.
29408         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29409         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29410         of verify_function__.
29411
29412 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29413
29414         Tests for module pwrite.
29415         * modules/pwrite-tests: New file.
29416         * tests/test-pwrite.sh: New file.
29417         * tests/test-pwrite.c: New file.
29418
29419         New module pwrite.
29420         * lib/unistd.in.h (pwrite): New declaration.
29421         * lib/pwrite.c: New file, from glibc with modifications.
29422         * m4/pwrite.m4: New file.
29423         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29424         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29425         REPLACE_PWRITE.
29426         * modules/pwrite: New file.
29427         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29428         REPLACE_PWRITE.
29429         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29430         * doc/posix-functions/pwrite.texi: Mention the new module.
29431
29432 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29433
29434         pread: Update documentation.
29435         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29436
29437 2010-05-04  Eric Blake  <eblake@redhat.com>
29438
29439         docs: update cygwin progress
29440         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29441         this bug.
29442         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29443         Added in cygwin 1.7.2.
29444         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29445         Likewise.
29446         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29447         Likewise.
29448         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29449         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29450         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29451         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29452         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29453         Mention nproc module.
29454         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29455         bug in cygwin 1.7.5 addition.
29456         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29457         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29458         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29459         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29460         1.7.5.
29461         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29462         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29463         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29464         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29465         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29466         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29467         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29468         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29469         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29470         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29471         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29472         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29473         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29474         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29475         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29476         Likewise.
29477         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29478         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29479         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29480         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29481         Likewise.
29482         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29483         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29484         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29485         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29486         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29487         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29488         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29489         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29490         Likewise.
29491         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29492         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29493         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29494         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29495         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29496         Likewise.
29497         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29498         Likewise.
29499         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29500         Likewise.
29501         * doc/glibc-functions/xdrrec_endofrecord.texi
29502         (xdrrec_endofrecord): Likewise.
29503         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29504         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29505         Likewise.
29506         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29507         Likewise.
29508
29509 2010-05-04  Jim Meyering  <meyering@redhat.com>
29510
29511         gendocs.sh: make its "-s FILE" option more useful
29512         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29513         $PACKAGE to reflect the probably-different basename of "FILE".
29514
29515 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29516
29517         bootstrap: don't ignore download_po_files failure
29518         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29519         failure.
29520
29521 2010-05-03  Jim Meyering  <meyering@redhat.com>
29522
29523         maint.mk: allow to pass options to gendocs.sh
29524         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29525         (gendocs_options_): New overridable variable.
29526
29527         gnu-web-doc-update: don't ignore configure or build failure
29528         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29529
29530         announce-gen: backslash-escape '@'s in --help output
29531         * build-aux/announce-gen: Fix syntax errors.
29532
29533         maint.mk, announce-gen: allow project-specific announcement mail headers
29534         * top/maint.mk (translation_project_): Define default.
29535         (announcement_Cc_, announcement_mail_headers_): Likewise.
29536         (announcement): Invoke announce-gen with new --mail-headers option.
29537         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29538
29539         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29540         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29541         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29542         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29543         line in the "err2" output file when running "make check" in verbose
29544         mode (i.e., with set -x enabled).
29545
29546 2010-05-03  Bruno Haible  <bruno@clisp.org>
29547
29548         wctob: Fix for weird platforms.
29549         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29550         argument value.
29551
29552 2010-05-03  Jim Meyering  <meyering@redhat.com>
29553
29554         maint.mk: prohibit unwarranted use of <strings.h>
29555         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29556         strings.h in a file that does not also use strcasecmp, strncasecmp,
29557         ffs or ffsll.
29558
29559         maint.mk: remove obsolete comments
29560         * top/maint.mk: Remove stale, commented-out rules.
29561
29562 2010-05-02  Bruno Haible  <bruno@clisp.org>
29563
29564         wcwidth: Declare also when it's aliased.
29565         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29566         macro.
29567
29568 2010-05-02  Bruno Haible  <bruno@clisp.org>
29569
29570         Fix regression from 2010-04-25.
29571         * gnulib-tool (func_modules_transitive_closure): Check the status of
29572         all modules, not only of the tests that are of the form foo-tests where
29573         foo is a module.
29574
29575 2010-05-02  Bruno Haible  <bruno@clisp.org>
29576
29577         wctob: Work around nasty Cygwin 1.7.2 bug.
29578         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29579         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29580
29581 2010-05-01  Bruno Haible  <bruno@clisp.org>
29582
29583         fpurge: Sharper test.
29584         * tests/test-fpurge.c (main): Add one more ftell check.
29585         * modules/fpurge-tests (Depends-on): Add ftell.
29586         Suggested by Eric Blake.
29587
29588 2010-05-01  Bruno Haible  <bruno@clisp.org>
29589
29590         ftello: Another test.
29591         * tests/test-ftello3.c: New file.
29592         * modules/ftello-tests (Files): Add it.
29593         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29594         MOSTLYCLEANFILES.
29595
29596         ftell: Another test.
29597         * tests/test-ftell3.c: New file.
29598         * modules/ftell-tests (Files): Add it.
29599         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29600         MOSTLYCLEANFILES.
29601
29602 2010-05-01  Bruno Haible  <bruno@clisp.org>
29603
29604         ftell, ftello: Work around Solaris bug.
29605         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29606         * lib/ftello.c: Include stdio-impl.h.
29607         (ftello): On Solaris, when _IOWRT is set, compute the result without
29608         looking at _IOREAD.
29609         * modules/ftello (Files): Add lib/stdio-impl.h.
29610         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29611         * doc/posix-functions/ftello.texi: Likewise.
29612         Reported by Eric Blake.
29613
29614 2010-05-01  Bruno Haible  <bruno@clisp.org>
29615
29616         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29617         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29618         the _IOWRT flag is also set.
29619
29620 2010-05-01  Bruno Haible  <bruno@clisp.org>
29621
29622         Fix doc about a HP-UX stdio bug.
29623         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29624         * doc/posix-functions/ftello.texi: Likewise.
29625
29626 2010-05-01  Bruno Haible  <bruno@clisp.org>
29627
29628         lseek test: Fix failure on Solaris.
29629         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29630         output.
29631
29632 2010-04-30  Jim Meyering  <meyering@redhat.com>
29633
29634         bootstrap: don't ignore failure to generate po*/Makevars
29635         * build-aux/bootstrap (with_gettext): Don't ignore failure
29636         to create po/Makevars or runtime-po/Makevars.
29637
29638 2010-04-29  Eric Blake  <eblake@redhat.com>
29639
29640         headers: relax license to LGPLv2+
29641         * modules/fcntl-h (License): Relax license.
29642         * modules/getopt-posix (License): Likewise.
29643         * modules/locale (License): Likewise.
29644         * modules/math (License): Likewise.
29645         * modules/pty (License): Likewise.
29646         * modules/sched (License): Likewise.
29647         * modules/search (License): Likewise.
29648         * modules/spawn (License): Likewise.
29649         * modules/stdarg (License): Likewise.
29650         * modules/sysexits (License): Likewise.
29651
29652 2010-04-29  Jim Meyering  <meyering@redhat.com>
29653
29654         inttypes: relax license to LGPLv2+
29655         * modules/inttypes (License): Relax license.
29656
29657 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29658
29659         * top/maint.mk (indent): Run twice to produce idempotent results.
29660
29661 2010-04-28  Bruno Haible  <bruno@clisp.org>
29662
29663         getdate: Generate getdate.c in the source directory.
29664         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29665         MOSTLYCLEANFILES.
29666         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29667
29668 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29669
29670         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29671         is not declared as a const *; avoid warnings in that case.
29672
29673 2010-04-28  Eric Blake  <eblake@redhat.com>
29674
29675         canonicalize-lgpl: avoid compiler warning
29676         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29677         declaration' / 'extraneous semicolon' warning with some compilers.
29678         Reported by Andreas Gruenbacher.
29679
29680 2010-04-28  Jim Meyering  <meyering@redhat.com>
29681
29682         init.sh: ensure a more reliable exit status when exiting via trap
29683         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29684         Inspired by patches from Dmitry V. Levin.
29685         Also trap on signal 3 (SIGQUIT).
29686
29687 2010-04-27  Bruno Haible  <bruno@clisp.org>
29688
29689         Update doc about utimes().
29690         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29691         'utimens' module.
29692         Reported by Andreas Gruenbacher <agruen@suse.de>.
29693
29694 2010-04-27  Eric Blake  <eblake@redhat.com>
29695
29696         full-read, full-write: relax license
29697         * modules/full-read (License): Drop to LGPLv2+.
29698         * modules/full-write (License): Likewise.
29699         * modules/safe-read (License): Likewise.
29700         * modules/safe-write (License): Likewise.
29701
29702         pthread: mention library for linking
29703         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29704
29705 2010-04-27  Jim Meyering  <meyering@redhat.com>
29706
29707         maint.mk: fix a bug introduced in last change
29708         * top/maint.mk (gl_assured_headers_): Now that all names are on
29709         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29710         is not anchored to end of word, it should be adequate.
29711
29712         maint.mk: avoid side-effect in latest syntax-check
29713         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29714         to run commands via $(shell...), and hence to incur cost only when
29715         the new rule is actually run.
29716
29717         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29718         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29719         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29720         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29721         (gl_assured_headers_, az_, AZ_): Define.
29722         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29723
29724 2010-04-26  Jim Meyering  <jim@meyering.net>
29725             Bruno Haible  <bruno@clisp.org>
29726
29727         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29728         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29729         Prompted by an exchange with Gilles Espinasse.
29730
29731 2010-04-26  Jim Meyering  <meyering@redhat.com>
29732
29733         git-version-gen: aesthetic tweak
29734         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29735         so that the command remains on a single line.
29736
29737 2010-04-26  Eric Blake  <eblake@redhat.com>
29738
29739         git-version-gen: allow use on EBCDIC hosts
29740         * build-aux/git-version-gen (dirty): Use literal rather than tying
29741         ourselves to ascii.
29742         Reported by Steve Goetze.
29743
29744 2010-04-25  Bruno Haible  <bruno@clisp.org>
29745
29746         netdb: Add support for GNULIB_POSIXCHECK.
29747         * lib/netdb.in.h: Include warn-on-use.h.
29748         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29749         functions are used when GNULIB_POSIXCHECK is defined and the
29750         getaddrinfo module is not in use.
29751         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29752         freeaddrinfo, gai_strerror, getnameinfo are declared.
29753         * modules/netdb (Depends-on): Add warn-on-use.
29754         (Makefile.am): Include warn-on-use.h in netdb.h.
29755
29756 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29757
29758         build: avoid "make check" failure without .git/ directory
29759         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29760         there is no .git/ directory.
29761
29762 2010-04-25  Bruno Haible  <bruno@clisp.org>
29763
29764         ptsname: Fix misuse of ttyname_r.
29765         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29766         of errno.
29767
29768 2010-04-25  Bruno Haible  <bruno@clisp.org>
29769
29770         ttyname_r: Make it work on Solaris 10.
29771         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29772         if the system function has the POSIX declaration. Test whether the
29773         function fails if the buffer is less than 128 bytes large.
29774         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29775         system's ttyname_r function. Provide a reasonably large buffer.
29776         * modules/ttyname_r (Depends-on): Add extensions.
29777         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29778
29779 2010-04-25  Bruno Haible  <bruno@clisp.org>
29780
29781         Use the 'extensions' module for some more functions on Solaris.
29782         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29783         module.
29784         * doc/posix-functions/ctime_r.texi: Likewise.
29785         * doc/posix-functions/getgrgid_r.texi: Likewise.
29786         * doc/posix-functions/getgrnam_r.texi: Likewise.
29787         * doc/posix-functions/getpwnam_r.texi: Likewise.
29788         * doc/posix-functions/getpwuid_r.texi: Likewise.
29789         * doc/posix-functions/readdir_r.texi: Likewise.
29790         * doc/posix-functions/sigwait.texi: Likewise.
29791         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29792         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29793
29794 2010-04-25  Bruno Haible  <bruno@clisp.org>
29795
29796         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29798         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29799         * lib/ttyname_r.c: Include <limits.h>.
29800         (ttyname_r): Define using the system's ttyname_r function, if it exists
29801         and not on Solaris.
29802         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29803         set.
29804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29805         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29806         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29807         Reported by Simon Josefsson.
29808
29809 2010-04-25  Bruno Haible  <bruno@clisp.org>
29810
29811         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29812         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29813         * doc/posix-functions/ctime_r.texi: Likewise.
29814         * doc/posix-functions/getgrgid_r.texi: Likewise.
29815         * doc/posix-functions/getgrnam_r.texi: Likewise.
29816         * doc/posix-functions/getlogin_r.texi: Likewise.
29817         * doc/posix-functions/getpwnam_r.texi: Likewise.
29818         * doc/posix-functions/getpwuid_r.texi: Likewise.
29819         * doc/posix-functions/readdir_r.texi: Likewise.
29820         * doc/posix-functions/sigwait.texi: Likewise.
29821         * doc/posix-functions/ttyname_r.texi: Likewise.
29822         Reported by Simon Josefsson.
29823
29824 2010-04-25  Bruno Haible  <bruno@clisp.org>
29825
29826         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29827         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29828         also to --create-testdir.
29829         (func_acceptable): Don't consider the status of *-tests modules here.
29830         (func_modules_transitive_closure): Consider it here, before including a
29831         test module.
29832         (func_import, func_create_testdir): Set inc_all_direct_tests,
29833         inc_all_indirect_tests.
29834         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29835         --create-testdir and --create-megatestdir.
29836
29837 2010-04-25  Bruno Haible  <bruno@clisp.org>
29838
29839         gnulib-tool: Add --without-*-tests options.
29840         * gnulib-tool (func_usage): Document the --without-*-tests options.
29841         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29842         excl_unportable_tests): New variables.
29843         Fail if they are specified with --import or --update.
29844         (func_acceptable): Respect the excl_*_tests variables.
29845         (func_import): Set the excl_*_tests variables to empty.
29846
29847 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29848             Bruno Haible  <bruno@clisp.org>
29849
29850         Work around a MacOS X 10.4 bug with openpty.
29851         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29852         * tests/test-openpty.c (main): Close the master side explicitly.
29853
29854 2010-04-25  Bruno Haible  <bruno@clisp.org>
29855
29856         strnlen: Fix a C++ test error on MacOS X and Solaris.
29857         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29858         the function is not declared.
29859         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29860         Simon Josefsson.
29861
29862 2010-04-24  Bruno Haible  <bruno@clisp.org>
29863
29864         Avoid a gcc warning.
29865         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29866         of correct type for %08lx directive.
29867         Reported by Eric Blake.
29868
29869 2010-04-24  Bruno Haible  <bruno@clisp.org>
29870
29871         vasnprintf: Correct errno value in case of out-of-memory.
29872         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29873         or sprintf. Use the errno value from SNPRINTF or sprintf.
29874         Reported by Ian Beckwith <ianb@erislabs.net>.
29875
29876 2010-04-24  Bruno Haible  <bruno@clisp.org>
29877
29878         ansi-c++-opt: Find correct compiler when cross-compiling.
29879         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29880         AC_CHECK_PROGS.
29881         Reported by Simon Josefsson.
29882
29883 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29884
29885         vc-list-files: Add support for subversion
29886         * build-aux/vc-list-files: Use "svn list" to generate the list of
29887         files controlled by subversion.
29888
29889 2010-04-23  Jim Meyering  <meyering@redhat.com>
29890
29891         vc-list-files tests: convert to use init.sh
29892         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29893         path_prepend_.
29894         Use Exit, not exit.
29895         Use skip_ rather than open coding it.
29896         Remove trap set-up and compare definitions.
29897         * tests/test-vc-list-files-git.sh: Likewise.
29898         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29899
29900 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29901
29902         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29903         backup files.
29904
29905 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29906
29907         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29908
29909 2010-04-20  Eric Blake  <eblake@redhat.com>
29910
29911         tests: be robust to ignored SIGPIPE
29912         * tests/test-select-in.sh: Consume all output.
29913         * tests/test-lseek.sh: Check correct exit status, while avoiding
29914         EPIPE.
29915
29916 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29917             Bruno Haible  <bruno@clisp.org>
29918
29919         visibility: Don't use -fvisibility if it leads to a warning.
29920         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29921         yes, don't pretend that visibility works if it leads to a warning.
29922         Reported by Mike Gran <spk121@yahoo.com>.
29923
29924 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29925
29926         * build-aux/bootstrap: Use "git -h" for testing for supported options
29927         instead of "git --help".  The short-form option only shows a summary,
29928         and doesn't layout the full man page.  Grep for the full option name
29929         in the summary, too.
29930
29931 2010-04-19  Bruno Haible  <bruno@clisp.org>
29932
29933         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29934         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29935         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29936         mention of RELOCATABLE_STRIP.
29937         Reported by Sylvain Beucler <beuc@beuc.net>.
29938
29939 2010-04-19  Bruno Haible  <bruno@clisp.org>
29940
29941         * lib/diffseq.h: Fix typo in comment.
29942         Reported by Eric Blake.
29943
29944 2010-04-19  Bruno Haible  <bruno@clisp.org>
29945
29946         ioctl: Move autoconf macro to a .m4 file.
29947         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29948         * modules/ioctl (Files): Add it.
29949         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29950         Reported by Ian Beckwith <ianb@erislabs.net>.
29951
29952 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29953             Bruno Haible  <bruno@clisp.org>
29954
29955         diffseq: Accommodate use-case with abstract arrays.
29956         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29957         is not defined.
29958         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29959         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29960
29961 2010-04-18  Bruno Haible  <bruno@clisp.org>
29962
29963         * doc/posix-headers/stdbool.texi: More precise wording.
29964
29965 2010-04-17  Jim Meyering  <meyering@redhat.com>
29966
29967         maint.mk: use gnu-style indentation in an embedded perl script
29968         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29969         Rename variable: s/two/last_two_bytes/
29970
29971 2010-04-16  Eric Blake  <eblake@redhat.com>
29972
29973         test-stdbool: skip test that fails with Solaris CC
29974         * tests/test-stdbool.c (f): Skip test that causes compilation
29975         error under buggy C++ compiler.
29976         * lib/stdbool.in.h: Document the limitation.
29977         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29978
29979         setenv: allow compilation with C++
29980         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29981         register keyword.
29982
29983         stdint: allow test to pass with C++
29984         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29985
29986         getopt: allow compilation with C++
29987         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29988         struct.
29989         * lib/getopt.c (_getopt_internal_r): Use correct type.
29990         Reported by Dagobert Michelson, via Joel E. Denny.
29991
29992 2010-04-16  Bruno Haible  <bruno@clisp.org>
29993
29994         Override netdb.h always.
29995         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29996         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29997         Reported by Ludovic Courtès <ludo@gnu.org>.
29998
29999 2010-04-15  Bruno Haible  <bruno@clisp.org>
30000
30001         openpty: Fix mistake from 2010-03-21.
30002         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30003         Reported by Simon Josefsson.
30004
30005 2010-04-15  Eric Blake  <eblake@redhat.com>
30006
30007         test-forkpty: fix expected signature
30008         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30009         Reported by Simon Josefsson.
30010
30011 2010-04-15  Jim Meyering  <meyering@redhat.com>
30012
30013         maint.mk: texinfo_suffix_re_: correct the default regexp
30014         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30015
30016         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30017         make it configurable via texinfo_suffix_re_.
30018
30019 2010-04-14  Eric Blake  <eblake@redhat.com>
30020
30021         strtok_r: relax license to LGPLv2+
30022         * modules/strtok_r (License): Relax license.
30023         Reported by Matthias Bolte.
30024
30025 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30026
30027         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30028         version 1.4.4 by default instead of requiring the libgcrypt
30029         version used during build.  This makes it possible to use the
30030         application with older but still binary compatible libgcrypt
30031         versions.
30032
30033 2010-04-13  Eric Blake  <eblake@redhat.com>
30034
30035         getopt-gnu: match recent glibc fixes and posix ruling
30036         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30037         '+' handling, when requesting extensions.
30038         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30039         'W;' handling.
30040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30041         * doc/posix-functions/getopt.texi (getopt): Document this.
30042         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30043         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30044         Likewise.
30045
30046         getopt: merge bug fixes from glibc
30047         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30048         diagnostics.  Honor '+:' correctly.  Reject ';'.
30049
30050         getopt-posix: detect MacOS bug
30051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30052         optind when missing a required argument.
30053         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30054         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30055         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30056         Likewise.
30057
30058         getopt-posix: avoid spurious failure on Solaris
30059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30060         an indicator that setting optind=1 is sufficient for reset.
30061
30062         getopt-posix: avoid spurious failure on FreeBSD
30063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30064         in POSIX mode, since the m4 test uses it.
30065
30066         gnulib-tool: silence warning on BSD sh
30067         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30068
30069 2010-04-13  Jim Meyering  <meyering@redhat.com>
30070
30071         doc: users.txt: GNU patch now uses gnulib
30072         * users.txt: Add patch.
30073
30074 2010-04-12  Jim Meyering  <meyering@redhat.com>
30075
30076         maint.mk: generate more concise timing data for syntax-check rules
30077         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30078         " done" from each line that reports a syntax-check test duration.
30079
30080 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30081
30082         git-version-gen: use "git update-index..." rather than "git status"
30083         * build-aux/git-version-gen: Use git update-index --refresh, not
30084         "git status".  With some versions of git, "git status" would fail
30085         to update the index and result in an unwarranted "-dirty" suffix.
30086
30087 2010-04-11  Jim Meyering  <meyering@redhat.com>
30088
30089         openat: correct formatting (no semantic change)
30090         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30091         Suggested by Bruno Haible.
30092
30093 2010-04-11  Bruno Haible  <bruno@clisp.org>
30094
30095         Stricter declaration checking in testdirs.
30096         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30097         If for_tests is true, augment AM_CPPFLAGS to define
30098         GNULIB_STRICT_CHECKING.
30099         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30100         GNULIB_STRICT_CHECKING is defined, verify that the function is
30101         declared.
30102
30103 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30104             Bruno Haible  <bruno@clisp.org>
30105
30106         libunistring: Improve configure output.
30107         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30108         Don't say "consider installing GNU libunistring" when checking again
30109         with libiconv.
30110
30111 2010-04-11  Bruno Haible  <bruno@clisp.org>
30112
30113         libunistring: Correct value of $LTLIBUNISTRING.
30114         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30115         correct the value of $LTLIBUNISTRING.
30116
30117 2010-04-11  Bruno Haible  <bruno@clisp.org>
30118
30119         havelib: Add static libraries to LIBS in the right order.
30120         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30121         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30122
30123 2010-04-11  Bruno Haible  <bruno@clisp.org>
30124
30125         libunistring: Detect libunistring also when it depends on libiconv.
30126         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30127         the second AC_LIB_HAVE_LINKFLAGS invocation.
30128
30129 2010-04-11  James Youngman  <jay@gnu.org>
30130
30131         close-stream: declare local scalars to be "const"
30132         * lib/close-stream.c (close_stream): Make boolean variables const
30133         to document the fact that we set but do not change them.
30134
30135 2010-04-11  Bruno Haible  <bruno@clisp.org>
30136
30137         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30138
30139 2010-04-11  Jim Meyering  <meyering@redhat.com>
30140
30141         maint.mk: don't include dist-check.mk
30142         * top/maint.mk: Remove bogus include directive.
30143
30144         maint.mk: improve empty-line-at-EOF check
30145         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30146         solution, rather than tail+Perl-based one.  The latter would read
30147         a few kilobytes from the end of each file, and did not handle empty
30148         files properly.
30149
30150         maint.mk: print the elapsed time for each syntax-check rule
30151         * top/maint.mk (sc_m_rules_): Save start time in a file.
30152         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30153         (local-check): Interpose the .z rules
30154
30155 2010-04-11  Jim Meyering  <meyering@redhat.com>
30156
30157         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30158         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30159         empty file with one that ends in an empty line.
30160
30161 2010-04-10  Bruno Haible  <bruno@clisp.org>
30162
30163         mkdir: Make it work on mingw64.
30164         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30165         * lib/mkdir.c: Update comment.
30166         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30167
30168 2010-04-10  Bruno Haible  <bruno@clisp.org>
30169
30170         Don't override improved macro from newer autoconf.
30171         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30172         autoconf >= 2.62.
30173         Reported by Joel E. Denny <jdenny@clemson.edu>.
30174
30175 2010-04-10  Jim Meyering  <meyering@redhat.com>
30176
30177         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30178         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30179
30180         maint.mk: correct a diagnostic
30181         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30182         in diagnostic; now use $prohibit.
30183
30184 2010-04-10  Bruno Haible  <address@hidden>
30185
30186         fchownat: Fix a C++ test error on Solaris 8.
30187         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30188         the function does not exist.
30189
30190 2010-04-10  Bruno Haible  <bruno@clisp.org>
30191
30192         vasnprintf: Add more tests.
30193         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30194         (test_function): Test converting an invalid wide string.
30195
30196         vasnprintf: Correct handling of unconvertible wide string arguments.
30197         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30198         VASNPRINTF.
30199         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30200         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30201         smaller than the expected maximum need for the directive. Set errno to
30202         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30203         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30205         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30206         * modules/vasnprintf (Files): Add m4/printf.m4.
30207         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30208
30209 2010-04-10  Bruno Haible  <bruno@clisp.org>
30210
30211         vasnprintf: Fix crash in %ls directive.
30212         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30213         string is passed as argument to %ls, with no precision and no width.
30214         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30215
30216 2010-04-10  Bruno Haible  <bruno@clisp.org>
30217
30218         vasnprintf: Fix multiple test failures on mingw.
30219         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30220         _snprintf, or snwprintf, not _snwprintf.
30221
30222 2010-04-10  Bruno Haible  <bruno@clisp.org>
30223
30224         write: Fix a C++ test error on mingw.
30225         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30226
30227 2010-04-10  Bruno Haible  <bruno@clisp.org>
30228
30229         vasnprintf test: Reduce code duplication.
30230         * tests/test-vasnprintf.c (test_function): New function, extracted from
30231         test_vasnprintf.
30232         (test_vasnprintf, test_asnprintf): Invoke it.
30233
30234 2010-04-10  Bruno Haible  <bruno@clisp.org>
30235
30236         strnlen: Fix warning in C++ mode on MacOS X.
30237         * lib/string.in.h (strnlen): Use the modern idiom.
30238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30239         defining strnlen as a macro already in <config.h>.
30240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30241         REPLACE_STRNLEN.
30242         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30243         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30244
30245 2010-04-08  James Youngman  <jay@gnu.org>
30246
30247         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30248         the example.
30249
30250 2010-04-09  Jim Meyering  <meyering@redhat.com>
30251
30252         maint.mk: print better diagnostic when there is no $(_hv_file)
30253         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30254         announce that when $(_hv_file) (aka help-version) does not exist.
30255
30256         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30257         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30258         not try to interpret its random input bytes.  Jarno Rajahalme reported
30259         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30260         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30261         (mktempd_): Likewise, just in case.
30262
30263         ftruncate: add two years to projected module removal date: 2012
30264         * m4/ftruncate.m4: Adjust comments.
30265
30266         ftruncate: mark module as obsolete; even MinGW provides it, now
30267         * modules/ftruncate (Status): Obsolete.
30268         (Notice): Say that.
30269         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30270         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30271
30272 2010-04-08  Bruno Haible  <bruno@clisp.org>
30273
30274         Fix side effects from tests-related modules.
30275         * modules/dprintf-posix (Comment): New section.
30276         * modules/fprintf-posix (Comment): Likewise.
30277         * modules/obstack-printf-posix (Comment): Likewise.
30278         * modules/printf-posix (Comment): Likewise.
30279         * modules/snprintf-posix (Comment): Likewise.
30280         * modules/sprintf-posix (Comment): Likewise.
30281         * modules/vasnprintf-posix (Comment): Likewise.
30282         * modules/vasprintf-posix (Comment): Likewise.
30283         * modules/vdprintf-posix (Comment): Likewise.
30284         * modules/vfprintf-posix (Comment): Likewise.
30285         * modules/vprintf-posix (Comment): Likewise.
30286         * modules/vsnprintf-posix (Comment): Likewise.
30287         * modules/vsprintf-posix (Comment): Likewise.
30288         * modules/xprintf-posix (Comment): Likewise.
30289         * modules/xvasprintf-posix (Comment): Likewise.
30290         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30291         * modules/floorf-tests (Depends-on): Likewise.
30292         * modules/round-tests (Depends-on): Likewise.
30293         * modules/roundf-tests (Depends-on): Likewise.
30294         * modules/trunc-tests (Depends-on): Likewise.
30295         * modules/truncf-tests (Depends-on): Likewise.
30296         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30297         'fprintf-posix' module is not present.
30298         * tests/test-floorf2.c (check): Likewise.
30299         * tests/test-trunc2.c (check): Likewise.
30300         * tests/test-truncf2.c (check): Likewise.
30301         * tests/test-round2.c (equal): Likewise.
30302         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30303
30304 2010-04-07  Karl Berry  <karl@gnu.org>
30305
30306         * config/srclist.txt,
30307         * config/srclistvars.sh,
30308         * config/srclist-update: doc fixes.
30309
30310 2010-04-07  Jim Meyering  <meyering@redhat.com>
30311
30312         maint.mk: add a PATH crosschecking syntax-check rule
30313         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30314         Useful if you use a test like the one in help-version (coreutils,
30315         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30316         printed by prog --version.
30317
30318 2010-04-06  Bruno Haible  <bruno@clisp.org>
30319
30320         Fix link error on mingw.
30321         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30322         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30323
30324 2010-04-06  Bruno Haible  <bruno@clisp.org>
30325
30326         Assume rmdir exists.
30327         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30328
30329 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30330
30331         doc: update users.txt
30332         * users.txt: Add gcal.
30333
30334 2010-04-06  Jim Meyering  <meyering@redhat.com>
30335
30336         init.sh: simply unset TMPDIR rather than risking env -i
30337         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30338         although it probably works fine on all Unix-based systems, some
30339         systems (Cygwin?) cannot tolerate a totally cleared environment.
30340         Suggestion from Eric Blake.
30341
30342 2010-04-06  Jim Meyering  <meyering@redhat.com>
30343
30344         init.sh: portability fix: use env's POSIX-specified -i option not -u
30345         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30346         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30347
30348 2010-04-05  Bruno Haible  <bruno@clisp.org>
30349
30350         btowc: Work around Cygwin 1.7.2 bug.
30351         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30352         does not map NUL to 0.
30353         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30354
30355 2010-04-05  Bruno Haible  <bruno@clisp.org>
30356
30357         Make the multithread modules work on Cygwin 1.7.2.
30358         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30359         imported symbols can be declared weak, so that it returns "no" on
30360         Cygwin 1.7.2.
30361
30362 2010-04-05  Bruno Haible  <bruno@clisp.org>
30363
30364         Use the module 'strncat'.
30365         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30366
30367         Tests for module 'strncat'.
30368         * modules/strncat-tests: New file.
30369         * tests/test-strncat.c: New file.
30370
30371         New module 'strncat'.
30372         * lib/string.in.h (strncat): New declaration.
30373         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30374         * m4/strncat.m4: New file, based on m4/memchr.m4.
30375         * modules/strncat: New file.
30376         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30377         is declared.
30378         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30379         REPLACE_STRNCAT.
30380         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30381         REPLACE_STRNCAT.
30382         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30383         module.
30384         * tests/test-string-c++.cc: Check signature of strncat.
30385
30386 2010-04-05  Jim Meyering  <meyering@redhat.com>
30387
30388         xstrtoumax-tests: convert to use init.sh
30389         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30390         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30391         Use Exit, not exit.
30392         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30393
30394         xstrtoimax-tests: convert to use init.sh
30395         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30396         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30397         Use Exit, not exit.
30398         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30399
30400 2010-04-05  Bruno Haible  <bruno@clisp.org>
30401
30402         sys_socket: Avoid #define replacements in C++ mode.
30403         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30404         warning to the function if possible, rather than #defining the symbol
30405         to a dysfunctional alias.
30406
30407 2010-04-05  Bruno Haible  <bruno@clisp.org>
30408
30409         fseeko: Fix C++ test error on mingw.
30410         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30411         gl_FUNC_FSEEKO.
30412         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30413         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30414         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30415         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30416
30417 2010-04-05  Bruno Haible  <bruno@clisp.org>
30418
30419         duplocale: Improve test output.
30420         * tests/test-duplocale.c (main): Print reason for skipped test.
30421
30422 2010-04-05  Bruno Haible  <bruno@clisp.org>
30423
30424         Assume rmdir exists.
30425         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30426         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30427
30428 2010-04-05  Bruno Haible  <bruno@clisp.org>
30429
30430         Fix link error on Solaris 8 with cc.
30431         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30432
30433 2010-04-05  Bruno Haible  <bruno@clisp.org>
30434
30435         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30436         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30437
30438 2010-04-05  Bruno Haible  <bruno@clisp.org>
30439
30440         vasprintf: Update documentation.
30441         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30442
30443 2010-04-05  Bruno Haible  <bruno@clisp.org>
30444
30445         ptsname: Improve test.
30446         * tests/test-ptsname.c (main): Also try the various master names of BSD
30447         systems.
30448
30449 2010-04-05  Bruno Haible  <bruno@clisp.org>
30450
30451         memchr: Avoid a possible C++ test error.
30452         * lib/string.in.h (memchr): Provide declaration if function is missing.
30453         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30454         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30456         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30457
30458 2010-04-05  Bruno Haible  <bruno@clisp.org>
30459
30460         strtok_r: Improve idiom.
30461         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30462         AC_LIBOBJ is used.
30463
30464 2010-04-05  Bruno Haible  <bruno@clisp.org>
30465
30466         strdup: Improve idiom.
30467         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30468         AC_LIBOBJ is used.
30469         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30470         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30471         when AC_LIBOBJ is used.
30472
30473 2010-04-05  Bruno Haible  <bruno@clisp.org>
30474
30475         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30476         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30477         don't set REPLACE_MBSINIT to 1.
30478         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30479         don't set REPLACE_MBRTOWC to 1.
30480         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30481         exist, don't set REPLACE_MBSRTOWCS to 1.
30482         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30483         exist, don't set REPLACE_MBSNRTOWCS to 1.
30484         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30485         don't set REPLACE_WCRTOMB to 1.
30486         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30487         exist, don't set REPLACE_WCSRTOMBS to 1.
30488         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30489         exist, don't set REPLACE_WCSNRTOMBS to 1.
30490
30491 2010-04-05  Bruno Haible  <bruno@clisp.org>
30492
30493         ldexpl: Improve idiom.
30494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30495         make sure to set HAVE_DECL_LDEXPL to 0.
30496
30497 2010-04-05  Jim Meyering  <meyering@redhat.com>
30498
30499         xstrtol-tests: convert to use init.sh
30500         * modules/xstrtol-tests (Files): Add tests/init.sh.
30501         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30502         Use Exit, not exit.
30503         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30504
30505         atexit-tests: convert to use init.sh
30506         * modules/atexit-tests (Files): Add tests/init.sh.
30507         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30508         Use Exit, not exit.
30509         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30510
30511         init.sh: fix typo
30512         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30513
30514         init.sh: make it easier for a test script to write to the tty, ...
30515         when using automake's parallel-tests mode.
30516         * tests/init.sh (stderr_fileno_): Define overridable variable.
30517         (warn_): New function, to use it.
30518         (fail_, skip_, framework_failure_): Use warn_.
30519
30520 2010-04-04  Bruno Haible  <bruno@clisp.org>
30521
30522         btowc: Avoid warning.
30523         * lib/btowc.c: Include <stdlib.h>.
30524         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30525
30526 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30527             Bruno Haible  <bruno@clisp.org>
30528
30529         wchar: Port to NetBSD 1.5.
30530         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30531         * lib/wctype.in.h (WEOF): Likewise.
30532
30533 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30534             Bruno Haible  <bruno@clisp.org>
30535
30536         Port extended stdio to NetBSD 1.5.
30537         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30538         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30539         older.
30540
30541 2010-04-04  Bruno Haible  <bruno@clisp.org>
30542
30543         string: Remove unused substitution.
30544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30545         HAVE_DECL_STRERROR.
30546         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30547
30548 2010-04-04  Bruno Haible  <bruno@clisp.org>
30549
30550         strtod: Avoid a possible C++ test error.
30551         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30552         set REPLACE_STRTOD.
30553
30554 2010-04-04  Bruno Haible  <bruno@clisp.org>
30555
30556         strerror: Update documentation.
30557         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30558
30559 2010-04-04  Bruno Haible  <bruno@clisp.org>
30560
30561         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30562         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30563         _GL_CXXALIAS_SYS_CAST.
30564
30565 2010-04-04  Bruno Haible  <bruno@clisp.org>
30566
30567         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30568         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30569         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30570         REPLACE_FREXPL to 1.
30571         * doc/posix-functions/frexpl.texi: Update documentation.
30572
30573 2010-04-04  Bruno Haible  <bruno@clisp.org>
30574
30575         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30576         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30577
30578 2010-04-04  Bruno Haible  <bruno@clisp.org>
30579
30580         Implement nanosleep for native Windows.
30581         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30582
30583 2010-04-04  Bruno Haible  <bruno@clisp.org>
30584
30585         math: Fix some C++ test errors on Solaris 8.
30586         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30587
30588 2010-04-04  Bruno Haible  <bruno@clisp.org>
30589
30590         math: Fix some C++ test errors on Cygwin.
30591         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30592         truncl): Provide declaration if the system does not have it.
30593         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30594         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30595         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30596         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30597         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30598         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30599         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30600         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30601         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30602         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30603         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30604         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30605         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30606         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30607         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30608         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30610         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30611         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30612         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30613         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30614         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30615
30616 2010-04-04  Bruno Haible  <bruno@clisp.org>
30617
30618         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30619         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30620         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30621         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30622         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30623         * m4/isinf.m4 (gl_ISINF): Likewise.
30624         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30625
30626 2010-04-04  Bruno Haible  <bruno@clisp.org>
30627
30628         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30629         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30630
30631 2010-04-04  Bruno Haible  <bruno@clisp.org>
30632
30633         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30634         * modules/tmpfile (configure.ac): Update.
30635
30636         tmpfile: Fix C++ test error on mingw.
30637         * lib/stdio.in.h (tmpfile): New declaration.
30638         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30639         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30640         * modules/tmpfile (Depends-on): Add stdio.
30641         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30642         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30643         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30644         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30645         REPLACE_TMPFILE.
30646         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30647
30648 2010-04-04  Bruno Haible  <bruno@clisp.org>
30649
30650         ioctl: Fix C++ test error on mingw.
30651         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30652         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30653         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30654
30655 2010-04-03  Bruno Haible  <bruno@clisp.org>
30656
30657         wcwidth: Fix C++ test error on mingw.
30658         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30660         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30661
30662 2010-04-03  Bruno Haible  <bruno@clisp.org>
30663
30664         nanosleep: Fix C++ test error on mingw.
30665         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30666         * lib/time.in.h (nanosleep): Use modern idiom.
30667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30668         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30669         REPLACE_NANOSLEEP to 1.
30670         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30671         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30672
30673 2010-04-03  Bruno Haible  <bruno@clisp.org>
30674
30675         strptime: Fix C++ test error on mingw.
30676         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30677         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30678         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30679         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30681         not REPLACE_STRPTIME.
30682         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30683         REPLACE_STRPTIME.
30684
30685 2010-04-03  Bruno Haible  <bruno@clisp.org>
30686
30687         timegm: Fix C++ test error on mingw.
30688         * lib/time.in.h (timegm): Use modern idiom.
30689         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30690         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30691         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30692         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30693
30694 2010-04-03  Bruno Haible  <bruno@clisp.org>
30695
30696         timegm: Assume declaration if function exists.
30697         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30698         if it exists. Don't clobber ac_cv_func_timegm.
30699
30700 2010-04-03  Bruno Haible  <bruno@clisp.org>
30701
30702         time_r: Fix C++ test error on mingw.
30703         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30704         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30705         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30707         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30708
30709 2010-04-03  Bruno Haible  <bruno@clisp.org>
30710
30711         time_r: Minor updates.
30712         * modules/time_r (Description): Mention the provided functions.
30713         * lib/time_r.c: Don't include <string.h>.
30714         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30715         * doc/posix-functions/localtime_r.texi: Likewise.
30716
30717 2010-04-03  Bruno Haible  <bruno@clisp.org>
30718
30719         time: Fix regression introduced on 2010-03-08.
30720         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30721         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30722
30723 2010-04-03  Jim Meyering  <meyering@redhat.com>
30724
30725         maint.mk: don't silently disable project-specific syntax-check rules
30726         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30727         that they need to convert their project-specific syntax-check rules
30728         to use the new _sc_search_regexp.
30729
30730 2010-04-03  Bruno Haible  <bruno@clisp.org>
30731
30732         fchdir: Fix regression introduced on 2010-03-08.
30733         * lib/unistd.in.h (fchdir): Fix declaration.
30734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30736         REPLACE_FCHDIR.
30737         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30738         REPLACE_FCHDIR.
30739
30740 2010-04-03  Bruno Haible  <bruno@clisp.org>
30741
30742         getpagesize: Fix C++ test error on mingw.
30743         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30744         system does not declare the function.
30745         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30746         declared.
30747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30748         HAVE_DECL_GETPAGESIZE.
30749         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30750
30751 2010-04-03  Bruno Haible  <bruno@clisp.org>
30752
30753         stdio: Make C++ tests work on mingw.
30754         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30755         does not declare the function.
30756
30757 2010-04-03  Bruno Haible  <bruno@clisp.org>
30758
30759         ftello: Fix C++ test error on mingw.
30760         * lib/stdio.in.h (ftello): Use modern idiom.
30761         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30762         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30763         is missing and that it needs to be replaced.
30764         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30766         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30767
30768 2010-04-03  Bruno Haible  <bruno@clisp.org>
30769
30770         fseeko: Fix C++ test error on mingw.
30771         * lib/stdio.in.h (fseeko): Use modern idiom.
30772         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30774         is missing and that it needs to be replaced.
30775         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30777         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30778
30779 2010-04-03  Bruno Haible  <bruno@clisp.org>
30780
30781         mkstemp: Fix C++ test error on mingw.
30782         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30784         function is missing and that it needs to be replaced.
30785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30786         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30787
30788 2010-04-03  Bruno Haible  <bruno@clisp.org>
30789
30790         stpncpy: Fix C++ test error on mingw.
30791         * lib/string.in.h (stpncpy): Use modern idiom.
30792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30793         function is missing and that it needs to be replaced.
30794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30795         REPLACE_STPNCPY.
30796         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30797
30798 2010-04-03  Bruno Haible  <bruno@clisp.org>
30799
30800         sys_stat: Fix C++ test error on mingw.
30801         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30802         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30803
30804 2010-04-03  Bruno Haible  <bruno@clisp.org>
30805
30806         pty: Update doc.
30807         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30808
30809 2010-04-03  Bruno Haible  <bruno@clisp.org>
30810
30811         unistd: Fix C++ test error on mingw.
30812         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30813
30814 2010-04-03  Bruno Haible  <bruno@clisp.org>
30815
30816         Update doc regarding mingw.
30817         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30818         * doc/glibc-functions/login_tty.texi: Likewise.
30819         * doc/glibc-functions/forkpty.texi: Likewise.
30820
30821 2010-04-03  Bruno Haible  <bruno@clisp.org>
30822
30823         stdlib: Avoid compilation failure of c-strtold on mingw.
30824         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30825
30826 2010-04-03  Bruno Haible  <bruno@clisp.org>
30827
30828         locale: Make C++ tests work on Cygwin and mingw.
30829         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30830         cannot provide the function.
30831         Reported by Simon Josefsson.
30832
30833 2010-04-03  Bruno Haible  <bruno@clisp.org>
30834
30835         localename: Port to MacOS X 10.6.
30836         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30837         memory layout of the locales in MacOS X 10.6 as well.
30838         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30839
30840 2010-04-02  Bruno Haible  <bruno@clisp.org>
30841
30842         gnulib-tool: Ensure that long-running tests are executed last.
30843         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30844         running tests after the one for the other tests.
30845
30846 2010-04-02  Bruno Haible  <bruno@clisp.org>
30847
30848         gnulib-tool: Ensure the tests in the main directory are executed first.
30849         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30850         start with the current directory.
30851
30852 2010-04-02  Bruno Haible  <bruno@clisp.org>
30853
30854         Tests for module 'havelib', moved here from GNU gettext.
30855         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30856         modifications.
30857         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30858         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30859         with modifications.
30860         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30861         modifications.
30862         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30863         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30864         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30865         with modifications.
30866         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30867         with modifications.
30868         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30869         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30870         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30871         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30872         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30873         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30874         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30875         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30876         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30877         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30878         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30879         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30880         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30881         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30882         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30883         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30884         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30885         with modifications.
30886         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30887         with modifications.
30888         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30889         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30890         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30891         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30892         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30893         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30894         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30895         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30896         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30897         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30898         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30899         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30900         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30901         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30902         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30903         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30904         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30905         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30906         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30907         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30908         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30909         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30910         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30911         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30912         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30913         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30914         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30915         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30916         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30917         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30918         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30919         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30920         * tests/havelib/rpathx/rpathx.c: New file, from
30921         gettext/autoconf-lib-link.
30922         * tests/havelib/rpathx/Makefile.am: New file, from
30923         gettext/autoconf-lib-link.
30924         * tests/havelib/rpathx/configure.ac: New file, from
30925         gettext/autoconf-lib-link with modifications.
30926         * tests/havelib/rpathy/rpathy.c: New file, from
30927         gettext/autoconf-lib-link.
30928         * tests/havelib/rpathy/Makefile.am: New file, from
30929         gettext/autoconf-lib-link.
30930         * tests/havelib/rpathy/configure.ac: New file, from
30931         gettext/autoconf-lib-link with modifications.
30932         * tests/havelib/rpathz/rpathz.c: New file, from
30933         gettext/autoconf-lib-link.
30934         * tests/havelib/rpathz/Makefile.am: New file, from
30935         gettext/autoconf-lib-link.
30936         * tests/havelib/rpathz/configure.ac: New file, from
30937         gettext/autoconf-lib-link with modifications.
30938         * tests/havelib/rpathlx/usex.c: New file, from
30939         gettext/autoconf-lib-link.
30940         * tests/havelib/rpathlx/Makefile.am: New file, from
30941         gettext/autoconf-lib-link.
30942         * tests/havelib/rpathlx/configure.ac: New file, from
30943         gettext/autoconf-lib-link with modifications.
30944         * tests/havelib/rpathly/usey.c: New file, from
30945         gettext/autoconf-lib-link.
30946         * tests/havelib/rpathly/Makefile.am: New file, from
30947         gettext/autoconf-lib-link.
30948         * tests/havelib/rpathly/configure.ac: New file, from
30949         gettext/autoconf-lib-link with modifications.
30950         * tests/havelib/rpathlz/usez.c: New file, from
30951         gettext/autoconf-lib-link.
30952         * tests/havelib/rpathlz/Makefile.am: New file, from
30953         gettext/autoconf-lib-link.
30954         * tests/havelib/rpathlz/configure.ac: New file, from
30955         gettext/autoconf-lib-link with modifications.
30956         * tests/havelib/rpathlyx/usey.c: New file, from
30957         gettext/autoconf-lib-link.
30958         * tests/havelib/rpathlyx/Makefile.am: New file, from
30959         gettext/autoconf-lib-link.
30960         * tests/havelib/rpathlyx/configure.ac: New file, from
30961         gettext/autoconf-lib-link with modifications.
30962         * tests/havelib/rpathlzyx/usez.c: New file, from
30963         gettext/autoconf-lib-link.
30964         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30965         gettext/autoconf-lib-link.
30966         * tests/havelib/rpathlzyx/configure.ac: New file, from
30967         gettext/autoconf-lib-link with modifications.
30968         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30969         with modifications.
30970
30971 2010-04-02  Bruno Haible  <bruno@clisp.org>
30972
30973         gnulib-tool: Create distributed built sources also for the tests.
30974         * gnulib-tool (func_create_testdir): Also generate distributed built
30975         sources in the tests directory.
30976
30977 2010-04-02  Bruno Haible  <bruno@clisp.org>
30978
30979         gnulib-tool: Obey user's environment variables.
30980         * gnulib-tool (func_create_testdir): When creating built sources,
30981         respect the environment variables for autoconf, automake, etc. given by
30982         the user.
30983
30984 2010-04-02  Bruno Haible  <bruno@clisp.org>
30985
30986         gnulib-tool: Provide the value of --m4-base to modules.
30987         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30988         of gl_m4_base.
30989
30990 2010-04-02  Eric Blake  <eblake@redhat.com>
30991
30992         maint.mk: fix some fallout
30993         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30994         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30995
30996 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30997
30998         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30999         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31000         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31001         (sc_cast_of_x_alloc_return_value): Likewise.
31002         (sc_cast_of_alloca_return_value): Likewise.
31003         (sc_space_tab): Likewise.
31004         (sc_prohibit_atoi_atof): Likewise.
31005         (sc_prohibit_magic_number_exit): Likewise.
31006         (sc_error_exit_success): Likewise.
31007         (sc_file_system): Likewise.
31008         (sc_prohibit_have_config_h): Likewise.
31009         (sc_require_config_h): Likewise.
31010         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31011         (sc_obsolete_symbols): Likewise.
31012         (sc_changelog): Likewise.
31013         (sc_program_name): Likewise.
31014         (sc_the_the): Likewise.
31015         (sc_trailing_blank): Likewise.
31016         (sc_two_space_separator_in_usage): Likewise.
31017         (sc_useless_cpp_parens): Likewise.
31018         (sc_GPL_version): Likewise.
31019         (sc_GFDL_version): Likewise.
31020         (sc_texinfo_acronym): Likewise.
31021         (sc_prohibit_cvs_keyword): Likewise.
31022         (sc_prohibit_stat_st_blocks): Likewise.
31023         (sc_prohibit_S_IS_definition): Likewise.
31024         (sc_redundant_const): Likewise.
31025         (sc_makefile_TAB_only_indentation): Likewise.
31026         (sc_m4_quote_check): Likewise.
31027         (sc_makefile_path_separator_check): Likewise.
31028         (sc_copyright_check): Likewise.
31029         (sc_Wundef_boolean): Likewise.
31030         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31031
31032         maint.mk: match 0 or more whitespace-before-function-call '('
31033         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31034         that have zero or two-and-more spaces between the function name
31035         and the open parenthesis.
31036         (sc_error_message_warn_fatal): Likewise.
31037         (sc_error_message_uppercase): Likewise.
31038         (sc_error_message_period): Likewise.
31039
31040 2010-03-31  Eric Blake  <eblake@redhat.com>
31041
31042         maint.mk: check for [ as well as test
31043         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31044         Based on a libvirt report by Matthias Bolte.
31045
31046         gnumakefile: don't squelch _version output
31047         * top/GNUmakefile (_version): Create one-shot dependency rather
31048         than using $(shell) when version must be regenerated.
31049         (_autoreconf): Run verbosely, by default.
31050
31051         sys_time: avoid compiler warnings
31052         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31053         unconditional, fixing regression from 2010-03-29.
31054         Reported by Simon Josefsson.
31055
31056 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31057
31058         maint.mk: s/_header_without_use/_sc_header_without_use/
31059         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31060         (sc_prohibit_assert_without_use): Use the new name.
31061         (sc_prohibit_close_stream_without_use): Likewise.
31062         (sc_prohibit_getopt_without_use): Likewise.
31063         (sc_prohibit_quotearg_without_use): Likewise.
31064         (sc_prohibit_quote_without_use): Likewise.
31065         (sc_prohibit_long_options_without_use): Likewise.
31066         (sc_prohibit_inttostr_without_use): Likewise.
31067         (sc_prohibit_ignore_value_without_use): Likewise.
31068         (sc_prohibit_error_without_use): Likewise.
31069         (sc_prohibit_xalloc_without_use): Likewise.
31070         (sc_prohibit_hash_without_use): Likewise.
31071         (sc_prohibit_hash_pjw_without_use): Likewise.
31072         (sc_prohibit_safe_read_without_use): Likewise.
31073         (sc_prohibit_argmatch_without_use): Likewise.
31074         (sc_prohibit_canonicalize_without_use): Likewise.
31075         (sc_prohibit_root_dev_ino_without_use): Likewise.
31076         (sc_prohibit_openat_without_use): Likewise.
31077         (sc_prohibit_c_ctype_without_use): Likewise.
31078         (sc_prohibit_signal_without_use): Likewise.
31079         (sc_prohibit_intprops_without_use): Likewise.
31080
31081 2010-03-30  Eric Blake  <eblake@redhat.com>
31082
31083         maint: improve module indicators
31084         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31085         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31086         columns, and avoid extra macro expansion.
31087
31088         fdopendir: work around FreeBSD bug
31089         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31090         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31091         * modules/dirent (Makefile.am): Substitute it.
31092         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31093         declaration.
31094         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31095         fix.
31096         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31097
31098 2010-03-29  Bruno Haible  <bruno@clisp.org>
31099
31100         Emit #pragma system_header after the inclusion guard, not before.
31101         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31102         guard that spans the entire file, not before. This enables an
31103         optimization in GCC's preprocessor.
31104         * lib/ctype.in.h: Likewise.
31105         * lib/dirent.in.h: Likewise.
31106         * lib/errno.in.h: Likewise.
31107         * lib/float.in.h: Likewise.
31108         * lib/getopt.in.h: Likewise.
31109         * lib/iconv.in.h: Likewise.
31110         * lib/langinfo.in.h: Likewise.
31111         * lib/locale.in.h: Likewise.
31112         * lib/math.in.h: Likewise.
31113         * lib/netdb.in.h: Likewise.
31114         * lib/netinet_in.in.h: Likewise.
31115         * lib/pty.in.h: Likewise.
31116         * lib/sched.in.h: Likewise.
31117         * lib/se-selinux.in.h: Likewise.
31118         * lib/search.in.h: Likewise.
31119         * lib/spawn.in.h: Likewise.
31120         * lib/stdarg.in.h: Likewise.
31121         * lib/stdint.in.h: Likewise.
31122         * lib/string.in.h: Likewise.
31123         * lib/strings.in.h: Likewise.
31124         * lib/sys_file.in.h: Likewise.
31125         * lib/sys_ioctl.in.h: Likewise.
31126         * lib/sys_time.in.h: Likewise.
31127         * lib/sys_times.in.h: Likewise.
31128         * lib/sys_utsname.in.h: Likewise.
31129         * lib/sys_wait.in.h: Likewise.
31130         * lib/sysexits.in.h: Likewise.
31131         * lib/wctype.in.h: Likewise.
31132
31133 2010-03-28  James Youngman  <jay@gnu.org>
31134
31135         save-cwd: don't leak a file descriptor when the caller execs.
31136         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31137         saved file descriptor.
31138         * modules/save-cwd (Depends-on): Depend on cloexec.
31139
31140 2010-03-29  Bruno Haible  <bruno@clisp.org>
31141
31142         Remove vestiges of fts-lgpl module.
31143         * lib/fts_.h: Assume GNULIB_FTS is 1.
31144         * lib/fts.c: Likewise.
31145         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31146
31147 2010-03-28  Bruno Haible  <bruno@clisp.org>
31148
31149         Fix definition of tests witness macro.
31150         * gnulib-tool (func_import): Fix definition of witness macro.
31151
31152 2010-03-28  Bruno Haible  <bruno@clisp.org>
31153
31154         Fix ioctl's protoype on glibc systems.
31155         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31156         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31157         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31158         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31159         signature. If not, arrange to replace the ioctl function.
31160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31161         REPLACE_IOCTL.
31162         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31163         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31164         Reported by Ludovic Courtès <ludo@gnu.org>.
31165
31166 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31167
31168         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31169         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31170         made it so grep -r --include=GLOB* ... did not work.
31171
31172 2010-03-26  Jim Meyering  <meyering@redhat.com>
31173             Eric Blake  <eblake@redhat.com>
31174
31175         maint.mk: prohibit use of test's -o and -a operators
31176         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31177
31178 2010-03-28  Bruno Haible  <bruno@clisp.org>
31179
31180         Remove unused GNULIB_XYZ macro definitions.
31181         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31182         invocation.
31183
31184 2010-03-28  Bruno Haible  <bruno@clisp.org>
31185
31186         Mark privileged tests modules.
31187         * modules/idpriv-drop-tests (Status): New section.
31188         * modules/idpriv-droptemp-tests (Status): New section.
31189
31190 2010-03-28  Bruno Haible  <bruno@clisp.org>
31191
31192         Split C++ tests into separate tests modules.
31193         * modules/dirent-c++-tests: New file, extracted from
31194         modules/dirent-tests.
31195         * modules/dirent-tests: Depend on it.
31196         * modules/fcntl-h-c++-tests: New file, extracted from
31197         modules/fcntl-h-tests.
31198         * modules/fcntl-h-tests: Depend on it.
31199         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31200         * modules/glob-tests: Depend on it.
31201         * modules/iconv-h-c++-tests: New file, extracted from
31202         modules/iconv-h-tests.
31203         * modules/iconv-h-tests: Depend on it.
31204         * modules/langinfo-c++-tests: New file, extracted from
31205         modules/langinfo-tests.
31206         * modules/langinfo-tests: Depend on it.
31207         * modules/locale-c++-tests: New file, extracted from
31208         modules/locale-tests.
31209         * modules/locale-tests: Depend on it.
31210         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31211         * modules/math-tests: Depend on it.
31212         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31213         * modules/pty-tests: Depend on it.
31214         * modules/search-c++-tests: New file, extracted from
31215         modules/search-tests.
31216         * modules/search-tests: Depend on it.
31217         * modules/signal-c++-tests: New file, extracted from
31218         modules/signal-tests.
31219         * modules/signal-tests: Depend on it.
31220         * modules/spawn-c++-tests: New file, extracted from
31221         modules/spawn-tests.
31222         * modules/spawn-tests: Depend on it.
31223         * modules/stdio-c++-tests: New file, extracted from
31224         modules/stdio-tests.
31225         * modules/stdio-tests: Depend on it.
31226         * modules/stdlib-c++-tests: New file, extracted from
31227         modules/stdlib-tests.
31228         * modules/stdlib-tests: Depend on it.
31229         * modules/string-c++-tests: New file, extracted from
31230         modules/string-tests.
31231         * modules/string-tests: Depend on it.
31232         * modules/sys_ioctl-c++-tests: New file, extracted from
31233         modules/sys_ioctl-tests.
31234         * modules/sys_ioctl-tests: Depend on it.
31235         * modules/sys_select-c++-tests: New file, extracted from
31236         modules/sys_select-tests.
31237         * modules/sys_select-tests: Depend on it.
31238         * modules/sys_socket-c++-tests: New file, extracted from
31239         modules/sys_socket-tests.
31240         * modules/sys_socket-tests: Depend on it.
31241         * modules/sys_stat-c++-tests: New file, extracted from
31242         modules/sys_stat-tests.
31243         * modules/sys_stat-tests: Depend on it.
31244         * modules/sys_time-c++-tests: New file, extracted from
31245         modules/sys_time-tests.
31246         * modules/sys_time-tests: Depend on it.
31247         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31248         * modules/time-tests: Depend on it.
31249         * modules/unistd-c++-tests: New file, extracted from
31250         modules/unistd-tests.
31251         * modules/unistd-tests: Depend on it.
31252         * modules/wchar-c++-tests: New file, extracted from
31253         modules/wchar-tests.
31254         * modules/wchar-tests: Depend on it.
31255         * modules/wctype-c++-tests: New file, extracted from
31256         modules/wctype-tests.
31257         * modules/wctype-tests: Depend on it.
31258         Reported by Simon Josefsson.
31259
31260 2010-03-28  Bruno Haible  <bruno@clisp.org>
31261
31262         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31263         * gnulib-tool (func_exists_module): New function, extracted from
31264         func_verify_module.
31265         (func_verify_module): Use it.
31266         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31267         'foo' only if 'foo' exists.
31268         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31269         module.
31270
31271 2010-03-28  Bruno Haible  <bruno@clisp.org>
31272
31273         gnulib-tool: Add support for special categories of tests.
31274         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31275         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31276         (func_usage): Document them.
31277         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31278         inc_unportable_tests, inc_all_tests): New variables.
31279         (func_acceptable): Consider these variables.
31280         (func_modules_transitive_closure): Make it work when the 'Status' field
31281         consists of multiple words.
31282         (func_import): Store and restore the values of inc_cxx_tests,
31283         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31284         inc_all_tests in gnulib-comp.m4.
31285         (func_create_testdir): Set inc_all_tests to true.
31286         * doc/gnulib.texi (Extra tests modules): New section.
31287         Suggested by Jim Meyering.
31288
31289 2010-03-28  Bruno Haible  <bruno@clisp.org>
31290
31291         ansi-c++-opt: Allow turning off the C++ build by default.
31292         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31293         gl_CXX_CHOICE_DEFAULT_NO is defined.
31294         Requested by Eric Blake.
31295
31296 2010-03-28  Bruno Haible  <bruno@clisp.org>
31297
31298         unistd: Avoid #define replacements in C++ mode.
31299         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31300         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31301         setsockopt, shutdown, select): In C++, attach a warning to the function
31302         if possible, rather than #defining the symbol to a dysfunctional alias.
31303         Reported by John W. Eaton <jwe@gnu.org>.
31304
31305 2010-03-28  Bruno Haible  <bruno@clisp.org>
31306
31307         Fix link errors on mingw.
31308         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31309         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31310         $(LIBSOCKET).
31311         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31312         $(LIBSOCKET).
31313
31314 2010-03-28  Bruno Haible  <bruno@clisp.org>
31315             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31316
31317         lib-ignore: Determine different options for different compilers.
31318         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31319         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31320         Add comments.
31321         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31322         * NEWS: Mention the change.
31323
31324 2010-03-27  Bruno Haible  <bruno@clisp.org>
31325
31326         Remove unused GNULIB_XYZ macro definitions.
31327         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31328         * modules/fseek (configure.ac): Likewise.
31329         * modules/ioctl (configure.ac): Likewise.
31330         * modules/open (configure.ac): Likewise.
31331         * modules/stdlib-safer (configure.ac): Likewise.
31332
31333 2010-03-27  Bruno Haible  <bruno@clisp.org>
31334
31335         Add a remark about certain modules.
31336         * modules/malloc (Comment): New section.
31337         * modules/realloc (Comment): Likewise.
31338         * modules/sigpipe (Comment): Likewise.
31339
31340 2010-03-27  Bruno Haible  <bruno@clisp.org>
31341
31342         Resolve conflict between the two kinds of module indicators.
31343         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31344         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31345         * modules/canonicalize (configure.ac): Invoke
31346         gl_MODULE_INDICATOR_FOR_TESTS.
31347         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31348         GNULIB_XYZ.
31349         * tests/test-dirent-c++.cc: Likewise.
31350         * tests/test-dirent-safer.c: Likewise.
31351         * tests/test-dup2.c: Likewise.
31352         * tests/test-fchdir.c: Likewise.
31353         * tests/test-fcntl-h-c++.cc: Likewise.
31354         * tests/test-getopt.c: Likewise.
31355         * tests/test-getopt.h: Likewise.
31356         * tests/test-langinfo-c++.cc: Likewise.
31357         * tests/test-locale-c++.cc: Likewise.
31358         * tests/test-math-c++.cc: Likewise.
31359         * tests/test-pty-c++.cc: Likewise.
31360         * tests/test-search-c++.cc: Likewise.
31361         * tests/test-signal-c++.cc: Likewise.
31362         * tests/test-spawn-c++.cc: Likewise.
31363         * tests/test-stdio-c++.cc: Likewise.
31364         * tests/test-stdlib-c++.cc: Likewise.
31365         * tests/test-string-c++.cc: Likewise.
31366         * tests/test-sys_ioctl-c++.cc: Likewise.
31367         * tests/test-sys_select-c++.cc: Likewise.
31368         * tests/test-sys_socket-c++.cc: Likewise.
31369         * tests/test-sys_stat-c++.cc: Likewise.
31370         * tests/test-sys_time-c++.cc: Likewise.
31371         * tests/test-time-c++.cc: Likewise.
31372         * tests/test-unistd-c++.cc: Likewise.
31373         * tests/test-wchar-c++.cc: Likewise.
31374         * tests/uninorm/test-u8-nfc.c: Likewise.
31375         * tests/uninorm/test-u8-nfd.c: Likewise.
31376         * tests/uninorm/test-u8-nfkc.c: Likewise.
31377         * tests/uninorm/test-u8-nfkd.c: Likewise.
31378         * tests/uninorm/test-u16-nfc.c: Likewise.
31379         * tests/uninorm/test-u16-nfd.c: Likewise.
31380         * tests/uninorm/test-u16-nfkc.c: Likewise.
31381         * tests/uninorm/test-u16-nfkd.c: Likewise.
31382         * tests/uninorm/test-u32-nfc.c: Likewise.
31383         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31384         * tests/uninorm/test-u32-nfd.c: Likewise.
31385         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31386         * tests/uninorm/test-u32-nfkc.c: Likewise.
31387         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31388         * tests/uninorm/test-u32-nfkd.c: Likewise.
31389         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31390         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31391
31392 2010-03-27  Bruno Haible  <bruno@clisp.org>
31393
31394         Distinguish two kinds of module indicators.
31395         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31396         gl_MODULE_INDICATOR.
31397         (gl_MODULE_INDICATOR): New macro.
31398         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31399         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31400         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31401         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31402         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31403         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31404         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31405         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31406         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31407         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31408         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31409         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31411         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31412         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31413         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31414         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31415         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31416         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31417         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31418         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31419         * modules/cloexec (configure.ac): Likewise.
31420         * modules/getopt-gnu (configure.ac): Likewise.
31421         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31422         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31423         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31424         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31425
31426 2010-03-27  Bruno Haible  <bruno@clisp.org>
31427
31428         New module description field 'Comment'.
31429         * gnulib-tool: New option --extract-comment.
31430         (func_usage): Document it.
31431         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31432         (func_get_comment): New function.
31433         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31434
31435 2010-03-27  Bruno Haible  <bruno@clisp.org>
31436
31437         Addendum to 2010-02-07 commit.
31438         * gnulib-tool (func_usage): Document --extract-applicability option.
31439
31440 2010-03-27  Bruno Haible  <bruno@clisp.org>
31441
31442         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31443         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31444         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31445         rather than link errors.
31446
31447 2010-03-27  Bruno Haible  <bruno@clisp.org>
31448
31449         Avoid side effects from tests-related modules on the compilation of lib.
31450         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31451         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31452         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31453         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31454         macro.
31455         (func_import): Define a witness macro. Assign it a value that depends
31456         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31457         tests-related modules.
31458         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31459         Reported by Jim Meyering.
31460
31461 2010-03-27  Bruno Haible  <bruno@clisp.org>
31462
31463         Factorize common .m4 code.
31464         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31465         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31466         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31467         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31468         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31469         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31470         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31471         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31472         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31473         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31474         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31475         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31476         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31477         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31478         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31479         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31480         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31481         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31482         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31483         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31484         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31486         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31487         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31488         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31489         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31490         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31491         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31492         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31493         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31494         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31495         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31496
31497 2010-03-27  Bruno Haible  <bruno@clisp.org>
31498
31499         Fix a compilation error on Cygwin with g++ >= 4.3.
31500         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31501         if it is undefined or if we alias it to chmod.
31502         (lstat): Don't warn about the use of this function if it is undefined
31503         or if we alias it to stat.
31504         Reported by Simon Josefsson.
31505
31506 2010-03-27  Bruno Haible  <bruno@clisp.org>
31507
31508         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31509         * modules/getlogin (configure.ac): Update.
31510
31511         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31512         * modules/getlogin_r (configure.ac): Update.
31513
31514         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31516         * modules/inet_ntop (configure.ac): Update.
31517
31518         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31519         * modules/inet_pton (configure.ac): Update.
31520
31521         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31522         * modules/mbslen (configure.ac): Update.
31523
31524         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31525         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31526         * modules/forkpty (configure.ac): Update.
31527         * modules/openpty (configure.ac): Update.
31528
31529 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31530
31531         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31532         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31533
31534 2010-03-25  Eric Blake  <eblake@redhat.com>
31535
31536         maint: use pragma consistently across replacement headers
31537         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31538         * lib/dirent.in.h (system_header): Likewise.
31539         * lib/errno.in.h (system_header): Likewise.
31540         * lib/float.in.h (system_header): Likewise.
31541         * lib/getopt.in.h (system_header): Likewise.
31542         * lib/iconv.in.h (system_header): Likewise.
31543         * lib/inttypes.in.h (system_header): Likewise.
31544         * lib/langinfo.in.h (system_header): Likewise.
31545         * lib/locale.in.h (system_header): Likewise.
31546         * lib/math.in.h (system_header): Likewise.
31547         * lib/netdb.in.h (system_header): Likewise.
31548         * lib/netinet_in.in.h (system_header): Likewise.
31549         * lib/pty.in.h (system_header): Likewise.
31550         * lib/sched.in.h (system_header): Likewise.
31551         * lib/se-selinux.in.h (system_header): Likewise.
31552         * lib/search.in.h (system_header): Likewise.
31553         * lib/spawn.in.h (system_header): Likewise.
31554         * lib/stdarg.in.h (system_header): Likewise.
31555         * lib/stdint.in.h (system_header): Likewise.
31556         * lib/string.in.h (system_header): Likewise.
31557         * lib/strings.in.h (system_header): Likewise.
31558         * lib/sys_file.in.h (system_header): Likewise.
31559         * lib/sys_ioctl.in.h (system_header): Likewise.
31560         * lib/sys_socket.in.h (system_header): Likewise.
31561         * lib/sys_times.in.h (system_header): Likewise.
31562         * lib/sys_utsname.in.h (system_header): Likewise.
31563         * lib/sys_wait.in.h (system_header): Likewise.
31564         * lib/sysexits.in.h (system_header): Likewise.
31565         * lib/unistd.in.h (system_header): Likewise.
31566         * lib/wctype.in.h (system_header): Likewise.
31567
31568         arpa/inet: fix mingw compilation warning
31569         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31570         Reported by Matthew Bolte.
31571
31572 2010-03-25  Bruno Haible  <bruno@clisp.org>
31573
31574         Avoid collision between gnulib wrapper and libintl wrapper.
31575         * lib/printf.c (printf): Don't define if a printf wrapper is already
31576         defined in intl/printf.c.
31577         Reported by Michel Boaventura <michel@michelboaventura.com>.
31578
31579 2010-03-25  Bruno Haible  <bruno@clisp.org>
31580
31581         Use ANSI C.
31582         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31583
31584 2010-03-25  Bruno Haible  <bruno@clisp.org>
31585
31586         Minor formatting changes.
31587         * lib/acosl.c: Insert space before function argument list.
31588         * lib/argz.c: Likewise.
31589         * lib/asinl.c: Likewise.
31590         * lib/expl.c: Likewise.
31591         * lib/gen-uni-tables.c: Likewise.
31592         * lib/gettext.h: Likewise.
31593         * lib/glthread/lock.h: Likewise.
31594         * lib/tanl.c: Likewise.
31595         * lib/uniname/uniname.c: Likewise.
31596         * tests/test-idpriv-drop.c: Likewise.
31597         * tests/test-idpriv-droptemp.c: Likewise.
31598         * tests/test-lock.c: Likewise.
31599         * tests/test-tls.c: Likewise.
31600         * lib/argp-help.c: Insert space before function-like macro argument
31601         list.
31602         * lib/memcmp.c: Likewise.
31603         * tests/test-base64.c: Likewise.
31604         * lib/localename.c: Insert space before sizeof's argument list.
31605         * lib/safe-alloc.h: Likewise.
31606         * lib/file-set.h: Insert space before macro argument list.
31607         * tests/test-argp.c: Likewise.
31608         * lib/argp-namefrob.h: Insert space before function parameter list.
31609         * lib/getaddrinfo.c: Likewise.
31610         * lib/netdb.in.h: Likewise.
31611         * lib/parse-duration.h: Likewise.
31612         * lib/parse-duration.c: Likewise.
31613         * lib/poll.c: Likewise.
31614         * lib/select.c: Likewise.
31615         * lib/trim.h: Likewise.
31616         * tests/test-usleep.c: Likewise.
31617         * lib/ldexpl.c: Insert space before function parameter list and before
31618         function argument list.
31619         * lib/logl.c: Likewise.
31620         * lib/sqrtl.c: Likewise.
31621         * lib/trim.c: Likewise.
31622         * lib/cosl.c: Use GNU style indentation. Insert space before function
31623         argument list.
31624         * lib/sinl.c: Likewise.
31625         * lib/tsearch.c: Insert space after 'for'.
31626         Reported by Jim Meyering.
31627
31628 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31629
31630         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31631         config header before grepping, as it's not present before
31632         autoreconf/configure are run.  Reported by Simon Josefsson.
31633
31634 2010-03-23  Bruno Haible  <bruno@clisp.org>
31635
31636         pt_chown: Make it work with automake < 1.11.
31637         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31638         Reported by Simon Josefsson.
31639
31640 2010-03-23  Bruno Haible  <bruno@clisp.org>
31641
31642         pt_chown: Don't depend on GPLed modules.
31643         * lib/pt_chown.c: Don't include idpriv.h.
31644         (main): Don't drop privileges.
31645         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31646         Reported by Simon Josefsson.
31647
31648 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31649
31650         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31651         suggestions from karl@freefriends.org (Karl Berry).
31652
31653 2010-03-22  Eric Blake  <eblake@redhat.com>
31654
31655         gethostname: further tweaks
31656         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31657         are overriding gethostname.
31658         Suggested by Bruno Haible.
31659
31660 2010-03-21  Bruno Haible  <bruno@clisp.org>
31661
31662         Fix comments.
31663         * lib/forkpty.c (rpl_forkpty): Fix comment.
31664         * lib/openpty.c (rpl_openpty): Likewise.
31665         Reported by Eric Blake.
31666
31667 2010-03-22  Eric Blake  <eblake@redhat.com>
31668
31669         gethostname: fix build on mingw
31670         * lib/unistd.in.h (includes): Work around fact that mingw
31671         <winsock2.h> re-includes <unistd.h>, by avoiding any
31672         redeclarations if we are being included by <winsock2.h>.
31673         Reported by Matthias Bolte.
31674
31675 2010-03-21  Bruno Haible  <bruno@clisp.org>
31676
31677         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31678         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31679         modifications.
31680         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31681         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31682         provide the replacement.
31683         * modules/forkpty (Depends-on): Add openpty, login_tty.
31684         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31685         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31686         * doc/glibc-functions/forkpty.texi: More supported platforms.
31687         * config/srclist.txt: Add forkpty.c (commented).
31688
31689 2010-03-21  Bruno Haible  <bruno@clisp.org>
31690
31691         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31692         (Makefile.am): Verify that PTY_LIB is defined.
31693
31694         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31695
31696 2010-03-21  Bruno Haible  <bruno@clisp.org>
31697
31698         Tests for module 'login_tty'.
31699         * modules/login_tty-tests: New file.
31700         * tests/test-login_tty.c: New file.
31701
31702         New module 'login_tty'.
31703         * lib/login_tty.c: New file.
31704         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31705         * modules/login_tty: New file.
31706         * doc/glibc-functions/login_tty.texi: Mention the new module.
31707
31708 2010-03-21  Bruno Haible  <bruno@clisp.org>
31709
31710         login_tty: Documentation.
31711         * doc/glibc-functions/login_tty.texi: New file.
31712         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31713
31714 2010-03-21  Bruno Haible  <bruno@clisp.org>
31715
31716         pty: Consistent macro naming.
31717         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31718         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31719         * modules/pty (configure.ac): Update.
31720
31721 2010-03-21  Bruno Haible  <bruno@clisp.org>
31722
31723         Tests for openpty: Make stricter.
31724         * tests/test-openpty.c (main): Add test of canonical processing and
31725         erase.
31726         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31727
31728         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31729         * lib/openpty.c (openpty): New replacement function.
31730         * lib/pty.in.h: Include <termios.h>.
31731         (openpty): Update declaration. Add comments.
31732         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31733         is not declared, arrange to provide the replacement. Check for _getpty
31734         and posix_openpt.
31735         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31736         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31737         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31738         * modules/pty-tests (test_pty_c___LDADD): New variable.
31739         * doc/glibc-functions/openpty.texi: More supported platforms.
31740
31741 2010-03-21  Bruno Haible  <bruno@clisp.org>
31742
31743         setenv: Tweaks.
31744         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31745         the test program.
31746         * doc/posix-functions/setenv.texi: Update platforms list.
31747
31748 2010-03-21  Bruno Haible  <bruno@clisp.org>
31749
31750         New module 'unlockpt'.
31751         * lib/unlockpt.c: New file, from glibc with modifications.
31752         * m4/unlockpt.m4: New file.
31753         * modules/unlockpt: New file.
31754         * lib/stdlib.in.h (unlockpt): New declaration.
31755         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31756         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31757         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31758         HAVE_UNLOCKPT.
31759         * doc/posix-functions/unlockpt.texi: Mention the new module.
31760         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31761         * config/srclist.txt: Add unlockpt.c (commented).
31762
31763 2010-03-21  Jim Meyering  <meyering@redhat.com>
31764
31765         maint.mk: prohibit inclusion of "intprops.h" without use
31766         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31767
31768 2010-03-21  Bruno Haible  <bruno@clisp.org>
31769
31770         New module 'grantpt'.
31771         * lib/grantpt.c: New file, from glibc with modifications.
31772         * m4/grantpt.m4: New file.
31773         * modules/grantpt: New file.
31774         * lib/stdlib.in.h (grantpt): New declaration.
31775         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31776         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31777         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31778         HAVE_GRANTPT.
31779         * doc/posix-functions/grantpt.texi: Mention the new module.
31780         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31781         * config/srclist.txt: Add grantpt.c (commented).
31782
31783 2010-03-21  Bruno Haible  <bruno@clisp.org>
31784
31785         New module 'pt_chown'.
31786         * lib/pt_chown.c: New file, from glibc with modifications.
31787         * lib/pty-private.h: New file, from glibc with modifications.
31788         * modules/pt_chown: New file.
31789         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31790
31791 2010-03-21  Bruno Haible  <bruno@clisp.org>
31792
31793         Tests for module 'ptsname'.
31794         * modules/ptsname-tests: New file.
31795         * tests/test-ptsname.c: New file.
31796
31797         New module 'ptsname'.
31798         * lib/ptsname.c: New file, from glibc with modifications.
31799         * m4/ptsname.m4: New file.
31800         * modules/ptsname: New file.
31801         * lib/stdlib.in.h (ptsname): New declaration.
31802         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31803         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31804         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31805         HAVE_PTSNAME.
31806         * doc/posix-functions/ptsname.texi: Mention the new module.
31807         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31808         * config/srclist.txt: Add ptsname.c (commented).
31809
31810 2010-03-21  Bruno Haible  <bruno@clisp.org>
31811
31812         Tests for module 'ttyname_r'.
31813         * modules/ttyname_r-tests: New file.
31814         * tests/test-ttyname_r.c: New file.
31815
31816         New module 'ttyname_r'.
31817         * lib/ttyname_r.c: New file.
31818         * m4/ttyname_r.m4: New file.
31819         * modules/ttyname_r: New file.
31820         * lib/unistd.in.h (ttyname_r): New declaration.
31821         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31822         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31823         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31824         HAVE_TTYNAME_R.
31825         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31826         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31827
31828 2010-03-20  Bruno Haible  <bruno@clisp.org>
31829
31830         signal: Undefine macro definitions in C++ mode.
31831         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31832         sigfillset): Undefine macro definitions from the system header in C++
31833         mode.
31834         Reported by John W. Eaton <jwe@gnu.org>.
31835
31836 2010-03-20  Bruno Haible  <bruno@clisp.org>
31837
31838         Ensure no #include statements inside extern "C" { ... }.
31839         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31840         contain #include statements.
31841         * lib/time.in.h: Likewise.
31842
31843 2010-03-20  Bruno Haible  <bruno@clisp.org>
31844
31845         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31846         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31847         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31848         Reported by John W. Eaton <jwe@gnu.org>.
31849
31850 2010-03-20  Bruno Haible  <bruno@clisp.org>
31851
31852         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31853         Reported by Jim Meyering.
31854
31855 2010-03-20  Bruno Haible  <bruno@clisp.org>
31856
31857         pipe: Set errno upon failure.
31858         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31859         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31860         errno value in error message.
31861
31862 2010-03-20  Bruno Haible  <bruno@clisp.org>
31863             Jim Meyering  <meyering@redhat.com>
31864
31865         lchown: Avoid "unused variable" warning.
31866         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31867
31868 2010-03-20  Bruno Haible  <bruno@clisp.org>
31869
31870         Work around unlink() bug on MacOS X 10.5.6.
31871         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31872         attempting to unlink a parent directory.
31873         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31874         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31875         activate for the replacement function.
31876         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31877
31878 2010-03-20  Bruno Haible  <bruno@clisp.org>
31879
31880         Fix link errors on Solaris 8.
31881         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31882         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31883
31884 2010-03-19  Jim Meyering  <meyering@redhat.com>
31885
31886         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31887         The _LIBC implementation of build_range_exp correctly honors the
31888         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31889         However, the non-_LIBC implementation would ignore that syntax-bit
31890         flag and return REG_ERANGE unconditionally.
31891         This change makes it honor that flag.
31892         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31893         Make two pointer parameters "const".
31894         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31895         (parse_bracket_exp): Update caller.
31896
31897         regex.m4: correct the reversed range endpoint ([b-a]) test
31898         * m4/regex.m4: When requiring that [b-a] evoke failure,
31899         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31900         test pass once again for x86-based systems.
31901
31902 2010-03-19  Bruno Haible  <bruno@clisp.org>
31903
31904         scandir: Fix link error on Solaris 8.
31905         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31906         macros.
31907
31908 2010-03-19  Bruno Haible  <bruno@clisp.org>
31909
31910         getusershell: Fix documentation.
31911         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31912         module.
31913         * doc/glibc-functions/setusershell.texi: Likewise.
31914
31915         getusershell: Provide declaration, missing on Solaris 9.
31916         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31917         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31918         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31919         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31921         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31922         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31923         HAVE_GETUSERSHELL.
31924         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31925
31926 2010-03-19  Bruno Haible  <bruno@clisp.org>
31927
31928         wctype: Provide iswblank function.
31929         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31930         exists and is fine.
31931         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31932         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31933         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31934         * doc/posix-functions/iswblank.texi: Update.
31935
31936 2010-03-19  Bruno Haible  <bruno@clisp.org>
31937
31938         Tests of module 'pty' in C++ mode.
31939         * modules/pty-tests: New file.
31940         * tests/test-pty-c++.cc: New file.
31941         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31942
31943 2010-03-19  Eric Blake  <eblake@redhat.com>
31944
31945         logb: fix documentation
31946         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31947         1.5 declaration bug.
31948
31949         forkpty, openpty: prefer glibc's const-safe prototype
31950         * lib/forkpty.c (rpl_forkpty): New file.
31951         * lib/openpty.c (rpl_openpty): Likewise.
31952         * modules/forkpty (Files): Distribute it.
31953         * modules/openpty (Files): Likewise.
31954         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31955         check...
31956         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31957         replacement for for non-const BSD signature.
31958         * modules/pty (Makefile.am): Substitute witnesses.
31959         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31960         * tests/test-forkpty.c: Update signature check.
31961         * tests/test-openpty.c: Likewise.
31962         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31963         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31964
31965         forkpty, openpty: split functions into new modules
31966         * modules/pty (Makefile.am): Substitute new witnesses.
31967         (Libraries): Move library detection...
31968         * modules/forkpty: ...into new module.
31969         * modules/openpty: Another new module.
31970         * modules/pty-tests: Rename and split...
31971         * modules/forkpty-tests: ...to this...
31972         * modules/openpty-tests: ...and this.
31973         * tests/test-pty.c: Rename and split...
31974         * tests/test-forkpty.c: ...to this...
31975         * tests/test-openpty.c: ...and this.
31976         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31977         (gl_PTY): Split library searching...
31978         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31979         (gl_FORKPTY, gl_OPENPTY): New macros.
31980         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31981         * NEWS: Mention the split.
31982         * MODULES.html.sh (Misc): Document the modules.
31983         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31984         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31985
31986         pty: improve replacement header
31987         * lib/pty.in.h: New file.
31988         * modules/pty (Files): Ship it.
31989         (Makefile.am): Always build replacement.
31990         * m4/pty.m4: Rename...
31991         * m4/pty_h.m4: ...to this.
31992         (gl_PTY): Modernize setting of witness macros; update check of
31993         forkpty to take proper advantage of cache.
31994         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31995
31996         getopt: avoid compiler warning
31997         * lib/getopt.c (attribute_hidden): Remove unused macro.
31998
31999 2010-03-18  Bruno Haible  <bruno@clisp.org>
32000
32001         Fix link errors on Solaris 8.
32002         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32003         * modules/search-tests (test_search_c___LDADD): Likewise.
32004         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32005         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32006         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32007         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32008         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32009         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32010         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32011
32012 2010-03-18  Bruno Haible  <bruno@clisp.org>
32013
32014         Fix bug introduced on 2010-03-14.
32015         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32016         (gl_SPAWN_H): Require it.
32017         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32018         Reported by Simon Josefsson.
32019
32020 2010-03-18  Bruno Haible  <bruno@clisp.org>
32021
32022         Fix typo introduced on 2009-12-31.
32023         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32024         posix_spawn_file_actions_adddup2.
32025
32026 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32027         and Eric Blake  <eblake@redhat.com>
32028
32029         test-vc-list-files-git: make more robust
32030         * tests/test-vc-list-files-git.sh: Unset problematic environment
32031         variables.  Chain commands together.
32032
32033 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32034
32035         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32036         `AC_CHECK_DECL' invocation.
32037
32038 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32039
32040         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32041         appears before executable statements. Suggested by Petr Sumbera
32042         <Petr.Sumbera@Sun.COM>.
32043
32044 2010-03-14  Bruno Haible  <bruno@clisp.org>
32045
32046         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32047         portability problems. Instead use a simpler test.
32048         (main): Check that invalid arguments are rejected only on Linux.
32049
32050 2010-03-14  Bruno Haible  <bruno@clisp.org>
32051
32052         Fix bug introduced on 2009-12-31.
32053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32054         gl_PREREQ_SYS_H_WINSOCK2 always.
32055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32056         SYS_SOCKET_H variable.
32057         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32058         Update comments.
32059         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32060         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32061         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32063         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32064
32065 2010-03-14  Bruno Haible  <bruno@clisp.org>
32066
32067         Fix values returned by sinl, cosl.
32068         * lib/trigl.h: Add specification comments.
32069         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32070         that combines the values from the precomputed table with the values of
32071         the Chebyshev polynomials.
32072
32073 2010-03-14  Bruno Haible  <bruno@clisp.org>
32074
32075         Fix compilation error when modules 'posix_spawn[p]' are not used.
32076         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32078
32079 2010-03-14  Bruno Haible  <bruno@clisp.org>
32080
32081         Fix compilation error on mingw when module 'time_r' is not used.
32082         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32083         is 1.
32084         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32085         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32086         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32087         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32088
32089 2010-03-14  Bruno Haible  <bruno@clisp.org>
32090
32091         Fix compilation error with Sun C.
32092         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32093         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32094         instead of GCC specific ULONG_LONG_MAX.
32095         * lib/xstrtoll.c: Likewise.
32096         * lib/xstrtoull.c: Likewise.
32097
32098 2010-03-13  Bruno Haible  <bruno@clisp.org>
32099
32100         Allow the user to disable C++ code and tests.
32101         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32102         (gl_PROG_ANSI_CXX): Require it.
32103
32104 2010-03-13  Bruno Haible  <bruno@clisp.org>
32105
32106         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32107         cases.
32108
32109 2010-03-13  Bruno Haible  <bruno@clisp.org>
32110
32111         Test that gnulib does not break the standard C++ headers.
32112         * tests/test-locale-c++2.cc: New file.
32113         * modules/locale-tests (Files): Add it.
32114         (Makefile.am): Compile it for test-locale-c++.
32115         * tests/test-math-c++2.cc: New file.
32116         * modules/math-tests (Files): Add it.
32117         (Makefile.am): Compile it for test-math-c++.
32118         * tests/test-signal-c++2.cc: New file.
32119         * modules/signal-tests (Files): Add it.
32120         (Makefile.am): Compile it for test-signal-c++.
32121         * tests/test-stdio-c++2.cc: New file.
32122         * modules/stdio-tests (Files): Add it.
32123         (Makefile.am): Compile it for test-stdio-c++.
32124         * tests/test-stdlib-c++2.cc: New file.
32125         * modules/stdlib-tests (Files): Add it.
32126         (Makefile.am): Compile it for test-stdlib-c++.
32127         * tests/test-string-c++2.cc: New file.
32128         * modules/string-tests (Files): Add it.
32129         (Makefile.am): Compile it for test-string-c++.
32130         * tests/test-time-c++2.cc: New file.
32131         * modules/time-tests (Files): Add it.
32132         (Makefile.am): Compile it for test-time-c++.
32133         Reported by John W. Eaton <jwe@gnu.org>.
32134
32135 2010-03-13  Bruno Haible  <bruno@clisp.org>
32136
32137         * gnulib-tool (func_usage): Clarify which options are available for
32138         --create-testdir and --create-megatestdir.
32139
32140 2010-03-13  Bruno Haible  <bruno@clisp.org>
32141
32142         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32143         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32144         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32145         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32146         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32147         when appropriate.
32148         Reported by Jim Meyering.
32149
32150 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32151
32152         * gnulib-tool (func_import): Explain origin of code.
32153
32154 2010-03-12  Bruno Haible  <bruno@clisp.org>
32155
32156         Fix problem with automake's definition of CXXLINK.
32157         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32158         Reported by Simon Josefsson and Ludovic Courtès.
32159
32160 2010-03-12  Bruno Haible  <bruno@clisp.org>
32161
32162         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32163         stable releases.
32164
32165 2010-03-11  Bruno Haible  <bruno@clisp.org>
32166
32167         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32168         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32169         whether the system provides one variant or multiple variants of the
32170         function.
32171         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32172         C++ compilers.
32173         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32174         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32175         Reported by Jim Meyering.
32176
32177 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32178
32179         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32180
32181 2010-03-08  Bruno Haible  <bruno@clisp.org>
32182
32183         gnulib-tool: Add support for --libtool in --create-testdir.
32184         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32185         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32186
32187 2010-03-08  Eric Blake  <eblake@redhat.com>
32188
32189         gnulib-tool.texi: mention possibility of git submodule
32190         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32191         submodules.
32192         * doc/.gitignore: Ignore another generated file.
32193
32194 2010-03-08  Karl Berry  <karl@gnu.org>
32195
32196         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32197         of committing gnulib files while skipping others.
32198
32199 2010-03-07  Bruno Haible  <bruno@clisp.org>
32200
32201         Tests of module 'wctype' in C++ mode.
32202         * tests/test-wctype-c++.cc: New file.
32203         * modules/wctype-tests (Files): Add it and tests/signature.h.
32204         (Depends-on): Add ansi-c++-opt.
32205         (Makefile.am): Arrange to compile and run test-wctype-c++.
32206
32207         Tests of module 'wchar' in C++ mode.
32208         * tests/test-wchar-c++.cc: New file.
32209         * modules/wchar-tests (Files): Add it and tests/signature.h.
32210         (Depends-on): Add ansi-c++-opt.
32211         (Makefile.am): Arrange to compile and run test-wchar-c++.
32212         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32213         gl_MODULE_INDICATOR.
32214
32215         Tests of module 'unistd' in C++ mode.
32216         * tests/test-unistd-c++.cc: New file.
32217         * modules/unistd-tests (Files): Add it and tests/signature.h.
32218         (Depends-on): Add ansi-c++-opt.
32219         (Makefile.am): Arrange to compile and run test-unistd-c++.
32220         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32221         gl_MODULE_INDICATOR.
32222
32223         Tests of module 'time' in C++ mode.
32224         * tests/test-time-c++.cc: New file.
32225         * modules/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-time-c++.
32228         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32229
32230         Tests of module 'sys_time' in C++ mode.
32231         * tests/test-sys_time-c++.cc: New file.
32232         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32233         (Depends-on): Add ansi-c++-opt.
32234         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32235         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32236         gl_MODULE_INDICATOR.
32237
32238         Tests of module 'sys_stat' in C++ mode.
32239         * tests/test-sys_stat-c++.cc: New file.
32240         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32241         (Depends-on): Add ansi-c++-opt.
32242         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32243         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32244         gl_MODULE_INDICATOR.
32245
32246         Tests of module 'sys_socket' in C++ mode.
32247         * tests/test-sys_socket-c++.cc: New file.
32248         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32249         (Depends-on): Add ansi-c++-opt.
32250         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32251         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32252         gl_MODULE_INDICATOR.
32253
32254         Tests of module 'sys_select' in C++ mode.
32255         * tests/test-sys_select-c++.cc: New file.
32256         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32257         (Depends-on): Add ansi-c++-opt.
32258         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32259         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32260         gl_MODULE_INDICATOR.
32261
32262         Tests of module 'sys_ioctl' in C++ mode.
32263         * tests/test-sys_ioctl-c++.cc: New file.
32264         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32265         (Depends-on): Add ansi-c++-opt.
32266         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32267         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32268         gl_MODULE_INDICATOR.
32269
32270         Tests of module 'string' in C++ mode.
32271         * tests/test-string-c++.cc: New file.
32272         * modules/string-tests (Files): Add it and tests/signature.h.
32273         (Depends-on): Add ansi-c++-opt.
32274         (Makefile.am): Arrange to compile and run test-string-c++.
32275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32276         gl_MODULE_INDICATOR.
32277
32278         Tests of module 'stdlib' in C++ mode.
32279         * tests/test-stdlib-c++.cc: New file.
32280         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32281         (Depends-on): Add ansi-c++-opt.
32282         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32283         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32284         gl_MODULE_INDICATOR.
32285
32286         Tests of module 'stdio' in C++ mode.
32287         * tests/test-stdio-c++.cc: New file.
32288         * modules/stdio-tests (Files): Add it and tests/signature.h.
32289         (Depends-on): Add ansi-c++-opt.
32290         (Makefile.am): Arrange to compile and run test-stdio-c++.
32291         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32292         gl_MODULE_INDICATOR.
32293
32294         Tests of module 'spawn' in C++ mode.
32295         * tests/test-spawn-c++.cc: New file.
32296         * modules/spawn-tests (Files): Add it and tests/signature.h.
32297         (Depends-on): Add ansi-c++-opt.
32298         (Makefile.am): Arrange to compile and run test-spawn-c++.
32299         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32300         gl_MODULE_INDICATOR.
32301
32302         Tests of module 'signal' in C++ mode.
32303         * tests/test-signal-c++.cc: New file.
32304         * modules/signal-tests (Files): Add it and tests/signature.h.
32305         (Depends-on): Add ansi-c++-opt.
32306         (Makefile.am): Arrange to compile and run test-signal-c++.
32307         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32308         gl_MODULE_INDICATOR.
32309
32310         Tests of module 'search' in C++ mode.
32311         * tests/test-search-c++.cc: New file.
32312         * modules/search-tests (Files): Add it and tests/signature.h.
32313         (Depends-on): Add ansi-c++-opt.
32314         (Makefile.am): Arrange to compile and run test-search-c++.
32315         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32316         gl_MODULE_INDICATOR.
32317
32318         Tests of module 'math' in C++ mode.
32319         * tests/test-math-c++.cc: New file.
32320         * modules/math-tests (Files): Add it and tests/signature.h.
32321         (Depends-on): Add ansi-c++-opt.
32322         (Makefile.am): Arrange to compile and run test-math-c++.
32323         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32324
32325         Tests of module 'locale' in C++ mode.
32326         * tests/test-locale-c++.cc: New file.
32327         * modules/locale-tests (Files): Add it and tests/signature.h.
32328         (Depends-on): Add ansi-c++-opt.
32329         (Makefile.am): Arrange to compile and run test-locale-c++.
32330         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32331         gl_MODULE_INDICATOR.
32332
32333         Tests of module 'langinfo' in C++ mode.
32334         * tests/test-langinfo-c++.cc: New file.
32335         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32336         (Depends-on): Add ansi-c++-opt.
32337         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32338         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32339         gl_MODULE_INDICATOR.
32340
32341         Tests of module 'iconv-h' in C++ mode.
32342         * tests/test-iconv-h-c++.cc: New file.
32343         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32344         (Depends-on): Add ansi-c++-opt.
32345         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32346
32347         Tests of module 'glob' in C++ mode.
32348         * tests/test-glob-c++.cc: New file.
32349         * modules/glob-tests (Files): Add it.
32350         (Depends-on): Add ansi-c++-opt.
32351         (Makefile.am): Arrange to compile and run test-glob-c++.
32352
32353         Tests of module 'fcntl-h' in C++ mode.
32354         * tests/test-fcntl-h-c++.cc: New file.
32355         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32356         (Depends-on): Add ansi-c++-opt.
32357         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32358         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32359         gl_MODULE_INDICATOR.
32360
32361         Tests of module 'dirent' in C++ mode.
32362         * tests/test-dirent-c++.cc: New file.
32363         * modules/dirent-tests (Files): Add it and tests/signature.h.
32364         (Depends-on): Add ansi-c++-opt.
32365         (Makefile.am): Arrange to compile and run test-dirent-c++.
32366         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32367         gl_MODULE_INDICATOR.
32368
32369         New module 'ansi-c++-opt'.
32370         * modules/ansi-c++-opt: New file.
32371         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32372
32373         Document C++ namespace mode.
32374         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32375
32376         wctype: Avoid #define replacements in C++ mode.
32377         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32378         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32379         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32380         In C++, define a namespaced alias symbol.
32381         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32382         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32383         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32384         rule.
32385
32386         wchar: Avoid #define replacements in C++ mode.
32387         * lib/wchar.in.h: Include c++defs.h.
32388         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32389         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32390         symbol.
32391         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32392         * modules/wchar (Depends-on): Add c++defs.
32393         (Makefile.am): Update wchar.h rule.
32394
32395         unistd: Avoid #define replacements in C++ mode.
32396         * lib/unistd.in.h: Include c++defs.h.
32397         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32398         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32399         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32400         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32401         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32402         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32403         symbol.
32404         (environ): Update.
32405         * modules/unistd (Depends-on): Add c++defs.
32406         (Makefile.am): Update unistd.h rule.
32407
32408         time: Avoid #define replacements in C++ mode.
32409         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32410         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32411         define a namespaced alias symbol.
32412         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32413         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32414         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32415         * modules/time (Depends-on): Add c++defs, warn-on-use.
32416         (Makefile.am): Update time.h rule.
32417         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32418         * modules/nanosleep (configure.ac): Likewise.
32419         * modules/strptime (configure.ac): Likewise.
32420         * modules/timegm (configure.ac): Likewise.
32421
32422         sys_time: Avoid #define replacements in C++ mode.
32423         * lib/sys_time.in.h: Include c++defs.h.
32424         (gettimeofday): In C++, define a namespaced alias symbol.
32425         * modules/sys_time (Depends-on): Add c++defs.
32426         (Makefile.am): Update sys/time.h rule.
32427
32428         sys_stat: Avoid #define replacements in C++ mode.
32429         * lib/sys_stat.in.h: Include c++defs.h.
32430         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32431         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32432         namespaced alias symbol.
32433         In C++, define a namespaced alias symbol.
32434         * modules/sys_stat (Depends-on): Add c++defs.
32435         (Makefile.am): Update sys/stat.h rule.
32436
32437         sys_socket: Avoid #define replacements in C++ mode.
32438         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32439         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32440         definitions also when the system has a <sys/socket.h>.
32441         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32442         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32443         In C++, define a namespaced alias symbol.
32444         * modules/sys_socket (Depends-on): Add c++defs.
32445         (Makefile.am): Update sys/socket.h rule.
32446
32447         sys_select: Avoid #define replacements in C++ mode.
32448         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32449         definitions also when the system has a <sys/select.h>.
32450         (select): In C++, define a namespaced alias symbol.
32451         * modules/sys_select (Depends-on): Add c++defs.
32452         (Makefile.am): Update sys/select.h rule.
32453
32454         sys_ioctl: Avoid #define replacements in C++ mode.
32455         * lib/sys_ioctl.in.h: Include c++defs.h.
32456         (ioctl): In C++, define a namespaced alias symbol.
32457         * modules/sys_ioctl (Depends-on): Add c++defs.
32458         (Makefile.am): Update sys/ioctl.h rule.
32459
32460         string: Avoid #define replacements in C++ mode.
32461         * lib/string.in.h: Include c++defs.h.
32462         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32463         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32464         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32465         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32466         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32467         * modules/string (Depends-on): Add c++defs.
32468         (Makefile.am): Update string.h rule.
32469
32470         stdlib: Avoid #define replacements in C++ mode.
32471         * lib/stdlib.in.h: Include c++defs.h.
32472         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32473         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32474         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32475         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32476         symbol.
32477         * modules/stdlib (Depends-on): Add c++defs.
32478         (Makefile.am): Update stdlib.h rule.
32479
32480         stdio: Avoid #define replacements in C++ mode.
32481         * lib/stdio.in.h: Include c++defs.h.
32482         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32483         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32484         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32485         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32486         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32487         namespaced alias symbol.
32488         * modules/stdio (Depends-on): Add c++defs.
32489         (Makefile.am): Update stdio.h rule.
32490
32491         spawn: Avoid #define replacements in C++ mode.
32492         * lib/spawn.in.h: Include c++defs.h.
32493         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32494         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32495         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32496         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32497         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32498         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32499         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32500         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32501         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32502         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32503         In C++, define a namespaced alias symbol.
32504         * modules/spawn (Depends-on): Add c++defs.
32505         (Makefile.am): Update spawn.h rule.
32506
32507         signal: Avoid #define replacements in C++ mode.
32508         * lib/signal.in.h: Include c++defs.h.
32509         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32510         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32511         namespaced alias symbol.
32512         * modules/signal (Depends-on): Add c++defs.
32513         (Makefile.am): Update signal.h rule.
32514
32515         search: Avoid #define replacements in C++ mode.
32516         * lib/search.in.h: Include c++defs.h.
32517         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32518         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32519         symbol.
32520         * modules/search (Depends-on): Add c++defs.
32521         (Makefile.am): Update search.h rule.
32522
32523         math: Avoid #define replacements in C++ mode.
32524         * lib/math.in.h: Include c++defs.h.
32525         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32526         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32527         trunc, truncl): In C++, define a namespaced alias symbol.
32528         * modules/math (Depends-on): Add c++defs.
32529         (Makefile.am): Update math.h rule.
32530
32531         locale: Avoid #define replacements in C++ mode.
32532         * lib/locale.in.h: Include c++defs.h.
32533         (duplocale): In C++, define a namespaced alias symbol.
32534         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32536         * modules/locale (Depends-on): Add c++defs.
32537         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32538
32539         langinfo: Avoid #define replacements in C++ mode.
32540         * lib/langinfo.in.h: Include c++defs.h.
32541         (nl_langinfo): In C++, define a namespaced alias symbol.
32542         * modules/langinfo (Depends-on): Add c++defs.
32543         (Makefile.am): Update langinfo.h rule.
32544
32545         iconv-h: Avoid #define replacements in C++ mode.
32546         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32547         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32548         symbol.
32549         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32550         whenever iconv is present.
32551         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32552         (Makefile.am): Update iconv.h rule.
32553
32554         glob: Avoid #define replacements in C++ mode.
32555         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32556         (_gl_glob_errfunc_fn): New type.
32557         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32558         symbol.
32559         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32560         (Makefile.am): Update glob.h rule.
32561
32562         fcntl-h: Avoid #define replacements in C++ mode.
32563         * lib/fcntl.in.h: Include c++defs.h.
32564         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32565         * modules/fcntl-h (Depends-on): Add c++defs.
32566         (Makefile.am): Update fcntl.h rule.
32567
32568         dirent: Avoid #define replacements in C++ mode.
32569         * lib/dirent.in.h: Include c++defs.h.
32570         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32571         namespaced alias symbol.
32572         (dirfd): Update declaration.
32573         * modules/dirent (Depends-on): Add c++defs.
32574         (Makefile.am): Update dirent.h rule.
32575
32576         ctype: Make it usable in C++ code.
32577         * lib/ctype.in.h: Include c++defs.h.
32578         (isblank): Declare as extern "C".
32579         * modules/ctype (Depends-on): Add c++defs.
32580         (Makefile.am): Update ctype.h rule.
32581
32582         New module 'c++defs'.
32583         * modules/c++defs: New file.
32584         * build-aux/c++defs.h: New file.
32585         Reported by John W. Eaton <jwe@gnu.org>.
32586
32587 2010-03-07  Bruno Haible  <bruno@clisp.org>
32588
32589         logb: Provide missing declaration for Cygwin.
32590         * lib/math.in.h (logb): New declaration.
32591         * m4/logb.m4: New file.
32592         * modules/logb (Files): Add m4/logb.m4.
32593         (Depends-on): Add math.
32594         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32595         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32597         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32598         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32599
32600 2010-03-07  Bruno Haible  <bruno@clisp.org>
32601
32602         Fix test-cond link error.
32603         * tests/test-cond.c: Include <stdio.h>.
32604
32605 2010-03-07  Bruno Haible  <bruno@clisp.org>
32606
32607         Fix test-dirent-safer link error.
32608         * modules/dirent-safer-tests (Makefile.am): Define
32609         test_dirent_safer_LDADD.
32610
32611 2010-03-07  Bruno Haible  <bruno@clisp.org>
32612
32613         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32614         among default module list.
32615
32616 2010-03-07  Bruno Haible  <bruno@clisp.org>
32617
32618         Fix link error on platforms with GNU libiconv.
32619         * modules/unistr/u8-strcoll-tests (Makefile): Define
32620         test_u8_strcoll_LDADD.
32621         * modules/unistr/u16-strcoll-tests (Makefile): Define
32622         test_u16_strcoll_LDADD.
32623         * modules/unistr/u32-strcoll-tests (Makefile): Define
32624         test_u32_strcoll_LDADD.
32625
32626 2010-03-07  Bruno Haible  <bruno@clisp.org>
32627
32628         Use POSIX declarations for socket functions.
32629         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32630         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32631         rpl_sendto): Change declaration to match POSIX.
32632         * lib/connect.c (rpl_connect): Likewise.
32633         * lib/accept.c (rpl_accept): Likewise.
32634         * lib/bind.c (rpl_bind): Likewise.
32635         * lib/getpeername.c (rpl_getpeername): Likewise.
32636         * lib/getsockname.c (rpl_getsockname): Likewise.
32637         * lib/recv.c (rpl_recv): Likewise.
32638         * lib/send.c (rpl_send): Likewise.
32639         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32640         * lib/sendto.c (rpl_sendto): Likewise.
32641
32642 2010-03-06  Bruno Haible  <bruno@clisp.org>
32643
32644         Clarify access, euidaccess, faccessat.
32645         * doc/posix-functions/faccessat.texi: Mention security problem under
32646         "Other problems", not "Portability problems".
32647         * doc/posix-functions/access.texi: Likewise. Mention a related security
32648         problem.
32649         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32650         * lib/euidaccess.c: Add comments about platforms.
32651         * lib/unistd.in.h (access, euidaccess): Add warnings.
32652
32653 2010-03-07  Bruno Haible  <bruno@clisp.org>
32654
32655         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32656         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32657         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32658         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32659         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32660         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32661         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32662         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32663         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32665         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32666         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32667         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32668         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32669         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32670         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32671         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32672         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32673         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32674         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32675         Likewise.
32676         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32677         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32678         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32679         Likewise.
32680         * tests/test-spawn.c (main): Make it work when
32681         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32682
32683 2010-03-07  Bruno Haible  <bruno@clisp.org>
32684
32685         Fix incorrect Makefile.am generation in German locale.
32686         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32687         Execute sed command with character range in C locale.
32688
32689 2010-03-06  Bruno Haible  <bruno@clisp.org>
32690
32691         Tests for module 'iconv-h'.
32692         * modules/iconv-h-tests: New file.
32693         * tests/test-iconv-h.c: New file.
32694
32695         New module 'iconv-h'.
32696         * modules/iconv-h: New file.
32697         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32698         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32699         (configure.ac): Remove gl_ICONV_H.
32700         (Makefile.am): Remove rule for iconv.h.
32701
32702 2010-03-06  Bruno Haible  <bruno@clisp.org>
32703
32704         More consistent naming of *.m4 files.
32705         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32706         * modules/wctype (Files): Update.
32707
32708         More consistent naming of *.m4 files.
32709         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32710         * modules/wchar (Files): Update.
32711
32712 2010-03-06  Jim Meyering  <meyering@redhat.com>
32713
32714         euidaccess: relax license to LGPLv2+
32715         * modules/euidaccess (License): Relax to LGPLv2+.
32716
32717 2010-03-06  Bruno Haible  <bruno@clisp.org>
32718
32719         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32720         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32721         (Makefile.am): Augment lib_SOURCES instead.
32722
32723 2010-03-04  Jim Meyering  <meyering@redhat.com>
32724
32725         utime: remove obsolete module
32726         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32727         unnecessary for years, and has been marked as obsolete for 10 months.
32728         * modules/utime: Remove file.
32729         * lib/utime.c: Remove file.
32730         * m4/utime.m4: Remove file.
32731         * m4/utimes-null.m4: Remove file.
32732         * doc/posix-functions/utime.texi (utime): Remove reference to
32733         the module.  Move the sole "fixed by gnulib" item into the
32734         "problems not fixed by Gnulib" list.
32735         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32736
32737 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32738
32739         * modules/exit (License): Relax license to LGPLv2+.
32740         (Status): Mark as obsolete.
32741         * NEWS: Mention deprecated 'exit' module.
32742         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32743         of now obsolete 'exit'.
32744
32745 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32746
32747         fts-lgpl: remove unused module
32748         * modules/fts-lgpl: Remove.
32749         * MODULES.html.sh (func_all_modules): Adjust.
32750         * check-module (find_included_lib_files): Adjust.
32751         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32752
32753 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32754
32755         copy-acl: enhance Solaris ACL error handling
32756         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32757         * lib/set-mode-acl.c (qset_acl): Likewise.
32758
32759 2010-03-02  Bruno Haible  <bruno@clisp.org>
32760
32761         spawn: Don't override the system defined values on FreeBSD 8.
32762         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32763         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32764         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32765         if HAVE_POSIX_SPAWN is 1.
32766         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32767
32768 2010-03-01  Bruno Haible  <bruno@clisp.org>
32769
32770         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32771         regarding Automake.
32772
32773 2010-02-25  Bruno Haible  <bruno@clisp.org>
32774
32775         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32776         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32777         setting, not afterwards.
32778         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32779
32780 2010-02-24  Eric Blake  <eblake@redhat.com>
32781
32782         bootstrap, git-version-gen: use timestamp
32783         * build-aux/git-version-gen (scriptversion): Force UTC.
32784         * build-aux/bootstrap (scriptversion): New variable.
32785
32786         bootstrap: allow older git
32787         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32788         older than 1.6.4.  Requested by the libvirt project.
32789
32790 2010-02-23  Eric Blake  <eblake@redhat.com>
32791
32792         warn-on-use: work with old autoconf
32793         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32794         AS_VAR semantics of autoconf 2.60.
32795         Reported by Bruno Haible.
32796
32797         bootstrap: improve some comments
32798         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32799         clarification comments.
32800
32801         gettimeofday: provide correct function
32802         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32803         when replacement is declared, otherwise provide gettimeofday.
32804         Reported by Michael Goffioul.
32805
32806 2010-02-23  Jim Meyering  <meyering@redhat.com>
32807
32808         lib-ignore: relax license to "unlimited", not LGPLv2+
32809         * modules/lib-ignore (License): Relax to "unlimited".
32810
32811 2010-02-23  Jim Meyering  <meyering@redhat.com>
32812
32813         lib-ignore: relax license to LGPLv2+
32814         * modules/lib-ignore (License): Relax to LGPLv2+.
32815
32816 2010-02-22  Eric Blake  <eblake@redhat.com>
32817
32818         lseek: avoid bash 3.2 broken pipe bug
32819         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32820         warning from bash 3.2.
32821         Reported by Ben Pfaff, with analysis from Bruno Haible.
32822
32823         bootstrap: support non-FSF copyright holder
32824         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32825         bootstrap.conf override of COPYRIGHT_HOLDER.
32826         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32827
32828         bootstrap: interoperate with gettext 0.14.1
32829         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32830
32831         bootstrap: allow for alternate submodule location
32832         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32833         hardcoding submodule location.
32834         (gnulib_mk): Allow direct use of Makefile.am.
32835
32836         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32837         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32838         rather than reconfiguring where the submodule points.
32839
32840         gettimeofday: restore support for platforms that lack function
32841         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32842         replacement if function is missing.
32843         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32844         * modules/sys_time (Makefile.am): Substitute it.
32845         * lib/sys_time.in.h (gettimeofday): Check it.
32846         Reported by Michael Goffioul.
32847
32848 2010-02-21  Bruno Haible  <bruno@clisp.org>
32849
32850         * lib/stdio.in.h (obstack_printf): Fix typo.
32851
32852 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32853
32854         vc-list-files: use bzr ls's -R option
32855         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32856         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32857
32858 2010-02-21  Jim Meyering  <meyering@redhat.com>
32859
32860         init.sh: fix EXEEXT shims to work also for names like test-prog
32861         * tests/init.sh: Re-exec a better shell, when needed.
32862         If the current shell lacks support for posix $(...), an init.sh-using
32863         test will now try to find a shell that supports that.  If EXEEXT is
32864         nonempty, we also require support for hyphen-in-alias-name and shell
32865         substitutions like ${var#glob}.  Failure to find such a shell results
32866         in a skipped test.
32867
32868 2010-02-21  Bruno Haible  <bruno@clisp.org>
32869
32870         Really work around around "broken pipe" error message from bash 3.2.
32871         * gnulib-tool (func_reset_sigpipe): Remove function.
32872         (echo): In bash 3.2, define to a function that uses printf.
32873         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32874
32875 2010-02-20  Bruno Haible  <bruno@clisp.org>
32876
32877         Restore support for automake 1.9.6 with autoconf 2.61.
32878         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32879         Reported by James Youngman <jay@gnu.org>.
32880
32881 2010-02-20  Bruno Haible  <bruno@clisp.org>
32882
32883         Improve *printf warning condition.
32884         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32885         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32886         and the function is overridden due to SIGPIPE emulation.
32887
32888 2010-02-20  Bruno Haible  <bruno@clisp.org>
32889
32890         * lib/stdio.in.h: Tweak comments.
32891
32892 2010-02-19  Bruno Haible  <bruno@clisp.org>
32893
32894         Make it easier to find modules. New gnulib-tool option '--find'.
32895         * gnulib-tool: New option --find.
32896         (func_usage): Document it.
32897         (func_sanitize_modulelist): New function, extracted from
32898         func_all_modules.
32899         (func_all_modules): Invoke it.
32900         * doc/gnulib-tool.texi (Which modules?): New node.
32901
32902 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32903
32904         * lib/sys_select.in.h: Provide select replacement even if
32905         sys/select.h exists on a system, for Interix.
32906
32907 2010-02-18  Jim Meyering  <meyering@redhat.com>
32908
32909         init.sh: don't use $(...) just yet
32910         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32911         to accommodate e.g., Solaris' /bin/sh.
32912
32913 2010-02-17  Bruno Haible  <bruno@clisp.org>
32914
32915         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32916         Reported by Ludovic Courtès <ludo@gnu.org>.
32917
32918 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32919
32920         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32921         linking with -lintl.
32922
32923 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32924
32925         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32926         if not provided by the system's netdb.h.  Reported by
32927         ludo@gnu.org (Ludovic Courtès).
32928
32929 2010-02-15  Jim Meyering  <meyering@redhat.com>
32930
32931         init.sh: improve portability and efficiency
32932         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32933         "dummy" in a for loop.
32934         Use '!', not '^' to select the complement of a character set used
32935         in a "case" statement.
32936         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32937         Suggestions from Eric Blake.
32938
32939         init.sh: automatically accommodate programs with the .exe suffix
32940         Automatically arrange for an invocation of "prog" to execute the
32941         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32942         may use the simpler "prog", yet still work when built on a system
32943         that requires specifying the added suffix.
32944         Do this by constructing a function named "prog" that invokes
32945         "prog.exe" for each .exe file in selected directories.
32946         * tests/init.sh (find_exe_basenames_): New function.
32947         (create_exe_shim_functions_): New function.
32948         (path_prepend_): Use it.
32949
32950         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32951         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32952         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32953
32954 2010-02-14  Jim Meyering  <meyering@redhat.com>
32955
32956         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32957         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32958         (sc_prohibit_hash_pjw_without_use): New rule.
32959
32960         maint.mk: allow the default upload destination dir to be overridden
32961         * top/maint.mk (upload_dest_dir_): Define with a default that
32962         preserves the status quo.
32963         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32964         Reported by Peter Simons.
32965
32966         maint.mk: prohibit inclusion of "hash.h" without_use
32967         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32968
32969 2010-02-10  Jim Meyering  <meyering@redhat.com>
32970
32971         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32972         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32973
32974 2010-02-09  Eric Blake  <ebb9@byu.net>
32975         and Bruno Haible  <bruno@clisp.org>
32976
32977         obstack-printf-posix: ensure declaration
32978         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32979         extracted from gl_FUNC_OBSTACK_PRINTF.
32980         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32981         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32982         Likewise.
32983         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32984         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32985         0.
32986
32987 2010-02-08  Bruno Haible  <bruno@clisp.org>
32988
32989         gnulib-tool: Fix typo in 2010-02-07 commit.
32990         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32991         Reported by Eric Blake.
32992
32993 2010-02-07  Bruno Haible  <bruno@clisp.org>
32994
32995         gnulib-tool: Fix up caching patches.
32996         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32997         option --no-cache. Use associative arrays when supported by the shell.
32998         (sed_comments): New variable.
32999         (modcache): Renamed from do_cache.
33000         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33001         abbreviate unnecessarily.
33002         (have_associative): New variable.
33003         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33004         way also for ksh and zsh.
33005         (func_init_sed_convert_to_cache_statements): New function, extracted
33006         from func_cache_lookup_module. Add support for associative arrays.
33007         Don't set the c_MODULE_cached variable here. Ignore all lines before
33008         the first field header. Remove only the final newline, not all trailing
33009         newlines. Support empty fields correctly. Limit the use of 'eval' to
33010         assignments.
33011         (func_get_description, func_get_status, func_get_notice,
33012         func_get_applicability, func_get_filelist, func_get_dependencies,
33013         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33014         func_get_automake_snippet, func_get_include_directive,
33015         func_get_link_directive, func_get_license, func_get_maintainer):
33016         Update documentation. List the unoptimized code first. Add support for
33017         associative arrays. Limit the use of 'eval' to assignments.
33018         (func_get_applicability): Undo stylistic pessimisations.
33019         (func_get_automake_snippet, func_get_include_directive): Reduce code
33020         duplication.
33021         (func_modules_transitive_closure, func_modules_add_dummy,
33022         func_modules_notice, func_modules_to_filelist, func_add_file,
33023         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33024         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33025         func_create_testdir, func_create_megatestdir): Update documentation.
33026
33027 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33028
33029         * gnulib-tool (func_cache_lookup_module): Store the module name
33030         belonging to the cache variable; error out if two different
33031         module names map to the same cache variable name.
33032
33033 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33034
33035         gnulib-tool: Make caching optional.
33036         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33037         Update matching short versions of --no-changelog.
33038         (func_usage): Update.
33039         (sed_extract_cache_prog): Renamed from ...
33040         (sed_extract_prog): ... this; revert to old extraction script.
33041         (func_get_description, func_get_status)
33042         (func_get_notice, func_get_applicability, func_get_filelist)
33043         (func_get_dependencies, func_get_autoconf_early_snippet)
33044         (func_get_autoconf_snippet, func_get_automake_snippet)
33045         (func_get_include_directive, func_get_link_directive)
33046         (func_get_license, func_get_maintainer): If $do_cache is false,
33047         use old, non-caching extraction scripts.
33048         Suggestion by Bruno Haible.
33049
33050 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33051
33052         gnulib-tool: cache module metainformation.
33053         * gnulib-tool (sed_extract_prog): Match newline before each
33054         header, and rewrite header to a shell variable suffix.
33055         (func_cache_var, func_cache_lookup_module): New functions,
33056         to turn a module name into a cache variable prefix, and to
33057         look up and cache module metainformation.
33058         (func_get_description, func_get_status)
33059         (func_get_notice, func_get_applicability, func_get_filelist)
33060         (func_get_dependencies, func_get_autoconf_early_snippet)
33061         (func_get_autoconf_snippet, func_get_automake_snippet)
33062         (func_get_include_directive, func_get_link_directive)
33063         (func_get_license, func_get_maintainer): Use
33064         func_cache_lookup_module.
33065
33066 2010-02-07  Bruno Haible  <bruno@clisp.org>
33067
33068         fnctl: Fix missing dependency.
33069         * modules/fcntl (Depends-on): Add getdtablesize.
33070         Reported by John W. Eaton <jwe@gnu.org>.
33071
33072 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33073
33074         Argp: fix recognition of short alias options.
33075
33076         * lib/argp-parse.c (convert_options): Fix improper use of
33077         `|' between character values.
33078         * tests/test-argp.c (group1_option): New alias option
33079         --read (-r).
33080         (group1_parser): Special handling for 'r'.
33081         (test15): New test case.
33082         (test_fun): Add test15.
33083         * tests/test-argp-2.sh: Update expected --help and --usage
33084         outputs.
33085
33086 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33087
33088         * tests/test-argp.c: Fix indentation.
33089
33090 2010-02-04  Eric Blake  <ebb9@byu.net>
33091
33092         gettimeofday: expose type of second argument
33093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33094         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33095         * tests/test-gettimeofday.c: Use it to silence warning.
33096         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33097         the issue.
33098
33099 2010-02-03  Jim Meyering  <meyering@redhat.com>
33100
33101         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33102         * lib/regcomp.c (TYPE_SIGNED): Define.
33103         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33104
33105         regcomp.c: avoid a new -Wshadow warning
33106         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33107
33108 2010-02-01  Jim Meyering  <meyering@redhat.com>
33109
33110         removing useless parentheses in cpp #define directives
33111         For motivation, see commit c0221df4, "define STREQ(a,b)
33112         consistently, removing useless parentheses"
33113         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33114         * lib/mountlist.c (MNT_IGNORE): Likewise.
33115         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33116
33117 2010-02-01  Eric Blake  <ebb9@byu.net>
33118
33119         sys_time: use link-warning
33120         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33121         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33122         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33123         * modules/sys_time (Depends-on): Add warn-on-use.
33124         (Makefile.am): Always build replacement.
33125         (configure.ac): Update substitutions.
33126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33127         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33128         bother with SYS_TIME_H.
33129         * modules/gettimeofday (configure.ac): Declare indicator.
33130         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33131         in use.
33132
33133         closein-tests: silence compiler warning
33134         * tests/test-closein.c (main): Ignore fread result.
33135         * modules/closein-tests (Depends-on): Add ignore-value.
33136
33137         tests: silence warning about system return
33138         * tests/test-areadlink-with-size.c (main): Ignore system result.
33139         * tests/test-areadlink.c (main): Likewise.
33140         * tests/test-areadlinkat-with-size.c (main): Likewise.
33141         * tests/test-areadlinkat.c (main): Likewise.
33142         * tests/test-canonicalize-lgpl.c (main): Likewise.
33143         * tests/test-canonicalize.c (main): Likewise.
33144         * tests/test-chown.c (main): Likewise.
33145         * tests/test-fchownat.c (main): Likewise.
33146         * tests/test-fdutimensat.c (main): Likewise.
33147         * tests/test-fstatat.c (main): Likewise.
33148         * tests/test-futimens.c (main): Likewise.
33149         * tests/test-lchown.c (main): Likewise.
33150         * tests/test-link.c (main): Likewise.
33151         * tests/test-linkat.c (main): Likewise.
33152         * tests/test-lstat.c (main): Likewise.
33153         * tests/test-mkdir.c (main): Likewise.
33154         * tests/test-mkdirat.c (main): Likewise.
33155         * tests/test-mkfifo.c (main): Likewise.
33156         * tests/test-mkfifoat.c (main): Likewise.
33157         * tests/test-mknod.c (main): Likewise.
33158         * tests/test-readlink.c (main): Likewise.
33159         * tests/test-remove.c (main): Likewise.
33160         * tests/test-rename.c (main): Likewise.
33161         * tests/test-renameat.c (main): Likewise.
33162         * tests/test-rmdir.c (main): Likewise.
33163         * tests/test-symlink.c (main): Likewise.
33164         * tests/test-symlinkat.c (main): Likewise.
33165         * tests/test-unlink.c (main): Likewise.
33166         * tests/test-unlinkat.c (main): Likewise.
33167         * tests/test-utimens.c (main): Likewise.
33168         * tests/test-utimensat.c (main): Likewise.
33169         * modules/areadlink-tests (Depends-on): Add ignore-value.
33170         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33171         * modules/areadlinkat-tests (Depends-on): Likewise.
33172         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33173         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33174         * modules/canonicalize-tests (Depends-on): Likewise.
33175         * modules/chown-tests (Depends-on): Likewise.
33176         * modules/fdutimensat-tests (Depends-on): Likewise.
33177         * modules/futimens-tests (Depends-on): Likewise.
33178         * modules/lchown-tests (Depends-on): Likewise.
33179         * modules/link-tests (Depends-on): Likewise.
33180         * modules/linkat-tests (Depends-on): Likewise.
33181         * modules/lstat-tests (Depends-on): Likewise.
33182         * modules/mkdir-tests (Depends-on): Likewise.
33183         * modules/mkfifo-tests (Depends-on): Likewise.
33184         * modules/mkfifoat-tests (Depends-on): Likewise.
33185         * modules/mknod-tests (Depends-on): Likewise.
33186         * modules/openat-tests (Depends-on): Likewise.
33187         * modules/readlink-tests (Depends-on): Likewise.
33188         * modules/remove-tests (Depends-on): Likewise.
33189         * modules/rename-tests (Depends-on): Likewise.
33190         * modules/renameat-tests (Depends-on): Likewise.
33191         * modules/rmdir-tests (Depends-on): Likewise.
33192         * modules/symlink-tests (Depends-on): Likewise.
33193         * modules/symlinkat-tests (Depends-on): Likewise.
33194         * modules/unlink-tests (Depends-on): Likewise.
33195         * modules/utimens-tests (Depends-on): Likewise.
33196         * modules/utimensat-tests (Depends-on): Likewise.
33197
33198 2010-01-31  Bruno Haible  <bruno@clisp.org>
33199
33200         Perform the same test for many <math.h> functions.
33201         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33202         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33203         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33204         of gl_MATHFUNC.
33205         * modules/acos (configure.ac): Likewise.
33206         * modules/asin (configure.ac): Likewise.
33207         * modules/atan (configure.ac): Likewise.
33208         * modules/atan2 (configure.ac): Likewise.
33209         * modules/cbrt (configure.ac): Likewise.
33210         * modules/copysign (configure.ac): Likewise.
33211         * modules/cos (configure.ac): Likewise.
33212         * modules/cosh (configure.ac): Likewise.
33213         * modules/erf (configure.ac): Likewise.
33214         * modules/erfc (configure.ac): Likewise.
33215         * modules/exp (configure.ac): Likewise.
33216         * modules/fmod (configure.ac): Likewise.
33217         * modules/hypot (configure.ac): Likewise.
33218         * modules/j0 (configure.ac): Likewise.
33219         * modules/j1 (configure.ac): Likewise.
33220         * modules/jn (configure.ac): Likewise.
33221         * modules/lgamma (configure.ac): Likewise.
33222         * modules/log (configure.ac): Likewise.
33223         * modules/log10 (configure.ac): Likewise.
33224         * modules/log1p (configure.ac): Likewise.
33225         * modules/pow (configure.ac): Likewise.
33226         * modules/remainder (configure.ac): Likewise.
33227         * modules/sin (configure.ac): Likewise.
33228         * modules/sinh (configure.ac): Likewise.
33229         * modules/tan (configure.ac): Likewise.
33230         * modules/tanh (configure.ac): Likewise.
33231         * modules/y0 (configure.ac): Likewise.
33232         * modules/y1 (configure.ac): Likewise.
33233         * modules/yn (configure.ac): Likewise.
33234         Suggested by Paolo Bonzini.
33235
33236 2010-01-31  Bruno Haible  <bruno@clisp.org>
33237
33238         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33239
33240 2010-01-31  Bruno Haible  <bruno@clisp.org>
33241
33242         Work around getdelim() bug on FreeBSD 8.0.
33243         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33244         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33245         not work.
33246         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33247         is 1.
33248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33249         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33250         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33251         a non-zero size.
33252         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33253
33254 2010-01-31  Bruno Haible  <bruno@clisp.org>
33255
33256         Work around getline() bug on FreeBSD 8.0.
33257         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33258         and a non-zero size.
33259         * tests/test-getline.c (main): Likewise.
33260         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33261         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33262
33263 2010-01-28  Eric Blake  <ebb9@byu.net>
33264
33265         regex: fix build failure
33266         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33267         platforms.
33268
33269 2010-01-28  Jim Meyering  <meyering@redhat.com>
33270
33271         regex: do not ignore memory allocation failure
33272         * lib/regex_internal.c (create_cd_newstate): Detect
33273         re_node_set_init_copy failure.   Extracted from glibc commit
33274         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33275
33276         regex: sync more white-space changes from libc
33277         * lib/regex_internal.c: White-space only changes.
33278         * lib/regexec.c: Likewise.
33279
33280         regex: add many uses of __attribute_warn_unused_result__
33281         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33282         * lib/regexec.c: Likewise.
33283         Extracted from a messy glibc commit.
33284
33285         regcomp.c: spelling and merge-artifact from glibc
33286         * lib/regcomp.c: Merge remainder of glibc's
33287         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33288
33289         regcomp.c: sync white-space changes from glibc
33290         * lib/regcomp.c: Merge to accommodate white space
33291         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33292
33293         regcomp.c: do not ignore internal return values
33294         * lib/regcomp.c: Do not ignore internal return values.
33295         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33296         but without its white-space changes and spelling fixes.
33297
33298         regex_internal.h: define __attribute_warn_unused_result__
33299         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33300
33301         maint: add a syntax-check rule to check for vulnerable Makefile.in
33302         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33303
33304 2010-01-27  Jim Meyering  <meyering@redhat.com>
33305
33306         ncftpput-ftp: clean up spaces
33307         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33308         Remove trailing blanks.
33309
33310 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33311
33312         * build-aux/git-version-gen: Fix copyright statement.
33313         * build-aux/gnupload: Likewise.
33314         * tests/test-arcfour.c: Likewise.
33315         * tests/test-arctwo.c: Likewise.
33316         * tests/test-count-one-bits.c: Likewise.
33317         * tests/test-crc.c: Likewise.
33318         * tests/test-des.c: Likewise.
33319         * tests/test-gc-arcfour.c: Likewise.
33320         * tests/test-gc-arctwo.c: Likewise.
33321         * tests/test-gc-des.c: Likewise.
33322         * tests/test-gc-hmac-md5.c: Likewise.
33323         * tests/test-gc-hmac-sha1.c: Likewise.
33324         * tests/test-gc-md2.c: Likewise.
33325         * tests/test-gc-md4.c: Likewise.
33326         * tests/test-gc-md5.c: Likewise.
33327         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33328         * tests/test-gc-rijndael.c: Likewise.
33329         * tests/test-gc-sha1.c: Likewise.
33330         * tests/test-gc.c: Likewise.
33331         * tests/test-gethostname.c: Likewise.
33332         * tests/test-gettimeofday.c: Likewise.
33333         * tests/test-hash.c: Likewise.
33334         * tests/test-hmac-md5.c: Likewise.
33335         * tests/test-hmac-sha1.c: Likewise.
33336         * tests/test-md2.c: Likewise.
33337         * tests/test-md4.c: Likewise.
33338         * tests/test-md5.c: Likewise.
33339         * tests/test-memchr.c: Likewise.
33340         * tests/test-memchr2.c: Likewise.
33341         * tests/test-memcmp.c: Likewise.
33342         * tests/test-memmem.c: Likewise.
33343         * tests/test-memrchr.c: Likewise.
33344         * tests/test-rawmemchr.c: Likewise.
33345         * tests/test-read-file.c: Likewise.
33346         * tests/test-rijndael.c: Likewise.
33347         * tests/test-sockets.c: Likewise.
33348         * tests/test-strchrnul.c: Likewise.
33349         * tests/test-strstr.c: Likewise.
33350         * tests/test-strtod.c: Likewise.
33351         * build-aux/ncftpput-ftp: Likewise.
33352
33353 2010-01-26  Eric Blake  <ebb9@byu.net>
33354
33355         ignore-value: update recommended header name
33356         * modules/ignore-value (Include): Only use <> for headers that
33357         exist in glibc.
33358
33359 2010-01-26  Jim Meyering  <meyering@redhat.com>
33360
33361         test-userspec.c: avoid compiler warnings
33362         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33363         and "initialization discards qualifiers..." warnings.
33364         Put the first "uid" in its own scope, and make char* members "const".
33365
33366 2010-01-25  Bruno Haible  <bruno@clisp.org>
33367
33368         gnulib-tool: Make warning diagnostics consistent.
33369         * gnulib-tool (func_warning): New function.
33370         Use it everywhere where gnulib-tool produces output to stderr and it is
33371         not a fatal error.
33372
33373 2010-01-25  Bruno Haible  <bruno@clisp.org>
33374
33375         Fix test dependencies.
33376         * modules/xstrtol-tests (Depends-on): Add inttypes.
33377         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33378
33379 2010-01-25 Pádraig Brady <P@draigBrady.com>
33380
33381         syntax-check: detect incorrect boolean macro values in config.h
33382         * modules/maintainer-makefile (configure.ac): Parameterize the location
33383         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33384         The logic is from Eric Blake and the location indicated by Jim Meyering.
33385         Note the more natural CONFIG_HEADER name is prohibited by automake
33386         for backwards compatibility reasons.
33387         * top/maint.mk (sc_Wundef_boolean): New rule.
33388
33389 2010-01-25  Jim Meyering  <meyering@redhat.com>
33390
33391         bootstrap: detect MacOS 10.6's shasum, too
33392         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33393         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33394
33395 2010-01-23  Jim Meyering  <meyering@redhat.com>
33396
33397         xstrtoll: new module
33398         * modules/xstrtoll: New file.
33399         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33400         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33401         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33402         ./configure fails if you use this module and lack "long long".
33403         * modules/xstrtoll-tests: New module.
33404         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33405         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33406         new init.sh-based test framework.
33407
33408 2010-01-24  Bruno Haible  <bruno@clisp.org>
33409
33410         Tests for module 'yn'.
33411         * modules/yn-tests: New file.
33412         * tests/test-yn.c: New file.
33413
33414         Tests for module 'y1'.
33415         * modules/y1-tests: New file.
33416         * tests/test-y1.c: New file.
33417
33418         Tests for module 'y0'.
33419         * modules/y0-tests: New file.
33420         * tests/test-y0.c: New file.
33421
33422         Tests for module 'tanh'.
33423         * modules/tanh-tests: New file.
33424         * tests/test-tanh.c: New file.
33425
33426         Tests for module 'tan'.
33427         * modules/tan-tests: New file.
33428         * tests/test-tan.c: New file.
33429
33430         Tests for module 'sqrt'.
33431         * modules/sqrt-tests: New file.
33432         * tests/test-sqrt.c: New file.
33433
33434         Tests for module 'sinh'.
33435         * modules/sinh-tests: New file.
33436         * tests/test-sinh.c: New file.
33437
33438         Tests for module 'sin'.
33439         * modules/sin-tests: New file.
33440         * tests/test-sin.c: New file.
33441
33442         Tests for module 'rint'.
33443         * modules/rint-tests: New file.
33444         * tests/test-rint.c: New file.
33445
33446         Tests for module 'remainder'.
33447         * modules/remainder-tests: New file.
33448         * tests/test-remainder.c: New file.
33449
33450         Tests for module 'pow'.
33451         * modules/pow-tests: New file.
33452         * tests/test-pow.c: New file.
33453
33454         Tests for module 'nextafter'.
33455         * modules/nextafter-tests: New file.
33456         * tests/test-nextafter.c: New file.
33457
33458         Tests for module 'modf'.
33459         * modules/modf-tests: New file.
33460         * tests/test-modf.c: New file.
33461
33462         Tests for module 'logb'.
33463         * modules/logb-tests: New file.
33464         * tests/test-logb.c: New file.
33465
33466         Tests for module 'log1p'.
33467         * modules/log1p-tests: New file.
33468         * tests/test-log1p.c: New file.
33469
33470         Tests for module 'log10'.
33471         * modules/log10-tests: New file.
33472         * tests/test-log10.c: New file.
33473
33474         Tests for module 'log'.
33475         * modules/log-tests: New file.
33476         * tests/test-log.c: New file.
33477
33478         Tests for module 'lgamma'.
33479         * modules/lgamma-tests: New file.
33480         * tests/test-lgamma.c: New file.
33481
33482         Tests for module 'ldexp'.
33483         * modules/ldexp-tests: New file.
33484         * tests/test-ldexp.c: New file.
33485
33486         Tests for module 'jn'.
33487         * modules/jn-tests: New file.
33488         * tests/test-jn.c: New file.
33489
33490         Tests for module 'j1'.
33491         * modules/j1-tests: New file.
33492         * tests/test-j1.c: New file.
33493
33494         Tests for module 'j0'.
33495         * modules/j0-tests: New file.
33496         * tests/test-j0.c: New file.
33497
33498         Tests for module 'hypot'.
33499         * modules/hypot-tests: New file.
33500         * tests/test-hypot.c: New file.
33501
33502         Tests for module 'fmod'.
33503         * modules/fmod-tests: New file.
33504         * tests/test-fmod.c: New file.
33505
33506         Tests for module 'fabs'.
33507         * modules/fabs-tests: New file.
33508         * tests/test-fabs.c: New file.
33509
33510         Tests for module 'exp'.
33511         * modules/exp-tests: New file.
33512         * tests/test-exp.c: New file.
33513
33514         Tests for module 'erfc'.
33515         * modules/erfc-tests: New file.
33516         * tests/test-erfc.c: New file.
33517
33518         Tests for module 'erf'.
33519         * modules/erf-tests: New file.
33520         * tests/test-erf.c: New file.
33521
33522         Tests for module 'cosh'.
33523         * modules/cosh-tests: New file.
33524         * tests/test-cosh.c: New file.
33525
33526         Tests for module 'cos'.
33527         * modules/cos-tests: New file.
33528         * tests/test-cos.c: New file.
33529
33530         Tests for module 'copysign'.
33531         * modules/copysign-tests: New file.
33532         * tests/test-copysign.c: New file.
33533
33534         Tests for module 'cbrt'.
33535         * modules/cbrt-tests: New file.
33536         * tests/test-cbrt.c: New file.
33537
33538         Tests for module 'atan2'.
33539         * modules/atan2-tests: New file.
33540         * tests/test-atan2.c: New file.
33541
33542         Tests for module 'atan'.
33543         * modules/atan-tests: New file.
33544         * tests/test-atan.c: New file.
33545
33546         Tests for module 'asin'.
33547         * modules/asin-tests: New file.
33548         * tests/test-asin.c: New file.
33549
33550         Tests for module 'acos'.
33551         * modules/acos-tests: New file.
33552         * tests/test-acos.c: New file.
33553
33554 2010-01-24  Bruno Haible  <bruno@clisp.org>
33555
33556         Fix tests for common <math.h> functions.
33557         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33558         code snippet that references the function pointer, rather than merely
33559         calling the function. Substitute the FUNC_LIBM variable.
33560         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33561         * modules/acos (configure.ac): Likewise.
33562         * modules/asin (configure.ac): Likewise.
33563         * modules/atan (configure.ac): Likewise.
33564         * modules/atan2 (configure.ac): Likewise.
33565         * modules/cbrt (configure.ac): Likewise.
33566         * modules/copysign (configure.ac): Likewise.
33567         * modules/cos (configure.ac): Likewise.
33568         * modules/cosh (configure.ac): Likewise.
33569         * modules/erf (configure.ac): Likewise.
33570         * modules/erfc (configure.ac): Likewise.
33571         * modules/exp (configure.ac): Likewise.
33572         * modules/fabs (configure.ac): Likewise.
33573         * modules/fmod (configure.ac): Likewise.
33574         * modules/hypot (configure.ac): Likewise.
33575         * modules/j0 (configure.ac): Likewise.
33576         * modules/j1 (configure.ac): Likewise.
33577         * modules/jn (configure.ac): Likewise.
33578         * modules/ldexp (configure.ac): Likewise.
33579         * modules/lgamma (configure.ac): Likewise.
33580         * modules/log (configure.ac): Likewise.
33581         * modules/log10 (configure.ac): Likewise.
33582         * modules/log1p (configure.ac): Likewise.
33583         * modules/logb (configure.ac): Likewise.
33584         * modules/modf (configure.ac): Likewise.
33585         * modules/nextafter (configure.ac): Likewise.
33586         * modules/pow (configure.ac): Likewise.
33587         * modules/remainder (configure.ac): Likewise.
33588         * modules/rint (configure.ac): Likewise.
33589         * modules/sin (configure.ac): Likewise.
33590         * modules/sinh (configure.ac): Likewise.
33591         * modules/tan (configure.ac): Likewise.
33592         * modules/tanh (configure.ac): Likewise.
33593         * modules/y0 (configure.ac): Likewise.
33594         * modules/y1 (configure.ac): Likewise.
33595         * modules/yn (configure.ac): Likewise.
33596
33597 2010-01-24  Bruno Haible  <bruno@clisp.org>
33598
33599         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33600         * tests/test-acosl.c (x): New variable.
33601         (main): Store argument in x and fetch it from x.
33602         * tests/test-asinl.c (x): New variable.
33603         (main): Store argument in x and fetch it from x.
33604         * tests/test-atanl.c (x): New variable.
33605         (main): Store argument in x and fetch it from x.
33606         * tests/test-cosl.c (x): New variable.
33607         (main): Store argument in x and fetch it from x.
33608         * tests/test-expl.c (x): New variable.
33609         (main): Store argument in x and fetch it from x.
33610         * tests/test-logl.c (x): New variable.
33611         (main): Store argument in x and fetch it from x.
33612         * tests/test-sinl.c (x): New variable.
33613         (main): Store argument in x and fetch it from x.
33614         * tests/test-sqrtl.c (x): New variable.
33615         (main): Store argument in x and fetch it from x.
33616         * tests/test-tanl.c (x): New variable.
33617         (main): Store argument in x and fetch it from x.
33618
33619 2010-01-24  Bruno Haible  <bruno@clisp.org>
33620
33621         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33622         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33623         assignments to the initial TESTS_ENVIRONMENT.
33624         * doc/gnulib.texi (Unit test modules): Document it.
33625         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33626         TESTS_ENVIRONMENT.
33627         * modules/btowc-tests (Makefile.am): Likewise.
33628         * modules/c-stack-tests (Makefile.am): Likewise.
33629         * modules/c-strcase-tests (Makefile.am): Likewise.
33630         * modules/copy-file-tests (Makefile.am): Likewise.
33631         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33632         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33633         * modules/mbrtowc-tests (Makefile.am): Likewise.
33634         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33635         * modules/mbscasestr-tests (Makefile.am): Likewise.
33636         * modules/mbschr-tests (Makefile.am): Likewise.
33637         * modules/mbscspn-tests (Makefile.am): Likewise.
33638         * modules/mbsinit-tests (Makefile.am): Likewise.
33639         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33640         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33641         * modules/mbspbrk-tests (Makefile.am): Likewise.
33642         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33643         * modules/mbsrchr-tests (Makefile.am): Likewise.
33644         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33645         * modules/mbsspn-tests (Makefile.am): Likewise.
33646         * modules/mbsstr-tests (Makefile.am): Likewise.
33647         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33648         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33649         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33650         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33651         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33652         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33653         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33654         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33655         * modules/wcrtomb-tests (Makefile.am): Likewise.
33656         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33657         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33658         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33659         assignments from TESTS_ENVIRONMENT.
33660         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33661         augmentation.
33662         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33663         * modules/atexit-tests (Makefile.am): Likewise.
33664         * modules/binary-io-tests (Makefile.am): Likewise.
33665         * modules/closein-tests (Makefile.am): Likewise.
33666         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33667         * modules/exclude-tests (Makefile.am): Likewise.
33668         * modules/fflush-tests (Makefile.am): Likewise.
33669         * modules/fpending-tests (Makefile.am): Likewise.
33670         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33671         * modules/freadahead-tests (Makefile.am): Likewise.
33672         * modules/freadptr-tests (Makefile.am): Likewise.
33673         * modules/freadseek-tests (Makefile.am): Likewise.
33674         * modules/fseek-tests (Makefile.am): Likewise.
33675         * modules/fseeko-tests (Makefile.am): Likewise.
33676         * modules/ftell-tests (Makefile.am): Likewise.
33677         * modules/ftello-tests (Makefile.am): Likewise.
33678         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33679         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33680         * modules/lseek-tests (Makefile.am): Likewise.
33681         * modules/parse-duration-tests (Makefile.am): Likewise.
33682         * modules/perror-tests (Makefile.am): Likewise.
33683         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33684         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33685         * modules/pipe-tests (Makefile.am): Likewise.
33686         * modules/pread-tests (Makefile.am): Likewise.
33687         * modules/printf-posix-tests (Makefile.am): Likewise.
33688         * modules/select-tests (Makefile.am): Likewise.
33689         * modules/sigpipe-tests (Makefile.am): Likewise.
33690         * modules/tsearch-tests (Makefile.am): Likewise.
33691         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33692         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33693         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33694         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33695         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33696         * modules/version-etc-tests (Makefile.am): Likewise.
33697         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33698         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33699         * modules/xalloc-die-tests (Makefile.am): Likewise.
33700         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33701         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33702         * modules/xstrtol-tests (Makefile.am): Likewise.
33703         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33704         * modules/yesno-tests (Makefile.am): Likewise.
33705         Suggested by Jim Meyering.
33706
33707 2010-01-24  Bruno Haible  <bruno@clisp.org>
33708
33709         More documentation.
33710         * doc/gnulib.texi (Writing modules): New chapter.
33711         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33712         the new chapter.
33713
33714 2010-01-24  Jim Meyering  <meyering@redhat.com>
33715
33716         maint.mk: do not prepend "./" after filtering
33717         * top/maint.mk (_prepend_srcdir_prefix): New variable
33718         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33719         "./" when $(srcdir) is ".".
33720
33721         define STREQ(a,b) consistently, removing useless parentheses
33722         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33723         since the only risk is that "a" or "b" contains an unparenthesized
33724         comma, but if either did that, STREQ would have 3 or more arguments.
33725         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33726         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33727         * lib/hash-triple.c (STREQ): Likewise.
33728         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33729         * lib/getugroups.c (STREQ): Likewise.
33730
33731 2010-01-23  Jim Meyering  <meyering@redhat.com>
33732
33733         maint.mk: fix syntax-check in a non-srcdir build directory
33734         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33735         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33736
33737 2010-01-22  Jim Meyering  <meyering@redhat.com>
33738
33739         userspec: add unit tests
33740         * tests/test-userspec.c: New file.
33741         * modules/userspec-tests: Likewise.
33742
33743 2010-01-21  Jim Meyering  <meyering@redhat.com>
33744
33745         maint.mk: handle source file names containing "." robustly
33746         * top/maint.mk (_dot_escaped_srcdir): Define.
33747         (VC_LIST): Use it in LHS of sed substitution.
33748
33749 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33750
33751         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33752         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33753         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33754         from a non-srcdir build.
33755
33756 2010-01-20  Eric Blake  <ebb9@byu.net>
33757
33758         warn-on-use: use instead of link-warning
33759         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33760         * modules/unistd (Depends-on, Makefile.am): Likewise.
33761         * modules/arpa_inet (Depends-on): Replace link-warning with
33762         warn-on-use.
33763         (Makefile.am): Update rules accordingly.
33764         * modules/ctype (Depends-on, Makefile.am): Likewise.
33765         * modules/dirent (Depends-on, Makefile.am): Likewise.
33766         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33767         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33768         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33769         * modules/locale (Depends-on, Makefile.am): Likewise.
33770         * modules/math (Depends-on, Makefile.am): Likewise.
33771         * modules/search (Depends-on, Makefile.am): Likewise.
33772         * modules/signal (Depends-on, Makefile.am): Likewise.
33773         * modules/spawn (Depends-on, Makefile.am): Likewise.
33774         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33775         * modules/string (Depends-on, Makefile.am): Likewise.
33776         * modules/strings (Depends-on, Makefile.am): Likewise.
33777         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33778         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33779         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33780         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33781         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33782         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33783         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33784         * modules/wchar (Depends-on, Makefile.am): Likewise.
33785         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33786         should be poisoned.
33787         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33788         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33789         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33790         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33791         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33792         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33793         * m4/math_h.m4 (gl_MATH_H): Likewise.
33794         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33795         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33796         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33797         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33798         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33799         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33800         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33801         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33802         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33804         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33806         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33808         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33809         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33810         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33811         GL_LINK_WARNING.
33812         * lib/ctype.in.h: Likewise.
33813         * lib/dirent.in.h: Likewise.
33814         * lib/fcntl.in.h: Likewise.
33815         * lib/inttypes.in.h: Likewise.
33816         * lib/langinfo.in.h: Likewise.
33817         * lib/locale.in.h: Likewise.
33818         * lib/math.in.h: Likewise.
33819         * lib/search.in.h: Likewise.
33820         * lib/signal.in.h: Likewise.
33821         * lib/spawn.in.h: Likewise.
33822         * lib/stdio.in.h: Likewise.
33823         * lib/stdlib.in.h: Likewise.
33824         * lib/string.in.h: Likewise.
33825         * lib/strings.in.h: Likewise.
33826         * lib/sys_file.in.h: Likewise.
33827         * lib/sys_ioctl.in.h: Likewise.
33828         * lib/sys_select.in.h: Likewise.
33829         * lib/sys_socket.in.h: Likewise.
33830         * lib/sys_stat.in.h: Likewise.
33831         * lib/sys_times.in.h: Likewise.
33832         * lib/sys_utsname.in.h: Likewise.
33833         * lib/unistd.in.h: Likewise.
33834         * lib/wchar.in.h: Likewise.
33835
33836 2010-01-20  Bruno Haible  <bruno@clisp.org>
33837
33838         Avoid duplicate -lm.
33839         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33840         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33841         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33842         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33843         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33844         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33845         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33846         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33847         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33848         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33849         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33850         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33851         Reported by Paolo Bonzini.
33852
33853 2010-01-19  Bruno Haible  <bruno@clisp.org>
33854
33855         langinfo, nl_langinfo: Relicense under LGPLv2+.
33856         * modules/langinfo (License): Change to LGPLv2+.
33857         * modules/nl_langinfo (License): Likewise.
33858         Patch by David Lutterkort <lutter@redhat.com>.
33859
33860 2010-01-19  Bruno Haible  <bruno@clisp.org>
33861
33862         Avoid compilation error with cc on OSF/1 5.1.
33863         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33864         statement, not before.
33865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33866
33867 2010-01-18  Bruno Haible  <bruno@clisp.org>
33868
33869         Avoid a link error due to the __printf__ symbol.
33870         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33871         and 2.6.x.
33872         (__format__, __printf__): Remove definitions.
33873         * lib/argp-fmtstream.h: Likewise.
33874         * lib/argp.h: Likewise.
33875         * lib/error.h: Likewise.
33876         * lib/vasnprintf.h: Likewise.
33877         * lib/xprintf.h: Likewise.
33878         * lib/xvasprintf.h: Likewise.
33879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33880
33881 2010-01-18  Bruno Haible  <bruno@clisp.org>
33882
33883         Tests for module 'tanl'.
33884         * modules/tanl-tests: New file.
33885         * tests/test-tanl.c: New file.
33886
33887         Tests for module 'sqrtl'.
33888         * modules/sqrtl-tests: New file.
33889         * tests/test-sqrtl.c: New file.
33890
33891         Tests for module 'sinl'.
33892         * modules/sinl-tests: New file.
33893         * tests/test-sinl.c: New file.
33894
33895         Tests for module 'logl'.
33896         * modules/logl-tests: New file.
33897         * tests/test-logl.c: New file.
33898
33899         Tests for module 'expl'.
33900         * modules/expl-tests: New file.
33901         * tests/test-expl.c: New file.
33902
33903         Tests for module 'cosl'.
33904         * modules/cosl-tests: New file.
33905         * tests/test-cosl.c: New file.
33906
33907         Tests for module 'atanl'.
33908         * modules/atanl-tests: New file.
33909         * tests/test-atanl.c: New file.
33910
33911         Tests for module 'asinl'.
33912         * modules/asinl-tests: New file.
33913         * tests/test-asinl.c: New file.
33914
33915         Tests for module 'acosl'.
33916         * modules/acosl-tests: New file.
33917         * tests/test-acosl.c: New file.
33918
33919         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33920         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33921         tanl): Use the standard gnulib idiom.
33922         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33923         * lib/sinl.c: Likewise.
33924         * lib/tanl.c: Don't include trigl.c.
33925         (kernel_tanl): Make static.
33926         * lib/sincosl.c: Include trigl.h first.
33927         * lib/trigl.c: Likewise.
33928         * m4/acosl.m4: New file.
33929         * m4/asinl.m4: New file.
33930         * m4/atanl.m4: New file.
33931         * m4/cosl.m4: New file.
33932         * m4/expl.m4: New file.
33933         * m4/logl.m4: New file.
33934         * m4/sinl.m4: New file.
33935         * m4/sqrtl.m4: New file.
33936         * m4/tanl.m4: New file.
33937         * m4/mathl.m4: Remove file.
33938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33939         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33940         Don't initialize GNULIB_MATHL.
33941         * modules/acosl: New file.
33942         * modules/asinl: New file.
33943         * modules/atanl: New file.
33944         * modules/cosl: New file.
33945         * modules/expl: New file.
33946         * modules/logl: New file.
33947         * modules/sinl: New file.
33948         * modules/sqrtl: New file.
33949         * modules/tanl: New file.
33950         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33951         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33952         substitute GNULIB_MATHL.
33953         * modules/mathl: Rewritten.
33954         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33955         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33956         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33957         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33958         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33959         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33960         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33961         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33962         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33963
33964 2010-01-18  Bruno Haible  <bruno@clisp.org>
33965
33966         sqrt: Make gl_FUNC_SQRT requirable.
33967         * m4/sqrt.m4: New file.
33968         * modules/sqrt (Files): Add it.
33969         (configure.ac): Invoke gl_FUNC_SQRT.
33970
33971 2010-01-18  Bruno Haible  <bruno@clisp.org>
33972
33973         New modules for common <math.h> functions.
33974         * m4/mathfunc.m4: New file.
33975         * modules/acos: New file.
33976         * modules/asin: New file.
33977         * modules/atan: New file.
33978         * modules/atan2: New file.
33979         * modules/cbrt: New file.
33980         * modules/copysign: New file.
33981         * modules/cos: New file.
33982         * modules/cosh: New file.
33983         * modules/erf: New file.
33984         * modules/erfc: New file.
33985         * modules/exp: New file.
33986         * modules/fabs: New file.
33987         * modules/fmod: New file.
33988         * modules/hypot: New file.
33989         * modules/j0: New file.
33990         * modules/j1: New file.
33991         * modules/jn: New file.
33992         * modules/ldexp: New file.
33993         * modules/lgamma: New file.
33994         * modules/log: New file.
33995         * modules/log10: New file.
33996         * modules/log1p: New file.
33997         * modules/logb: New file.
33998         * modules/modf: New file.
33999         * modules/nextafter: New file.
34000         * modules/pow: New file.
34001         * modules/remainder: New file.
34002         * modules/rint: New file.
34003         * modules/sin: New file.
34004         * modules/sinh: New file.
34005         * modules/sqrt: New file.
34006         * modules/tan: New file.
34007         * modules/tanh: New file.
34008         * modules/y0: New file.
34009         * modules/y1: New file.
34010         * modules/yn: New file.
34011         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34012         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34013         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34014         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34015         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34016         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34017         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34018         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34019         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34020         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34021         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34022         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34023         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34024         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34025         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34026         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34027         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34028         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34029         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34030         * doc/posix-functions/log.texi: Mention the 'log' module.
34031         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34032         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34033         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34034         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34035         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34036         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34037         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34038         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34039         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34040         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34041         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34042         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34043         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34044         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34045         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34046         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34047
34048 2010-01-18  Jim Meyering  <meyering@redhat.com>
34049
34050         ignore-value: relax license to LGPLv2+
34051         * modules/ignore-value (License): Relax to LGPLv2+.
34052
34053         getdate: don't leak when TZ contains two or more '"'s
34054         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34055         double quote in TZ after the first one.
34056
34057         readtokens: do not leak internal token_lengths buffer
34058         * lib/readtokens.c (readtokens): Free the local, lengths,
34059         when the supplied "token_lengths" parameter is NULL.
34060
34061 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34062
34063         Fix a couple of missing LIBTHREAD link failures on AIX.
34064         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34065         $(LIBTHREAD).
34066         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34067
34068         Link test-poll against INET_PTON_LIB.
34069         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34070         for inet_pton on Solaris 10.
34071
34072 2010-01-17  Bruno Haible  <bruno@clisp.org>
34073
34074         unistdio/*-sprintf: Fix typo in module description.
34075         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34076         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34077         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34078         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34079         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34080         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34081         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34083
34084 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34085
34086         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34087         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34088         variables in shell case patterns, for AIX and HP-UX ksh.
34089
34090         Split large sed scripts, for HP-UX sed.
34091         * modules/stdio: Split sed scripts around 50 sed commands,
34092         to avoid HP-UX limit of 99 commands, in the near future.
34093         * modules/string: Likewise.
34094         * modules/unistd: Likewise.
34095
34096         gnulib-tool: avoid writing in the current directory.
34097         * gnulib-tool (func_emit_lib_Makefile_am)
34098         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34099         not in the current directory, so concurrent gnulib-tool
34100         instances do not interfere.
34101
34102 2010-01-16  Jim Meyering  <meyering@redhat.com>
34103
34104         doc: update users.txt
34105         * users.txt: Add grep.
34106         (diffutils, gzip): Update URLs.
34107
34108 2010-01-12  Bruno Haible  <bruno@clisp.org>
34109
34110         posix_spawn: Avoid test failure on Cygwin.
34111         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34112         characters.
34113         Reported by Simon Josefsson.
34114
34115 2010-01-12  Bruno Haible  <bruno@clisp.org>
34116
34117         * tests/test-cond.c (main): When skipping the test, show the reason.
34118
34119 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34120
34121         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34122
34123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34124
34125         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34126         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34127
34128 2010-01-12  Eric Blake  <ebb9@byu.net>
34129
34130         build: guarantee AS_VAR_IF
34131         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34132         (gl_AS_VAR_IF): Move...
34133         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34134         Reported by Simon Josefsson.
34135
34136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34137
34138         * lib/stdio.in.h: Fix typo.
34139
34140 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34141
34142         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34143         libgpg-error.
34144
34145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34146
34147         * tests/test-xalloc-die.sh: Use $EXEEXT.
34148
34149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34150             Bruno Haible  <bruno@clisp.org>
34151
34152         getlogin, getlogin_r: Avoid test failure.
34153         * tests/test-getlogin.c: Include <stdio.h>.
34154         (main): Skip the test when the function fails because stdin is not a
34155         tty.
34156         * tests/test-getlogin_r.c: Include <stdio.h>.
34157         (main): Skip the test when the function fails because stdin is not a
34158         tty.
34159
34160 2010-01-11  Eric Blake  <ebb9@byu.net>
34161
34162         tests: avoid more large file warnings
34163         * tests/test-fflush.c: Avoid warning about ftell use.
34164         * tests/test-fseek.c: Avoid warning about fseek use.
34165
34166 2010-01-10  Bruno Haible  <bruno@clisp.org>
34167
34168         nproc: Work better on Linux when /proc and /sys are not mounted.
34169         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34170         as lower bound when, on glibc/Linux systems,
34171         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34172         Suggested by Pádraig Brady <P@draigbrady.com>.
34173         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34174
34175         nproc: Refactor.
34176         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34177         extracted from num_processors.
34178         (num_processors): Call it.
34179
34180 2010-01-11  Jim Meyering  <meyering@redhat.com>
34181
34182         utimecmp: avoid new warning from upcoming gcc-4.5.0
34183         * lib/utimecmp.c (BILLION): Define using #define rather than an
34184         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34185
34186 2010-01-11  Eric Blake  <ebb9@byu.net>
34187
34188         math: add portability warnings for classification macros
34189         * modules/math (Depends-on): Add warn-on-use.
34190         (Makefile.am): Provide new substitutions.
34191         * m4/math_h.m4 (gl_MATH_H): Require inline.
34192         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34193         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34194         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34195         implement warnings.
34196
34197         unistd: warn on use of environ without module
34198         * modules/unistd (Depends-on): Add warn-on-use.
34199         (Makefile.am): Provide new substitutions.
34200         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34201         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34202
34203         stdio: warn on suspicious uses
34204         * modules/stdio (Depends-on): Add warn-on-use.
34205         (Makefile.am): Provide new substitutions.
34206         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34207         fseeko.
34208         * lib/stdio.in.h (gets): Always warn on use.
34209         (fseek, ftell): Adjust when warnings are issued, and honor
34210         _GL_NO_LARGE_FILES as a way to silence the warning.
34211         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34212         any warning about large file offsets.
34213         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34214         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34215         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34216         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34217         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34218         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34219         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34220         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34221
34222         warn-on-use: new module
34223         * modules/warn-on-use: New file.
34224         * build-aux/warn-on-use.h: Likewise.
34225         * m4/warn-on-use.m4: Likewise.
34226         * MODULES.html.sh (Support for building): Mention it.
34227
34228 2010-01-10  Bruno Haible  <bruno@clisp.org>
34229
34230         Tests for module 'unistr/u32-strdup'.
34231         * modules/unistr/u32-strdup-tests: New file.
34232         * tests/unistr/test-u32-strdup.c: New file.
34233
34234         Tests for module 'unistr/u16-strdup'.
34235         * modules/unistr/u16-strdup-tests: New file.
34236         * tests/unistr/test-u16-strdup.c: New file.
34237
34238         Tests for module 'unistr/u8-strdup'.
34239         * modules/unistr/u8-strdup-tests: New file.
34240         * tests/unistr/test-u8-strdup.c: New file.
34241         * tests/unistr/test-strdup.h: New file.
34242
34243         Tests for module 'unistr/u32-strncmp'.
34244         * modules/unistr/u32-strncmp-tests: New file.
34245         * tests/unistr/test-u32-strncmp.c: New file.
34246
34247         Tests for module 'unistr/u16-strncmp'.
34248         * modules/unistr/u16-strncmp-tests: New file.
34249         * tests/unistr/test-u16-strncmp.c: New file.
34250
34251         Tests for module 'unistr/u8-strncmp'.
34252         * modules/unistr/u8-strncmp-tests: New file.
34253         * tests/unistr/test-u8-strncmp.c: New file.
34254         * tests/unistr/test-strncmp.h: New file.
34255
34256         Tests for module 'unistr/u32-strcoll'.
34257         * modules/unistr/u32-strcoll-tests: New file.
34258         * tests/unistr/test-u32-strcoll.c: New file.
34259
34260         Tests for module 'unistr/u16-strcoll'.
34261         * modules/unistr/u16-strcoll-tests: New file.
34262         * tests/unistr/test-u16-strcoll.c: New file.
34263
34264         Tests for module 'unistr/u8-strcoll'.
34265         * modules/unistr/u8-strcoll-tests: New file.
34266         * tests/unistr/test-u8-strcoll.c: New file.
34267
34268         Tests for module 'unistr/u32-strcmp'.
34269         * modules/unistr/u32-strcmp-tests: New file.
34270         * tests/unistr/test-u32-strcmp.c: New file.
34271         * tests/unistr/test-u32-strcmp.h: New file.
34272
34273         Tests for module 'unistr/u16-strcmp'.
34274         * modules/unistr/u16-strcmp-tests: New file.
34275         * tests/unistr/test-u16-strcmp.c: New file.
34276         * tests/unistr/test-u16-strcmp.h: New file.
34277
34278         Tests for module 'unistr/u8-strcmp'.
34279         * modules/unistr/u8-strcmp-tests: New file.
34280         * tests/unistr/test-u8-strcmp.c: New file.
34281         * tests/unistr/test-u8-strcmp.h: New file.
34282         * tests/unistr/test-strcmp.h: New file.
34283
34284         Tests for module 'unistr/u32-strncat'.
34285         * modules/unistr/u32-strncat-tests: New file.
34286         * tests/unistr/test-u32-strncat.c: New file.
34287
34288         Tests for module 'unistr/u16-strncat'.
34289         * modules/unistr/u16-strncat-tests: New file.
34290         * tests/unistr/test-u16-strncat.c: New file.
34291
34292         Tests for module 'unistr/u8-strncat'.
34293         * modules/unistr/u8-strncat-tests: New file.
34294         * tests/unistr/test-u8-strncat.c: New file.
34295         * tests/unistr/test-strncat.h: New file.
34296
34297         Tests for module 'unistr/u32-strcat'.
34298         * modules/unistr/u32-strcat-tests: New file.
34299         * tests/unistr/test-u32-strcat.c: New file.
34300
34301         Tests for module 'unistr/u16-strcat'.
34302         * modules/unistr/u16-strcat-tests: New file.
34303         * tests/unistr/test-u16-strcat.c: New file.
34304
34305         Tests for module 'unistr/u8-strcat'.
34306         * modules/unistr/u8-strcat-tests: New file.
34307         * tests/unistr/test-u8-strcat.c: New file.
34308         * tests/unistr/test-strcat.h: New file.
34309
34310         Tests for module 'unistr/u32-stpncpy'.
34311         * modules/unistr/u32-stpncpy-tests: New file.
34312         * tests/unistr/test-u32-stpncpy.c: New file.
34313
34314         Tests for module 'unistr/u16-stpncpy'.
34315         * modules/unistr/u16-stpncpy-tests: New file.
34316         * tests/unistr/test-u16-stpncpy.c: New file.
34317
34318         Tests for module 'unistr/u8-stpncpy'.
34319         * modules/unistr/u8-stpncpy-tests: New file.
34320         * tests/unistr/test-u8-stpncpy.c: New file.
34321         * tests/unistr/test-stpncpy.h: New file.
34322
34323         Tests for module 'unistr/u32-strncpy'.
34324         * modules/unistr/u32-strncpy-tests: New file.
34325         * tests/unistr/test-u32-strncpy.c: New file.
34326
34327         Tests for module 'unistr/u16-strncpy'.
34328         * modules/unistr/u16-strncpy-tests: New file.
34329         * tests/unistr/test-u16-strncpy.c: New file.
34330
34331         Tests for module 'unistr/u8-strncpy'.
34332         * modules/unistr/u8-strncpy-tests: New file.
34333         * tests/unistr/test-u8-strncpy.c: New file.
34334         * tests/unistr/test-strncpy.h: New file.
34335
34336         Tests for module 'unistr/u32-stpcpy'.
34337         * modules/unistr/u32-stpcpy-tests: New file.
34338         * tests/unistr/test-u32-stpcpy.c: New file.
34339
34340         Tests for module 'unistr/u16-stpcpy'.
34341         * modules/unistr/u16-stpcpy-tests: New file.
34342         * tests/unistr/test-u16-stpcpy.c: New file.
34343
34344         Tests for module 'unistr/u8-stpcpy'.
34345         * modules/unistr/u8-stpcpy-tests: New file.
34346         * tests/unistr/test-u8-stpcpy.c: New file.
34347         * tests/unistr/test-stpcpy.h: New file.
34348
34349         Tests for module 'unistr/u32-strcpy'.
34350         * modules/unistr/u32-strcpy-tests: New file.
34351         * tests/unistr/test-u32-strcpy.c: New file.
34352
34353         Tests for module 'unistr/u16-strcpy'.
34354         * modules/unistr/u16-strcpy-tests: New file.
34355         * tests/unistr/test-u16-strcpy.c: New file.
34356
34357         Tests for module 'unistr/u8-strcpy'.
34358         * modules/unistr/u8-strcpy-tests: New file.
34359         * tests/unistr/test-u8-strcpy.c: New file.
34360         * tests/unistr/test-strcpy.h: New file.
34361
34362         Tests for module 'unistr/u32-strnlen'.
34363         * modules/unistr/u32-strnlen-tests: New file.
34364         * tests/unistr/test-u32-strnlen.c: New file.
34365
34366         Tests for module 'unistr/u16-strnlen'.
34367         * modules/unistr/u16-strnlen-tests: New file.
34368         * tests/unistr/test-u16-strnlen.c: New file.
34369
34370         Tests for module 'unistr/u8-strnlen'.
34371         * modules/unistr/u8-strnlen-tests: New file.
34372         * tests/unistr/test-u8-strnlen.c: New file.
34373         * tests/unistr/test-strnlen.h: New file.
34374
34375         Tests for module 'unistr/u32-strlen'.
34376         * modules/unistr/u32-strlen-tests: New file.
34377         * tests/unistr/test-u32-strlen.c: New file.
34378
34379         Tests for module 'unistr/u16-strlen'.
34380         * modules/unistr/u16-strlen-tests: New file.
34381         * tests/unistr/test-u16-strlen.c: New file.
34382
34383         Tests for module 'unistr/u8-strlen'.
34384         * modules/unistr/u8-strlen-tests: New file.
34385         * tests/unistr/test-u8-strlen.c: New file.
34386
34387         Tests for module 'unistr/u32-prev'.
34388         * modules/unistr/u32-prev-tests: New file.
34389         * tests/unistr/test-u32-prev.c: New file.
34390
34391         Tests for module 'unistr/u16-prev'.
34392         * modules/unistr/u16-prev-tests: New file.
34393         * tests/unistr/test-u16-prev.c: New file.
34394
34395         Tests for module 'unistr/u8-prev'.
34396         * modules/unistr/u8-prev-tests: New file.
34397         * tests/unistr/test-u8-prev.c: New file.
34398
34399         Tests for module 'unistr/u32-next'.
34400         * modules/unistr/u32-next-tests: New file.
34401         * tests/unistr/test-u32-next.c: New file.
34402
34403         Tests for module 'unistr/u16-next'.
34404         * modules/unistr/u16-next-tests: New file.
34405         * tests/unistr/test-u16-next.c: New file.
34406
34407         Tests for module 'unistr/u8-next'.
34408         * modules/unistr/u8-next-tests: New file.
34409         * tests/unistr/test-u8-next.c: New file.
34410
34411         Tests for module 'unistr/u32-strmbtouc'.
34412         * modules/unistr/u32-strmbtouc-tests: New file.
34413         * tests/unistr/test-u32-strmbtouc.c: New file.
34414
34415         Tests for module 'unistr/u16-strmbtouc'.
34416         * modules/unistr/u16-strmbtouc-tests: New file.
34417         * tests/unistr/test-u16-strmbtouc.c: New file.
34418
34419         Tests for module 'unistr/u8-strmbtouc'.
34420         * modules/unistr/u8-strmbtouc-tests: New file.
34421         * tests/unistr/test-u8-strmbtouc.c: New file.
34422
34423         Tests for module 'unistr/u32-strmblen'.
34424         * modules/unistr/u32-strmblen-tests: New file.
34425         * tests/unistr/test-u32-strmblen.c: New file.
34426
34427         Tests for module 'unistr/u16-strmblen'.
34428         * modules/unistr/u16-strmblen-tests: New file.
34429         * tests/unistr/test-u16-strmblen.c: New file.
34430
34431         Tests for module 'unistr/u8-strmblen'.
34432         * modules/unistr/u8-strmblen-tests: New file.
34433         * tests/unistr/test-u8-strmblen.c: New file.
34434
34435         Tests for module 'unistr/u32-cpy-alloc'.
34436         * modules/unistr/u32-cpy-alloc-tests: New file.
34437         * tests/unistr/test-u32-cpy-alloc.c: New file.
34438
34439         Tests for module 'unistr/u16-cpy-alloc'.
34440         * modules/unistr/u16-cpy-alloc-tests: New file.
34441         * tests/unistr/test-u16-cpy-alloc.c: New file.
34442
34443         Tests for module 'unistr/u8-cpy-alloc'.
34444         * modules/unistr/u8-cpy-alloc-tests: New file.
34445         * tests/unistr/test-u8-cpy-alloc.c: New file.
34446         * tests/unistr/test-cpy-alloc.h: New file.
34447
34448         Tests for module 'unistr/u32-mbsnlen'.
34449         * modules/unistr/u32-mbsnlen-tests: New file.
34450         * tests/unistr/test-u32-mbsnlen.c: New file.
34451
34452         Tests for module 'unistr/u16-mbsnlen'.
34453         * modules/unistr/u16-mbsnlen-tests: New file.
34454         * tests/unistr/test-u16-mbsnlen.c: New file.
34455
34456         Tests for module 'unistr/u8-mbsnlen'.
34457         * modules/unistr/u8-mbsnlen-tests: New file.
34458         * tests/unistr/test-u8-mbsnlen.c: New file.
34459
34460         Tests for module 'unistr/u32-chr'.
34461         * modules/unistr/u32-chr-tests: New file.
34462         * tests/unistr/test-u32-chr.c: New file.
34463
34464         Tests for module 'unistr/u16-chr'.
34465         * modules/unistr/u16-chr-tests: New file.
34466         * tests/unistr/test-u16-chr.c: New file.
34467
34468         Tests for module 'unistr/u8-chr'.
34469         * modules/unistr/u8-chr-tests: New file.
34470         * tests/unistr/test-u8-chr.c: New file.
34471         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34472
34473         Tests for module 'unistr/u32-cmp2'.
34474         * modules/unistr/u32-cmp2-tests: New file.
34475         * tests/unistr/test-u32-cmp2.c: New file.
34476
34477         Tests for module 'unistr/u16-cmp2'.
34478         * modules/unistr/u16-cmp2-tests: New file.
34479         * tests/unistr/test-u16-cmp2.c: New file.
34480
34481         Tests for module 'unistr/u8-cmp2'.
34482         * modules/unistr/u8-cmp2-tests: New file.
34483         * tests/unistr/test-u8-cmp2.c: New file.
34484         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34485
34486         Tests for module 'unistr/u32-cmp'.
34487         * modules/unistr/u32-cmp-tests: New file.
34488         * tests/unistr/test-u32-cmp.c: New file.
34489
34490         Tests for module 'unistr/u16-cmp'.
34491         * modules/unistr/u16-cmp-tests: New file.
34492         * tests/unistr/test-u16-cmp.c: New file.
34493
34494         Tests for module 'unistr/u8-cmp'.
34495         * modules/unistr/u8-cmp-tests: New file.
34496         * tests/unistr/test-u8-cmp.c: New file.
34497         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34498
34499         Tests for module 'unistr/u32-set'.
34500         * modules/unistr/u32-set-tests: New file.
34501         * tests/unistr/test-u32-set.c: New file.
34502
34503         Tests for module 'unistr/u16-set'.
34504         * modules/unistr/u16-set-tests: New file.
34505         * tests/unistr/test-u16-set.c: New file.
34506
34507         Tests for module 'unistr/u8-set'.
34508         * modules/unistr/u8-set-tests: New file.
34509         * tests/unistr/test-u8-set.c: New file.
34510         * tests/unistr/test-set.h: New file.
34511
34512         Tests for module 'unistr/u32-move'.
34513         * modules/unistr/u32-move-tests: New file.
34514         * tests/unistr/test-u32-move.c: New file.
34515
34516         Tests for module 'unistr/u16-move'.
34517         * modules/unistr/u16-move-tests: New file.
34518         * tests/unistr/test-u16-move.c: New file.
34519
34520         Tests for module 'unistr/u8-move'.
34521         * modules/unistr/u8-move-tests: New file.
34522         * tests/unistr/test-u8-move.c: New file.
34523         * tests/unistr/test-move.h: New file.
34524
34525         Tests for module 'unistr/u32-cpy'.
34526         * modules/unistr/u32-cpy-tests: New file.
34527         * tests/unistr/test-u32-cpy.c: New file.
34528
34529         Tests for module 'unistr/u16-cpy'.
34530         * modules/unistr/u16-cpy-tests: New file.
34531         * tests/unistr/test-u16-cpy.c: New file.
34532
34533         Tests for module 'unistr/u8-cpy'.
34534         * modules/unistr/u8-cpy-tests: New file.
34535         * tests/unistr/test-u8-cpy.c: New file.
34536         * tests/unistr/test-cpy.h: New file.
34537
34538 2010-01-09  Bruno Haible  <bruno@clisp.org>
34539
34540         Tests for module 'unistr/u32-uctomb'.
34541         * modules/unistr/u32-uctomb-tests: New file.
34542         * tests/unistr/test-u32-uctomb.c: New file.
34543
34544         Tests for module 'unistr/u16-uctomb'.
34545         * modules/unistr/u16-uctomb-tests: New file.
34546         * tests/unistr/test-u16-uctomb.c: New file.
34547
34548         Tests for module 'unistr/u8-uctomb'.
34549         * modules/unistr/u8-uctomb-tests: New file.
34550         * tests/unistr/test-u8-uctomb.c: New file.
34551
34552         Tests for module 'unistr/u32-mbtoucr'.
34553         * modules/unistr/u32-mbtoucr-tests: New file.
34554         * tests/unistr/test-u32-mbtoucr.c: New file.
34555
34556         Tests for module 'unistr/u16-mbtoucr'.
34557         * modules/unistr/u16-mbtoucr-tests: New file.
34558         * tests/unistr/test-u16-mbtoucr.c: New file.
34559
34560         Tests for module 'unistr/u8-mbtoucr'.
34561         * modules/unistr/u8-mbtoucr-tests: New file.
34562         * tests/unistr/test-u8-mbtoucr.c: New file.
34563
34564         Tests for module 'unistr/u32-mbtouc'.
34565         * modules/unistr/u32-mbtouc-tests: New file.
34566         * tests/unistr/test-u32-mbtouc.c: New file.
34567
34568         Tests for module 'unistr/u16-mbtouc'.
34569         * modules/unistr/u16-mbtouc-tests: New file.
34570         * tests/unistr/test-u16-mbtouc.c: New file.
34571
34572         Tests for module 'unistr/u8-mbtouc'.
34573         * modules/unistr/u8-mbtouc-tests: New file.
34574         * tests/unistr/test-u8-mbtouc.c: New file.
34575
34576         Tests for module 'unistr/u32-mbtouc-unsafe'.
34577         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34578         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34579         * tests/unistr/test-u32-mbtouc.h: New file.
34580
34581         Tests for module 'unistr/u16-mbtouc-unsafe'.
34582         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34583         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34584         * tests/unistr/test-u16-mbtouc.h: New file.
34585
34586         Tests for module 'unistr/u8-mbtouc-unsafe'.
34587         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34588         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34589         * tests/unistr/test-u8-mbtouc.h: New file.
34590
34591         Tests for module 'unistr/u32-mblen'.
34592         * modules/unistr/u32-mblen-tests: New file.
34593         * tests/unistr/test-u32-mblen.c: New file.
34594
34595         Tests for module 'unistr/u16-mblen'.
34596         * modules/unistr/u16-mblen-tests: New file.
34597         * tests/unistr/test-u16-mblen.c: New file.
34598
34599         Tests for module 'unistr/u8-mblen'.
34600         * modules/unistr/u8-mblen-tests: New file.
34601         * tests/unistr/test-u8-mblen.c: New file.
34602
34603         Tests for module 'unistr/u32-to-u16'.
34604         * modules/unistr/u32-to-u16-tests: New file.
34605         * tests/unistr/test-u32-to-u16.c: New file.
34606
34607         Tests for module 'unistr/u32-to-u8'.
34608         * modules/unistr/u32-to-u8-tests: New file.
34609         * tests/unistr/test-u32-to-u8.c: New file.
34610
34611         Tests for module 'unistr/u16-to-u32'.
34612         * modules/unistr/u16-to-u32-tests: New file.
34613         * tests/unistr/test-u16-to-u32.c: New file.
34614
34615         Tests for module 'unistr/u16-to-u8'.
34616         * modules/unistr/u16-to-u8-tests: New file.
34617         * tests/unistr/test-u16-to-u8.c: New file.
34618
34619         Tests for module 'unistr/u8-to-u32'.
34620         * modules/unistr/u8-to-u32-tests: New file.
34621         * tests/unistr/test-u8-to-u32.c: New file.
34622
34623         Tests for module 'unistr/u8-to-u16'.
34624         * modules/unistr/u8-to-u16-tests: New file.
34625         * tests/unistr/test-u8-to-u16.c: New file.
34626
34627         Tests for module 'unistr/u32-check'.
34628         * modules/unistr/u32-check-tests: New file.
34629         * tests/unistr/test-u32-check.c: New file.
34630
34631         Tests for module 'unistr/u16-check'.
34632         * modules/unistr/u16-check-tests: New file.
34633         * tests/unistr/test-u16-check.c: New file.
34634
34635         Tests for module 'unistr/u8-check'.
34636         * modules/unistr/u8-check-tests: New file.
34637         * tests/unistr/test-u8-check.c: New file.
34638
34639         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34640         (category_equals): New function.
34641         (main): Add more tests.
34642         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34643
34644         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34645
34646 2010-01-10  Bruno Haible  <bruno@clisp.org>
34647
34648         unistr/u*-strcoll: Try harder to distinguish different strings.
34649         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34650         compare s1 and s2 to see if they are different.
34651
34652 2010-01-10  Bruno Haible  <bruno@clisp.org>
34653
34654         unistr/u*-stpncpy: Fix the return value.
34655         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34656         description of the return value consistent with stpncpy in glibc.
34657         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34658         written non-NUL unit.
34659
34660 2010-01-10  Bruno Haible  <bruno@clisp.org>
34661
34662         unistr/u*-next: Add missing dependencies.
34663         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34664         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34665         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34666
34667 2010-01-10  Bruno Haible  <bruno@clisp.org>
34668
34669         unistr/u8-mbsnlen: Fix return value for incomplete character.
34670         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34671         u8_mblen.
34672         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34673         Remove unistr/u8-mblen.
34674         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34675         u16_mblen.
34676         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34677         Remove unistr/u16-mblen.
34678
34679 2010-01-10  Bruno Haible  <bruno@clisp.org>
34680
34681         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34682         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34683         Reported by Brian Gough <bjg@gnu.org> and
34684         Chris Clayton <chris2553@googlemail.com> via
34685         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34686
34687 2010-01-09  Bruno Haible  <bruno@clisp.org>
34688
34689         unistr/u16-to-u32: Reject invalid input.
34690         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34691         u16_mbtouc.
34692         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34693         Remove unistr/u16-mbtouc.
34694
34695         unistr/u16-to-u8: Reject invalid input.
34696         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34697         u16_mbtouc.
34698         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34699         Remove unistr/u16-mbtouc.
34700
34701         unistr/u8-to-u32: Reject invalid input.
34702         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34703         u8_mbtouc.
34704         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34705         Remove unistr/u8-mbtouc.
34706
34707         unistr/u8-to-u16: Reject invalid input.
34708         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34709         u8_mbtouc.
34710         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34711         Remove unistr/u8-mbtouc.
34712
34713 2010-01-09  Bruno Haible  <bruno@clisp.org>
34714
34715         Tests for module 'getlogin'.
34716         * modules/getlogin-tests: New file.
34717         * tests/test-getlogin.c: New file.
34718
34719         New module 'getlogin'.
34720         * lib/unistd.in.h (getlogin): New declaration.
34721         * lib/getlogin.c: New file.
34722         * m4/getlogin.m4: New file.
34723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34724         HAVE_GETLOGIN.
34725         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34726         HAVE_GETLOGIN.
34727         * modules/getlogin: New file.
34728         * doc/posix-functions/getlogin.texi: Mention the new module.
34729         Reported by John W. Eaton <jwe@gnu.org>.
34730
34731 2010-01-09  Bruno Haible  <bruno@clisp.org>
34732
34733         getlogin_r: Support for native Windows.
34734         * lib/getlogin_r.c: Include <windows.h>
34735         (getlogin_r): Implement for native Windows.
34736         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34737         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34738         via John W. Eaton <jwe@gnu.org>.
34739
34740 2010-01-09  Bruno Haible  <bruno@clisp.org>
34741
34742         getlogin_r: Small fixes.
34743         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34744         succeeds.
34745         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34746         before testing whether getlogin_r is declared. No need to set
34747         HAVE_DECL_GETLOGIN_R to 1.
34748         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34749
34750 2010-01-09  Bruno Haible  <bruno@clisp.org>
34751
34752         * lib/unistd.in.h (getlogin_r): Add comment.
34753
34754 2010-01-09  Bruno Haible  <bruno@clisp.org>
34755
34756         Tests for module 'getlogin_r'.
34757         * modules/getlogin_r-tests: New file.
34758         * tests/test-getlogin_r.c: New file.
34759
34760 2010-01-09  Jim Meyering  <meyering@redhat.com>
34761
34762         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34763         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34764         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34765
34766 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34767
34768         * lib/dup2.c (rpl_dup2): Improve comment.
34769
34770 2010-01-08  Eric Blake  <ebb9@byu.net>
34771
34772         maint.mk: allow packages to add makefile @@ exceptions
34773         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34774         (sc_makefile_check): Rename...
34775         (sc_makefile_at_at_check): ...to this, and use hook.
34776
34777         dup2: work around mingw bug
34778         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34779         Reported by Simon Josefsson.
34780
34781 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34782
34783         glob: Fix C++ compilation.
34784         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34785         C++.
34786
34787 2010-01-07  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix indentation of wctype.in.h, broken since 2007-01-06.
34790         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34791
34792 2010-01-07  Bruno Haible  <bruno@clisp.org>
34793
34794         mbslen: Avoid collision with system function.
34795         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34796         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34797         * m4/mbslen.m4: New file.
34798         * modules/mbslen (Files): Add it.
34799         (configure.ac): Invoke gl_MBSLEN.
34800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34801         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34802         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34803         via Ian Beckwith <ianb@erislabs.net>.
34804
34805 2010-01-07  Bruno Haible  <bruno@clisp.org>
34806
34807         dirent: Document the last fix.
34808         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34809
34810 2010-01-07  Bruno Haible  <bruno@clisp.org>
34811
34812         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34813         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34814         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34815         va_list are defined.
34816         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34817         Reported by Eric Blake.
34818
34819 2010-01-07  Bruno Haible  <bruno@clisp.org>
34820
34821         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34822         * modules/xlist (Depends-on): Add 'list',
34823         * modules/xoset (Depends-on): Add 'oset'.
34824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34825
34826 2010-01-07  Bruno Haible  <bruno@clisp.org>
34827
34828         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34829         * doc/posix-functions/strncasecmp.texi: Likewise.
34830
34831 2010-01-07  Bruno Haible  <bruno@clisp.org>
34832
34833         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34834
34835 2010-01-07  John W. Eaton  <jwe@octave.org>
34836
34837         wctype: allow C++ use
34838         * lib/wctype.in.h: Add extern "C" block for C++.
34839
34840 2010-01-06  Eric Blake  <ebb9@byu.net>
34841
34842         maint.mk: detect incorrect GFDL usage
34843         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34844
34845 2010-01-06  Jim Meyering  <meyering@redhat.com>
34846         and Eric Blake  <ebb9@byu.net>
34847
34848         maint.mk: ignore multi-line copyright in NEWS
34849         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34850
34851 2010-01-06  Eric Blake  <ebb9@byu.net>
34852
34853         select: add missing dependency
34854         * modules/select-tests (Depends-on): Move sockets dependency...
34855         * modules/select (Depends-on): ...here.
34856         Reported by Ian Beckwith.
34857
34858         doc: regenerate INSTALL
34859         * doc/INSTALL: Reflect recent autoconf update.
34860         * doc/INSTALL.ISO: Likewise.
34861         * doc/INSTALL.UTF-8: Likewise.
34862
34863         pread: fix compilation on glibc
34864         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34865         Reported by Ralf Wildenhues.
34866
34867         dirent: fix test failure
34868         * lib/dirent.in.h (includes): Guarantee ino_t.
34869         Reported by Ralf Wildenhues.
34870
34871 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34872
34873         linkat, renameat: avoid bad free
34874         * lib/at-func2.c (at_func2): Fix typo.
34875         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34876
34877 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34878
34879         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34880         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34881         to avoid failure of symlink test later.
34882
34883 2010-01-06  Eric Blake  <ebb9@byu.net>
34884
34885         stdio, unistd: guarantee ssize_t
34886         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34887         2008 are exposed when needed.
34888         * lib/stdio.in.h (includes): Likewise.
34889         Reported by Ralf Wildenhues.
34890
34891 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34892
34893         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34894         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34895         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34896
34897 2010-01-06  Jim Meyering  <meyering@redhat.com>
34898
34899         readtokens: this module *does* require xalloc.h
34900         It uses only functions that were omitted by the old syntax-check rule.
34901         * lib/readtokens.c: Include "xalloc.h" once again.
34902         * modules/readtokens (Depends-on): Add xalloc.
34903         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34904
34905 2010-01-05  Eric Blake  <ebb9@byu.net>
34906
34907         maint: support 'make announcement' from a VPATH build
34908         * top/maint.mk (announcement): Look for correct NEWS file.
34909
34910 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34911
34912         utimens (fdutimens): ignore a negative FD, per contract
34913         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34914         when we have a valid file descriptor.  Otherwise, using a brand
34915         new glibc (with just-patched futimens that now fails with EBADF)
34916         would cause this function to fail with ENOSYS.
34917         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34918         See also http://bugzilla.redhat.com/552320.
34919
34920 2010-01-05  Eric Blake  <ebb9@byu.net>
34921
34922         strcase: document what it provides
34923         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34924         gnulib module.
34925         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34926         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34927
34928 2010-01-05  Jim Meyering  <meyering@redhat.com>
34929
34930         maint: remove useless inclusions of "xalloc.h"
34931         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34932         * lib/readtokens.c: Likewise.
34933         * lib/same.c: Likewise.
34934         * modules/getloadavg (Depends-on): Remove xalloc.
34935         * modules/readtokens: Likewise.
34936         * modules/same: Likewise.
34937
34938         maint.mk: include 4 more function names in alloca.h-checking regexp
34939         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34940         regexp.  Before, we would give a false-positive (saying alloca.h
34941         is included unnecessarily) when the only uses involved omitted symbols.
34942
34943         xalloc.h: use consistent formatting
34944         * lib/xalloc.h: Move declarations to start in the first column.
34945
34946 2010-01-05  Eric Blake  <ebb9@byu.net>
34947
34948         mkdir: avoid xalloc
34949         * lib/mkdir.c (includes): Drop unused header.
34950         Reported by John W. Eaton.
34951
34952 2010-01-04  Jim Meyering  <meyering@redhat.com>
34953
34954         nl_langinfo: avoid configure-time syntax error
34955         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34956         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34957         the empty string.  Don't let that provoke a shell syntax error.
34958
34959         regcomp, regexec, fnmatch: avoid array bounds read error
34960         * lib/regcomp.c (build_equiv_class): From glibc:
34961         Use only the low 24 bits of a findidx return value as an index
34962         into the weights array.  Patch by Ulrich Drepper:
34963         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34964         * lib/regexec.c (check_node_accept_bytes): Likewise.
34965         * lib/fnmatch_loop.c (FCT): Likewise.
34966
34967         regcomp: skip collseq lookup when there are no rules
34968         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34969         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34970
34971         regcomp: recognize ill-formed { } expressions
34972         * lib/regcomp.c (parse_dup_op): From glibc:
34973         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34974
34975         regcomp: fix typo in comment
34976         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34977         s/satisfy/satisfies/.
34978
34979         regcomp: sync from glibc: remove dead store
34980         * lib/regcomp.c (duplicate_node_closure): Remove useless
34981         search_duplicated_node call and dead store.
34982
34983         regcomp: sync from glibc; always use nl_langinfo
34984         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34985         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34986         * modules/regex (Depends-on): Add nl_langinfo.
34987
34988 2010-01-04  Eric Blake  <ebb9@byu.net>
34989
34990         fdopendir: fix configure test
34991         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34992
34993 2010-01-01  Bruno Haible  <bruno@clisp.org>
34994
34995         wchar: Remove unused configure check.
34996         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34997
34998 2010-01-01  Eric Blake  <ebb9@byu.net>
34999
35000         headers: make check of system header explicit
35001         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35002         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35003         ourselves.
35004         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35005         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35006         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35007         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35008         internals.
35009         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35010         missing.
35011         Suggested by Bruno Haible.
35012
35013 2010-01-01  Jim Meyering  <meyering@redhat.com>
35014
35015         ChangeLog: tweak to eliminate unnecessary copyright line
35016         * ChangeLog: Remove a copyright line that was mistakenly updated
35017         by today's update-copyright run.  Reported by Eric Blake.
35018
35019         test-update-copyright: don't let envvar setting cause test failure
35020         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35021
35022 2010-01-01  Bruno Haible  <bruno@clisp.org>
35023
35024         localename: Avoid gcc warning.
35025         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35026         function if it is not used.
35027
35028 2010-01-01  Jim Meyering  <meyering@redhat.com>
35029
35030         update nearly all FSF copyright year lists to include 2010
35031         Use the same procedure as for 2009, outlined in
35032         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35033
35034         version-etc: set COPYRIGHT_YEAR to 2010
35035         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35036
35037 2009-12-31  Eric Blake  <ebb9@byu.net>
35038
35039         doc: correct availability of cygwin 1.5.x getopt
35040         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35041         variables.
35042         * doc/posix-functions/opterr.texi (opterr): Likewise.
35043         * doc/posix-functions/optind.texi (optind): Likewise.
35044         * doc/posix-functions/optopt.texi (optopt): Likewise.
35045         * doc/posix-functions/tzname.texi (tzname): Likewise.
35046
35047         openat: update maintainer
35048         * modules/openat (Maintainer): Add myself.
35049
35050         utimens: avoid shadowing warning
35051         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35052         buffers into one, to avoid shadowing, as well as avoiding a
35053         redundant stat.
35054         Reported by Jim Meyering.
35055
35056         test-dup2: avoid compiler warning
35057         * tests/test-dup2.c (is_inheritable): Only define if used.
35058
35059 2010-01-01  Bruno Haible  <bruno@clisp.org>
35060
35061         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35062         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35063         defined, use wctomb instead of wcrtomb.
35064
35065 2010-01-01  Bruno Haible  <bruno@clisp.org>
35066
35067         iconv: Reject native Solaris iconv.
35068         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35069         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35070
35071 2009-12-31  Bruno Haible  <bruno@clisp.org>
35072
35073         * tests/test-signal.c (main): Remove test of 'SIG'.
35074
35075 2009-12-31  Bruno Haible  <bruno@clisp.org>
35076
35077         spawn: Fix incomplete fix.
35078         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35079         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35080         warnings for GNULIB_POSIXCHECK again.
35081         Reported by Eric Blake.
35082
35083 2009-12-31  Bruno Haible  <bruno@clisp.org>
35084
35085         Avoid namespace pollution on glibc systems.
35086         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35087         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35088         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35089         glibc systems.
35090
35091 2009-12-31  Bruno Haible  <bruno@clisp.org>
35092
35093         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35094         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35095         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35096         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35097         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35098         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35099         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35100
35101 2009-12-31  Bruno Haible  <bruno@clisp.org>
35102
35103         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35104         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35105         afterwards.
35106
35107 2009-12-31  Bruno Haible  <bruno@clisp.org>
35108
35109         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35110         SYS_UTSNAME_H.
35111
35112 2009-12-31  Bruno Haible  <bruno@clisp.org>
35113
35114         spawn: Fix misapplied patch.
35115         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35116         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35117         warnings for GNULIB_POSIXCHECK.
35118
35119 2009-12-31  Bruno Haible  <bruno@clisp.org>
35120
35121         times: Update after sys_times changed.
35122         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35123         * modules/times (Files): Add it.
35124         (configure.ac): Invoke gl_FUNC_TIMES.
35125
35126 2009-12-31  Bruno Haible  <bruno@clisp.org>
35127
35128         Use AC_C_INLINE where necessary.
35129         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35130         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35132         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35133         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35134         * m4/mbiter.m4 (gl_MBITER): Likewise.
35135         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35136         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35137         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35138         * modules/u64 (configure.ac): Likewise.
35139
35140 2009-12-31  Bruno Haible  <bruno@clisp.org>
35141
35142         Use AC_C_INLINE instead of module 'inline' where possible.
35143         * modules/inline (Description): Clarify purpose.
35144         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35145         * modules/count-one-bits (Depends-on): Remove inline.
35146         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35147         * modules/openat (Depends-on): Remove inline.
35148         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35149         instead of depending on module 'inline'.
35150         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35151         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35152         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35153         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35154         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35155         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35156         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35157         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35158         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35159         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35160         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35161         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35162         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35163         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35164         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35165         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35166         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35167         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35168         Likewise.
35169         * modules/unictype/property-ascii-hex-digit (Depends-on,
35170         configure.ac): Likewise.
35171         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35172         configure.ac): Likewise.
35173         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35174         configure.ac): Likewise.
35175         * modules/unictype/property-bidi-block-separator (Depends-on,
35176         configure.ac): Likewise.
35177         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35178         configure.ac): Likewise.
35179         * modules/unictype/property-bidi-common-separator (Depends-on,
35180         configure.ac): Likewise.
35181         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35182         Likewise.
35183         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35184         configure.ac): Likewise.
35185         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35186         configure.ac): Likewise.
35187         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35188         configure.ac): Likewise.
35189         * modules/unictype/property-bidi-european-digit (Depends-on,
35190         configure.ac): Likewise.
35191         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35192         configure.ac): Likewise.
35193         * modules/unictype/property-bidi-left-to-right (Depends-on,
35194         configure.ac): Likewise.
35195         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35196         configure.ac): Likewise.
35197         * modules/unictype/property-bidi-other-neutral (Depends-on,
35198         configure.ac): Likewise.
35199         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35200         Likewise.
35201         * modules/unictype/property-bidi-segment-separator (Depends-on,
35202         configure.ac): Likewise.
35203         * modules/unictype/property-bidi-whitespace (Depends-on,
35204         configure.ac): Likewise.
35205         * modules/unictype/property-combining (Depends-on, configure.ac):
35206         Likewise.
35207         * modules/unictype/property-composite (Depends-on, configure.ac):
35208         Likewise.
35209         * modules/unictype/property-currency-symbol (Depends-on,
35210         configure.ac): Likewise.
35211         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35212         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35213         Likewise.
35214         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35215         configure.ac): Likewise.
35216         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35217         Likewise.
35218         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35219         Likewise.
35220         * modules/unictype/property-extender (Depends-on, configure.ac):
35221         Likewise.
35222         * modules/unictype/property-format-control (Depends-on, configure.ac):
35223         Likewise.
35224         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35225         Likewise.
35226         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35227         Likewise.
35228         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35229         Likewise.
35230         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35231         Likewise.
35232         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35233         Likewise.
35234         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35235         Likewise.
35236         * modules/unictype/property-id-start (Depends-on, configure.ac):
35237         Likewise.
35238         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35239         Likewise.
35240         * modules/unictype/property-ids-binary-operator (Depends-on,
35241         configure.ac): Likewise.
35242         * modules/unictype/property-ids-trinary-operator (Depends-on,
35243         configure.ac): Likewise.
35244         * modules/unictype/property-ignorable-control (Depends-on,
35245         configure.ac): Likewise.
35246         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35247         Likewise.
35248         * modules/unictype/property-join-control (Depends-on, configure.ac):
35249         Likewise.
35250         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35251         Likewise.
35252         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35253         Likewise.
35254         * modules/unictype/property-logical-order-exception (Depends-on,
35255         configure.ac): Likewise.
35256         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35257         Likewise.
35258         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35259         * modules/unictype/property-non-break (Depends-on, configure.ac):
35260         Likewise.
35261         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35262         Likewise.
35263         * modules/unictype/property-numeric (Depends-on, configure.ac):
35264         Likewise.
35265         * modules/unictype/property-other-alphabetic (Depends-on,
35266         configure.ac): Likewise.
35267         * modules/unictype/property-other-default-ignorable-code-point
35268         (Depends-on, configure.ac): Likewise.
35269         * modules/unictype/property-other-grapheme-extend (Depends-on,
35270         configure.ac): Likewise.
35271         * modules/unictype/property-other-id-continue (Depends-on,
35272         configure.ac): Likewise.
35273         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35274         Likewise.
35275         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35276         Likewise.
35277         * modules/unictype/property-other-math (Depends-on, configure.ac):
35278         Likewise.
35279         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35280         Likewise.
35281         * modules/unictype/property-paired-punctuation (Depends-on,
35282         configure.ac): Likewise.
35283         * modules/unictype/property-paragraph-separator (Depends-on,
35284         configure.ac): Likewise.
35285         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35286         Likewise.
35287         * modules/unictype/property-pattern-white-space (Depends-on,
35288         configure.ac): Likewise.
35289         * modules/unictype/property-private-use (Depends-on, configure.ac):
35290         Likewise.
35291         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35292         Likewise.
35293         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35294         Likewise.
35295         * modules/unictype/property-radical (Depends-on, configure.ac):
35296         Likewise.
35297         * modules/unictype/property-sentence-terminal (Depends-on,
35298         configure.ac): Likewise.
35299         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35300         Likewise.
35301         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35302         * modules/unictype/property-terminal-punctuation (Depends-on,
35303         configure.ac): Likewise.
35304         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35305         Likewise.
35306         * modules/unictype/property-unassigned-code-value (Depends-on,
35307         configure.ac): Likewise.
35308         * modules/unictype/property-unified-ideograph (Depends-on,
35309         configure.ac): Likewise.
35310         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35311         Likewise.
35312         * modules/unictype/property-variation-selector (Depends-on,
35313         configure.ac): Likewise.
35314         * modules/unictype/property-white-space (Depends-on, configure.ac):
35315         Likewise.
35316         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35317         Likewise.
35318         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35319         Likewise.
35320         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35321         Likewise.
35322         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35323         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35324         Likewise.
35325
35326 2009-12-31  Bruno Haible  <bruno@clisp.org>
35327
35328         Remove unnecessary AC_C_INLINE invocation.
35329         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35330         since 2009-08-21.
35331
35332 2009-12-31  Jim Meyering  <meyering@redhat.com>
35333
35334         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35335         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35336         With this change, we can all remove the gpg_key_ID = ... definition
35337         from our respective cfg.mk files.
35338
35339         maint.mk: create announcement template in ~/, not in /tmp
35340         * top/maint.mk (emit_upload_commands): Adjust.
35341         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35342         Remove temporary file, .ci-msg.
35343
35344 2009-12-31  Eric Blake  <ebb9@byu.net>
35345
35346         link-warning: always build headers with link warnings
35347         * modules/arpa_inet (Makefile.am): Always build replacement
35348         header.
35349         * modules/ctype (Makefile.am): Likewise.
35350         * modules/dirent (Makefile.am): Likewise.
35351         * modules/inttypes (Makefile.am): Likewise.
35352         * modules/langinfo (Makefile.am): Likewise.
35353         * modules/locale (Makefile.am): Likewise.
35354         * modules/spawn (Makefile.am): Likewise.
35355         * modules/sys_file (Makefile.am): Likewise.
35356         * modules/sys_ioctl (Makefile.am): Likewise.
35357         * modules/sys_select (Makefile.am): Likewise.
35358         * modules/sys_socket (Makefile.am): Likewise.
35359         * modules/sys_times (Makefile.am): Likewise.
35360         * modules/sys_utsname (Makefile.am): Likewise.
35361         * modules/sys_wait (Makefile.am): Likewise.
35362         * modules/wchar (Makefile.am): Likewise.
35363         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35364         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35365         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35366         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35367         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35368         Likewise.
35369         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35370         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35371         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35372         Likewise.
35373         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35374         Likewise.
35375         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35377         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35379         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35380         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35381         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35382         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35383         (gl_WCHAR_H_DEFAULTS): Likewise.
35384
35385 2009-12-31  Eric Blake  <ebb9@byu.net>
35386
35387         signal, spawn: use link warnings
35388         * lib/signal.in.h (sigset_t): Make unconditional.
35389         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35390         (sigpending, sigprocmask, sigaction): Add link warnings.
35391         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35392         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35393         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35394         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35395         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35396         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35397         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35398         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35399         (posix_spawn_file_actions_destroy)
35400         (posix_spawn_file_actions_addopen)
35401         (posix_spawn_file_actions_addclose)
35402         (posix_spawn_file_actions_adddup2): Likewise.
35403         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35404         * tests/test-signal.c (main): Enhance test.
35405
35406         spawn: improve wrapper support
35407         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35408         (gl_SPAWN_H_DEFAULTS): New defaults.
35409         * modules/spawn (Makefile.am): Substitute them.
35410         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35411         Only declare if missing or broken.
35412
35413         sys_times, sys_utsname: use include_next
35414         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35415         header.
35416         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35417         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35418         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35419         * modules/sys_times (Depends-on): Add include_next.
35420         (Makefile.am): Substitute additional values.
35421         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35422         * lib/sys_times.in.h (includes): Include native header, if
35423         available.
35424         * lib/sys_utsname.in.h (includes): Likewise.
35425         * tests/test-sys_times.c (main): Enhance test.
35426
35427         fdutimensat: revert prior patch
35428         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35429         utimens.h.
35430         Reported by Bruno Haible.
35431
35432 2009-12-30  Eric Blake  <ebb9@byu.net>
35433
35434         sys_wait: drop link-warning dependency
35435         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35436         link-warning efforts.
35437         * lib/sys_wait.in.h: Likewise.
35438
35439         fdutimensat: remove bogus dependency
35440         * modules/fdutimensat (Depends-on): Drop inline.
35441
35442         unistd: fix typo
35443         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35444
35445 2009-12-30  Bruno Haible  <bruno@clisp.org>
35446
35447         Fix compilation error with Solaris cc.
35448         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35449         * lib/unicase/u16-is-invariant.c: Likewise.
35450         * lib/unicase/u32-is-invariant.c: Likewise.
35451         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35452
35453 2009-12-30  Bruno Haible  <bruno@clisp.org>
35454
35455         Fix test crash.
35456         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35457         locales.
35458         Reported by Simon Josefsson <simon@josefsson.org>.
35459
35460 2009-12-30  Bruno Haible  <bruno@clisp.org>
35461
35462         Fix compilation error on most platforms.
35463         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35464         Reported by Simon Josefsson <simon@josefsson.org>
35465         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35466
35467 2009-12-30  Eric Blake  <ebb9@byu.net>
35468
35469         futimens, utimensat: work around ntfs-3g bug
35470         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35471         a ctime bug is present, and expand workaround to cover ntfs-3g.
35472         * lib/utimens.c (fdutimens, lutimens): Likewise.
35473         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35474         (validate_timespec): Adjust return value.
35475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35476         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35477         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35478
35479 2009-12-29  Eric Blake  <ebb9@byu.net>
35480
35481         link-warning: make usage consistent
35482         * modules/ctype (Depends-on): Add link-warning.
35483         (Makefile.am): Update rules accordingly.
35484         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35485         * modules/locale (Depends-on, Makefile.am): Likewise.
35486         * modules/sys_file (Makefile.am): Likewise.
35487         * modules/getopt-posix (Makefile.am): Delete unused link warning
35488         efforts.
35489         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35490         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35491         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35492         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35493
35494         stdio: remove unused variables
35495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35496         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35497         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35498
35499         tests: test more substitute headers
35500         * modules/ctype-tests: New file.
35501         * modules/dirent-tests: Likewise.
35502         * modules/spawn-tests: Likewise.
35503         * modules/sys_file-tests: Likewise.
35504         * modules/sys_ioctl-tests: Likewise.
35505         * modules/sys_wait-tests: Likewise.
35506         * tests/test-ctype.c: Likewise.
35507         * tests/test-dirent.c: Likewise.
35508         * tests/test-spawn.c: Likewise.
35509         * tests/test-sys_file.c: Likewise.
35510         * tests/test-sys_ioctl.c: Likewise.
35511         * tests/test-sys_wait.c: Likewise.
35512         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35513         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35514         whether or not flock is in use.
35515
35516         tests: remove License section from module
35517         * modules/arpa_inet-tests: Remove unneeded section.
35518         * modules/byteswap-tests: Likewise.
35519         * modules/ceilf-tests: Likewise.
35520         * modules/ceill-tests: Likewise.
35521         * modules/crypto/des-tests: Likewise.
35522         * modules/crypto/gc-arcfour-tests: Likewise.
35523         * modules/crypto/gc-arctwo-tests: Likewise.
35524         * modules/crypto/gc-des-tests: Likewise.
35525         * modules/crypto/gc-hmac-md5-tests: Likewise.
35526         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35527         * modules/crypto/gc-md2-tests: Likewise.
35528         * modules/crypto/gc-md4-tests: Likewise.
35529         * modules/crypto/gc-md5-tests: Likewise.
35530         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35531         * modules/crypto/gc-rijndael-tests: Likewise.
35532         * modules/crypto/gc-sha1-tests: Likewise.
35533         * modules/crypto/gc-tests: Likewise.
35534         * modules/crypto/md2-tests: Likewise.
35535         * modules/crypto/md4-tests: Likewise.
35536         * modules/fcntl-h-tests: Likewise.
35537         * modules/floorf-tests: Likewise.
35538         * modules/floorl-tests: Likewise.
35539         * modules/frexp-nolibm-tests: Likewise.
35540         * modules/frexp-tests: Likewise.
35541         * modules/frexpl-nolibm-tests: Likewise.
35542         * modules/frexpl-tests: Likewise.
35543         * modules/getaddrinfo-tests: Likewise.
35544         * modules/inttypes-tests: Likewise.
35545         * modules/isfinite-tests: Likewise.
35546         * modules/isinf-tests: Likewise.
35547         * modules/ldexpl-tests: Likewise.
35548         * modules/locale-tests: Likewise.
35549         * modules/math-tests: Likewise.
35550         * modules/netdb-tests: Likewise.
35551         * modules/netinet_in-tests: Likewise.
35552         * modules/printf-frexp-tests: Likewise.
35553         * modules/printf-frexpl-tests: Likewise.
35554         * modules/priv-set-tests: Likewise.
35555         * modules/random_r-tests: Likewise.
35556         * modules/round-tests: Likewise.
35557         * modules/roundf-tests: Likewise.
35558         * modules/roundl-tests: Likewise.
35559         * modules/search-tests: Likewise.
35560         * modules/select-tests: Likewise.
35561         * modules/signal-tests: Likewise.
35562         * modules/stdbool-tests: Likewise.
35563         * modules/stddef-tests: Likewise.
35564         * modules/stdint-tests: Likewise.
35565         * modules/stdio-tests: Likewise.
35566         * modules/stdlib-tests: Likewise.
35567         * modules/string-tests: Likewise.
35568         * modules/strings-tests: Likewise.
35569         * modules/sys_select-tests: Likewise.
35570         * modules/sys_socket-tests: Likewise.
35571         * modules/sys_stat-tests: Likewise.
35572         * modules/sys_time-tests: Likewise.
35573         * modules/sys_utsname-tests: Likewise.
35574         * modules/sysexits-tests: Likewise.
35575         * modules/time-tests: Likewise.
35576         * modules/trunc-tests: Likewise.
35577         * modules/truncf-tests: Likewise.
35578         * modules/truncl-tests: Likewise.
35579         * modules/tsearch-tests: Likewise.
35580         * modules/unistd-tests: Likewise.
35581         * modules/wchar-tests: Likewise.
35582         * modules/wctype-tests: Likewise.
35583
35584         tests: fix license on several tests
35585         * tests/test-des.c: Update to GPLv3+.
35586         * tests/test-flock.c: Likewise.
35587         * tests/test-fsync.c: Likewise.
35588         * tests/test-futimens.h: Likewise.
35589         * tests/test-gc-arcfour.c: Likewise.
35590         * tests/test-gc-arctwo.c: Likewise.
35591         * tests/test-gc-des.c: Likewise.
35592         * tests/test-gc-hmac-md5.c: Likewise.
35593         * tests/test-gc-hmac-sha1.c: Likewise.
35594         * tests/test-gc-md2.c: Likewise.
35595         * tests/test-gc-md4.c: Likewise.
35596         * tests/test-gc-md5.c: Likewise.
35597         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35598         * tests/test-gc-rijndael.c: Likewise.
35599         * tests/test-gc-sha1.c: Likewise.
35600         * tests/test-gc.c: Likewise.
35601         * tests/test-getcwd.c: Likewise.
35602         * tests/test-link.c: Likewise.
35603         * tests/test-link.h: Likewise.
35604         * tests/test-lutimens.h: Likewise.
35605         * tests/test-md2.c: Likewise.
35606         * tests/test-md4.c: Likewise.
35607         * tests/test-mkdir.h: Likewise.
35608         * tests/test-rename.c: Likewise.
35609         * tests/test-rename.h: Likewise.
35610         * tests/test-safe-alloc.c: Likewise.
35611         * tests/test-utimens-common.h: Likewise.
35612         * tests/test-utimens.h: Likewise.
35613
35614         maint: sync license texts
35615         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35616         * doc/gpl-3.0.texi: Revert copyright year update.
35617         * doc/lgpl-3.0.texi: Likewise.
35618
35619 2009-12-29  Jim Meyering  <meyering@redhat.com>
35620
35621         update nearly all FSF copyright year lists to include 2009
35622         The files named by the following are exempted:
35623             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35624               test -f "$dst" && { echo "$dst"; continue; }
35625               test -d "$dst" || continue
35626               echo "$dst"/$(basename "$src")
35627             done > exempt
35628             git ls-files tests/unictype >> exempt
35629         In the remaining files, convert to all-interval notation if
35630         - there is already at least one year interval like 2000-2003
35631         - the file is maintained by me
35632         - the file is in lib/uni*/, where that style already prevails
35633         Otherwise, use update-copyright's default.
35634
35635 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35636         and Eric Blake  <ebb9@byu.net>
35637
35638         tests: don't require debug system() to pass
35639         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35640         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35641         * tests/test-unlink.h (test_unlink_func): Likewise.
35642         * tests/test-fstatat.c (main): ...into callers.
35643         * tests/test-lstat.c (main): Likewise.
35644         * tests/test-rmdir.c (main): Likewise.
35645         * tests/test-unlink.c (main): Likewise.
35646         * tests/test-unlinkat.c (main): Likewise.
35647         * tests/test-areadlink-with-size.c (main): Don't require a
35648         debug-only system call to pass, aiding cross-testing to mingw.
35649         * tests/test-areadlink.c (main): Likewise.
35650         * tests/test-areadlinkat-with-size.c (main): Likewise.
35651         * tests/test-areadlinkat.c (main): Likewise.
35652         * tests/test-canonicalize-lgpl.c (main): Likewise.
35653         * tests/test-canonicalize.c (main): Likewise.
35654         * tests/test-chown.c (main): Likewise.
35655         * tests/test-fchownat.c (main): Likewise.
35656         * tests/test-lchown.c (main): Likewise.
35657         * tests/test-fdutimensat.c (main): Likewise.
35658         * tests/test-futimens.c (main): Likewise.
35659         * tests/test-link.c (main): Likewise.
35660         * tests/test-linkat.c (main): Likewise.
35661         * tests/test-mkdir.c (main): Likewise.
35662         * tests/test-mkdirat.c (main): Likewise.
35663         * tests/test-mkfifo.c (main): Likewise.
35664         * tests/test-mkfifoat.c (main): Likewise.
35665         * tests/test-mknod.c (main): Likewise.
35666         * tests/test-readlink.c (main): Likewise.
35667         * tests/test-remove.c (main): Likewise.
35668         * tests/test-rename.c (main): Likewise.
35669         * tests/test-renameat.c (main): Likewise.
35670         * tests/test-symlink.c (main): Likewise.
35671         * tests/test-symlinkat.c (main): Likewise.
35672         * tests/test-utimens.c (main): Likewise.
35673         * tests/test-utimensat.c (main): Likewise.
35674
35675 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35676
35677         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35678         on $(UNUSED_PARAMETER_H) to avoid build failure.
35679
35680 2009-12-28  Jim Meyering  <meyering@redhat.com>
35681
35682         update-copyright: you may specify a max. line length other than 72
35683         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35684
35685         maint: use consistent FSF copyright line syntax
35686         * lib/posixtm.c: Add missing comma in FSF copyright line.
35687         * lib/posixtm.h: Likewise.
35688         * lib/getugroups.c: Add missing ", Inc.".
35689
35690         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35691         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35692         FSF copyright line.  Remove trailing blanks.
35693
35694 2009-12-28  Eric Blake  <ebb9@byu.net>
35695
35696         test-dup2: reduce dependencies
35697         * modules/cloexec (Configure.ac): Set witness.
35698         * modules/dup2-tests (Depends-on): Drop cloexec.
35699         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35700         not present.
35701         Suggested by Bruno Haible.
35702
35703 2009-12-26  Bruno Haible  <bruno@clisp.org>
35704
35705         Remove an unneeded dependency.
35706         * modules/fseterr (Depends-on): Remove dup2.
35707
35708 2009-12-26  Eric Blake  <ebb9@byu.net>
35709
35710         tests: use macros.h in more places
35711         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35712         (ASSERT_STREAM): Provide default of stderr.
35713         * tests/test-dirent-safer.c: Include macros.h, using alternate
35714         stream for assertions.
35715         * tests/test-dup-safer.c: Likewise.
35716         * tests/test-freopen-safer.c: Likewise.
35717         * tests/test-getopt.c: Likewise.
35718         * tests/test-openat-safer.c: Likewise.
35719         * tests/test-pipe.c: Likewise.
35720         * tests/test-popen-safer.c: Likewise.
35721         * modules/dirent-safer-tests (Files): Include macros.h.
35722         * modules/unistd-safer-tests (Files): Likewise.
35723         * modules/freopen-safer-tests (Files): Likewise.
35724         * modules/getopt-posix-tests (Files): Likewise.
35725         * modules/openat-safer-tests (Files): Likewise.
35726         * modules/pipe-tests (Files): Likewise.
35727
35728 2009-12-26  Bruno Haible  <bruno@clisp.org>
35729
35730         javacomp: Portability fix.
35731         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35732         that it also works on Solaris.
35733
35734 2009-12-26  Bruno Haible  <bruno@clisp.org>
35735
35736         localename: Fix storage allocation of gl_locale_name_thread's result.
35737         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35738         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35739         all platforms that have 'uselocale'.
35740         (gl_locale_name_thread_unsafe): New function, extracted from
35741         gl_locale_name_thread.
35742         (gl_locale_name_thread): Call struniq on all platforms that have
35743         'uselocale'.
35744         * tests/test-localename.c (test_locale_name_thread): Check that the
35745         resulting strings are permanently allocated.
35746         * modules/localename-tests (Depends-on): Add strdup.
35747
35748 2009-12-26  Bruno Haible  <bruno@clisp.org>
35749
35750         * tests/test-localename.c (categories): Fill in the strings.
35751
35752 2009-12-26  Jim Meyering  <meyering@redhat.com>
35753
35754         isdir: complete the removal of m4/isdir.m4
35755         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35756
35757         isdir: clean up, since at least grep still uses it
35758         * lib/isdir.c: Include "isdir.h".
35759         (S_ISDIR): Remove now-unneeded definition.
35760         * modules/isdir (Files): Add lib/isdir.h.
35761         * lib/isdir.h: New file, with declaration.
35762         * m4/isdir.m4: Remove file -- unneeded.
35763
35764 2009-12-25  Bruno Haible  <bruno@clisp.org>
35765
35766         selinux-h: Make generated .h files standalone.
35767         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35768         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35769         * lib/se-selinux.in.h: Likewise.
35770         * modules/selinux-h (Depends-on): Add unused-parameter.
35771         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35772         selinux/selinux.h and selinux/context.h.
35773         Suggested by Eric Blake.
35774
35775 2009-12-25  Bruno Haible  <bruno@clisp.org>
35776
35777         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35778         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35779         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35780         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35781         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35782
35783 2009-12-24  Bruno Haible  <bruno@clisp.org>
35784
35785         openat: Fix warning.
35786         * lib/openat-proc.c: Include <unistd.h>.
35787
35788 2009-12-24  Bruno Haible  <bruno@clisp.org>
35789
35790         New module 'unused-parameter'.
35791         * build-aux/unused-parameter.h: New file, extracted from earlier
35792         gnulib-common.m4.
35793         * modules/unused-parameter: New file.
35794         * lib/unistr.h: Include unused-parameter.h.
35795         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35796         _GL_UNUSED.
35797         * modules/unistr/base (Depends-on): Add unused-parameter.
35798
35799 2009-12-24  Bruno Haible  <bruno@clisp.org>
35800
35801         Add missing dependencies to 'extensions' module.
35802         * m4/extensions.m4: Add comment.
35803         * modules/accept4 (Depends-on): Add extensions.
35804         * modules/dup3 (Depends-on): Likewise.
35805         * modules/fcntl (Depends-on): Likewise.
35806         * modules/futimens (Depends-on): Likewise.
35807         * modules/mknod (Depends-on): Likewise.
35808         * modules/pipe2 (Depends-on): Likewise.
35809         * modules/stat-time (Depends-on): Likewise.
35810         * modules/strcasestr-simple (Depends-on): Likewise.
35811         * modules/strsignal (Depends-on): Likewise.
35812         * modules/utimensat (Depends-on): Likewise.
35813         * modules/localcharset (Depends-on): Likewise. Needed because of
35814         gl_FCNTL_O_FLAGS.
35815         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35816         AC_TYPE_MBSTATE_T.
35817         * modules/wcsnrtombs (Depends-on): Likewise.
35818         * modules/wcsrtombs (Depends-on): Likewise.
35819
35820 2009-12-24  Bruno Haible  <bruno@clisp.org>
35821
35822         binary-io: Avoid gcc warning due to SET_BINARY.
35823         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35824         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35825
35826 2009-12-24  Bruno Haible  <bruno@clisp.org>
35827
35828         Avoid future namespace pollution on glibc systems.
35829         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35830         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35831         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35832         glibc systems.
35833
35834 2009-12-24  Bruno Haible  <bruno@clisp.org>
35835
35836         Refactor common macros used in tests.
35837         * tests/macros.h: New file.
35838         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35839         and/or <stdlib.h>, if appropriate.
35840         (ASSERT, SIZEOF): Remove macros.
35841         * tests/test-areadlink-with-size.c: Likewise.
35842         * tests/test-areadlinkat.c: Likewise.
35843         * tests/test-areadlinkat-with-size.c: Likewise.
35844         * tests/test-argmatch.c: Likewise.
35845         * tests/test-argv-iter.c: Likewise.
35846         * tests/test-array-mergesort.c: Likewise.
35847         * tests/test-array_list.c: Likewise.
35848         * tests/test-array_oset.c: Likewise.
35849         * tests/test-avltree_list.c: Likewise.
35850         * tests/test-avltree_oset.c: Likewise.
35851         * tests/test-avltreehash_list.c: Likewise.
35852         * tests/test-base64.c: Likewise.
35853         * tests/test-binary-io.c: Likewise.
35854         * tests/test-bitrotate.c: Likewise.
35855         * tests/test-btowc.c: Likewise.
35856         * tests/test-byteswap.c: Likewise.
35857         * tests/test-c-ctype.c: Likewise.
35858         * tests/test-c-stack.c: Likewise.
35859         * tests/test-c-strcasecmp.c: Likewise.
35860         * tests/test-c-strcasestr.c: Likewise.
35861         * tests/test-c-strncasecmp.c: Likewise.
35862         * tests/test-c-strstr.c: Likewise.
35863         * tests/test-canonicalize-lgpl.c: Likewise.
35864         * tests/test-canonicalize.c: Likewise.
35865         * tests/test-carray_list.c: Likewise.
35866         * tests/test-ceilf1.c: Likewise.
35867         * tests/test-ceilf2.c: Likewise.
35868         * tests/test-ceill.c: Likewise.
35869         * tests/test-chown.c: Likewise.
35870         * tests/test-cloexec.c: Likewise.
35871         * tests/test-copy-acl.c: Likewise.
35872         * tests/test-copy-file.c: Likewise.
35873         * tests/test-count-one-bits.c: Likewise.
35874         * tests/test-dprintf-posix.c: Likewise.
35875         * tests/test-dup2.c: Likewise.
35876         * tests/test-dup3.c: Likewise.
35877         * tests/test-duplocale.c: Likewise.
35878         * tests/test-fbufmode.c: Likewise.
35879         * tests/test-fchdir.c: Likewise.
35880         * tests/test-fchownat.c: Likewise.
35881         * tests/test-fcntl-safer.c: Likewise.
35882         * tests/test-fcntl.c: Likewise.
35883         * tests/test-fdopendir.c: Likewise.
35884         * tests/test-fdutimensat.c: Likewise.
35885         * tests/test-fflush2.c: Likewise.
35886         * tests/test-file-has-acl.c: Likewise.
35887         * tests/test-filevercmp.c: Likewise.
35888         * tests/test-flock.c: Likewise.
35889         * tests/test-floorf1.c: Likewise.
35890         * tests/test-floorf2.c: Likewise.
35891         * tests/test-floorl.c: Likewise.
35892         * tests/test-fnmatch.c: Likewise.
35893         * tests/test-fopen.h: Likewise.
35894         * tests/test-fpending.c: Likewise.
35895         * tests/test-fprintf-posix.c: Likewise.
35896         * tests/test-fpurge.c: Likewise.
35897         * tests/test-freadable.c: Likewise.
35898         * tests/test-freadahead.c: Likewise.
35899         * tests/test-freading.c: Likewise.
35900         * tests/test-freadptr.c: Likewise.
35901         * tests/test-freadptr2.c: Likewise.
35902         * tests/test-freadseek.c: Likewise.
35903         * tests/test-freopen.c: Likewise.
35904         * tests/test-frexp.c: Likewise.
35905         * tests/test-frexpl.c: Likewise.
35906         * tests/test-fseek.c: Likewise.
35907         * tests/test-fseeko.c: Likewise.
35908         * tests/test-fstatat.c: Likewise.
35909         * tests/test-fstrcmp.c: Likewise.
35910         * tests/test-fsync.c: Likewise.
35911         * tests/test-ftell.c: Likewise.
35912         * tests/test-ftello.c: Likewise.
35913         * tests/test-func.c: Likewise.
35914         * tests/test-futimens.c: Likewise.
35915         * tests/test-fwritable.c: Likewise.
35916         * tests/test-fwriting.c: Likewise.
35917         * tests/test-getcwd.c: Likewise.
35918         * tests/test-getdate.c: Likewise.
35919         * tests/test-getdelim.c: Likewise.
35920         * tests/test-getdtablesize.c: Likewise.
35921         * tests/test-getgroups.c: Likewise.
35922         * tests/test-getline.c: Likewise.
35923         * tests/test-getndelim2.c: Likewise.
35924         * tests/test-glob.c: Likewise.
35925         * tests/test-hash.c: Likewise.
35926         * tests/test-i-ring.c: Likewise.
35927         * tests/test-iconv-utf.c: Likewise.
35928         * tests/test-iconv.c: Likewise.
35929         * tests/test-idpriv-drop.c: Likewise.
35930         * tests/test-idpriv-droptemp.c: Likewise.
35931         * tests/test-inet_ntop.c: Likewise.
35932         * tests/test-inet_pton.c: Likewise.
35933         * tests/test-isblank.c: Likewise.
35934         * tests/test-isfinite.c: Likewise.
35935         * tests/test-isinf.c: Likewise.
35936         * tests/test-isnan.c: Likewise.
35937         * tests/test-isnand.h: Likewise.
35938         * tests/test-isnanf.h: Likewise.
35939         * tests/test-isnanl.h: Likewise.
35940         * tests/test-lchown.c: Likewise.
35941         * tests/test-ldexpl.c: Likewise.
35942         * tests/test-link.c: Likewise.
35943         * tests/test-linkat.c: Likewise.
35944         * tests/test-linked_list.c: Likewise.
35945         * tests/test-linkedhash_list.c: Likewise.
35946         * tests/test-localename.c: Likewise.
35947         * tests/test-lseek.c: Likewise.
35948         * tests/test-lstat.c: Likewise.
35949         * tests/test-mbmemcasecmp.c: Likewise.
35950         * tests/test-mbmemcasecoll.c: Likewise.
35951         * tests/test-mbrtowc.c: Likewise.
35952         * tests/test-mbscasecmp.c: Likewise.
35953         * tests/test-mbscasestr1.c: Likewise.
35954         * tests/test-mbscasestr2.c: Likewise.
35955         * tests/test-mbscasestr3.c: Likewise.
35956         * tests/test-mbscasestr4.c: Likewise.
35957         * tests/test-mbschr.c: Likewise.
35958         * tests/test-mbscspn.c: Likewise.
35959         * tests/test-mbsinit.c: Likewise.
35960         * tests/test-mbsncasecmp.c: Likewise.
35961         * tests/test-mbsnrtowcs.c: Likewise.
35962         * tests/test-mbspbrk.c: Likewise.
35963         * tests/test-mbspcasecmp.c: Likewise.
35964         * tests/test-mbsrchr.c: Likewise.
35965         * tests/test-mbsrtowcs.c: Likewise.
35966         * tests/test-mbsspn.c: Likewise.
35967         * tests/test-mbsstr1.c: Likewise.
35968         * tests/test-mbsstr2.c: Likewise.
35969         * tests/test-mbsstr3.c: Likewise.
35970         * tests/test-memchr.c: Likewise.
35971         * tests/test-memchr2.c: Likewise.
35972         * tests/test-memcmp.c: Likewise.
35973         * tests/test-memmem.c: Likewise.
35974         * tests/test-memrchr.c: Likewise.
35975         * tests/test-mkdir.c: Likewise.
35976         * tests/test-mkdirat.c: Likewise.
35977         * tests/test-mkfifo.c: Likewise.
35978         * tests/test-mkfifoat.c: Likewise.
35979         * tests/test-mknod.c: Likewise.
35980         * tests/test-nanosleep.c: Likewise.
35981         * tests/test-nl_langinfo.c: Likewise.
35982         * tests/test-obstack-printf.c: Likewise.
35983         * tests/test-open.c: Likewise.
35984         * tests/test-openat.c: Likewise.
35985         * tests/test-pipe-filter-gi1.c: Likewise.
35986         * tests/test-pipe-filter-gi2-main.c: Likewise.
35987         * tests/test-pipe-filter-ii1.c: Likewise.
35988         * tests/test-pipe-filter-ii2-main.c: Likewise.
35989         * tests/test-pipe2.c: Likewise.
35990         * tests/test-popen.h: Likewise.
35991         * tests/test-posixtm.c: Likewise.
35992         * tests/test-pread.c: Likewise.
35993         * tests/test-printf-frexp.c: Likewise.
35994         * tests/test-printf-frexpl.c: Likewise.
35995         * tests/test-printf-posix.c: Likewise.
35996         * tests/test-priv-set.c: Likewise.
35997         * tests/test-quotearg.c: Likewise.
35998         * tests/test-random_r.c: Likewise.
35999         * tests/test-rawmemchr.c: Likewise.
36000         * tests/test-rbtree_list.c: Likewise.
36001         * tests/test-rbtree_oset.c: Likewise.
36002         * tests/test-rbtreehash_list.c: Likewise.
36003         * tests/test-readlink.c: Likewise.
36004         * tests/test-remove.c: Likewise.
36005         * tests/test-rename.c: Likewise.
36006         * tests/test-renameat.c: Likewise.
36007         * tests/test-rmdir.c: Likewise.
36008         * tests/test-round1.c: Likewise.
36009         * tests/test-roundf1.c: Likewise.
36010         * tests/test-roundl.c: Likewise.
36011         * tests/test-safe-alloc.c: Likewise.
36012         * tests/test-sameacls.c: Likewise.
36013         * tests/test-set-mode-acl.c: Likewise.
36014         * tests/test-setenv.c: Likewise.
36015         * tests/test-sigaction.c: Likewise.
36016         * tests/test-signbit.c: Likewise.
36017         * tests/test-sleep.c: Likewise.
36018         * tests/test-snprintf-posix.c: Likewise.
36019         * tests/test-snprintf.c: Likewise.
36020         * tests/test-sprintf-posix.c: Likewise.
36021         * tests/test-stat-time.c: Likewise.
36022         * tests/test-stat.c: Likewise.
36023         * tests/test-strcasestr.c: Likewise.
36024         * tests/test-strchrnul.c: Likewise.
36025         * tests/test-strerror.c: Likewise.
36026         * tests/test-striconv.c: Likewise.
36027         * tests/test-striconveh.c: Likewise.
36028         * tests/test-striconveha.c: Likewise.
36029         * tests/test-strsignal.c: Likewise.
36030         * tests/test-strstr.c: Likewise.
36031         * tests/test-strtod.c: Likewise.
36032         * tests/test-strverscmp.c: Likewise.
36033         * tests/test-symlink.c: Likewise.
36034         * tests/test-symlinkat.c: Likewise.
36035         * tests/test-trunc1.c: Likewise.
36036         * tests/test-trunc2.c: Likewise.
36037         * tests/test-truncf1.c: Likewise.
36038         * tests/test-truncf2.c: Likewise.
36039         * tests/test-truncl.c: Likewise.
36040         * tests/test-uname.c: Likewise.
36041         * tests/test-unlink.c: Likewise.
36042         * tests/test-unlinkat.c: Likewise.
36043         * tests/test-unsetenv.c: Likewise.
36044         * tests/test-usleep.c: Likewise.
36045         * tests/test-utimens.c: Likewise.
36046         * tests/test-utimensat.c: Likewise.
36047         * tests/test-vasnprintf-posix.c: Likewise.
36048         * tests/test-vasnprintf-posix2.c: Likewise.
36049         * tests/test-vasnprintf.c: Likewise.
36050         * tests/test-vasprintf-posix.c: Likewise.
36051         * tests/test-vasprintf.c: Likewise.
36052         * tests/test-vdprintf-posix.c: Likewise.
36053         * tests/test-vfprintf-posix.c: Likewise.
36054         * tests/test-vprintf-posix.c: Likewise.
36055         * tests/test-vsnprintf-posix.c: Likewise.
36056         * tests/test-vsnprintf.c: Likewise.
36057         * tests/test-vsprintf-posix.c: Likewise.
36058         * tests/test-wcrtomb.c: Likewise.
36059         * tests/test-wcsnrtombs.c: Likewise.
36060         * tests/test-wcsrtombs.c: Likewise.
36061         * tests/test-wctype.c: Likewise.
36062         * tests/test-wcwidth.c: Likewise.
36063         * tests/test-xfprintf-posix.c: Likewise.
36064         * tests/test-xmemdup0.c: Likewise.
36065         * tests/test-xprintf-posix.c: Likewise.
36066         * tests/test-xvasprintf.c: Likewise.
36067         * tests/unicase/test-locale-language.c: Likewise.
36068         * tests/unicase/test-mapping-part1.h: Likewise.
36069         * tests/unicase/test-predicate-part1.h: Likewise.
36070         * tests/unicase/test-u8-casecmp.c: Likewise.
36071         * tests/unicase/test-u8-casecoll.c: Likewise.
36072         * tests/unicase/test-u8-casefold.c: Likewise.
36073         * tests/unicase/test-u8-is-cased.c: Likewise.
36074         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36075         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36076         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36077         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36078         * tests/unicase/test-u8-tolower.c: Likewise.
36079         * tests/unicase/test-u8-totitle.c: Likewise.
36080         * tests/unicase/test-u8-toupper.c: Likewise.
36081         * tests/unicase/test-u16-casecmp.c: Likewise.
36082         * tests/unicase/test-u16-casecoll.c: Likewise.
36083         * tests/unicase/test-u16-casefold.c: Likewise.
36084         * tests/unicase/test-u16-is-cased.c: Likewise.
36085         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36086         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36087         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36088         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36089         * tests/unicase/test-u16-tolower.c: Likewise.
36090         * tests/unicase/test-u16-totitle.c: Likewise.
36091         * tests/unicase/test-u16-toupper.c: Likewise.
36092         * tests/unicase/test-u32-casecmp.c: Likewise.
36093         * tests/unicase/test-u32-casecoll.c: Likewise.
36094         * tests/unicase/test-u32-casefold.c: Likewise.
36095         * tests/unicase/test-u32-is-cased.c: Likewise.
36096         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36097         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36098         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36099         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36100         * tests/unicase/test-u32-tolower.c: Likewise.
36101         * tests/unicase/test-u32-totitle.c: Likewise.
36102         * tests/unicase/test-u32-toupper.c: Likewise.
36103         * tests/unicase/test-ulc-casecmp.c: Likewise.
36104         * tests/unicase/test-ulc-casecoll.c: Likewise.
36105         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36106         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36107         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36108         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36109         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36110         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36111         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36112         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36113         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36114         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36115         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36116         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36117         * tests/unictype/test-bidi_byname.c: Likewise.
36118         * tests/unictype/test-bidi_name.c: Likewise.
36119         * tests/unictype/test-bidi_of.c: Likewise.
36120         * tests/unictype/test-bidi_test.c: Likewise.
36121         * tests/unictype/test-block_list.c: Likewise.
36122         * tests/unictype/test-block_of.c: Likewise.
36123         * tests/unictype/test-block_test.c: Likewise.
36124         * tests/unictype/test-categ_and.c: Likewise.
36125         * tests/unictype/test-categ_and_not.c: Likewise.
36126         * tests/unictype/test-categ_byname.c: Likewise.
36127         * tests/unictype/test-categ_name.c: Likewise.
36128         * tests/unictype/test-categ_none.c: Likewise.
36129         * tests/unictype/test-categ_of.c: Likewise.
36130         * tests/unictype/test-categ_or.c: Likewise.
36131         * tests/unictype/test-categ_test_withtable.c: Likewise.
36132         * tests/unictype/test-combining.c: Likewise.
36133         * tests/unictype/test-decdigit.c: Likewise.
36134         * tests/unictype/test-digit.c: Likewise.
36135         * tests/unictype/test-mirror.c: Likewise.
36136         * tests/unictype/test-numeric.c: Likewise.
36137         * tests/unictype/test-pr_byname.c: Likewise.
36138         * tests/unictype/test-pr_test.c: Likewise.
36139         * tests/unictype/test-predicate-part1.h: Likewise.
36140         * tests/unictype/test-scripts.c: Likewise.
36141         * tests/unictype/test-sy_c_ident.c: Likewise.
36142         * tests/unictype/test-sy_java_ident.c: Likewise.
36143         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36144         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36145         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36146         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36147         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36148         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36149         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36150         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36151         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36152         * tests/uninorm/test-compat-decomposition.c: Likewise.
36153         * tests/uninorm/test-composition.c: Likewise.
36154         * tests/uninorm/test-decomposing-form.c: Likewise.
36155         * tests/uninorm/test-decomposition.c: Likewise.
36156         * tests/uninorm/test-u8-nfc.c: Likewise.
36157         * tests/uninorm/test-u8-nfd.c: Likewise.
36158         * tests/uninorm/test-u8-nfkc.c: Likewise.
36159         * tests/uninorm/test-u8-nfkd.c: Likewise.
36160         * tests/uninorm/test-u8-normcmp.c: Likewise.
36161         * tests/uninorm/test-u8-normcoll.c: Likewise.
36162         * tests/uninorm/test-u16-nfc.c: Likewise.
36163         * tests/uninorm/test-u16-nfd.c: Likewise.
36164         * tests/uninorm/test-u16-nfkc.c: Likewise.
36165         * tests/uninorm/test-u16-nfkd.c: Likewise.
36166         * tests/uninorm/test-u16-normcmp.c: Likewise.
36167         * tests/uninorm/test-u16-normcoll.c: Likewise.
36168         * tests/uninorm/test-u32-nfc.c: Likewise.
36169         * tests/uninorm/test-u32-nfd.c: Likewise.
36170         * tests/uninorm/test-u32-nfkc.c: Likewise.
36171         * tests/uninorm/test-u32-nfkd.c: Likewise.
36172         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36173         * tests/uninorm/test-u32-normcmp.c: Likewise.
36174         * tests/uninorm/test-u32-normcoll.c: Likewise.
36175         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36176         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36177         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36178         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36179         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36180         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36181         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36182         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36183         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36184         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36185         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36186         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36187         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36188         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36189         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36190         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36191         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36192         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36193         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36194         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36195         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36196         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36197         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36198         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36199         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36200         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36201         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36202         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36203         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36204         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36205         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36206         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36207         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36208         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36209         * tests/uniwidth/test-u8-width.c: Likewise.
36210         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36211         * tests/uniwidth/test-u16-width.c: Likewise.
36212         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36213         * tests/uniwidth/test-u32-width.c: Likewise.
36214         * tests/uniwidth/test-uc_width.c: Likewise.
36215         * tests/uniwidth/test-uc_width2.c: Likewise.
36216         * modules/acl-tests (Files): Add tests/macros.h.
36217         * modules/areadlink-tests (Files): Likewise.
36218         * modules/areadlink-with-size-tests (Files): Likewise.
36219         * modules/areadlinkat-tests (Files): Likewise.
36220         * modules/areadlinkat-with-size-tests (Files): Likewise.
36221         * modules/argmatch-tests (Files): Likewise.
36222         * modules/argv-iter-tests (Files): Likewise.
36223         * modules/array-list-tests (Files): Likewise.
36224         * modules/array-mergesort-tests (Files): Likewise.
36225         * modules/array-oset-tests (Files): Likewise.
36226         * modules/avltree-list-tests (Files): Likewise.
36227         * modules/avltree-oset-tests (Files): Likewise.
36228         * modules/avltreehash-list-tests (Files): Likewise.
36229         * modules/base64-tests (Files): Likewise.
36230         * modules/binary-io-tests (Files): Likewise.
36231         * modules/bitrotate-tests (Files): Likewise.
36232         * modules/btowc-tests (Files): Likewise.
36233         * modules/byteswap-tests (Files): Likewise.
36234         * modules/c-ctype-tests (Files): Likewise.
36235         * modules/c-stack-tests (Files): Likewise.
36236         * modules/c-strcase-tests (Files): Likewise.
36237         * modules/c-strcasestr-tests (Files): Likewise.
36238         * modules/c-strstr-tests (Files): Likewise.
36239         * modules/canonicalize-lgpl-tests (Files): Likewise.
36240         * modules/canonicalize-tests (Files): Likewise.
36241         * modules/carray-list-tests (Files): Likewise.
36242         * modules/ceilf-tests (Files): Likewise.
36243         * modules/ceill-tests (Files): Likewise.
36244         * modules/chown-tests (Files): Likewise.
36245         * modules/cloexec-tests (Files): Likewise.
36246         * modules/copy-file-tests (Files): Likewise.
36247         * modules/count-one-bits-tests (Files): Likewise.
36248         * modules/dprintf-posix-tests (Files): Likewise.
36249         * modules/dup2-tests (Files): Likewise.
36250         * modules/dup3-tests (Files): Likewise.
36251         * modules/duplocale-tests (Files): Likewise.
36252         * modules/fbufmode-tests (Files): Likewise.
36253         * modules/fchdir-tests (Files): Likewise.
36254         * modules/fcntl-safer-tests (Files): Likewise.
36255         * modules/fcntl-tests (Files): Likewise.
36256         * modules/fdopendir-tests (Files): Likewise.
36257         * modules/fdutimensat-tests (Files): Likewise.
36258         * modules/fflush-tests (Files): Likewise.
36259         * modules/filevercmp-tests (Files): Likewise.
36260         * modules/flock-tests (Files): Likewise.
36261         * modules/floorf-tests (Files): Likewise.
36262         * modules/floorl-tests (Files): Likewise.
36263         * modules/fnmatch-tests (Files): Likewise.
36264         * modules/fopen-safer-tests (Files): Likewise.
36265         * modules/fopen-tests (Files): Likewise.
36266         * modules/fpending-tests (Files): Likewise.
36267         * modules/fprintf-posix-tests (Files): Likewise.
36268         * modules/fpurge-tests (Files): Likewise.
36269         * modules/freadable-tests (Files): Likewise.
36270         * modules/freadahead-tests (Files): Likewise.
36271         * modules/freading-tests (Files): Likewise.
36272         * modules/freadptr-tests (Files): Likewise.
36273         * modules/freadseek-tests (Files): Likewise.
36274         * modules/freopen-tests (Files): Likewise.
36275         * modules/frexp-nolibm-tests (Files): Likewise.
36276         * modules/frexp-tests (Files): Likewise.
36277         * modules/frexpl-nolibm-tests (Files): Likewise.
36278         * modules/frexpl-tests (Files): Likewise.
36279         * modules/fseek-tests (Files): Likewise.
36280         * modules/fseeko-tests (Files): Likewise.
36281         * modules/fstrcmp-tests (Files): Likewise.
36282         * modules/fsync-tests (Files): Likewise.
36283         * modules/ftell-tests (Files): Likewise.
36284         * modules/ftello-tests (Files): Likewise.
36285         * modules/func-tests (Files): Likewise.
36286         * modules/futimens-tests (Files): Likewise.
36287         * modules/fwritable-tests (Files): Likewise.
36288         * modules/fwriting-tests (Files): Likewise.
36289         * modules/getcwd-tests (Files): Likewise.
36290         * modules/getdate-tests (Files): Likewise.
36291         * modules/getdelim-tests (Files): Likewise.
36292         * modules/getdtablesize-tests (Files): Likewise.
36293         * modules/getgroups-tests (Files): Likewise.
36294         * modules/getline-tests (Files): Likewise.
36295         * modules/getndelim2-tests (Files): Likewise.
36296         * modules/glob-tests (Files): Likewise.
36297         * modules/hash-tests (Files): Likewise.
36298         * modules/i-ring-tests (Files): Likewise.
36299         * modules/iconv-tests (Files): Likewise.
36300         * modules/iconv_open-utf-tests (Files): Likewise.
36301         * modules/idpriv-drop-tests (Files): Likewise.
36302         * modules/idpriv-droptemp-tests (Files): Likewise.
36303         * modules/inet_ntop-tests (Files): Likewise.
36304         * modules/inet_pton-tests (Files): Likewise.
36305         * modules/isblank-tests (Files): Likewise.
36306         * modules/isfinite-tests (Files): Likewise.
36307         * modules/isinf-tests (Files): Likewise.
36308         * modules/isnan-tests (Files): Likewise.
36309         * modules/isnand-nolibm-tests (Files): Likewise.
36310         * modules/isnand-tests (Files): Likewise.
36311         * modules/isnanf-nolibm-tests (Files): Likewise.
36312         * modules/isnanf-tests (Files): Likewise.
36313         * modules/isnanl-nolibm-tests (Files): Likewise.
36314         * modules/isnanl-tests (Files): Likewise.
36315         * modules/lchown-tests (Files): Likewise.
36316         * modules/ldexpl-tests (Files): Likewise.
36317         * modules/link-tests (Files): Likewise.
36318         * modules/linkat-tests (Files): Likewise.
36319         * modules/linked-list-tests (Files): Likewise.
36320         * modules/linkedhash-list-tests (Files): Likewise.
36321         * modules/localename-tests (Files): Likewise.
36322         * modules/lseek-tests (Files): Likewise.
36323         * modules/lstat-tests (Files): Likewise.
36324         * modules/mbmemcasecmp-tests (Files): Likewise.
36325         * modules/mbmemcasecoll-tests (Files): Likewise.
36326         * modules/mbrtowc-tests (Files): Likewise.
36327         * modules/mbscasecmp-tests (Files): Likewise.
36328         * modules/mbscasestr-tests (Files): Likewise.
36329         * modules/mbschr-tests (Files): Likewise.
36330         * modules/mbscspn-tests (Files): Likewise.
36331         * modules/mbsinit-tests (Files): Likewise.
36332         * modules/mbsncasecmp-tests (Files): Likewise.
36333         * modules/mbsnrtowcs-tests (Files): Likewise.
36334         * modules/mbspbrk-tests (Files): Likewise.
36335         * modules/mbspcasecmp-tests (Files): Likewise.
36336         * modules/mbsrchr-tests (Files): Likewise.
36337         * modules/mbsrtowcs-tests (Files): Likewise.
36338         * modules/mbsspn-tests (Files): Likewise.
36339         * modules/mbsstr-tests (Files): Likewise.
36340         * modules/memchr-tests (Files): Likewise.
36341         * modules/memchr2-tests (Files): Likewise.
36342         * modules/memcmp-tests (Files): Likewise.
36343         * modules/memmem-tests (Files): Likewise.
36344         * modules/memrchr-tests (Files): Likewise.
36345         * modules/mkdir-tests (Files): Likewise.
36346         * modules/mkfifo-tests (Files): Likewise.
36347         * modules/mkfifoat-tests (Files): Likewise.
36348         * modules/mknod-tests (Files): Likewise.
36349         * modules/nanosleep-tests (Files): Likewise.
36350         * modules/nl_langinfo-tests (Files): Likewise.
36351         * modules/obstack-printf-tests (Files): Likewise.
36352         * modules/open-tests (Files): Likewise.
36353         * modules/openat-tests (Files): Likewise.
36354         * modules/pipe-filter-gi-tests (Files): Likewise.
36355         * modules/pipe-filter-ii-tests (Files): Likewise.
36356         * modules/pipe2-tests (Files): Likewise.
36357         * modules/popen-safer-tests (Files): Likewise.
36358         * modules/popen-tests (Files): Likewise.
36359         * modules/posixtm-tests (Files): Likewise.
36360         * modules/pread-tests (Files): Likewise.
36361         * modules/printf-frexp-tests (Files): Likewise.
36362         * modules/printf-frexpl-tests (Files): Likewise.
36363         * modules/printf-posix-tests (Files): Likewise.
36364         * modules/priv-set-tests (Files): Likewise.
36365         * modules/quotearg-tests (Files): Likewise.
36366         * modules/random_r-tests (Files): Likewise.
36367         * modules/rawmemchr-tests (Files): Likewise.
36368         * modules/rbtree-list-tests (Files): Likewise.
36369         * modules/rbtree-oset-tests (Files): Likewise.
36370         * modules/rbtreehash-list-tests (Files): Likewise.
36371         * modules/readlink-tests (Files): Likewise.
36372         * modules/remove-tests (Files): Likewise.
36373         * modules/rename-tests (Files): Likewise.
36374         * modules/renameat-tests (Files): Likewise.
36375         * modules/rmdir-tests (Files): Likewise.
36376         * modules/round-tests (Files): Likewise.
36377         * modules/roundf-tests (Files): Likewise.
36378         * modules/roundl-tests (Files): Likewise.
36379         * modules/safe-alloc-tests (Files): Likewise.
36380         * modules/setenv-tests (Files): Likewise.
36381         * modules/sigaction-tests (Files): Likewise.
36382         * modules/signbit-tests (Files): Likewise.
36383         * modules/sleep-tests (Files): Likewise.
36384         * modules/snprintf-posix-tests (Files): Likewise.
36385         * modules/snprintf-tests (Files): Likewise.
36386         * modules/sprintf-posix-tests (Files): Likewise.
36387         * modules/stat-tests (Files): Likewise.
36388         * modules/stat-time-tests (Files): Likewise.
36389         * modules/strcasestr-tests (Files): Likewise.
36390         * modules/strchrnul-tests (Files): Likewise.
36391         * modules/strerror-tests (Files): Likewise.
36392         * modules/striconv-tests (Files): Likewise.
36393         * modules/striconveh-tests (Files): Likewise.
36394         * modules/striconveha-tests (Files): Likewise.
36395         * modules/strsignal-tests (Files): Likewise.
36396         * modules/strstr-tests (Files): Likewise.
36397         * modules/strtod-tests (Files): Likewise.
36398         * modules/strverscmp-tests (Files): Likewise.
36399         * modules/symlink-tests (Files): Likewise.
36400         * modules/symlinkat-tests (Files): Likewise.
36401         * modules/trunc-tests (Files): Likewise.
36402         * modules/truncf-tests (Files): Likewise.
36403         * modules/truncl-tests (Files): Likewise.
36404         * modules/uname-tests (Files): Likewise.
36405         * modules/unicase/cased-tests (Files): Likewise.
36406         * modules/unicase/ignorable-tests (Files): Likewise.
36407         * modules/unicase/locale-language-tests (Files): Likewise.
36408         * modules/unicase/tolower-tests (Files): Likewise.
36409         * modules/unicase/totitle-tests (Files): Likewise.
36410         * modules/unicase/toupper-tests (Files): Likewise.
36411         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36412         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36413         * modules/unicase/u8-casefold-tests (Files): Likewise.
36414         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36415         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36416         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36417         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36418         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36419         * modules/unicase/u8-tolower-tests (Files): Likewise.
36420         * modules/unicase/u8-totitle-tests (Files): Likewise.
36421         * modules/unicase/u8-toupper-tests (Files): Likewise.
36422         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36423         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36424         * modules/unicase/u16-casefold-tests (Files): Likewise.
36425         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36426         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36427         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36428         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36429         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36430         * modules/unicase/u16-tolower-tests (Files): Likewise.
36431         * modules/unicase/u16-totitle-tests (Files): Likewise.
36432         * modules/unicase/u16-toupper-tests (Files): Likewise.
36433         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36434         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36435         * modules/unicase/u32-casefold-tests (Files): Likewise.
36436         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36437         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36438         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36439         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36440         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36441         * modules/unicase/u32-tolower-tests (Files): Likewise.
36442         * modules/unicase/u32-totitle-tests (Files): Likewise.
36443         * modules/unicase/u32-toupper-tests (Files): Likewise.
36444         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36445         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36446         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36447         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36448         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36449         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36450         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36451         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36452         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36453         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36454         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36455         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36456         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36457         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36458         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36459         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36460         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36461         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36462         * modules/unictype/block-list-tests (Files): Likewise.
36463         * modules/unictype/block-of-tests (Files): Likewise.
36464         * modules/unictype/block-test-tests (Files): Likewise.
36465         * modules/unictype/category-C-tests (Files): Likewise.
36466         * modules/unictype/category-Cc-tests (Files): Likewise.
36467         * modules/unictype/category-Cf-tests (Files): Likewise.
36468         * modules/unictype/category-Cn-tests (Files): Likewise.
36469         * modules/unictype/category-Co-tests (Files): Likewise.
36470         * modules/unictype/category-Cs-tests (Files): Likewise.
36471         * modules/unictype/category-L-tests (Files): Likewise.
36472         * modules/unictype/category-Ll-tests (Files): Likewise.
36473         * modules/unictype/category-Lm-tests (Files): Likewise.
36474         * modules/unictype/category-Lo-tests (Files): Likewise.
36475         * modules/unictype/category-Lt-tests (Files): Likewise.
36476         * modules/unictype/category-Lu-tests (Files): Likewise.
36477         * modules/unictype/category-M-tests (Files): Likewise.
36478         * modules/unictype/category-Mc-tests (Files): Likewise.
36479         * modules/unictype/category-Me-tests (Files): Likewise.
36480         * modules/unictype/category-Mn-tests (Files): Likewise.
36481         * modules/unictype/category-N-tests (Files): Likewise.
36482         * modules/unictype/category-Nd-tests (Files): Likewise.
36483         * modules/unictype/category-Nl-tests (Files): Likewise.
36484         * modules/unictype/category-No-tests (Files): Likewise.
36485         * modules/unictype/category-P-tests (Files): Likewise.
36486         * modules/unictype/category-Pc-tests (Files): Likewise.
36487         * modules/unictype/category-Pd-tests (Files): Likewise.
36488         * modules/unictype/category-Pe-tests (Files): Likewise.
36489         * modules/unictype/category-Pf-tests (Files): Likewise.
36490         * modules/unictype/category-Pi-tests (Files): Likewise.
36491         * modules/unictype/category-Po-tests (Files): Likewise.
36492         * modules/unictype/category-Ps-tests (Files): Likewise.
36493         * modules/unictype/category-S-tests (Files): Likewise.
36494         * modules/unictype/category-Sc-tests (Files): Likewise.
36495         * modules/unictype/category-Sk-tests (Files): Likewise.
36496         * modules/unictype/category-Sm-tests (Files): Likewise.
36497         * modules/unictype/category-So-tests (Files): Likewise.
36498         * modules/unictype/category-Z-tests (Files): Likewise.
36499         * modules/unictype/category-Zl-tests (Files): Likewise.
36500         * modules/unictype/category-Zp-tests (Files): Likewise.
36501         * modules/unictype/category-Zs-tests (Files): Likewise.
36502         * modules/unictype/category-and-not-tests (Files): Likewise.
36503         * modules/unictype/category-and-tests (Files): Likewise.
36504         * modules/unictype/category-byname-tests (Files): Likewise.
36505         * modules/unictype/category-name-tests (Files): Likewise.
36506         * modules/unictype/category-none-tests (Files): Likewise.
36507         * modules/unictype/category-of-tests (Files): Likewise.
36508         * modules/unictype/category-or-tests (Files): Likewise.
36509         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36510         * modules/unictype/combining-class-tests (Files): Likewise.
36511         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36512         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36513         * modules/unictype/ctype-blank-tests (Files): Likewise.
36514         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36515         * modules/unictype/ctype-digit-tests (Files): Likewise.
36516         * modules/unictype/ctype-graph-tests (Files): Likewise.
36517         * modules/unictype/ctype-lower-tests (Files): Likewise.
36518         * modules/unictype/ctype-print-tests (Files): Likewise.
36519         * modules/unictype/ctype-punct-tests (Files): Likewise.
36520         * modules/unictype/ctype-space-tests (Files): Likewise.
36521         * modules/unictype/ctype-upper-tests (Files): Likewise.
36522         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36523         * modules/unictype/decimal-digit-tests (Files): Likewise.
36524         * modules/unictype/digit-tests (Files): Likewise.
36525         * modules/unictype/mirror-tests (Files): Likewise.
36526         * modules/unictype/numeric-tests (Files): Likewise.
36527         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36528         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36529         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36530         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36531         Likewise.
36532         * modules/unictype/property-bidi-block-separator-tests (Files):
36533         Likewise.
36534         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36535         Likewise.
36536         * modules/unictype/property-bidi-common-separator-tests (Files):
36537         Likewise.
36538         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36539         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36540         Likewise.
36541         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36542         Likewise.
36543         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36544         Likewise.
36545         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36546         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36547         Likewise.
36548         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36549         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36550         Likewise.
36551         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36552         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36553         * modules/unictype/property-bidi-segment-separator-tests (Files):
36554         Likewise.
36555         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36556         * modules/unictype/property-byname-tests (Files): Likewise.
36557         * modules/unictype/property-combining-tests (Files): Likewise.
36558         * modules/unictype/property-composite-tests (Files): Likewise.
36559         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36560         * modules/unictype/property-dash-tests (Files): Likewise.
36561         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36562         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36563         Likewise.
36564         * modules/unictype/property-deprecated-tests (Files): Likewise.
36565         * modules/unictype/property-diacritic-tests (Files): Likewise.
36566         * modules/unictype/property-extender-tests (Files): Likewise.
36567         * modules/unictype/property-format-control-tests (Files): Likewise.
36568         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36569         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36570         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36571         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36572         * modules/unictype/property-hyphen-tests (Files): Likewise.
36573         * modules/unictype/property-id-continue-tests (Files): Likewise.
36574         * modules/unictype/property-id-start-tests (Files): Likewise.
36575         * modules/unictype/property-ideographic-tests (Files): Likewise.
36576         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36577         * modules/unictype/property-ids-trinary-operator-tests (Files):
36578         Likewise.
36579         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36580         * modules/unictype/property-iso-control-tests (Files): Likewise.
36581         * modules/unictype/property-join-control-tests (Files): Likewise.
36582         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36583         * modules/unictype/property-line-separator-tests (Files): Likewise.
36584         * modules/unictype/property-logical-order-exception-tests (Files):
36585         Likewise.
36586         * modules/unictype/property-lowercase-tests (Files): Likewise.
36587         * modules/unictype/property-math-tests (Files): Likewise.
36588         * modules/unictype/property-non-break-tests (Files): Likewise.
36589         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36590         * modules/unictype/property-numeric-tests (Files): Likewise.
36591         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36592         * modules/unictype/property-other-default-ignorable-code-point-tests
36593         (Files): Likewise.
36594         * modules/unictype/property-other-grapheme-extend-tests (Files):
36595         Likewise.
36596         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36597         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36598         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36599         * modules/unictype/property-other-math-tests (Files): Likewise.
36600         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36601         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36602         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36603         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36604         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36605         * modules/unictype/property-private-use-tests (Files): Likewise.
36606         * modules/unictype/property-punctuation-tests (Files): Likewise.
36607         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36608         * modules/unictype/property-radical-tests (Files): Likewise.
36609         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36610         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36611         * modules/unictype/property-space-tests (Files): Likewise.
36612         * modules/unictype/property-terminal-punctuation-tests (Files):
36613         Likewise.
36614         * modules/unictype/property-test-tests (Files): Likewise.
36615         * modules/unictype/property-titlecase-tests (Files): Likewise.
36616         * modules/unictype/property-unassigned-code-value-tests (Files):
36617         Likewise.
36618         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36619         * modules/unictype/property-uppercase-tests (Files): Likewise.
36620         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36621         * modules/unictype/property-white-space-tests (Files): Likewise.
36622         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36623         * modules/unictype/property-xid-start-tests (Files): Likewise.
36624         * modules/unictype/property-zero-width-tests (Files): Likewise.
36625         * modules/unictype/scripts-tests (Files): Likewise.
36626         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36627         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36628         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36629         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36630         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36631         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36632         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36633         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36634         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36635         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36636         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36637         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36638         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36639         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36640         * modules/uninorm/composition-tests (Files): Likewise.
36641         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36642         * modules/uninorm/decomposition-tests (Files): Likewise.
36643         * modules/uninorm/filter-tests (Files): Likewise.
36644         * modules/uninorm/nfc-tests (Files): Likewise.
36645         * modules/uninorm/nfd-tests (Files): Likewise.
36646         * modules/uninorm/nfkc-tests (Files): Likewise.
36647         * modules/uninorm/nfkd-tests (Files): Likewise.
36648         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36649         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36650         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36651         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36652         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36653         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36654         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36655         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36656         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36657         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36658         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36659         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36660         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36661         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36662         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36663         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36664         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36665         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36666         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36667         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36668         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36669         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36670         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36671         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36672         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36673         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36674         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36675         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36676         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36677         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36678         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36679         * modules/uniwidth/u8-width-tests (Files): Likewise.
36680         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36681         * modules/uniwidth/u16-width-tests (Files): Likewise.
36682         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36683         * modules/uniwidth/u32-width-tests (Files): Likewise.
36684         * modules/uniwidth/width-tests (Files): Likewise.
36685         * modules/unlink-tests (Files): Likewise.
36686         * modules/unsetenv-tests (Files): Likewise.
36687         * modules/usleep-tests (Files): Likewise.
36688         * modules/utimens-tests (Files): Likewise.
36689         * modules/utimensat-tests (Files): Likewise.
36690         * modules/vasnprintf-posix-tests (Files): Likewise.
36691         * modules/vasnprintf-tests (Files): Likewise.
36692         * modules/vasprintf-posix-tests (Files): Likewise.
36693         * modules/vasprintf-tests (Files): Likewise.
36694         * modules/vdprintf-posix-tests (Files): Likewise.
36695         * modules/vfprintf-posix-tests (Files): Likewise.
36696         * modules/vprintf-posix-tests (Files): Likewise.
36697         * modules/vsnprintf-posix-tests (Files): Likewise.
36698         * modules/vsnprintf-tests (Files): Likewise.
36699         * modules/vsprintf-posix-tests (Files): Likewise.
36700         * modules/wcrtomb-tests (Files): Likewise.
36701         * modules/wcsnrtombs-tests (Files): Likewise.
36702         * modules/wcsrtombs-tests (Files): Likewise.
36703         * modules/wctype-tests (Files): Likewise.
36704         * modules/wcwidth-tests (Files): Likewise.
36705         * modules/xmemdup0-tests (Files): Likewise.
36706         * modules/xprintf-posix-tests (Files): Likewise.
36707         * modules/xvasprintf-tests (Files): Likewise.
36708
36709 2009-12-24  Eric Blake  <ebb9@byu.net>
36710
36711         test-nanosleep: fix typo
36712         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36713         patch.
36714         Reported by Bruno Haible.
36715
36716 2009-12-24  Bruno Haible  <bruno@clisp.org>
36717
36718         Reduce namespace pollution on glibc systems.
36719         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36720         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36721         systems.
36722         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36723         <getopt.h> on glibc systems.
36724         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36725         systems.
36726         * lib/fcntl.c: Include <unistd.h> here instead.
36727
36728 2009-12-24  Bruno Haible  <bruno@clisp.org>
36729
36730         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36731
36732 2009-12-24  Eric Blake  <ebb9@byu.net>
36733
36734         tests: add signature checks
36735         * tests/signature.h (SIGNATURE_CHECK): New file.
36736         * modules/atexit-tests (Files): Use it.
36737         * modules/btowc-tests (Files): Likewise.
36738         * modules/canonicalize-lgpl-tests (Files): Likewise.
36739         * modules/ceilf-tests (Files): Likewise.
36740         * modules/ceill-tests (Files): Likewise.
36741         * modules/chown-tests (Files): Likewise.
36742         * modules/dprintf-posix-tests (Files): Likewise.
36743         * modules/dup2-tests (Files): Likewise.
36744         * modules/dup3-tests (Files): Likewise.
36745         * modules/duplocale-tests (Files): Likewise.
36746         * modules/fchdir-tests (Files): Likewise.
36747         * modules/fcntl-tests (Files): Likewise.
36748         * modules/fdopendir-tests (Files): Likewise.
36749         * modules/fflush-tests (Files): Likewise.
36750         * modules/flock-tests (Files): Likewise.
36751         * modules/floorf-tests (Files): Likewise.
36752         * modules/floorl-tests (Files): Likewise.
36753         * modules/fnmatch-tests (Files): Likewise.
36754         * modules/fopen-tests (Files): Likewise.
36755         * modules/fprintf-posix-tests (Files): Likewise.
36756         * modules/freopen-tests (Files): Likewise.
36757         * modules/frexp-nolibm-tests (Files): Likewise.
36758         * modules/frexp-tests (Files): Likewise.
36759         * modules/frexpl-nolibm-tests (Files): Likewise.
36760         * modules/frexpl-tests (Files): Likewise.
36761         * modules/fseek-tests (Files): Likewise.
36762         * modules/fseeko-tests (Files): Likewise.
36763         * modules/fsync-tests (Files): Likewise.
36764         * modules/ftell-tests (Files): Likewise.
36765         * modules/ftello-tests (Files): Likewise.
36766         * modules/futimens-tests (Files): Likewise.
36767         * modules/getaddrinfo-tests (Files): Likewise.
36768         * modules/getcwd-tests (Files): Likewise.
36769         * modules/getdelim-tests (Files): Likewise.
36770         * modules/getdtablesize-tests (Files): Likewise.
36771         * modules/getgroups-tests (Files): Likewise.
36772         * modules/gethostname-tests (Files): Likewise.
36773         * modules/getline-tests (Files): Likewise.
36774         * modules/getopt-posix-tests (Files): Likewise.
36775         * modules/gettimeofday-tests (Files): Likewise.
36776         * modules/glob-tests (Files): Likewise.
36777         * modules/iconv-tests (Files): Likewise.
36778         * modules/inet_ntop-tests (Files): Likewise.
36779         * modules/inet_pton-tests (Files): Likewise.
36780         * modules/isblank-tests (Files): Likewise.
36781         * modules/lchown-tests (Files): Likewise.
36782         * modules/ldexpl-tests (Files): Likewise.
36783         * modules/link-tests (Files): Likewise.
36784         * modules/linkat-tests (Files): Likewise.
36785         * modules/lseek-tests (Files): Likewise.
36786         * modules/lstat-tests (Files): Likewise.
36787         * modules/mbrtowc-tests (Files): Likewise.
36788         * modules/mbsinit-tests (Files): Likewise.
36789         * modules/mbsnrtowcs-tests (Files): Likewise.
36790         * modules/mbsrtowcs-tests (Files): Likewise.
36791         * modules/memchr-tests (Files): Likewise.
36792         * modules/memcmp-tests (Files): Likewise.
36793         * modules/memmem-tests (Files): Likewise.
36794         * modules/memrchr-tests (Files): Likewise.
36795         * modules/mkdir-tests (Files): Likewise.
36796         * modules/mkfifo-tests (Files): Likewise.
36797         * modules/mkfifoat-tests (Files): Likewise.
36798         * modules/mknod-tests (Files): Likewise.
36799         * modules/nanosleep-tests (Files): Likewise.
36800         * modules/nl_langinfo-tests (Files): Likewise.
36801         * modules/obstack-printf-tests (Files): Likewise.
36802         * modules/open-tests (Files): Likewise.
36803         * modules/openat-tests (Files): Likewise.
36804         * modules/perror-tests (Files): Likewise.
36805         * modules/pipe2-tests (Files): Likewise.
36806         * modules/poll-tests (Files): Likewise.
36807         * modules/popen-tests (Files): Likewise.
36808         * modules/posix_spawn-tests (Files): Likewise.
36809         * modules/posix_spawnp-tests (Files): Likewise.
36810         * modules/pread-tests (Files): Likewise.
36811         * modules/printf-posix-tests (Files): Likewise.
36812         * modules/pty-tests (Files): Likewise.
36813         * modules/random_r-tests (Files): Likewise.
36814         * modules/rawmemchr-tests (Files): Likewise.
36815         * modules/readlink-tests (Files): Likewise.
36816         * modules/remove-tests (Files): Likewise.
36817         * modules/rename-tests (Files): Likewise.
36818         * modules/renameat-tests (Files): Likewise.
36819         * modules/rmdir-tests (Files): Likewise.
36820         * modules/round-tests (Files): Likewise.
36821         * modules/roundf-tests (Files): Likewise.
36822         * modules/roundl-tests (Files): Likewise.
36823         * modules/select-tests (Files): Likewise.
36824         * modules/setenv-tests (Files): Likewise.
36825         * modules/sigaction-tests (Files): Likewise.
36826         * modules/sleep-tests (Files): Likewise.
36827         * modules/snprintf-posix-tests (Files): Likewise.
36828         * modules/snprintf-tests (Files): Likewise.
36829         * modules/sprintf-posix-tests (Files): Likewise.
36830         * modules/stat-tests (Files): Likewise.
36831         * modules/strcasestr-tests (Files): Likewise.
36832         * modules/strchrnul-tests (Files): Likewise.
36833         * modules/strerror-tests (Files): Likewise.
36834         * modules/strsignal-tests (Files): Likewise.
36835         * modules/strstr-tests (Files): Likewise.
36836         * modules/strtod-tests (Files): Likewise.
36837         * modules/strverscmp-tests (Files): Likewise.
36838         * modules/symlink-tests (Files): Likewise.
36839         * modules/symlinkat-tests (Files): Likewise.
36840         * modules/times-tests (Files): Likewise.
36841         * modules/trunc-tests (Files): Likewise.
36842         * modules/truncf-tests (Files): Likewise.
36843         * modules/truncl-tests (Files): Likewise.
36844         * modules/tsearch-tests (Files): Likewise.
36845         * modules/uname-tests (Files): Likewise.
36846         * modules/unlink-tests (Files): Likewise.
36847         * modules/unsetenv-tests (Files): Likewise.
36848         * modules/usleep-tests (Files): Likewise.
36849         * modules/utimensat-tests (Files): Likewise.
36850         * modules/vasprintf-tests (Files): Likewise.
36851         * modules/vdprintf-posix-tests (Files): Likewise.
36852         * modules/vfprintf-posix-tests (Files): Likewise.
36853         * modules/vprintf-posix-tests (Files): Likewise.
36854         * modules/vsnprintf-posix-tests (Files): Likewise.
36855         * modules/vsnprintf-tests (Files): Likewise.
36856         * modules/vsprintf-posix-tests (Files): Likewise.
36857         * modules/wcrtomb-tests (Files): Likewise.
36858         * modules/wcsnrtombs-tests (Files): Likewise.
36859         * modules/wcsrtombs-tests (Files): Likewise.
36860         * modules/wcwidth-tests (Files): Likewise.
36861         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36862         * tests/test-isinf.c (isinf): Likewise.
36863         * tests/test-isnan.c (isnan): Likewise.
36864         * tests/test-signbit.c (signbit): Likewise.
36865         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36866         declaration, either as macro or with correct signature.
36867         (select): Ensure function under test is declared with correct
36868         signature in correct header.
36869         * tests/test-atexit.c (atexit): Likewise.
36870         * tests/test-btowc.c (btowc): Likewise.
36871         * tests/test-canonicalize-lgpl.c (realpath)
36872         (canonicalize_file_name): Likewise.
36873         * tests/test-ceilf1.c (ceilf): Likewise.
36874         * tests/test-ceill.c (ceill): Likewise.
36875         * tests/test-chown.c (chown): Likewise.
36876         * tests/test-dprintf-posix.c (dprintf): Likewise.
36877         * tests/test-dup2.c (dup2): Likewise.
36878         * tests/test-dup3.c (dup3): Likewise.
36879         * tests/test-duplocale.c (duplocale): Likewise.
36880         * tests/test-fchdir.c (fchdir): Likewise.
36881         * tests/test-fchownat.c (fchownat): Likewise.
36882         * tests/test-fcntl.c (fcntl): Likewise.
36883         * tests/test-fdopendir.c (fdopendir): Likewise.
36884         * tests/test-fflush.c (fflush): Likewise.
36885         * tests/test-flock.c (flock): Likewise.
36886         * tests/test-floorf1.c (floorf): Likewise.
36887         * tests/test-floorl.c (floorl): Likewise.
36888         * tests/test-fnmatch.c (fnmatch): Likewise.
36889         * tests/test-fopen.c (fopen): Likewise.
36890         * tests/test-fprintf-posix.c (fprintf): Likewise.
36891         * tests/test-freopen.c (freopen): Likewise.
36892         * tests/test-frexp.c (frexp): Likewise.
36893         * tests/test-frexpl.c (frexpl): Likewise.
36894         * tests/test-fseek.c (fseek): Likewise.
36895         * tests/test-fseeko.c (fseeko): Likewise.
36896         * tests/test-fstatat.c (fstatat): Likewise.
36897         * tests/test-fsync.c (fsync): Likewise.
36898         * tests/test-ftell.c (ftell): Likewise.
36899         * tests/test-ftello.c (ftello): Likewise.
36900         * tests/test-futimens.c (futimens): Likewise.
36901         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36902         (gai_strerror): Likewise.
36903         * tests/test-getcwd.c (getcwd): Likewise.
36904         * tests/test-getdelim.c (getdelim): Likewise.
36905         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36906         * tests/test-getgroups.c (getgroups): Likewise.
36907         * tests/test-gethostname.c (gethostname): Likewise.
36908         * tests/test-getline.c (getline): Likewise.
36909         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36910         Likewise.
36911         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36912         * tests/test-glob.c (glob, globfree): Likewise.
36913         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36914         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36915         * tests/test-inet_pton.c (inet_pton): Likewise.
36916         * tests/test-isblank.c (isblank): Likewise.
36917         * tests/test-lchown.c (lchown): Likewise.
36918         * tests/test-ldexpl.c (ldexpl): Likewise.
36919         * tests/test-link.c (link): Likewise.
36920         * tests/test-linkat.c (linkat): Likewise.
36921         * tests/test-lseek.c (lseek): Likewise.
36922         * tests/test-lstat.c (lstat): Likewise.
36923         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36924         * tests/test-mbsinit.c (mbsinit): Likewise.
36925         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36926         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36927         * tests/test-memchr.c (memchr): Likewise.
36928         * tests/test-memcmp.c (memcmp): Likewise.
36929         * tests/test-memmem.c (memmem): Likewise.
36930         * tests/test-memrchr.c (memrchr): Likewise.
36931         * tests/test-mkdir.c (mkdir): Likewise.
36932         * tests/test-mkdirat.c (mkdirat): Likewise.
36933         * tests/test-mkfifo.c (mkfifo): Likewise.
36934         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36935         * tests/test-mknod.c (mknod): Likewise.
36936         * tests/test-nanosleep.c (nanosleep): Likewise.
36937         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36938         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36939         Likewise.
36940         * tests/test-open.c (open): Likewise.
36941         * tests/test-openat.c (openat): Likewise.
36942         * tests/test-perror.c (perror): Likewise.
36943         * tests/test-pipe2.c (pipe2): Likewise.
36944         * tests/test-poll.c (poll): Likewise.
36945         * tests/test-popen.c (popen, pclose): Likewise.
36946         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36947         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36948         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36949         (posix_spawn_file_actions_destroy)
36950         (posix_spawn_file_actions_addclose)
36951         (posix_spawn_file_actions_addopen)
36952         (posix_spawn_file_actions_adddup2): Likewise.
36953         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36954         * tests/test-pread.c (pread): Likewise.
36955         * tests/test-printf-posix.c (printf): Likewise.
36956         * tests/test-pty.c (openpty, forkpty): Likewise.
36957         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36958         (random_r): Likewise.
36959         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36960         * tests/test-readlink.c (readlink): Likewise.
36961         * tests/test-remove.c (remove): Likewise.
36962         * tests/test-rename.c (rename): Likewise.
36963         * tests/test-renameat.c (renameat): Likewise.
36964         * tests/test-rmdir.c (rmdir): Likewise.
36965         * tests/test-round1.c (round): Likewise.
36966         * tests/test-roundf1.c (roundf): Likewise.
36967         * tests/test-roundl.c (roundl): Likewise.
36968         * tests/test-setenv.c (setenv): Likewise.
36969         * tests/test-sigaction.c (sigaction): Likewise.
36970         * tests/test-sleep.c (sleep): Likewise.
36971         * tests/test-snprintf.c (snprintf): Likewise.
36972         * tests/test-sprintf-posix.c (sprintf): Likewise.
36973         * tests/test-stat.c (stat): Likewise.
36974         * tests/test-stpncpy.c (stpncpy): Likewise.
36975         * tests/test-strcasestr.c (strcasestr): Likewise.
36976         * tests/test-strchrnul.c (strchrnul): Likewise.
36977         * tests/test-strerror.c (strerror): Likewise.
36978         * tests/test-strsignal.c (strsignal): Likewise.
36979         * tests/test-strstr.c (strstr): Likewise.
36980         * tests/test-strtod.c (strtod): Likewise.
36981         * tests/test-strverscmp.c (strverscmp): Likewise.
36982         * tests/test-symlink.c (symlink): Likewise.
36983         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36984         * tests/test-times.c (times): Likewise.
36985         * tests/test-trunc1.c (trunc): Likewise.
36986         * tests/test-truncf1.c (truncf): Likewise.
36987         * tests/test-truncl.c (truncl): Likewise.
36988         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36989         Likewise.
36990         * tests/test-uname.c (uname): Likewise.
36991         * tests/test-unlink.c (unlink): Likewise.
36992         * tests/test-unlinkat.c (unlinkat): Likewise.
36993         * tests/test-unsetenv.c (unsetenv): Likewise.
36994         * tests/test-usleep.c (usleep): Likewise.
36995         * tests/test-utimensat.c (utimensat): Likewise.
36996         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36997         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36998         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36999         * tests/test-vprintf-posix.c (vprintf): Likewise.
37000         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37001         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37002         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37003         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37004         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37005         * tests/test-wcwidth.c (wcwidth): Likewise.
37006
37007         build: pull in conditional headers during GNULIB_POSIXCHECK
37008         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37009         definitions from any conditionally-included headers.
37010         * lib/stdlib.in.h (includes): Likewise.
37011         * lib/unistd.in.h (includes): Likewise.
37012
37013 2009-12-24  Bruno Haible  <bruno@clisp.org>
37014
37015         * tests/test-argv-iter.c: Include header file being tested immediately
37016         after config.h.
37017         * tests/test-base64.c: Likewise.
37018         * tests/test-flock.c: Likewise.
37019         * tests/test-fsync.c: Likewise.
37020         * tests/test-getdate.c: Likewise.
37021         * tests/test-getndelim2.c: Likewise.
37022         * tests/test-isfinite.c: Likewise.
37023         * tests/test-isinf.c: Likewise.
37024         * tests/test-strerror.c: Likewise.
37025         * tests/test-strsignal.c: Likewise.
37026
37027 2009-12-23  Eric Blake  <ebb9@byu.net>
37028
37029         unistd: work around cygwin bug
37030         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37031         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37032         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37033
37034 2009-12-23  Bruno Haible  <bruno@clisp.org>
37035
37036         localename: More tests.
37037         * tests/test-localename.c (SIZEOF): New macro.
37038         (categories): New variable.
37039         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37040         test_locale_name_default): Add test w.r.t. thread locale.
37041         (test_locale_name_thread): New function.
37042         (main): Invoke it.
37043
37044         localename: Make aware of thread locale.
37045         * lib/localename.h (gl_locale_name_thread): New declaration.
37046         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37047         behaviour with respect to thread locale.
37048         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37049         <langinfo.h>, glthread/lock.h.
37050         (SIZE_BITS): New macro.
37051         (string_hash): New function.
37052         (struct hash_node): New type.
37053         (HASH_TABLE_SIZE): New macro.
37054         (struniq_hash_table, struniq_lock): New variables.
37055         (struniq): New function.
37056         (gl_locale_name_thread): New function.
37057         (gl_locale_name): Invoke it.
37058         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37059         * modules/localename (Depends-on): Add lock.
37060         Reported by Mike Gran <spk121@yahoo.com>.
37061
37062 2009-12-23  Eric Blake  <ebb9@byu.net>
37063
37064         va-args: new module
37065         * modules/va-args: New file.
37066         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37067         * MODULES.html.sh (Core language properties): Mention it.
37068
37069         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37070         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37071         named alias for __attribute__((__unused__)).
37072         * lib/chown.c: Update client.
37073         * lib/fchmodat.c: Likewise.
37074         * lib/fts.c: Likewise.
37075         * lib/getdate.y: Likewise.
37076         * lib/getgroups.c: Likewise.
37077         * lib/getopt.c: Likewise.
37078         * lib/getugroups.c: Likewise.
37079         * lib/mkdir.c: Likewise.
37080         * lib/mkfifo.c: Likewise.
37081         * lib/mkfifoat.c: Likewise.
37082         * lib/mknod.c: Likewise.
37083         * lib/mknodat.c: Likewise.
37084         * lib/readlink.c: Likewise.
37085         * lib/se-context.in.h: Likewise.
37086         * lib/se-selinux.in.h: Likewise.
37087         * lib/sockets.c: Likewise.
37088         * lib/symlink.c: Likewise.
37089         * lib/symlinkat.c: Likewise.
37090         * lib/unicodeio.c: Likewise.
37091         * lib/unistr.h: Likewise.
37092         * tests/test-areadlink.c: Likewise.
37093         * tests/test-areadlinkat.c: Likewise.
37094         * tests/test-filenamecat.c: Likewise.
37095         * tests/test-fseeko.c: Likewise.
37096         * tests/test-ftello.c: Likewise.
37097         * tests/test-getdate.c: Likewise.
37098         * tests/test-getgroups.c: Likewise.
37099         * tests/test-gethostname.c: Likewise.
37100         * tests/test-quotearg.c: Likewise.
37101         * tests/test-version-etc.c: Likewise.
37102         * tests/test-xalloc-die.c: Likewise.
37103         * tests/test-xfprintf-posix.c: Likewise.
37104         * tests/test-xprintf-posix.c: Likewise.
37105         * tests/test-xvasprintf.c: Likewise.
37106
37107         tests: avoid compiler warnings
37108         * tests/test-fcntl.c (main): Delete unused parameters.
37109         * tests/test-freopen-safer.c (main): Likewise.
37110         * tests/test-xalloc-die.c (main): Mark unused parameters.
37111         * tests/test-fseeko.c (main): Likewise.
37112         * tests/test-ftello.c (main): Likewise.
37113         * tests/test-nanosleep.c (main): Avoid declaration warning.
37114         * tests/test-sleep.c (main): Likewise.
37115         * tests/test-unsetenv.c (main): Silence warning about string
37116         literal.
37117         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37118
37119 2009-12-23  Bruno Haible  <bruno@clisp.org>
37120
37121         * tests/test-localename.c (test_locale_name): New function, extracted
37122         from main. Also test mixed situations.
37123         (test_locale_name_posix, test_locale_name_environ,
37124         test_locale_name_default): New functions.
37125         (main): Invoke them all.
37126         * modules/localename-tests (configure.ac): Test for newlocale.
37127
37128 2009-12-23  Bruno Haible  <bruno@clisp.org>
37129
37130         unistd: Ensure getcwd gets declared before being overridden.
37131         * lib/unistd.in.h: Conditionally include <io.h>.
37132
37133 2009-12-22  Bruno Haible  <bruno@clisp.org>
37134
37135         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37136         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37137         (gl_WCHAR_H): Invoke it.
37138         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37139         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37140         Reported by Karl Berry <karl@freefriends.org>.
37141
37142 2009-12-22  Eric Blake  <ebb9@byu.net>
37143
37144         math, unistd: avoid redundant includes
37145         * lib/math.in.h (isnan): No need to re-include <math.h>.
37146         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37147
37148         getsubopt: work around cygwin bug
37149         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37150         avoid conflicting with system getsubopt.
37151         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37152         bug.
37153
37154         getopt: synchronize from glibc
37155         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37156         parameter order.  Adjust all callers.
37157         (_getopt_internal_r, main): Adjust quoting in error messages.
37158         Drop considerations for outdated POSIX 1003.2 error message.
37159         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37160         callers.
37161         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37162
37163         test-getopt: test stderr behavior
37164         * modules/getopt-posix-tests (Depends-on): Add dup2.
37165         * tests/test-getopt.c (ASSERT): Avoid stderr.
37166         (main): Move stderr to a temporary file.
37167         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37168         Instead, add parameter to inform caller if output occurred.
37169         (test_getopt): Adjust all existing tests to expect silence, and
37170         add new tests of leading ":".
37171         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37172         glibc shortcomings with leading "-:" or "+:" in optstring.
37173         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37174         Likewise.
37175         * doc/posix-functions/getopt.texi (getopt): Likewise.
37176
37177         test-getopt: enhance test
37178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37179         supports optind=0.
37180         * tests/test-getopt.c (OPTIND_MIN): Move...
37181         * tests/test-getopt.h (OPTIND_MIN): ...here.
37182         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37183         Require that optind=0 works, since modern BSD supports it in
37184         addition to optreset, and since coreutils expects it.
37185         (test_getopt_long_only): New test.
37186         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37187         glibc shortcomings with 'W;', and enforcement of optind=0.
37188         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37189         Likewise.
37190
37191 2009-12-21  Bruno Haible  <bruno@clisp.org>
37192
37193         localename: Improvements for MacOS X and Cygwin.
37194         * lib/localename.h (gl_locale_name_environ): New declaration.
37195         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37196         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37197         (gl_locale_name_posix): Invoke it.
37198         (gl_locale_name_default): Add comments. Use Windows native API also on
37199         Cygwin.
37200
37201 2009-12-21  Bruno Haible  <bruno@clisp.org>
37202
37203         Update list of Win32 locale ids.
37204         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37205         (LANG_SAMI): Renamed from LANG_SAAMI.
37206         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37207         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37208         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37209         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37210         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37211         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37212         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37213         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37214         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37215         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37216         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37217         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37218         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37219         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37220         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37221         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37222         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37223         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37224         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37225         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37226         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37227         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37228         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37229         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37230         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37231         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37232         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37233         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37234         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37235         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37236         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37237         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37238         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37239         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37240         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37241         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37242         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37243         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37244         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37245         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37246         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37247         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37248         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37249         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37250         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37251         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37252         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37253         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37254         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37255         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37256         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37257         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37258         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37259         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37260         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37261         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37262         Add more languages and countries for Sami, Sorbian. Add more countries
37263         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37264         for Pashto. Change country for Syriac, Tswana.
37265
37266 2009-12-21  Eric Blake  <ebb9@byu.net>
37267
37268         test-utimens: avoid spurious failure
37269         * tests/test-chown.h (nap): Factor...
37270         * tests/nap.h: ...into new file.
37271         * tests/test-lchown.h (nap): Avoid duplication.
37272         * tests/test-utimens-common.h (nap): Use shared implementation,
37273         necessary on file systems with 1-second resolution.
37274         * modules/chown-tests (Files): Include new file.
37275         * modules/fdutimensat-tests (Files): Likewise.
37276         * modules/futimens-tests (Files): Likewise.
37277         * modules/lchown-tests (Files): Likewise.
37278         * modules/openat-tests (Files): Likewise.
37279         * modules/utimens-tests (Files): Likewise.
37280         * modules/utimensat-tests (Files): Likewise.
37281
37282 2009-12-19  Eric Blake  <ebb9@byu.net>
37283
37284         futimens, utimensat: work around Linux bug
37285         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37286         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37287         * lib/utimensat.c (rpl_utimensat): Work around it.
37288         * lib/futimens.c (rpl_futimens): Adjust comment.
37289
37290         utimens: work around Linux ctime bug
37291         * lib/utimens.c (detect_ctime_bug): New helper function.
37292         (update_timespec): Differentiate between workaround needed for
37293         this bug vs. what is needed for systems that lack utimensat.
37294         (fdutimens, lutimens): Work around bug.
37295
37296         utimens: check for ctime update
37297         * tests/test-utimens-common.h (check_ctime): Define.
37298         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37299         * tests/test-futimens.h (test_futimens): Likewise.
37300         * tests/test-lutimens.h (test_lutimens): Likewise.
37301         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37302         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37303
37304 2009-12-19  Bruno Haible  <bruno@clisp.org>
37305
37306         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37307         * tests/test-dprintf-posix2.sh: New file.
37308         * tests/test-dprintf-posix2.c: New file.
37309         * modules/dprintf-posix-tests (Files): Add them.
37310         (configure.ac): Check for getrlimit and setrlimit.
37311         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37312
37313 2009-12-19  Bruno Haible  <bruno@clisp.org>
37314
37315         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37316         * tests/test-fprintf-posix3.sh: New file.
37317         * tests/test-fprintf-posix3.c: New file.
37318         * modules/fprintf-posix-tests (Files): Add them.
37319         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37320
37321 2009-12-19  Eric Blake  <ebb9@byu.net>
37322
37323         dirfd: fix prototype
37324         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37325         * lib/dirfd.c (dirfd): Likewise.
37326
37327         canonicalize: reduce memory usage
37328         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37329         allocation to size.
37330         Reported by Solar Designer <solar@openwall.com>.
37331
37332 2009-12-19  Bruno Haible  <bruno@clisp.org>
37333
37334         New module attribute 'Applicability'.
37335         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37336         * gnulib-tool: New option --extract-applicability.
37337         (func_usage): Document it.
37338         (sed_extract_prog): Recognize it.
37339         (func_get_applicability): New function.
37340         (func_import): Generalize handling of 'link-warning' module.
37341         * modules/link-warning (Applicability): New section.
37342         * modules/arg-nonnull (Applicability): New section.
37343         Repoted by Simon Josefsson <simon@josefsson.org>.
37344
37345 2009-12-19  Bruno Haible  <bruno@clisp.org>
37346
37347         fflush: tweak
37348         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37349         * lib/fseeko.c (rpl_fseeko): Likewise.
37350
37351 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37352
37353         * lib/gl_list.h: Fix typo in comment.
37354
37355 2009-12-16  Eric Blake  <ebb9@byu.net>
37356
37357         fcntl: use to simplify other modules
37358         * modules/cloexec (Depends-on): Add fcntl.
37359         * modules/fchdir (Depends-on): Likewise.
37360         * modules/fd-safer-flag (Depends-on): Likewise.
37361         * modules/unistd-safer (Depends-on): Likewise.
37362         * modules/dup3 (configure.ac): Set module indicator.
37363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37364         missing.
37365         * lib/fchdir.c (_gl_register_dup): Fix comment.
37366         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37367         * lib/dup-safer.c (dup_safer): Likewise.
37368         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37369         * lib/dup3.c (dup3): Likewise.
37370         * tests/test-fchdir.c (main): Enhance test.
37371         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37372
37373         fcntl: port portions of fcntl to mingw
37374         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37375         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37376         replacement for mingw.
37377         * modules/fcntl (Description): Update.
37378         (Depends-on): Add dup2.
37379         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37380         * modules/fcntl-h (Makefile.am): Substitute it.
37381         * lib/fcntl.in.h (fcntl): Update declaration.
37382         (F_DUPFD, F_GETFD): New macros, when needed.
37383         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37384         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37385         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37386         we now guarantee.
37387
37388         fcntl: work around cygwin bug in F_DUPFD
37389         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37390         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37391         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37392         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37393         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37394
37395         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37396         * modules/fcntl (Files): List new files.
37397         (configure.ac): Run a test.
37398         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37399         * lib/fcntl.c (rpl_fcntl): Likewise.
37400         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37401         (gl_FCNTL_H): Always replace fcntl.h.
37402         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37403         * lib/fcntl.in.h (fcntl): Declare replacement.
37404         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37405         needed, plus a witness.
37406         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37407         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37408         * tests/test-fcntl.c: New file.
37409         * modules/fcntl-tests: Likewise.
37410
37411         binary-io: avoid potential compilation warning
37412         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37413         directives.
37414
37415         fflush: avoid compilation error on NetBSD
37416         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37417         between off_t and fpos_t, since the latter is sometimes a struct.
37418         * lib/fseeko.c (rpl_fseeko): Likewise.
37419         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37420
37421 2009-12-15  Eric Blake  <ebb9@byu.net>
37422
37423         fcntl-h, stdio, sys_ioctl: fix declarations
37424         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37425         function must not take arguments.
37426         * lib/sys_ioctl.in.h (ioctl): Likewise.
37427         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37428         (open): Add a link warning.
37429
37430 2009-12-15  Jim Meyering  <meyering@redhat.com>
37431
37432         areadlink, areadlink-with-size: relax license to LGPLv2+
37433         * modules/areadlink (License): Relax to LGPLv2+.
37434         * modules/areadlink-with-size (License): Likewise.
37435
37436 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37437             Bruno Haible  <bruno@clisp.org>
37438
37439         *printf: Fix memory leak.
37440         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37441         * lib/vfprintf.c (vfprintf): Likewise.
37442         * lib/dprintf.c (dprintf): Likewise.
37443         * lib/vdprintf.c (vdprintf): Likewise.
37444
37445 2009-12-14  Eric Blake  <ebb9@byu.net>
37446
37447         accept4: adjust module dependencies
37448         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37449
37450         utimens: one more try at avoiding compiler warning
37451         * lib/utimens.c (lutimens): Lower scope of result.
37452
37453 2009-12-13  Bruno Haible  <bruno@clisp.org>
37454
37455         Move the malloc checking from module 'list' to new module 'xlist'.
37456         * modules/xlist: New file.
37457         * lib/gl_xlist.h: New file.
37458         * lib/gl_xlist.c: New file.
37459         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37460         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37461         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37462         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37463         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37464         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37465         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37466         gl_sortedlist_nx_add): New declarations.
37467         (struct gl_list_implementation): Rename and change methods accordingly.
37468         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37469         (gl_list_nx_create): Renamed from gl_list_create.
37470         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37471         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37472         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37473         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37474         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37475         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37476         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37477         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37478         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37479         gl_list_create_empty.
37480         (gl_list_nx_create): Renamed from gl_list_create.
37481         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37482         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37483         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37484         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37485         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37486         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37487         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37488         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37489         * lib/gl_array_list.c: Don't include xalloc.h.
37490         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37491         NULL upon out-of-memory.
37492         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37493         out-of-memory.
37494         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37495         Change return type to 'int'.
37496         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37497         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37498         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37499         upon out-of-memory.
37500         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37501         upon out-of-memory.
37502         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37503         upon out-of-memory.
37504         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37505         upon out-of-memory.
37506         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37507         out-of-memory.
37508         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37509         Update.
37510         (gl_array_list_implementation): Update.
37511         * lib/gl_carray_list.c: Don't include xalloc.h.
37512         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37513         Return NULL upon out-of-memory.
37514         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37515         out-of-memory.
37516         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37517         Change return type to 'int'.
37518         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37519         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37520         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37521         upon out-of-memory.
37522         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37523         upon out-of-memory.
37524         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37525         out-of-memory.
37526         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37527         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37528         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37529         Update.
37530         (gl_carray_list_implementation): Update.
37531         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37532         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37533         gl_linked_create_empty. Return NULL upon out-of-memory.
37534         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37535         out-of-memory.
37536         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37537         Change return type to 'int'. Return -1 upon out-of-memory.
37538         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37539         out-of-memory.
37540         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37541         upon out-of-memory.
37542         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37543         upon out-of-memory.
37544         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37545         NULL upon out-of-memory.
37546         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37547         upon out-of-memory.
37548         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37549         out-of-memory.
37550         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37551         Update.
37552         * lib/gl_linked_list.c: Don't include xalloc.h.
37553         (gl_linked_list_implementation): Update.
37554         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37555         (add_to_bucket): Change return type to 'int'.
37556         (gl_linkedhash_list_implementation): Update.
37557         * lib/gl_anytree_list1.h (free_subtree): New function.
37558         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37559         gl_tree_create_empty. Return NULL upon out-of-memory.
37560         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37561         Change return type to 'int'. Return -1 upon out-of-memory.
37562         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37563         out-of-memory.
37564         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37565         (gl_tree_remove_node): New function, moved here from
37566         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37567         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37568         Update.
37569         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37570         malloc, not xmalloc. Return NULL upon out-of-memory.
37571         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37572         out-of-memory.
37573         (gl_tree_remove_node_from_tree): New function, extracted from
37574         gl_tree_remove_node.
37575         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37576         upon out-of-memory.
37577         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37578         out-of-memory.
37579         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37580         upon out-of-memory.
37581         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37582         upon out-of-memory.
37583         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37584         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37585         not xmalloc. Return NULL upon out-of-memory.
37586         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37587         out-of-memory.
37588         (gl_tree_remove_node_from_tree): New function, extracted from
37589         gl_tree_remove_node.
37590         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37591         upon out-of-memory.
37592         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37593         out-of-memory.
37594         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37595         upon out-of-memory.
37596         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37597         upon out-of-memory.
37598         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37599         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37600         gl_anytree_list1.h before gl_anyavltree_list2.h.
37601         (gl_avltree_list_implementation): Update.
37602         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37603         gl_anytree_list1.h before gl_anyavltree_list2.h.
37604         (gl_rbtree_list_implementation): Update.
37605         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37606         Change return type to 'int'. Return -1 upon out-of-memory. Use
37607         __builtin_expect.
37608         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37609         (gl_avltreehash_list_implementation): Update.
37610         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37611         (gl_rbtreehash_list_implementation): Update.
37612         * modules/array-list (Depends-on): Remove xalloc.
37613         * modules/carray-list (Depends-on): Likewise.
37614         * modules/linked-list (Depends-on): Likewise.
37615         * modules/linkedhash-list (Depends-on): Likewise.
37616         * modules/avltree-list (Depends-on): Likewise.
37617         * modules/rbtree-list (Depends-on): Likewise.
37618         * modules/avltreehash-list (Depends-on): Likewise.
37619         * modules/rbtreehash-list (Depends-on): Likewise.
37620
37621         * modules/xsublist: New file.
37622         * lib/gl_xsublist.h: New file.
37623         * lib/gl_xsublist.c: New file.
37624         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37625         (gl_sublist_nx_create): New declaration.
37626         * lib/gl_sublist.c: Don't include xalloc.h.
37627         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37628         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37629         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37630         Change return type to 'int'. Return -1 upon out-of-memory.
37631         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37632         upon out-of-memory.
37633         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37634         NULL upon out-of-memory.
37635         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37636         upon out-of-memory.
37637         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37638         NULL upon out-of-memory.
37639         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37640         NULL upon out-of-memory.
37641         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37642         upon out-of-memory.
37643         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37644         (gl_sublist_list_implementation): Update.
37645         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37646         upon out-of-memory.
37647         * modules/sublist (Depends-on): Remove xalloc.
37648
37649         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37650         * tests/test-carray_list.c: Likewise.
37651         * tests/test-linked_list.c: Likewise.
37652         * tests/test-linkedhash_list.c: Likewise.
37653         * tests/test-avltree_list.c: Likewise.
37654         * tests/test-rbtree_list.c: Likewise.
37655         * tests/test-avltreehash_list.c: Likewise.
37656         * tests/test-rbtreehash_list.c: Likewise.
37657         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37658         * modules/carray-list-tests (Makefile.am): Likewise.
37659         * modules/linked-list-tests (Makefile.am): Likewise.
37660         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37661         * modules/avltree-list-tests (Makefile.am): Likewise.
37662         * modules/rbtree-list-tests (Makefile.am): Likewise.
37663         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37664         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37665
37666         * NEWS: Mention the changes.
37667
37668         * lib/clean-temp.c: Include gl_xlist.h.
37669         * modules/clean-temp (Depends-on): Add xlist.
37670
37671         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37672         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37673
37674         * tests/test-array_oset.c: Include gl_xlist.h.
37675         * modules/array-oset-tests (Depends-on): Add xlist.
37676
37677         Reported by José E. Marchesi <jemarch@gnu.org>.
37678
37679 2009-12-13  Bruno Haible  <bruno@clisp.org>
37680
37681         Move the malloc checking from module 'oset' to new module 'xoset'.
37682         * modules/xoset: New file.
37683         * lib/gl_xoset.h: New file.
37684         * lib/gl_xoset.c: New file.
37685         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37686         declarations.
37687         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37688         (struct gl_oset_implementation): Rename and change methods accordingly.
37689         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37690         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37691         'int'. Mark as __warn_unused_result__.
37692         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37693         gl_oset_create_empty.
37694         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37695         'int'.
37696         * lib/gl_array_oset.c: Don't include xalloc.h.
37697         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37698         malloc, not xmalloc.
37699         (grow): Change return type to 'int'. Don't call xalloc_die.
37700         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37701         to 'int'.
37702         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37703         'int'.
37704         (gl_array_oset_implementation): Update.
37705         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37706         gl_tree_create_empty.
37707         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37708         'int'.
37709         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37710         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37711         xmalloc.
37712         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37713         not xmalloc.
37714         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37715         xmalloc.
37716         (gl_avltree_oset_implementation): Update.
37717         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37718         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37719         xmalloc.
37720         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37721         not xmalloc.
37722         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37723         xmalloc.
37724         (gl_rbtree_oset_implementation): Update.
37725         * modules/array-oset (Depends-on): Remove xalloc.
37726         * modules/avltree-oset (Depends-on): Likewise.
37727         * modules/rbtree-oset (Depends-on): Likewise.
37728         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37729         * tests/test-avltree_oset.c: Likewise.
37730         * tests/test-rbtree_oset.c: Likewise.
37731         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37732         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37733         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37734         * NEWS: Mention the change.
37735
37736 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37737
37738         maint.mk: allow a project to override release-prep commands
37739         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37740         commands into a new rule.
37741         (release-prep): New rule.
37742         (release-prep-hook): New overridable variable.
37743
37744 2009-12-13  Bruno Haible  <bruno@clisp.org>
37745
37746         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37747
37748 2009-12-13  Jim Meyering  <meyering@redhat.com>
37749
37750         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37751         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37752
37753 2009-12-12  Bruno Haible  <bruno@clisp.org>
37754
37755         duplocale: Tweak.
37756         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37757
37758 2009-12-12  Karl Berry  <karl@gnu.org>
37759
37760         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37761
37762 2009-12-12  Bruno Haible  <bruno@clisp.org>
37763
37764         * m4/po.m4: Undo incorrect untabification.
37765
37766 2009-12-12  Bruno Haible  <bruno@clisp.org>
37767
37768         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37769         * modules/c-strtod (Depends-on): Add locale.
37770         * modules/c-strtold (Depends-on): Likewise.
37771
37772 2009-12-12  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37775
37776 2009-12-11  Eric Blake  <ebb9@byu.net>
37777
37778         setenv: relax requirement in light of POSIX ruling
37779         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37780         not NULL.
37781         * tests/test-setenv.c (main): Relax test.
37782         * tests/test-unsetenv.c (main): Likewise.
37783         * doc/posix-functions/setenv.texi (setenv): Document this.
37784         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37785
37786 2009-12-11  Bruno Haible  <bruno@clisp.org>
37787
37788         New module 'fd-safer-flag'.
37789         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37790         * lib/dup-safer.c (dup_safer_flag): Remove function.
37791         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37792         * lib/fd-safer.c (fd_safer_flag): Remove function.
37793         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37794         * modules/cloexec (configure.ac): Drop indicator macro.
37795         * modules/fd-safer-flag: New file.
37796         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37797         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37798         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37799
37800 2009-12-11  Bruno Haible  <bruno@clisp.org>
37801
37802         Tests for module 'nl_langinfo'.
37803         * modules/nl_langinfo-tests: New file.
37804         * tests/test-nl_langinfo.sh: New file.
37805         * tests/test-nl_langinfo.c: New file.
37806
37807         New module 'nl_langinfo'.
37808         * lib/nl_langinfo.c: New file.
37809         * m4/nl_langinfo.m4: New file.
37810         * modules/nl_langinfo: New file.
37811         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37812
37813 2009-12-11  Bruno Haible  <bruno@clisp.org>
37814
37815         Tests for module 'langinfo'.
37816         * modules/langinfo-tests: New file.
37817         * tests/test-langinfo.c: New file.
37818
37819         New module 'langinfo'.
37820         * lib/langinfo.in.h: New file.
37821         * m4/langinfo_h.m4: New file.
37822         * modules/langinfo: New file.
37823         * doc/posix-headers/langinfo.texi: Mention the new module.
37824
37825 2009-12-11  Bruno Haible  <bruno@clisp.org>
37826
37827         * lib/config.charset: Untabify.
37828
37829 2009-12-11  Bruno Haible  <bruno@clisp.org>
37830
37831         * modules/unistd-safer (configure.ac): Drop indicator macro.
37832
37833 2009-12-11  Bruno Haible  <bruno@clisp.org>
37834
37835         Move pipe2-safer code to its own file.
37836         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37837         * lib/pipe-safer.c (pipe2_safer): Remove function.
37838         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37839         (Makefile.am): Add it to lib_SOURCES.
37840
37841 2009-12-10  Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37844
37845 2009-12-10  Bruno Haible  <bruno@clisp.org>
37846
37847         Declare which arguments expect non-NULL values, for GCC and clang.
37848         * build-aux/arg-nonnull.h: New file.
37849         * modules/arg-nonnull: New file.
37850         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37851         (inet_ntop, inet_pton): Use it.
37852         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37853         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37854         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37855         (open, openat): Use it.
37856         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37857         (fnmatch): Use it.
37858         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37859         (getopt, getopt_long, getopt_long_only): Use it.
37860         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37861         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37862         Use it.
37863         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37864         (iconv_open): Use it.
37865         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37866         (strtoimax, strtoumax): Use it.
37867         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37868         (duplocale): Use it.
37869         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37870         (frexp, frexpl): Use it.
37871         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37872         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37873         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37874         (tsearch, tfind, tdelete, twalk): Use it.
37875         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37876         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37877         sigpending): Use it.
37878         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37879         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37880         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37881         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37882         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37883         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37884         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37885         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37886         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37887         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37888         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37889         Use it.
37890         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37891         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37892         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37893         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37894         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37895         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37896         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37897         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37898         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37899         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37900         strtoull, unsetenv): Use it.
37901         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37902         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37903         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37904         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37905         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37906         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37907         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37908         (strcasecmp, strncasecmp): Use it.
37909         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37910         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37911         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37912         rpl_setsockopt): Use it.
37913         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37914         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37915         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37916         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37917         (gettimeofday): Use it.
37918         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37919         (times): Use it.
37920         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37921         (uname): Use it.
37922         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37923         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37924         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37925         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37926         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37927         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37928         unlinkat, write): Use it.
37929         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37930         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37931         * lib/argv-iter.h: Include arg-nonnull.h.
37932         (_ATTRIBUTE_NONNULL_): Remove macro.
37933         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37934         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37935         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37936         optimization.
37937         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37938         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37939         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37940         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37941         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37942         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37943         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37944         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37945         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37946         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37947         * modules/dirent (Depends-on): Add arg-nonnull.
37948         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37949         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37950         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37951         * modules/fnmatch (Depends-on): Add arg-nonnull.
37952         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37953         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37954         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37955         * modules/glob (Depends-on): Add arg-nonnull.
37956         (Makefile.am): Insert arg-nonnull.h into glob.h.
37957         * modules/iconv_open (Depends-on): Add arg-nonnull.
37958         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37959         * modules/inttypes (Depends-on): Add arg-nonnull.
37960         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37961         * modules/locale (Depends-on): Add arg-nonnull.
37962         (Makefile.am): Insert arg-nonnull.h into locale.h.
37963         * modules/math (Depends-on): Add arg-nonnull.
37964         (Makefile.am): Insert arg-nonnull.h into math.h.
37965         * modules/netdb (Depends-on): Add arg-nonnull.
37966         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37967         * modules/search (Depends-on): Add arg-nonnull.
37968         (Makefile.am): Insert arg-nonnull.h into search.h.
37969         * modules/signal (Depends-on): Add arg-nonnull.
37970         (Makefile.am): Insert arg-nonnull.h into signal.h.
37971         * modules/spawn (Depends-on): Add arg-nonnull.
37972         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37973         * modules/stdio (Depends-on): Add arg-nonnull.
37974         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37975         * modules/stdlib (Depends-on): Add arg-nonnull.
37976         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37977         * modules/string (Depends-on): Add arg-nonnull.
37978         (Makefile.am): Insert arg-nonnull.h into string.h.
37979         * modules/strings (Depends-on): Add arg-nonnull.
37980         (Makefile.am): Insert arg-nonnull.h into strings.h.
37981         * modules/sys_socket (Depends-on): Add arg-nonnull.
37982         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37983         * modules/sys_stat (Depends-on): Add arg-nonnull.
37984         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37985         * modules/sys_time (Depends-on): Add arg-nonnull.
37986         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37987         * modules/sys_times (Depends-on): Add arg-nonnull.
37988         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37989         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37990         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37991         * modules/time (Depends-on): Add arg-nonnull.
37992         (Makefile.am): Insert arg-nonnull.h into time.h.
37993         * modules/unistd (Depends-on): Add arg-nonnull.
37994         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37995         * modules/wchar (Depends-on): Add arg-nonnull.
37996         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37997         * modules/argv-iter (Depends-on): Add arg-nonnull.
37998         * tests/test-canonicalize.c (null_ptr): New function.
37999         (main): Use it.
38000         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38001         (main): Use it.
38002         * tests/test-memmem.c (null_ptr): New function.
38003         (main): Use it.
38004         Reported by Jim Meyering.
38005
38006 2009-12-10  Bruno Haible  <bruno@clisp.org>
38007
38008         Use spaces for indentation, not tabs.
38009         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38010         * m4/*.m4: Untabify.
38011         * build-aux/*.h: Untabify.
38012         * tests/**/*.[hc]: Untabify.
38013         * README: New section "Indent with spaces, not TABs", based on
38014         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38015         * NEWS: Mention the change.
38016
38017 2009-12-10  Bruno Haible  <bruno@clisp.org>
38018
38019         pty test: Fix link error.
38020         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38021         test_pty_LDADD.
38022
38023 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38024
38025         * modules/pty: New file.
38026         * modules/pty-tests: New file.
38027         * m4/pty.m4: New file.
38028         * tests/test-pty.c: New file.
38029         * doc/glibc-headers/pty.texi: Modified.
38030         * doc/glibc-functions/forkpty.texi: Modified.
38031         * doc/glibc-functions/openpty.texi: Modified.
38032
38033 2009-12-10  Bruno Haible  <bruno@clisp.org>
38034
38035         Avoid syntax error in C++ mode.
38036         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38037
38038 2009-12-10  Bruno Haible  <bruno@clisp.org>
38039
38040         Use sed with option -e.
38041         * gnulib-tool (func_version, func_emit_copyright_notice,
38042         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38043         option -e to sed.
38044         * modules/link-warning (Makefile.am): Likewise.
38045
38046 2009-12-10  Jim Meyering  <meyering@redhat.com>
38047
38048         mgetgroups: do not write bytes beyond end of malloc'd buffer
38049         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38050         username, we call getgroups with a one-element-shorter buffer,
38051         but still told it the length was original, max_n_groups.
38052
38053 2009-12-09  Eric Blake  <ebb9@byu.net>
38054
38055         cloexec: relax license
38056         * modules/cloexec (Maintainer): Add myself.
38057         (License): Use LGPL, not GPL.
38058
38059         link-warning: optimize generation
38060         * modules/link-warning (Makefile.am): Reduce process usage.
38061
38062 2009-12-09  Bruno Haible  <bruno@clisp.org>
38063
38064         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38065         workaround was added on 2009-11-17.
38066
38067 2009-12-09  Jim Meyering  <meyering@redhat.com>
38068             Bruno Haible  <bruno@clisp.org>
38069
38070         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38071         * modules/link-warning (Makefile.am): Make the comment-removing sed
38072         command more robust in the face of bootstrap-prepended comment lines.
38073
38074 2009-12-09  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38077         most one group.
38078
38079 2009-12-09  Simon Josefsson <simon@josefsson.org>
38080             Bruno Haible  <bruno@clisp.org>
38081
38082         * build-aux/link-warning.h: Add copyright notice.
38083         * modules/link-warning (Makefile.am): Generate link-warning.h from
38084         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38085         * NEWS: Mention change in link-warning module.
38086         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38087         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38088         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38089         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38090         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38091         * modules/math (Makefile.am): Add dependency to math.h.
38092         * modules/search (Makefile.am): Add dependency to search.h.
38093         * modules/signal (Makefile.am): Add dependency to signal.h.
38094         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38095         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38096         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38097         * modules/string (Makefile.am): Add dependency to string.h.
38098         * modules/strings (Makefile.am): Add dependency to strings.h.
38099         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38100         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38101         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38102         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38103         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38104         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38105         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38106         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38107         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38108
38109 2009-12-09  Bruno Haible  <bruno@clisp.org>
38110
38111         fchdir: Optimize away rpl_fstat when possible.
38112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38113         REPLACE_OPEN_DIRECTORY.
38114         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38115
38116 2009-12-09  Bruno Haible  <bruno@clisp.org>
38117
38118         * lib/fchdir.c: Update comment.
38119
38120 2009-12-09  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38123
38124 2009-12-08  Eric Blake  <ebb9@byu.net>
38125
38126         fchdir: avoid memory leak on re-registration.
38127         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38128
38129 2009-12-08  Jim Meyering  <meyering@redhat.com>
38130
38131         init.sh: avoid Solaris 10 /bin/sh portability problem
38132         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38133         sourced script:
38134           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38135           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38136           bar
38137         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38138         and two tests used that idiom.
38139         * tests/init.sh: Update suggested usage comments.
38140         (path_prepend_): New function, to be used in place
38141         of the --src-path=DIR option.
38142         (setup_): Move PATH-prepending code into path_prepend_.
38143         * tests/test-pread.sh: Adapt to new usage.
38144         * tests/test-xalloc-die.sh: Likewise.
38145
38146 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38147
38148         * doc/gnulib.texi (Glibc pty.h): Add.
38149         * doc/glibc-functions/forkpty.texi: Add.
38150         * doc/glibc-functions/openpty.texi: Add.
38151         Suggested by Bruno Haible.
38152
38153 2009-12-08  Eric Blake  <ebb9@byu.net>
38154
38155         fchdir: fix logic bugs
38156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38157         * tests/test-fchdir.c (main): Enhance test.
38158         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38159         is in use.
38160
38161         dup2: fix logic bugs
38162         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38163         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38164         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38165         exists.
38166         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38167
38168 2009-12-07  Eric Blake  <ebb9@byu.net>
38169
38170         unlink: fix m4 detection
38171         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38172
38173         unistd-safer: add unit test
38174         * modules/unistd-safer-tests: New file.
38175         * tests/test-dup-safer.c: Likewise.
38176         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38177         * tests/test-dup2.c (setmode): Likewise.
38178         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38179
38180         cloexec: preserve text vs. binary across dup_cloexec
38181         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38182         mode.
38183         * modules/dup2-tests (Depends-on): Add binary-io.
38184         * modules/cloexec-tests (Depends-on): Likewise.
38185         * tests/test-dup2.c (setmode, is_mode): New helpers.
38186         (main): Add tests that translation mode is preserved.
38187         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38188         Reported by Bruno Haible.
38189
38190         mgetgroups: reduce duplicate listings
38191         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38192         resulting array.
38193         * tests/test-chown.h (test_chown): Simplify client.
38194         * tests/test-lchown.h (test_lchown): Likewise.
38195
38196 2009-12-06  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38199         value.
38200
38201 2009-12-06  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/progname.c: Include stdio.h, stdlib.h.
38204         (set_program_name): Reject a NULL argument.
38205
38206 2009-12-05  Eric Blake  <ebb9@byu.net>
38207
38208         pipe2-safer: new module
38209         * modules/pipe2-safer: New file.
38210         * lib/unistd-safer.h (pipe2_safer): New prototype.
38211         * lib/unistd--.h (pipe2): New wrapper.
38212         * lib/pipe-safer.c (pipe2_safer): New function.
38213         * modules/pipe (Depends-on): Add pipe2-safer.
38214         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38215
38216         stdlib-safer: preserve cloexec flag for mkostemp[s]
38217         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38218         fd_safer_flag.
38219
38220         unistd-safer: allow preservation of cloexec status via flag
38221         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38222         prototypes.
38223         * lib/dup-safer.c (dup_safer_flag): New function.
38224         * lib/fd-safer.c (fd_safer_flag): Likewise.
38225         * modules/cloexec (configure.ac): Set witness.
38226
38227         test-dup2: enhance test
38228         * modules/dup2-tests (Depends-on): Add cloexec.
38229         * tests/test-dup2.c (main): Enhance test.
38230
38231         cloexec: add dup_cloexec
38232         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38233         header and comments.
38234         * lib/cloexec.c (set_cloexec_flag): Add comments.
38235         (dup_cloexec): New function, with mingw implementation borrowed
38236         from...
38237         * lib/w32spawn.h (dup_noinherit): ...here.
38238         * modules/execute (Depends-on): Add cloexec.
38239         * modules/pipe (Depends-on): Likewise.
38240         * modules/cloexec (Depends-on): Add dup2.
38241         * modules/cloexec-tests (Files): New file.
38242         * tests/test-cloexec.c: Likewise.
38243
38244         test-xalloc-die: fix test for mingw
38245         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38246         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38247         directory and .exe suffix off argv[0] output.
38248
38249         test-fseeko: fix test for mingw
38250         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38251         than undefining fseek, so test will pass on mingw.
38252
38253 2009-12-05  Bruno Haible  <bruno@clisp.org>
38254
38255         * lib/progname.h (set_program_name): Clarify specification.
38256         * lib/progname.c (set_program_name): Likewise.
38257         Reported by Jim Meyering.
38258
38259 2009-12-05  Jim Meyering  <meyering@redhat.com>
38260
38261         maint.mk: backslash-escape parens in default regexp
38262         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38263         backslash-escape the literal parentheses.
38264
38265         maint.mk: news-date-check: use grep -E
38266         * top/maint.mk (today): Define a Make variable, not a...
38267         (news-date-check): ...shell variable.
38268         (news-date-regexp): Use the Make variable.
38269         Use grep's -E option.  Change the failing diagnostic to mention
38270         the variable, $(news-date-regexp).
38271
38272 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38273
38274         maintainer-makefile: allow customization of NEWS entry format
38275         * top/maint.mk (news-date-regexp): New overridable variable.
38276         (news-date-check): Use it.
38277
38278 2009-12-04  Eric Blake  <ebb9@byu.net>
38279
38280         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38281         * lib/mgetgroups.h (xgetgroups): New prototype.
38282         * lib/mgetgroups.c (xgetgroups): New wrapper.
38283         (mgetgroups): Handle ENOSYS.
38284         * modules/mgetgroups (Depends-on): Add realloc.
38285         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38286
38287         mgetgroups: avoid argument promotion issues with -1
38288         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38289         for invalid gid_t.
38290         * tests/test-chown.h (getegid, test_chown): Likewise.
38291         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38292
38293 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38294
38295         exclude: Fix header file problems.
38296         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38297
38298 2009-12-01  Jim Meyering  <meyering@redhat.com>
38299
38300         fts: fts_open: do not let an empty string cause immediate failure
38301         This is required in support of GNU rm, for which the command
38302         "rm A '' B" must process and remove both A and B, in spite of
38303         the empty string argument.
38304         * lib/fts.c (fts_open): Do not let the presence of an empty string
38305         cause fts_open to fail immediately.  Most fts-using tools must be
38306         able to process all arguments, in order, and can be expected to
38307         diagnose such arguments themselves.
38308
38309 2009-11-30  Eric Blake  <ebb9@byu.net>
38310
38311         utimens: fix compilation error
38312         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38313         Declare variable at right scope.
38314
38315 2009-11-29  Jim Meyering  <meyering@redhat.com>
38316
38317         bootstrap: handle perl-5.11's changed --version output
38318         * build-aux/bootstrap (get_version): Handle perl separately,
38319         since perl-5.11's --version output is different.
38320
38321 2009-11-28  Jim Meyering  <meyering@redhat.com>
38322
38323         userspec: depend on the inttostr module, too
38324         * modules/userspec (Depends-on): Add inttostr.
38325
38326         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38327         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38328         number of MAXUID when it evaluates to (uid_t) -1.
38329         Likewise for group ID.  Reported by Matt McCutchen in
38330         <http://savannah.gnu.org/bugs/?28113>
38331
38332         userspec: reformat to use spaces, not TABs
38333         * lib/userspec.c: Expand TABs to spaces.
38334         Add Emacs' "indent-tabs-mode: nil" hint.
38335
38336 2009-11-27  Eric Blake  <ebb9@byu.net>
38337
38338         getopt-gnu: flush out another BSD bug
38339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38340         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38341         flush out BSD bug.
38342         * tests/test-getopt.h (test_getopt): End lists with NULL.
38343         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38344         (test_getopt_long_posix): Enhance test.
38345         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38346         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38347         getopt-gnu.
38348         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38349         Likewise.
38350
38351 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38352
38353         * modules/idpriv-droptemp-tests (Notice): Fix text.
38354
38355 2009-11-27  Jim Meyering  <meyering@redhat.com>
38356
38357         test-xalloc-die: avoid spurious failure due to libtool argv difference
38358         In a libtool-enabled project, this test would fail due to a difference
38359         in the emitted program name, e.g.,
38360         -test-xalloc-die: memory exhausted
38361         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38362         Use program to avoid that.
38363         * modules/xalloc-die-tests (Depends-on): Add progname.
38364         * tests/test-xalloc-die.c: Include progname.h".
38365         (program_name): Remove decl.
38366         (main): Call set_program_name.
38367         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38368
38369 2009-11-26  Richard Jones  <rjones@redhat.com>
38370
38371         w32sock: leave win32 error in place.
38372         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38373
38374 2009-11-26  Eric Blake  <ebb9@byu.net>
38375
38376         init.sh: suggest to use skip_ and fail_ functions in comments
38377         * tests/init.sh: Add a sentence.
38378
38379 2009-11-25  Bruno Haible  <bruno@clisp.org>
38380
38381         init.sh: add documentation in comments
38382         * tests/init.sh: Add some developer and user documentation.
38383
38384 2009-11-26  Jim Meyering  <meyering@redhat.com>
38385
38386         init.sh: accommodate even those who specify bogus srcdir manually
38387         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38388         configure-time tests to be sanitized, so that there is no need to
38389         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38390         (with no double quotes) suffices.  However, since tests may be
38391         invoked manually, and since you may explicitly set srcdir to the
38392         name of a directory containing spaces, do quote its uses here.
38393         * tests/test-pread.sh: Likewise.
38394         Suggested by Bruno Haible.
38395
38396         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38397         * tests/test-pread.sh: Write no data into the pipe, because
38398         test-pread actually reads none.  This avoids a diagnostic,
38399         "bash: echo: write error: Broken pipe", that arises in the unusual
38400         event something is ignoring SIGPIPE, and might be interpreted
38401         as some sort of failure.  Reported by Bruno Haible.
38402
38403 2009-11-25  Jim Meyering  <meyering@redhat.com>
38404
38405         test-pread: cover failure with ESPIPE and EINVAL
38406         * tests/test-pread.c (main): Test for failure, too.
38407         * tests/test-pread.sh: Invoke with stdin on a pipe.
38408         Suggested by Eric Blake.
38409
38410         pread: improvement and fix
38411         * modules/pread (Depends-on): Depend on lseek, for portability to
38412         e.g., mingw.  Suggested by Eric Blake.
38413         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38414
38415         unistd.in.h: correct declaration of pread
38416         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38417         Reported by Richard W.M. Jones.
38418
38419         test-pread.sh: distribute the test script
38420         * modules/pread-tests (Files): Include test-pread.sh.
38421
38422         test-pread.sh: clean up
38423         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38424         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38425         That is unnecessary, since it's always ".".
38426         Suggestion from Eric Blake.
38427
38428         test-pread.sh: make executable
38429         * tests/test-pread.sh: Set executable bit.
38430         Reported by Eric Blake.
38431
38432         correct typo in test-pread.sh
38433         * tests/test-pread.sh: Add #! line.
38434
38435         test pread
38436         * tests/test-pread.c: New file.
38437         * tests/test-pread.sh: Likewise.
38438         * modules/pread-tests: Likewise.
38439
38440         pread: new module
38441         * modules/pread: New file.
38442         * lib/unistd.in.h (pread): Define/declare.
38443         * lib/pread.c (pread): New file.
38444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38445         * modules/unistd (Makefile.am): Substitute witnesses.
38446         * doc/posix-functions/pread.texi (pread): Update.
38447         * MODULES.html.sh: Add pread.
38448
38449 2009-11-25  Jim Meyering  <meyering@redhat.com>
38450
38451         tests/init.sh: new file to be used via most *.sh tests
38452         * tests/init.sh: New file.
38453
38454 2009-11-25  Eric Blake  <ebb9@byu.net>
38455
38456         utimens: work around older Linux failure with symlinks
38457         * lib/utimens.c (lutimensat_works_really): New variable.
38458         (fdutimens, lutimens): Use it to manage kernels that support
38459         nanosecond times on files, but not on symlinks.
38460         Reported by OndÅ™ej Vašík.
38461
38462         utimes: fix configure grammar
38463         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38464
38465 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38466
38467         regex: Fix fastmap for multibyte character ranges.
38468         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38469         characters when a multibyte character range is included.
38470
38471 2009-11-22  Andy Wingo  <wingo@pobox.com>
38472
38473         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38474         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38475
38476 2009-11-24  Bruno Haible  <bruno@clisp.org>
38477
38478         doc: Most *_l functions exist in MacOS X 10.5.
38479         * doc/posix-functions/duplocale.texi: Update platforms list.
38480         * doc/posix-functions/freelocale.texi: Likewise.
38481         * doc/posix-functions/newlocale.texi: Likewise.
38482         * doc/posix-functions/uselocale.texi: Likewise.
38483         * doc/posix-functions/isalnum_l.texi: Likewise.
38484         * doc/posix-functions/isalpha_l.texi: Likewise.
38485         * doc/posix-functions/isblank_l.texi: Likewise.
38486         * doc/posix-functions/iscntrl_l.texi: Likewise.
38487         * doc/posix-functions/isdigit_l.texi: Likewise.
38488         * doc/posix-functions/isgraph_l.texi: Likewise.
38489         * doc/posix-functions/islower_l.texi: Likewise.
38490         * doc/posix-functions/isprint_l.texi: Likewise.
38491         * doc/posix-functions/ispunct_l.texi: Likewise.
38492         * doc/posix-functions/isspace_l.texi: Likewise.
38493         * doc/posix-functions/isupper_l.texi: Likewise.
38494         * doc/posix-functions/iswalnum_l.texi: Likewise.
38495         * doc/posix-functions/iswalpha_l.texi: Likewise.
38496         * doc/posix-functions/iswblank_l.texi: Likewise.
38497         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38498         * doc/posix-functions/iswctype_l.texi: Likewise.
38499         * doc/posix-functions/iswdigit_l.texi: Likewise.
38500         * doc/posix-functions/iswgraph_l.texi: Likewise.
38501         * doc/posix-functions/iswlower_l.texi: Likewise.
38502         * doc/posix-functions/iswprint_l.texi: Likewise.
38503         * doc/posix-functions/iswpunct_l.texi: Likewise.
38504         * doc/posix-functions/iswspace_l.texi: Likewise.
38505         * doc/posix-functions/iswupper_l.texi: Likewise.
38506         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38507         * doc/posix-functions/isxdigit_l.texi: Likewise.
38508         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38509         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38510         * doc/posix-functions/strcoll_l.texi: Likewise.
38511         * doc/posix-functions/strfmon_l.texi: Likewise.
38512         * doc/posix-functions/strftime_l.texi: Likewise.
38513         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38514         * doc/posix-functions/strxfrm_l.texi: Likewise.
38515         * doc/posix-functions/tolower_l.texi: Likewise.
38516         * doc/posix-functions/toupper_l.texi: Likewise.
38517         * doc/posix-functions/towctrans_l.texi: Likewise.
38518         * doc/posix-functions/towlower_l.texi: Likewise.
38519         * doc/posix-functions/towupper_l.texi: Likewise.
38520         * doc/posix-functions/wcscoll_l.texi: Likewise.
38521         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38522         * doc/posix-functions/wctrans_l.texi: Likewise.
38523         * doc/posix-functions/wctype_l.texi: Likewise.
38524         * doc/glibc-functions/strptime_l.texi: Likewise.
38525         * doc/glibc-functions/strtod_l.texi: Likewise.
38526         * doc/glibc-functions/strtof_l.texi: Likewise.
38527         * doc/glibc-functions/strtol_l.texi: Likewise.
38528         * doc/glibc-functions/strtold_l.texi: Likewise.
38529         * doc/glibc-functions/strtoll_l.texi: Likewise.
38530         * doc/glibc-functions/strtoul_l.texi: Likewise.
38531         * doc/glibc-functions/strtoull_l.texi: Likewise.
38532         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38533         * doc/glibc-functions/wcstod_l.texi: Likewise.
38534         * doc/glibc-functions/wcstof_l.texi: Likewise.
38535         * doc/glibc-functions/wcstol_l.texi: Likewise.
38536         * doc/glibc-functions/wcstold_l.texi: Likewise.
38537         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38538         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38539         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38540
38541 2009-11-24  Bruno Haible  <bruno@clisp.org>
38542
38543         duplocale: Fix logic bug.
38544         * lib/duplocale.c: Don't include <langinfo.h>.
38545         (_NL_LOCALE_NAME): Remove macro.
38546         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38547         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38548
38549 2009-11-23  Jim Meyering  <meyering@redhat.com>
38550
38551         test-update-copyright: don't hard-code /usr/bin/perl
38552         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38553         perl to print the current year.  Gilles Espinasse reported that
38554         the replaced use of perl was hard-coded as /usr/bin/perl.
38555
38556 2009-11-23  Bruno Haible  <bruno@clisp.org>
38557
38558         duplocale: Add support for glibc 2.3.x.
38559         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38560
38561 2009-11-22  Bruno Haible  <bruno@clisp.org>
38562
38563         vasnprintf: Tiny optimization.
38564         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38565         MacOS X.
38566
38567 2009-11-22  Bruno Haible  <bruno@clisp.org>
38568
38569         Tests for module 'duplocale'.
38570         * modules/duplocale-tests: New file.
38571         * tests/test-duplocale.c: New file.
38572
38573         New module 'duplocale'.
38574         * m4/duplocale.m4: New file.
38575         * lib/locale.in.h (duplocale): New declaration.
38576         * lib/duplocale.c: New file.
38577         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38578         gl_LOCALE_H_DEFAULTS): New macros.
38579         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38580         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38581         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38582         REPLACE_DUPLOCALE.
38583         * modules/duplocale: New file.
38584         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38585
38586 2009-11-22  Bruno Haible  <bruno@clisp.org>
38587
38588         * modules/locale-tests (configure.ac): Test for newlocale function.
38589         * tests/test-locale.c: When the system has extended locale functions,
38590         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38591
38592         locale: Make locale_t available when possible.
38593         * lib/locale.in.h: Include <xlocale.h> when it exists.
38594         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38595         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38596         * modules/locale (Depends-on): Add extensions.
38597         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38598         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38599
38600 2009-11-22  Bruno Haible  <bruno@clisp.org>
38601
38602         Add comments.
38603         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38604         invocation.
38605         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38606         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38607         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38608
38609 2009-11-22  Bruno Haible  <bruno@clisp.org>
38610
38611         error: account for the possibility of freopen (stdout).
38612         * lib/error.c: Include <unistd.h>.
38613         (flush_stdout): New function, extracted from error and error_at_line.
38614         Determine stdout's fd dynamically.
38615         (error, error_at_line): Invoke flush_stdout.
38616         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38617         * modules/error (Depends-on): Add unistd.
38618
38619 2009-11-22  Bruno Haible  <bruno@clisp.org>
38620
38621         diffseq: Add comment.
38622         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38623
38624 2009-11-22  Jim Meyering  <meyering@redhat.com>
38625
38626         c-stack: avoid defining an unused static function
38627         * lib/c-stack.c (find_stack_direction): Do not define this function
38628         when it will not be used.
38629
38630         diffseq: avoid spurious gcc warnings
38631         * lib/diffseq.h (IF_LINT2): Define.
38632         (compareseq): Use it to initialize two members of "part".
38633         This avoids two used-uninitialized warnings.
38634
38635 2009-11-21  Jim Meyering  <meyering@redhat.com>
38636
38637         c-stack: avoid "ignoring return value of `write'" warning
38638         * lib/c-stack.c: Include "ignore-value.h".
38639         (die): Explicitly ignore each write return value.
38640         * modules/c-stack (Depends-on): Add ignore-value.
38641
38642 2009-11-21  Bruno Haible  <bruno@clisp.org>
38643
38644         diffseq: reduce scope of variable 'best'.
38645         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38646         variable, earlier used for two different purposes.
38647
38648 2009-11-21  Jim Meyering  <meyering@redhat.com>
38649
38650         diffseq: remove useless assignment to "best"
38651         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38652         assignment.  At that point "best" is already guaranteed to be zero.
38653
38654 2009-11-20  Eric Blake  <ebb9@byu.net>
38655
38656         build: mention ftp redirector in release announcements
38657         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38658         values that used to come from cfg.mk; mention FTP redirect URL.
38659         * build-aux/announce-gen: Mention the mirror list.
38660         Suggested by Karl Berry.
38661
38662         nanosleep: improve port to mingw
38663         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38665         LIB_NANOSLEEP, but only when needed.
38666         * modules/select (Link): Document LIBSOCKET.
38667         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38668         enough.
38669
38670         nanosleep: work around cygwin bug
38671         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38672         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38673         bug.
38674         (getnow): Delete, not needed.
38675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38676         LIB_CLOCK_GETTIME.
38677         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38678         clock-time, gettime.
38679         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38680         bug.
38681         * modules/nanosleep-tests: New test.
38682         * tests/test-nanosleep.c: New file.
38683
38684         sleep: work around cygwin bug
38685         * lib/sleep.c (rpl_sleep): Work around the bug.
38686         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38687         (gl_PREREQ_SLEEP): Delete unused macro.
38688         * modules/sleep (Depends-on): Add verify.
38689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38690         * modules/unistd (Makefile.am): Substitute witness.
38691         * lib/unistd.in.h (sleep): Update prototype.
38692         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38693         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38694         * modules/sleep-tests (Depends-on): Check for alarm.
38695
38696 2009-11-20  Jim Meyering  <meyering@redhat.com>
38697
38698         maint.mk: improve sc_prohibit_magic_number_exit
38699         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38700         so it does not match uses like System.exit(1).
38701         Add comments showing how to correct all offenders.
38702
38703 2009-11-19  Eric Blake  <ebb9@byu.net>
38704
38705         xalloc-die-tests: add missing library
38706         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38707
38708         test-xvasprintf: silence compiler warnings
38709         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38710         empty string from gcc.
38711
38712 2009-11-19  Jim Meyering  <meyering@redhat.com>
38713
38714         xfreopen: new module, from coreutils
38715         * modules/xfreopen: New module.
38716         * lib/xfreopen.c: New file.
38717         * lib/xfreopen.h: New file.
38718         * MODULES.html.sh (File stream based Input/Output"): Add it.
38719
38720 2009-11-19  Eric Blake  <ebb9@byu.net>
38721
38722         manywarnings: depend on warnings
38723         * modules/manywarnings (Depends-on): Add warnings.
38724
38725         build: avoid compiler warnings
38726         * lib/select.c (rpl_select): Delete unused variable.
38727         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38728
38729 2009-11-18  Eric Blake  <ebb9@byu.net>
38730
38731         tests: avoid false negative with --with-packager
38732         * tests/test-version-etc.sh: Discard packager information.
38733         * tests/test-argp-version-etc-1.sh: Likewise.
38734         Reported by Mike Frysinger.
38735
38736         utimens: fix regression on Solaris
38737         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38738         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38739         can only change fd timestamps via futimesat.  Instead, use an
38740         additional witness macro to avoid BSD bug.
38741         Reported by Jim Meyering.
38742
38743 2009-11-17  Eric Blake  <ebb9@byu.net>
38744
38745         usleep: use it to simplify tests
38746         * modules/stat-time-tests (Depends-on): Add usleep.
38747         (configure.ac): Drop usleep check.
38748         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38749         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38750         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38751         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38752         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38753         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38754         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38755         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38756         Likewise.
38757         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38758         * tests/test-lchown.h (nap): Likewise.
38759         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38760         * tests/test-stat-time.c (nap): Likewise.
38761         * tests/test-utimens-common.h (nap): Update comments.
38762
38763         usleep: new module
38764         * modules/usleep: New file.
38765         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38766         * lib/usleep.c (usleep): Likewise.
38767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38768         * modules/unistd (Makefile.am): Substitute witnesses.
38769         * lib/unistd.in.h (usleep): Add declaration.
38770         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38771         * MODULES.html.sh (Date and time): Likewise.
38772         * modules/usleep-tests (Depends-on): New test.
38773         * tests/test-usleep.c: New file.
38774
38775         chown: work around OpenBSD bug
38776         * lib/chown.c (rpl_chown): Work around the bug.
38777         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38778         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38779         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38780         * modules/chown (Depends-on): Add stdbool.
38781         * modules/lchown (Depends-on): Likewise.
38782         * doc/posix-functions/chown.texi (chown): Document the bug.
38783         * doc/posix-functions/lchown.texi (lchown): Likewise.
38784         * tests/test-lchown.h (test_chown): Relax test.
38785
38786         mkstemp: avoid conflict with C++ keyword template
38787         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38788         * lib/mkostemp.c (mkostemp): Likewise.
38789         * lib/mkostemps.c (mkostemps): Likewise.
38790         * lib/mkstemp.c (mkstemp): Likewise.
38791         * lib/mkstemps.c (mkstemps): Likewise.
38792
38793         xalloc-die-tests: optimize
38794         * tests/test-xalloc-die.sh: Reduce number of processes.
38795
38796 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38797
38798         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38799         patch from ludo@gnu.org (Ludovic Courtès).
38800
38801 2009-11-17  Jim Meyering  <meyering@redhat.com>
38802
38803         version-etc: use proper license string
38804         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38805         * modules/version-etc-fsf: Likewise.
38806
38807 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38808
38809         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38810         printed to stdout.  Deal with EOL differences.
38811
38812 2009-11-17  Eric Blake  <ebb9@byu.net>
38813
38814         unsetenv: work around Solaris bug
38815         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38816         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38817         Reported by Jim Meyering.
38818
38819         vasnprintf: avoid compiler warnings
38820         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38821         variables.
38822         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38823
38824 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38825
38826         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38827         settings since xalloc-die is no longer the self test,
38828         xalloc-die.sh is.
38829
38830 2009-11-17  Jim Meyering  <meyering@redhat.com>
38831
38832         test-xalloc-die.sh: make the code agree with the commit log
38833         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38834         at the end, just in case you happen to have a test-xalloc-die
38835         program in some other PATH directory.
38836
38837         test-xalloc-die.sh: fix a portability bug
38838         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38839         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38840         Otherwise, argv[0] (as often seen in diagnostics) would be too
38841         system-dependent, sometimes with, and sometimes without the leading "./".
38842
38843         version-etc-fsf: relax license to LGPLv3+
38844         * modules/version-etc-fsf (License): Relax license.
38845
38846 2009-11-16  Eric Blake  <ebb9@byu.net>
38847
38848         xalloc-die-tests: avoid printing null pointer
38849         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38850         shell script.
38851         * tests/test-xalloc-die.c (program_name): Declare.
38852         * tests/test-xalloc-die.sh (tmpfiles): New file.
38853
38854         setenv, unsetenv: work around various bugs
38855         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38856         (setenv) [HAVE_SETENV]: Work around bugs.
38857         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38859         for bugs.
38860         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38861         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38863         * modules/stdlib (Makefile.am): Update substitutions.
38864         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38865         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38866         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38867         * modules/setenv-tests: New test.
38868         * modules/unsetenv-tests: Likewise.
38869         * tests/test-setenv.c: New file.
38870         * tests/test-unsetenv.c: Likewise.
38871
38872 2009-11-16  Jim Meyering  <meyering@redhat.com>
38873
38874         version-etc: relax license to LGPLv3+
38875         * modules/version-etc (License): Relax license.
38876
38877         better AC_REQUIRE expanded-before-required-warning avoidance
38878         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38879         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38880         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38881         which is no longer needed.
38882
38883 2009-11-16  Eric Blake  <ebb9@byu.net>
38884
38885         test-freading: clean up temporary file
38886         * tests/test-freading.c (main): Remove file on success, and use
38887         ASSERT more liberally.
38888         Reported by Jim Meyering.
38889
38890 2009-11-16  Jim Meyering  <meyering@redhat.com>
38891
38892         avoid new AC_REQUIRE expanded-before-required warnings
38893         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38894         merely using it.
38895         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38896         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38897
38898 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38899
38900         * tests/test-xalloc-die.c: New file.
38901         * modules/xalloc-die-tests: New file.
38902         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38903         XFAIL_TESTS so it can be appended by modules.
38904
38905 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38906
38907         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38908         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38909
38910 2009-11-14  Eric Blake  <ebb9@byu.net>
38911
38912         fnmatch: avoid compiler warning
38913         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38914         to silence compiler warning about mismatch signedness in ?:.
38915         Reported by Robert Millan.
38916
38917         intprops: add double-inclusion guard
38918         * lib/intprops.h: Allow idempotent includes.
38919         Suggested by Bruce Korb.
38920
38921         openat: detect Solaris fchownat bug
38922         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38923         penalizing glibc chownat when only lchownat is broken.
38924         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38925         trailing slash bugs.
38926         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38927         * modules/openat-tests (Files): Include more files.
38928         (Depends-on): Add mgetgroups, sleep, stat-time.
38929         (configure.ac): Add additional checks.
38930         (Makefile.am): Build new test.
38931         * tests/test-fchownat.c: New file.
38932
38933         lchown: detect Solaris and FreeBSD bug
38934         * lib/lchown.c (rpl_lchown): Work around bug.
38935         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38937         * modules/unistd (Makefile.am): Populate it.
38938         * lib/unistd.in.h (lchown): Update declaration.
38939         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38940         * modules/lchown-tests: New file.
38941         * tests/test-lchown.h (test_lchown): Likewise.
38942         * tests/test-lchown.c (main): Likewise.
38943
38944         chown: detect Solaris and FreeBSD bug
38945         * lib/chown.c (rpl_chown): Work around bug.
38946         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38947         (gl_PREREQ_CHOWN): Delete.
38948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38949         * modules/unistd (Makefile.am): Populate it.
38950         * lib/unistd.in.h (chown): Update declaration.
38951         * lib/lchown.c (chown): Update client.
38952         * modules/lchown (Depends-on): Add lstat.
38953         * doc/posix-functions/chown.texi (chown): Document the bug.
38954         * doc/posix-functions/getgroups.texi (getgroups): Document
38955         getgroups pitfall.
38956         * modules/chown-tests: New file.
38957         * tests/test-chown.h (test_chown): Likewise.
38958         * tests/test-chown.c (main): Likewise.
38959
38960 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38961
38962         gnulib-tool: correctly detect absence of m4 directories
38963         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38964
38965 2009-11-14  Jim Meyering  <meyering@redhat.com>
38966
38967         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38968         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38969
38970 2009-11-14  John W. Eaton  <jwe@gnu.org>
38971
38972         strftime.h: wrap funtion declaration in extern "C" block
38973         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38974
38975 2009-11-13  Eric Blake  <ebb9@byu.net>
38976
38977         getgroups: avoid compiler warning
38978         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38979
38980         getgroups: work around FreeBSD bug
38981         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38982         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38983         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38984         * tests/test-getgroups.c (main): Fix buffer overrun.
38985
38986         getgroups: avoid compilation failure
38987         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38988         * modules/getgroups (Depends-on): Add stdint.
38989
38990 2009-11-13  Jim Meyering  <meyering@redhat.com>
38991
38992         test-getgroups: avoid compilation failure
38993         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38994
38995 2009-11-13  Eric Blake  <ebb9@byu.net>
38996
38997         mgetgroups: new module, taken from coreutils
38998         * modules/mgetgroups: New file.
38999         * lib/mgetgroups.h: Likewise.
39000         * lib/mgetgroups.c (mgetgroups): Likewise.
39001         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39002         * MODULES.html.sh (Users and groups): Mention it.
39003
39004         getgroups: don't expose GETGROUPS_T to user
39005         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39006         an element at a time if GETGROUPS_T is wrong size.
39007         * lib/getugroups.h (getugroups): Change signature.
39008         * lib/unistd.in.h (getgroups): Likewise.
39009         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39010         signature needs fixing.
39011         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39012         AC_TYPE_GETGROUPS.
39013         * modules/group-member (Depends-on): Add getgroups.
39014         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39015         (group_member): Rely on getgroups replacement.
39016         * lib/getugroups.c (getugroups): Use gid_t.
39017         * tests/test-getgroups.c (main): Likewise.
39018         * NEWS: Mention the signature change.
39019         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39020         problem with signature.
39021         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39022         GETGROUPS_T is still useful for setgroups.
39023
39024         getgroups, getugroups: provide stubs for mingw
39025         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39026         * lib/getugroups.c (getugroups): Likewise.
39027         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39028         function.  Modernize replacement scheme.
39029         (gl_PREREQ_GETGROUPS): Delete.
39030         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39031         * modules/getgroups (configure.ac): Declare witness.
39032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39033         * modules/unistd (Depends-on): Substitute witness.
39034         * lib/unistd.in.h (getgroups): Declare replacement.
39035
39036         getgroups: avoid calling exit
39037         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39038         drop xalloc.
39039         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39040         dependencies.
39041         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39042         exiting, in the rare case of malloc failure.
39043
39044         getgroups: fix logic error
39045         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39046         has more than 20 groups.
39047         * modules/getgroups-tests: New test.
39048         * tests/test-getgroups.c: New file.
39049
39050 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39051
39052         * tests/test-base64.c: Improve.
39053
39054 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39055
39056         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39057         Blake <ebb9@byu.net>.
39058
39059 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39060
39061         * tests/test-xvasprintf.c: Add %s%s related checks.
39062
39063 2009-11-12  Eric Blake  <ebb9@byu.net>
39064
39065         version-etc: match standards.texi style
39066         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39067         and use <> only for URLs.
39068
39069 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39070
39071         fts: do not fail on a submount during traversal
39072         * lib/fts.c (fts_build): Read the stat info again after opening
39073         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39074         Original report at http://bugzilla.redhat.com/501848.
39075
39076 2009-11-12  Jim Meyering  <meyering@redhat.com>
39077
39078         bootstrap: sync from coreutils
39079         * build-aux/bootstrap (bootstrap_epilogue): New function.
39080         Use git_modules_config in one more place.  This make bootstrap's
39081         --gnulib-srcdir option more useful for testing.
39082
39083         bootstrap: generalize autoheader check
39084         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39085         AC_CONFIG_HEADERS.
39086
39087 2009-11-11  Eric Blake  <ebb9@byu.net>
39088
39089         mkfifoat: use new modules for Solaris and BSD bugs
39090         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39091         * lib/mkfifoat.c (mknodat): Split...
39092         * lib/mknodat.c (mknodat): ...into new file.
39093         * modules/mkfifoat (Files): Ship new file.
39094         (Depends-on): Add mkfifo, mknod.
39095         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39096         (Depends-on): Add symlink.
39097         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39098         redundant with test_mkfifo.h.
39099         (do_mkfifoat, do_mknodat): New helpers.
39100
39101         mknod: new module
39102         * modules/mknod: New file.
39103         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39104         * lib/mknod.c (mknod): Likewise.
39105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39106         defaults.
39107         * modules/sys_stat (Makefile.am): Substitute them.
39108         * lib/sys_stat.in.h (mknod): Declare replacement.
39109         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39110         Document it.
39111         * doc/posix-functions/mknod.texi (mknod): Likewise.
39112         * modules/mknod-tests: New test.
39113         * tests/test-mknod.c: Likewise.
39114
39115         mkfifo: new module
39116         * modules/mkfifo: New file.
39117         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39118         * lib/mkfifo.c (mkfifo): Likewise.
39119         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39120         defaults.
39121         * modules/sys_stat (Makefile.am): Substitute them.
39122         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39123         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39124         Document it.
39125         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39126         * modules/mkfifo-tests: New test.
39127         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39128         from test-mkfifoat.c.
39129         * tests/test-mkfifo.c: New file.
39130
39131         readlink: detect FreeBSD bug
39132         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39133         slash on symlink.
39134         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39135         * tests/test-readlink.h (test_readlink): Enhance test.
39136
39137         symlink: detect FreeBSD bug
39138         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39139         slash on symlink.
39140         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39141         * tests/test-symlink.h (test_symlink): Enhance test.
39142
39143 2009-11-10  Eric Blake  <ebb9@byu.net>
39144
39145         link: detect FreeBSD bug
39146         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39147         symlink.
39148         * doc/posix-functions/link.texi (link): Document the bug.
39149         * tests/test-link.h (test_link): Enhance test.
39150         * tests/test-linkat.c (main): Update caller.
39151
39152         unlink, remove: detect FreeBSD bug
39153         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39154         slash on symlink.
39155         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39156         * doc/posix-functions/remove.texi (remove): Likewise.
39157         * tests/test-unlink.h (test_unlink): Enhance test.
39158         * tests/test-remove.c (main): Likewise.
39159
39160 2009-11-09  Eric Blake  <ebb9@byu.net>
39161
39162         rename: detect FreeBSD bug
39163         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39164         slash on symlink.
39165         * modules/renameat-tests (Depends-on): Add filenamecat.
39166         * tests/test-rename.h (test_rename): Allow one more errno.
39167         * tests/test-renameat.c (main): Likewise.
39168         * doc/posix-functions/rename.texi (rename): Document the bug.
39169
39170         open: detect FreeBSD bug
39171         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39172         symlink.
39173         * doc/posix-functions/open.texi (open): Document the bug.
39174         * doc/posix-functions/utimes.texi (utimes): Likewise.
39175         * tests/test-open.h (test_open): Add parameters, and test symlink
39176         handling.
39177         * tests/test-open.c (main): Adjust caller.
39178         * tests/test-fcntl-safer.c (main): Likewise.
39179         * modules/open-tests (Depends-on): Add stdbool, symlink.
39180         * modules/fcntl-safer-tests (Depends-on): Likewise.
39181         * tests/test-openat.c (main): Add test-open tests.
39182
39183         stat: detect FreeBSD bug
39184         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39185         symlink.
39186         * doc/posix-functions/stat.texi (stat): Document the bug.
39187         * tests/test-stat.h (test_stat_func): Add argument.
39188         * tests/test-stat.c (main): Adjust caller.
39189         * tests/test-fstatat.c (main): Likewise.
39190         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39191         Reported by Jim Meyering.
39192
39193 2009-11-09  James Youngman  <jay@gnu.org>
39194
39195         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39196         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39197
39198 2009-11-08  Jim Meyering  <meyering@redhat.com>
39199
39200         utimens: remove invalid futimesat call
39201         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39202         It used the file descriptor of the target file as the DIR_FD
39203         parameter and NULL as the file name.  That caused failure with
39204         errno == EFAULT on FreeBSD-8.0-rc2
39205
39206 2009-11-07  Eric Blake  <ebb9@byu.net>
39207
39208         fflush, freadseek: use fseeko, not fseek
39209         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39210         (clear_ungetc_buffer): Avoid potential problems on large files.
39211         * lib/freadseek.c (freadseek): Likewise.
39212         * modules/freadseek (Depends-on): Add fseeko.
39213         * modules/fseek (configure.ac): Set a witness.
39214         * tests/test-fflush.c (main): Use fseeko.
39215         * tests/test-fpurge.c (fseek): Disable link warning.
39216         * tests/test-freadable.c (fseek): Likewise.
39217         * tests/test-freading.c (fseek): Likewise.
39218         * tests/test-fseeko.c (fseek): Likewise.
39219         * tests/test-ftell.c (fseek): Likewise.
39220         * tests/test-ftello.c (fseek): Likewise.
39221         * tests/test-fwritable.c (fseek): Likewise.
39222         * tests/test-fwriting.c (fseek): Likewise.
39223
39224 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39225
39226         * modules/memchr (Depends-on): Drop getpagesize dependency.
39227
39228 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39229
39230         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39231         Reported by Ludovic Courtès.
39232         * build-aux/pmccabe2html: Improve example usage.
39233         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39234
39235 2009-11-06  Jim Meyering  <meyering@redhat.com>
39236
39237         do-release-commit-and-tag: New module.
39238         Automate the release-commit and tag process.
39239         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39240         * modules/do-release-commit-and-tag: New file.
39241         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39242
39243 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39244
39245         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39246         because test-select.c uses inet_pton.
39247
39248 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39249
39250         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39251         GETADDRINFO_LIB.  Bump serial number.
39252         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39253         Suggested by Eric Blake <ebb9@byu.net>.
39254
39255 2009-11-05  Eric Blake  <ebb9@byu.net>
39256
39257         strtod: detect darwin bug
39258         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39259         Reported by Leo Davis.
39260
39261         freopen-safer: new module
39262         * modules/freopen-safer: New module.
39263         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39264         * lib/freopen-safer.c (freopen_safer): New file.
39265         * lib/stdio-safer.h (freopen_safer): New declaration.
39266         * lib/stdio--.h (freopen): New override.
39267         * MODULES.html.sh (File stream based Input/Output): Mention it.
39268         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39269         freopen-safer module.
39270         * doc/posix-functions/stderr.texi (stderr): Likewise.
39271         * doc/posix-functions/stdin.texi (stdin): Likewise.
39272         * doc/posix-functions/stdout.texi (stdout): Likewise.
39273         * modules/freopen-safer-tests: New test.
39274         * tests/test-reopen-safer.c: New file.
39275
39276 2009-11-05  Jim Meyering  <meyering@redhat.com>
39277
39278         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39279         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39280
39281 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39282
39283         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39284
39285 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39286
39287         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39288
39289 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39290
39291         Fix link error.
39292         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39293         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39294
39295 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39296
39297         * tests/test-func.c: Also test value of __func__.
39298
39299 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39300
39301         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39302         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39303
39304 2009-11-05  Bruno Haible  <bruno@clisp.org>
39305
39306         Fix link error.
39307         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39308         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39309         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39310
39311 2009-11-05  Bruno Haible  <bruno@clisp.org>
39312
39313         Tests for module 'inet_pton'.
39314         * modules/inet_pton-tests: New file.
39315         * tests/test-inet_pton.c: New file.
39316
39317 2009-11-05  Bruno Haible  <bruno@clisp.org>
39318
39319         Tests for module 'inet_ntop'.
39320         * modules/inet_ntop-tests: New file.
39321         * tests/test-inet_ntop.c: New file.
39322
39323 2009-11-04  Eric Blake  <ebb9@byu.net>
39324
39325         stdlib-safer: wrap all mkstemp variants
39326         * modules/mkostemp (configure.ac): Set witness.
39327         * modules/mkostemps (configure.ac): Likewise.
39328         * modules/mkstemps (configure.ac): Likewise.
39329         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39330         (mkstemps_safer): Wrap more functions.
39331         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39332         wrapping.
39333         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39334         (mkstemps_safer): Implement the wrappers.
39335
39336         mkstemps, mkostemps: new modules
39337         * modules/mkostemps: New module.
39338         * modules/mkstemps: Likewise.
39339         * lib/mkostemps.c (mkostemps): New file.
39340         * lib/mkstemps.c (mkstemps): Likewise.
39341         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39342         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39344         * modules/stdlib (Makefile.am): Substitute them.
39345         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39346         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39347         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39348         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39349         * MODULES.html.sh (File system functions): Mention them.
39350
39351         tempname: resync from glibc
39352         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39353         same values for __GT_FILE as glibc.  Abort even when assertions
39354         are disabled.
39355         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39356         match its value otherwise.  Allow idempotent inclusion.
39357         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39358         * lib/mkostemp.c (mkostemp): Likewise.
39359         * lib/mkstemp.c (mkstemp): Likewise.
39360         * lib/tmpfile.c (tmpfile): Likewise.
39361         * NEWS: Document this.
39362
39363         utimens: fix use of futimens on older Linux
39364         * lib/utimens.c (fdutimens): Use updated, rather than original,
39365         timespec to avoid bug in older Linux kernel.
39366         Reported by Simon Josefsson.
39367
39368 2009-11-04  Bruno Haible  <bruno@clisp.org>
39369
39370         Make num_processors more flexible and consistent.
39371         * lib/nproc.h (enum nproc_query): New type.
39372         (num_processors): Add a 'query' argument.
39373         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39374         (num_processors): Add a 'query' argument. Test the value of the
39375         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39376         mingw, count the number of CPUs available for the current process.
39377         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39378         Check for sched_getaffinity and sched_getaffinity_np.
39379         * modules/nproc (Depends-on): Add c-ctype, extensions.
39380         * NEWS: Mention the change.
39381
39382 2009-11-03  Bruno Haible  <bruno@clisp.org>
39383
39384         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39385
39386 2009-11-03  Jim Meyering  <meyering@redhat.com>
39387
39388         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39389         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39390         if it is defined.
39391
39392 2009-11-02  Eric Blake  <ebb9@byu.net>
39393
39394         mktime, timegm: share common declaration
39395         * lib/mktime-internal.h: New file.
39396         * lib/mktime.c: Use it rather than open-coding a declaration.
39397         * lib/timegm.c: Likewise.
39398         * modules/mktime (Files): Ship it.
39399         * modules/timegm (Files): Likewise.
39400         Suggested by Bruno Haible.
39401
39402         test-update-copyright: update test to match script changes
39403         * tests/test-update-copyright.sh: Avoid hard-coding perl
39404         location.  Don't update *.bak created by earlier runs.
39405
39406 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39407             Simon Josefsson  <simon@josefsson.org>
39408             Bruno Haible  <bruno@clisp.org>
39409
39410         Fix link error on Solaris 8.
39411         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39412         also in libnsl. Define also INET_PTON_LIB.
39413         * modules/inet_pton (Link): New section.
39414
39415 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39416             Bruno Haible  <bruno@clisp.org>
39417
39418         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39419         * modules/inet_ntop (Link): New section.
39420         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39421
39422 2009-11-02  Eric Blake  <ebb9@byu.net>
39423
39424         maint: avoid compiler warnings in m4 macros
39425         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39426         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39427
39428 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39429
39430         * m4/pmccabe2html.m4: Remove file.
39431         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39432         function.  Change maintainer.
39433         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39434         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39435         Courtès).
39436
39437 2009-10-31  Eric Blake  <ebb9@byu.net>
39438
39439         fseeko: fix m4 regression
39440         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39441         regression from 2009-10-27.
39442         Reported by Ralf Wildenhues.
39443
39444 2009-10-31  Jim Meyering  <meyering@redhat.com>
39445
39446         inttostr: aesthetics and improved (compile-time) safety
39447         Define inttype_is_signed rather than inttype_is_unsigned,
39448         since the sole use is via "#if inttype_is_signed".
39449         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39450         inttype_is_unsigned.
39451         * lib/offtostr.c (inttype_is_signed): Likewise.
39452         * lib/uinttostr.c (inttype_is_signed): Likewise.
39453         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39454         * lib/inttostr.c (inttostr): Use verify to cross-check the
39455         inttype_is_signed value and the signedness of the actual type.
39456         * modules/inttostr (Depends-on): Add verify.
39457
39458 2009-10-30  Eric Blake  <ebb9@byu.net>
39459
39460         build: avoid compiler warnings
39461         * lib/fchmodat.c (lchmod): Mark unused variables.
39462         * lib/getopt.c (_getopt_initialize): Likewise.
39463         * lib/mktime.c (__mktime_internal): Provide prototype.
39464         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39465         older gcc that do not understand #pragma GCC diagnostic.
39466         * lib/uinttostr.c (inttype_is_unsigned): Define.
39467         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39468
39469 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39470
39471         stat: fix compilation on AIX
39472         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39473         only see struct stat64.
39474
39475 2009-10-30  Eric Blake  <ebb9@byu.net>
39476
39477         exclude: make more robust
39478         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39479         rather than masking a coding bug.
39480         Suggested by Bruno Haible.
39481
39482 2009-10-30  Jim Meyering  <meyering@redhat.com>
39483
39484         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39485         Rather than putting #!/usr/bin/perl on the first line,
39486         start with a variant of what's recommended by "man perlrun" that
39487         invokes the first "perl" program from your shell's search path.
39488         * build-aux/gitlog-to-changelog: Replace #!... as above.
39489         Add a "Local Variables" perl mode setting.
39490         Prompted by a patch from Ludovic Courtès.
39491         Improved by Eric Blake.
39492         * build-aux/useless-if-before-free: Likewise.
39493         * build-aux/announce-gen: Likewise.
39494         * build-aux/update-copyright: Likewise.
39495
39496 2009-10-29  Eric Blake  <ebb9@byu.net>
39497
39498         filenamecat-lgpl: adjust clients
39499         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39500         filenamecat.
39501         * modules/renameat (Depends-on): Likewise.
39502
39503         filenamecat: split into filenamecat-lgpl
39504         * modules/filenamecat-lgpl: New module.
39505         * modules/filenamecat (Files): Move library-safe files into
39506         filenamecat-lgpl.
39507         (Depends-on): Add filenamecat-lgpl.
39508         (configure.ac): Declare witness.
39509         * lib/filenamecat.h (file_name_concat): Only declare when using
39510         GPL module.
39511         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39512         Move...
39513         * lib/filenamecat-lgpl.c: ...into new file.
39514         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39515         (gl_FILE_NAME_CONCAT): Use it.
39516         * MODULES.html.sh (File system functions): Mention new module.
39517
39518         argp: avoid memory leak
39519         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39520         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39521         base_name, since the latter malloc()s and can call exit().
39522         Leak introduced 2006-07-03.
39523
39524         dirname-lgpl: adjust clients that don't need full dirname
39525         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39526         * modules/filenamecat (Depends-on): Likewise.
39527         * modules/linkat (Depends-on): Likewise.
39528         * modules/mkancesdirs (Depends-on): Likewise.
39529         * modules/mkdir (Depends-on): Likewise.
39530         * modules/openat (Depends-on): Likewise.
39531         * modules/savewd (Depends-on): Likewise.
39532         * modules/rename (Depends-on): Likewise.
39533         (License): Relax license.
39534         * modules/mkdir-tests (Depends-on): Drop progname.
39535         (Makefile.am): Delete unneeded LDADD.
39536         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39537
39538         dirname: split into dirname-lgpl
39539         * modules/dirname-lgpl: New module.
39540         * modules/dirname (Files): Move library-safe files into
39541         dirname-lgpl.
39542         (Depends-on): Add dirname-lgpl.
39543         (configure.ac): Declare witness.
39544         * modules/double-slash-root (License): Relax license.
39545         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39546         module.
39547         * lib/dirname.c (dir_len, mdir_name): Move...
39548         * lib/dirname-lgpl.c: ...into new file.
39549         * lib/basename.c (last_component, base_len): Move...
39550         * lib/basename-lgpl.c: ...into new file.
39551         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39552         (gl_DIRNAME): Use it.
39553         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39554         Mention new module.
39555         * modules/dirname-tests (Depends-on): Add progname.
39556         * tests/test-dirname.c (program_name): Delete.
39557
39558         mkdir: make safe for libraries
39559         * modules/mkdir (Depends-on): Drop xalloc.
39560         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39561         exit.
39562
39563         tests: avoid some compiler warnings
39564         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39565         literals.
39566         * tests/test-memchr.c (main): Avoid type mismatch.
39567         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39568         * tests/test-base64.c (main): Likewise.
39569         * tests/test-getdelim.c (main): Likewise.
39570         * tests/test-gethostname.c (main): Likewise.
39571         * tests/test-getline.c (main): Likewise.
39572         * tests/test-netinet_in.c (main): Likewise.
39573         * tests/test-select.c (open_server_socket, main): Likewise.
39574         * tests/test-select-stdin.c (main): Likewise.
39575         * tests/test-sockets.c (main): Likewise.
39576         * tests/test-strsignal.c (main): Likewise.
39577         * tests/test-sys_select.c (main): Likewise.
39578         * tests/test-sys_socket.c (main): Likewise.
39579         * tests/test-u64.c (main): Likewise.
39580         * tests/test-xfprintf-posix.c (main): Likewise.
39581         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39582
39583         sockets: avoid compiler warning
39584         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39585
39586         maint: detect usage(1) and other suspicious exits
39587         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39588
39589 2009-10-29  Jim Meyering  <meyering@redhat.com>
39590
39591         timespec: long-to-int truncation could make timespec_cmp malfunction
39592         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39593         a multiple of 2^32 nanoseconds as no difference.
39594
39595 2009-10-28  Jim Meyering  <meyering@redhat.com>
39596
39597         fprintftime: wrap macro code argument in "do {...} while(0)"
39598         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39599         cpy macro must be a statement that can be followed by a semicolon.
39600         Now that the else clause contains a comment and is hence longer
39601         than one line, I require curly braces.  That in turn requires
39602         that we wrap this code block in the standard do...while(0).
39603
39604         fprintftime: remove stray semicolon from previous change
39605         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39606
39607         fprintftime: avoid a warning about ignored fwrite return value
39608         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39609         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39610         that is unsafe.
39611         * modules/fprintftime (Depends-on): Add ignore-value.
39612
39613         exclude: avoid an unwarranted warning
39614         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39615
39616 2009-10-27  Eric Blake  <ebb9@byu.net>
39617
39618         fseek: avoid compilation failure when fflush is replaced
39619         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39620         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39621         module is in use.
39622         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39623         module is not in use; since REPLACE_FSEEK worked otherwise.
39624         (GNULIB_FTELLO): Likewise for ftell.
39625         Reported by Ian Beckwith and others.
39626
39627 2009-10-27  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39630         Reported by Jim Meyering.
39631
39632 2009-10-27  Jim Meyering  <jim@meyering.net>
39633             Bruno Haible  <bruno@clisp.org>
39634
39635         Avoid warning despite dropping the return value of fwrite.
39636         * lib/unicodeio.c: Include ignore-value.h.
39637         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39638         * modules/unicodeio (Depends-on): Add ignore-value.
39639
39640 2009-10-26  Eric Blake  <ebb9@byu.net>
39641
39642         areadlinkat: fix fallback path
39643         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39644         pointer and zero.
39645
39646 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39647
39648         Use a better IO block size for modern systems
39649         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39650         * lib/md2.c: Likewise.
39651         * lib/md4.c: Likewise.
39652         * lib/md5.c: Likewise.
39653         * lib/sha1.c: Likewise.
39654         * lib/sha256.c: Likewise.
39655         * lib/sha512.c: Likewise.
39656
39657 2009-10-22  Eric Blake  <ebb9@byu.net>
39658
39659         tests: avoid several compiler warnings
39660         * tests/test-getcwd.c (main): Avoid buffer underflow.
39661         * tests/test-getdate.c (main): String literals are not safe with
39662         putenv, so use setenv.  Declare unused argument.
39663         * modules/getdate-tests (Depends-on): Add setenv.
39664         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39665         problems with string literals in char *.
39666         * tests/test-hash.c (main): Avoid shadowing declaration.
39667         (insert_new): Treat string literals as char const *.
39668         * tests/test-getopt.h (test_getopt): Likewise.
39669         (getopt_loop): Alter types to minimize casting elsewhere.
39670         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39671         (test_getopt_long_posix): Likewise.
39672         (do_getopt_long): Add wrapper to minimize casting.
39673         * tests/test-atexit.c (clear_temp_file): Use void.
39674         * tests/test-areadlink-with-size.c (main): Declare unused
39675         arguments.
39676         * tests/test-areadlink.c (main): Likewise.
39677         * tests/test-areadlinkat-with-size.c (main): Likewise.
39678         * tests/test-areadlinkat.c (main): Likewise.
39679         * tests/test-canonicalize-lgpl.c (main): Likewise.
39680         * tests/test-canonicalize.c (main): Likewise.
39681         * tests/test-dirent-safer.c (main): Likewise.
39682         * tests/test-dirname.c (main): Likewise.
39683         * tests/test-dup2.c (main): Likewise.
39684         * tests/test-fchdir.c (main): Likewise.
39685         * tests/test-fcntl-h.c (main): Likewise.
39686         * tests/test-fcntl-safer.c (main): Likewise.
39687         * tests/test-fdopendir.c (main): Likewise.
39688         * tests/test-fdutimensat.c (main): Likewise.
39689         * tests/test-fflush.c (main): Likewise.
39690         * tests/test-filenamecat.c (main): Likewise.
39691         * tests/test-filevercmp.c (main): Likewise.
39692         * tests/test-fopen-safer.c (main): Likewise.
39693         * tests/test-fopen.c (main): Likewise.
39694         * tests/test-fpending.c (main): Likewise.
39695         * tests/test-fpurge.c (main): Likewise.
39696         * tests/test-freading.c (main): Likewise.
39697         * tests/test-fstatat.c (main): Likewise.
39698         * tests/test-fsync.c (main): Likewise.
39699         * tests/test-futimens.c (main): Likewise.
39700         * tests/test-getndelim2.c (main): Likewise.
39701         * tests/test-gettimeofday.c (main): Likewise.
39702         * tests/test-getopt.c (main): Likewise.
39703         * tests/test-i-ring.c (main): Likewise.
39704         * tests/test-inttypes.c (main): Likewise.
39705         * tests/test-link.c (main): Likewise.
39706         * tests/test-lstat.c (main): Likewise.
39707         * tests/test-math.c (main): Likewise.
39708         * tests/test-md5.c (main): Likewise.
39709         * tests/test-memchr2.c (main): Likewise.
39710         * tests/test-memrchr.c (main): Likewise.
39711         * tests/test-mkdir.c (main): Likewise.
39712         * tests/test-mkdirat.c (main): Likewise.
39713         * tests/test-mkfifoat.c (main): Likewise.
39714         * tests/test-open.c (main): Likewise.
39715         * tests/test-openat-safer.c (main): Likewise.
39716         * tests/test-openat.c (main): Likewise.
39717         * tests/test-quotearg.c (main): Likewise.
39718         * tests/test-rawmemchr.c (main): Likewise.
39719         * tests/test-readlink.c (main): Likewise.
39720         * tests/test-remove.c (main): Likewise.
39721         * tests/test-rename.c (main): Likewise.
39722         * tests/test-renameat.c (main): Likewise.
39723         * tests/test-rmdir.c (main): Likewise.
39724         * tests/test-sha1.c (main): Likewise.
39725         * tests/test-signal.c (main): Likewise.
39726         * tests/test-sigaction.c (main): Likewise.
39727         * tests/test-stat.c (main): Likewise.
39728         * tests/test-stat-time.c (main): Likewise.
39729         * tests/test-stddef.c (main): Likewise.
39730         * tests/test-stdint.c (main): Likewise.
39731         * tests/test-stdio.c (main): Likewise.
39732         * tests/test-stdlib.c (main): Likewise.
39733         * tests/test-strchrnul.c (main): Likewise.
39734         * tests/test-strerror.c (main): Likewise.
39735         * tests/test-string.c (main): Likewise.
39736         * tests/test-strtod.c (main): Likewise.
39737         * tests/test-strverscmp.c (main): Likewise.
39738         * tests/test-symlink.c (main): Likewise.
39739         * tests/test-symlinkat.c (main): Likewise.
39740         * tests/test-sys_stat.c (main): Likewise.
39741         * tests/test-sys_time.c (main): Likewise.
39742         * tests/test-time.c (main): Likewise.
39743         * tests/test-unistd.c (main): Likewise.
39744         * tests/test-unlink.c (main): Likewise.
39745         * tests/test-unlinkat.c (main): Likewise.
39746         * tests/test-utimens.c (main): Likewise.
39747         * tests/test-utimensat.c (main): Likewise.
39748         * tests/test-version-etc.c (main): Likewise.
39749         * tests/test-wchar.c (main): Likewise.
39750         * tests/test-wctype.c (main): Likewise.
39751         * tests/test-xprintf-posix.c (main): Likewise.
39752         * tests/test-posixtm.c (main): Likewise.
39753         (STREQ): Delete unused macro.
39754         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39755         shadowed variables.
39756         * tests/test-memchr.c (main): Likewise.
39757
39758 2009-10-21  Eric Blake  <ebb9@byu.net>
39759
39760         areadlinkat: avoid failure on older glibc
39761         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39762         rather than mis-comparing 0 against FUNC_RESULT of char*.
39763
39764 2009-10-21  Bruno Haible  <bruno@clisp.org>
39765
39766         * modules/stpncpy (License): Relicense under LGPLv2+.
39767         Reported by David Lutterkort <lutter@redhat.com>.
39768
39769 2009-10-20  Eric Blake  <ebb9@byu.net>
39770
39771         utimensat: work around Solaris 9 bug
39772         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39773         has trailing slash bugs.
39774         * tests/test-lutimens.h (test_lutimens): Enhance test.
39775         * tests/test-utimens.h (test_utimens): Likewise.
39776         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39777         * doc/posix-functions/utimes.texi (utimes): Likewise.
39778         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39779         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39780         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39781         * doc/posix-functions/futimens.texi (futimens): Likewise.
39782
39783         fdutimensat: new module
39784         * modules/fdutimensat: New file.
39785         * lib/fdutimensat.c (fdutimensat): Likewise.
39786         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39787         * MODULES.html.sh (File system functions): Mention module.
39788         * modules/fdutimensat-tests: New test.
39789         * tests/test-fdutimensat.c: Likewise.
39790
39791         doc: regenerate INSTALL
39792         * doc/INSTALL: Reflect recent autoconf update.
39793         * doc/INSTALL.ISO: Likewise.
39794         * doc/INSTALL.UTF-8: Likewise.
39795
39796 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39797
39798         acl: warn if ACL support is not detected
39799         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39800
39801 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39802
39803         * lib/nproc.h: Add extern "C" block for C++.
39804
39805 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39806             Bruno Haible  <bruno@clisp.org>
39807
39808         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39809         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39810         * doc/posix-functions/isalpha.texi: Likewise.
39811         * doc/posix-functions/isblank.texi: Likewise.
39812         * doc/posix-functions/iscntrl.texi: Likewise.
39813         * doc/posix-functions/isdigit.texi: Likewise.
39814         * doc/posix-functions/isgraph.texi: Likewise.
39815         * doc/posix-functions/islower.texi: Likewise.
39816         * doc/posix-functions/isprint.texi: Likewise.
39817         * doc/posix-functions/ispunct.texi: Likewise.
39818         * doc/posix-functions/isspace.texi: Likewise.
39819         * doc/posix-functions/isupper.texi: Likewise.
39820         * doc/posix-functions/isxdigit.texi: Likewise.
39821
39822 2009-10-18  Bruno Haible  <bruno@clisp.org>
39823
39824         Tests for module 'isblank'.
39825         * modules/isblank-tests: New file.
39826         * tests/test-isblank.c: New file.
39827
39828         New module 'isblank'.
39829         * lib/isblank.c: New file.
39830         * m4/isblank.m4: New file.
39831         * modules/isblank: New file.
39832         * doc/posix-functions/isblank.texi: Mention the new module.
39833
39834 2009-10-18  Bruno Haible  <bruno@clisp.org>
39835
39836         New module 'ctype'.
39837         * lib/ctype.in.h: New file.
39838         * m4/ctype.m4: New file.
39839         * modules/ctype: New file.
39840         * doc/posix-headers/ctype.texi: Mention the new module.
39841
39842 2009-10-18  Jim Meyering  <meyering@redhat.com>
39843
39844         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39845         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39846         right after its initialization, rather than farther down.
39847         Keeping these in close proximity makes it easier to ensure
39848         that each such variable is initialized.  E.g.,
39849
39850             LIB_CLOCK_GETTIME=
39851             AC_SUBST([LIB_CLOCK_GETTIME])
39852
39853         This change also increments these serial numbers.
39854         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39855         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39857
39858 2009-10-18  Bruno Haible  <bruno@clisp.org>
39859
39860         Don't let environment variables perturb build.
39861         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39862         (gl_PREREQ_GETHRXTIME): ... not here.
39863
39864 2009-10-18  Bruno Haible  <bruno@clisp.org>
39865
39866         Avoid symlink attack in localcharset module.
39867         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39868         (O_NOFOLLOW): Define fallback.
39869         (get_charset_aliases): Don't open the file if it is a symbolic link.
39870         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39871         gl_FCNTL_H.
39872         (gl_FCNTL_H): Require it.
39873         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39874         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39875         Reported by Fergal Glynn <fglynn@veracode.com>.
39876
39877 2009-10-18  Bruno Haible  <bruno@clisp.org>
39878
39879         Implement nproc for mingw.
39880         * lib/nproc.c: Include <windows.h>
39881         (num_processors): On native Windows platforms, try GetSystemInfo.
39882
39883 2009-10-18  Bruno Haible  <bruno@clisp.org>
39884
39885         Implement nproc for IRIX.
39886         * lib/nproc.c: Include <sys/sysmp.h>.
39887         (num_processors): On IRIX systems, try sysmp.
39888         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39889
39890 2009-10-18  Bruno Haible  <bruno@clisp.org>
39891
39892         Implement nproc for HP-UX.
39893         * lib/nproc.c: Include <sys/pstat.h>
39894         (num_processors): On HP-UX systems, try pstat_getdynamic.
39895         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39896         pstat_getdynamic.
39897
39898 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39899             Bruno Haible  <bruno@clisp.org>
39900
39901         Implement nproc for NetBSD, OpenBSD.
39902         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39903         (ARRAY_SIZE): New macro.
39904         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39905         * m4/nproc.m4: New file.
39906         * modules/nproc (Files): Add m4/nproc.m4.
39907         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39908         (Makefile.am): Instead, augment lib_SOURCES.
39909
39910 2009-10-18  Bruno Haible  <bruno@clisp.org>
39911
39912         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39913         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39914         sys/param.h.
39915
39916 2009-10-16  Eric Blake  <ebb9@byu.net>
39917
39918         utimensat: new module
39919         * modules/utimensat: New file.
39920         * lib/utimensat.c (utimensat): Likewise.
39921         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39922         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39923         so we can work around Linux bugs.
39924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39925         * modules/sys_stat (Makefile.am): Substitute them.
39926         * lib/sys_stat.in.h (utimensat): Declare it.
39927         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39928         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39929         * modules/utimensat-tests: New test.
39930         * tests/test-utimensat.c: Likewise.
39931
39932         utimens: let lutimens work on non-symlinks
39933         * lib/utimens.c (lutimens): Fall back to utimens rather than
39934         failing with ENOSYS, when file is not a symlink.
39935         (utimens): Reduce redirection.
39936         * tests/test-lutimens.h (test_lutimens): Update test to cover
39937         non-symlinks.
39938         * tests/test-utimens.h (test_utimens): Update test to cover
39939         symlinks.
39940         * tests/test-utimens.c (main): Update caller.
39941
39942         utimens: cache whether utimensat syscall works
39943         * lib/utimens.c (utimensat_works_really): New cache variable.
39944         (fdutimens, lutimens): Use it to avoid failing syscall.
39945
39946         test-stat-time, test-utimens: improve portability
39947         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39948         ext4 on alpha, and for cygwin.
39949         * tests/test-utimens-common.h: New file.
39950         (nap): Factor delays into single function.
39951         * tests/test-lutimens.h (test_lutimens): Use new header.
39952         * tests/test-futimens.h (test_futimens): Likewise.
39953         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39954         timestamps to occur from same machine, as was done previously for
39955         test_utimens.
39956         * modules/utimens-tests (Files): Ship new file.
39957         * modules/futimens-tests (Files): Likewise.
39958         Reported in part by Jim Meyering.
39959
39960         sys_stat: sort replacement declarations
39961         * lib/sys_stat.in.h: Sort declarations.
39962         * lib/futimens.c (futimens): Fix typo.
39963
39964 2009-10-15  Jim Meyering  <meyering@redhat.com>
39965
39966         don't let environment settings perturb build
39967         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39968         could cause a configure-time and/or build-time malfunction.
39969         Typically, a configure-time function-in-library test is performed
39970         via code like this:
39971
39972           LIB_VAR=
39973           AC_SUBST([LIB_VAR])
39974           prefix_saved_LIBS=$LIBS
39975             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39976                        [test "$ac_cv_search_FUNC" = "none required" ||
39977                         LIB_VAR=$ac_cv_search_FUNC])
39978           LIBS=$prefix_saved_LIBS
39979
39980         However, in each of the files affected by this change, the LIB_VAR=
39981         initialization was omitted.  Thus, when set in the environment, its
39982         value would propagate into generated Makefiles when FUNC is not found
39983         in LIB_NAME.
39984         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39985         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39987
39988 2009-10-14  Eric Blake  <ebb9@byu.net>
39989
39990         fchdir: avoid infinite recursion in mingw
39991         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39992         recursing.
39993
39994         test-stat-time: port to mingw
39995         * tests/test-stat-time.c (force_unlink): Return a value.
39996         (test_ctime) [W32]: Fix compilation error.
39997         (nap): Don't call usleep with too large an argument.  Use
39998         force_unlink.
39999         * doc/pastposix-functions/usleep.texi (usleep): Document the
40000         portability issue.
40001
40002 2009-10-13  Jim Meyering  <meyering@redhat.com>
40003
40004         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40005         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40006         * modules/pipe-filter-ii: Likewise.
40007         * modules/sys_socket-tests: Likewise.
40008         * modules/tsearch-tests: Likewise.
40009         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40010         (check): Depend on it.
40011
40012 2009-10-12  Eric Blake  <ebb9@byu.net>
40013
40014         utimens-tests: port to NFS file systems
40015         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40016         comparisons to avoid spurious failures from timestamp drift
40017         between NFS machines.
40018
40019 2009-10-12  Eric Blake  <ebb9@byu.net>
40020
40021         stat-time-tests: minor cleanups
40022         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40023         * tests/test-stat-time.c (nap): Separate assignment from call.
40024         Suggested by Paolo Bonzini and Bruno Haible.
40025
40026         sys_stat: guarantee struct timespec
40027         * lib/sys_stat.in.h (includes): Always include <time.h>
40028         * modules/sys_stat (Depends-on): Add time.
40029         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40030         mode_t permission values.
40031         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40032         get at subsecond timestamps.
40033
40034 2009-10-10  Eric Blake  <ebb9@byu.net>
40035
40036         futimens: new module
40037         * modules/futimens: New file.
40038         * lib/futimens.c (futimens): Likewise.
40039         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40040         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40041         we can work around Linux bugs.
40042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40043         * modules/sys_stat (Makefile.am): Substitute them.
40044         * lib/sys_stat.in.h (futimens): Declare it.
40045         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40046         * doc/posix-functions/futimens.texi (futimens): Likewise.
40047         * modules/futimens-tests: New test.
40048         * tests/test-futimens.c: Likewise.
40049
40050         utimens: introduce fdutimens
40051         * lib/utimens.h (fdutimens): New prototype.
40052         * lib/utimens.c (gl_futimens): Move guts...
40053         (fdutimens): ...to new interface.
40054         * tests/test-utimens.c (do_fdutimens): Use it.
40055
40056         utimens: add UTIME_NOW and UTIME_OMIT support
40057         * lib/utimens.c (validate_timespec, update_timespec): New helper
40058         functions.
40059         (gl_futimens, lutimens): Use them.
40060         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40061         stdbool, sys_stat.
40062         (Link): Mention resulting library dependency.
40063         * modules/utimecmp (Link): Likewise.
40064         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40065         (Makefile.am): Pick up library dependency.
40066         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40067         definition.
40068         * tests/test-sys_stat.c: Test the definitions.
40069         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40070         * NEWS: Document library dependency.
40071
40072         utimecmp: support symlink timestamps
40073         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40074         hashing when possible.  Use pathconf when available.
40075         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40076         * modules/utimecmp (Depends-on): Add lstat.
40077
40078         utimens: add lutimens interface
40079         * lib/utimens.c (lutimens): New function.
40080         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40081         * lib/utimens.h (lutimens): Declare new interface.
40082         * tests/test-utimens.c (main): Enhance test.
40083         * tests/test-lutimens.h (test_lutimens): New file.
40084         * modules/utimens-tests (Files): Distribute it.
40085         (Depends-on): Add symlink.
40086         (configure.ac): Check for usleep.
40087
40088         utimens: validate futimens usage
40089         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40090         fewer syscalls on failure later on.  Avoid compiler warning on
40091         mingw.
40092         * modules/utimens (Depends-on): Add dup2.
40093
40094         utimens: add test
40095         * modules/utimens-tests: New test.
40096         * tests/test-utimens.h: New file.
40097         * tests/test-futimens.h: Likewise.
40098         * tests/test-utimens.c: Likewise.
40099
40100         doc: mention timestamp portability issues
40101         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40102         instead.
40103         * doc/posix-functions/utime.texi (utime): Likewise.
40104         * doc/posix-functions/utimes.texi (utimes): Likewise.
40105         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40106         instead.
40107         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40108         module.
40109         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40110         Mention weakness with symlink timestamps.
40111         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40112         to utimensat/futimens instead.
40113         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40114
40115         test-dup2: enhance test
40116         * tests/test-dup2.c (main): Also check AT_FDCWD.
40117
40118         test-stat-time: avoid more spurious failures
40119         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40120         xfs; and avoid race if the two timestamps cross quantization edge.
40121
40122         relocatable: prefer 'file system' over 'filesystem'
40123         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40124         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40125         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40126         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40127         * lib/relocatable.c (compute_curr_prefix): Likewise.
40128
40129 2009-10-10  Jim Meyering  <meyering@redhat.com>
40130
40131         stat-time-tests: check for the usleep function
40132         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40133
40134 2009-10-10  Bruno Haible  <bruno@clisp.org>
40135
40136         * modules/xnanosleep: Put the Link section after the Include section.
40137
40138 2009-10-09  Eric Blake  <ebb9@byu.net>
40139
40140         dup2: work around FreeBSD 6.1 bug
40141         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40142         * doc/posix-functions/dup2.texi (dup2): Document it.
40143         Reported by Nelson H. F. Beebe and Jim Meyering.
40144
40145         test-stat-time: port to buggy NFS clients
40146         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40147         (test_ctime): Also skip test if mtime and ctime are skewed.
40148
40149         maint: prefer 'file system' over 'filesystem'
40150         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40151         * doc/posix-functions/lstat.texi (lstat): Likewise.
40152         * lib/file-has-acl.c (file_has_acl): Likewise.
40153         * lib/fwriteerror.c [TEST]: Likewise.
40154         * tests/test-areadlink.h (test_areadlink): Likewise.
40155         * tests/test-areadlinkat-with-size.c (main): Likewise.
40156         * tests/test-areadlinkat.c (main): Likewise.
40157         * tests/test-canonicalize-lgpl.c (main): Likewise.
40158         * tests/test-canonicalize.c (main): Likewise.
40159         * tests/test-fstatat.c (main): Likewise.
40160         * tests/test-linkat.c (main): Likewise.
40161         * tests/test-lstat.h (test_lstat_func): Likewise.
40162         * tests/test-mkdir.h (test_mkdir): Likewise.
40163         * tests/test-readlink.h (test_readlink): Likewise.
40164         * tests/test-remove.c (main): Likewise.
40165         * tests/test-rename.h (test_rename): Likewise.
40166         * tests/test-renameat.c (main): Likewise.
40167         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40168         * tests/test-symlink.h (test_symlink): Likewise.
40169         * tests/test-symlinkat.c (main): Likewise.
40170         * tests/test-unlink.h (test_unlink_func): Likewise.
40171         * tests/test-unlinkat.c (main): Likewise.
40172
40173         maint: make realtime library usage explicit
40174         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40175         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40176         * modules/settime (Link): Likewise.
40177         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40178
40179         test-stat-time: speed up execution
40180         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40181         warning on mingw.
40182         (nap): New helper function.
40183         (prepare_test): Use it to reduce sleep time.
40184         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40185         execution.
40186         * modules/stat-time-tests (configure.ac): Check for usleep.
40187
40188 2009-10-09  Jim Meyering  <meyering@redhat.com>
40189
40190         selinux-h: always use getfilecon wrappers
40191         * lib/getfilecon.c: New file.
40192         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40193         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40194         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40195         (fgetfilecon): Provide a stub.
40196         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40197         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40198         file unconditionally.
40199         When <selinux/selinux.h> is found, arrange to use wrappers.
40200         * modules/selinux-h (Files): Add getfilecon.c.
40201         (Makefile.am): Substitute include-next-related bits
40202         into the now-always-generated selinux/selinux.h file.
40203         * doc/glibc-functions/lgetfilecon.texi: New file.
40204         * doc/glibc-functions/fgetfilecon.texi: New file.
40205         * doc/glibc-functions/getfilecon.texi: New file.
40206         * doc/glibc-functions/getfilecon-desc.texi: New file.
40207         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40208         which to pull in the new files.
40209         * MODULES.html.sh (Misc): Add selinux-h.
40210
40211 2009-10-08  Jim Meyering  <meyering@redhat.com>
40212
40213         unistd: fix comment typo
40214         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40215
40216 2009-10-08  Eric Blake  <ebb9@byu.net>
40217
40218         areadlink: use SIZE_MAX consistently
40219         * modules/areadlink (Depends-on): Add stdint.
40220         * modules/areadlink-with-size (Depends-on): Likewise.
40221         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40222         gives NULL; drop sys/types, since unistd gives size_t; and add
40223         stdint for SIZE_MAX.
40224         (SIZE_MAX): Rely on headers.
40225         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40226         and add stdint.
40227         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40228         (SIZE_MAX): Likewise.
40229         (INITIAL_BUF_SIZE): Turn into enum.
40230         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40231
40232 2009-10-08  Jim Meyering  <meyering@redhat.com>
40233
40234         areadlinkat: avoid compilation failure
40235         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40236         Fix typo in comment.
40237
40238 2009-10-07  Eric Blake  <ebb9@byu.net>
40239
40240         areadlinkat-with-size: new module
40241         * modules/areadlinkat-with-size: New module.
40242         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40243         * lib/areadlink.h (areadlinkat): Declare it.
40244         * MODULES.html.sh (File system functions): Mention it.
40245         * modules/areadlinkat-with-size-tests: New test.
40246         * tests/test-areadlinkat-with-size.c: New file.
40247
40248         xreadlinkat: new module
40249         * modules/xreadlinkat: New module.
40250         * lib/xreadlinkat.c (xreadlinkat): New file.
40251         * lib/xreadlink.h (xreadlinkat): Declare it.
40252         * MODULES.html.sh (File system functions): Mention it.
40253
40254         areadlinkat: new module
40255         * lib/at-func.c (FUNC_FAIL): New define.
40256         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40257         * modules/areadlinkat: New module.
40258         * lib/linkat.c (areadlinkat): Move...
40259         * lib/areadlinkat.c (areadlinkat): ...to new file.
40260         * lib/areadlink.h (areadlinkat): Declare it.
40261         * modules/linkat (Depends-on): Add areadlinkat.
40262         * MODULES.html.sh (File system functions): Mention it.
40263         * modules/areadlinkat-tests: New test.
40264         * tests/test-areadlinkat.c: New file.
40265
40266         areadlink, areadlink-with-size: add tests
40267         * modules/areadlink-tests: New test.
40268         * modules/areadlink-with-size-tests: Likewise.
40269         * tests/test-areadlink.h: New file.
40270         * tests/test-areadlink.c: Likewise.
40271         * tests/test-areadlink-with-size.c: Likewise.
40272
40273         maint: minor cleanups
40274         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40275         _UNUSED_PARAMETER_ instead.
40276         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40277         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40278         * modules/linkat-tests (Files): Distribute test-link.h.
40279
40280         openat, utimens: whitespace cleanup
40281         * lib/openat.c: Prefer space throughout, rather than mix of 8
40282         spaces vs. tabs.
40283         * lib/at-func.c: Likewise.
40284         * lib/utimens.c: Likewise.
40285
40286         openat: avoid using wrong fd
40287         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40288         working directory chooses same fd.
40289         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40290
40291         mkdir, mkdirat: fix cygwin 1.5.x bug
40292         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40293         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40294         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40295         bug.
40296         (gl_PREREQ_MKDIR): Delete unused macro.
40297         * modules/mkdir (Files): Track file rename.
40298         (configure.ac): Update macro name.
40299         * modules/openat (Depends-on): Add mkdir.
40300         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40301
40302         mkdir, mkdirat: add tests
40303         * modules/mkdir-tests: New test.
40304         * tests/test-mkdir.h: New file.
40305         * tests/test-mkdir.c: Likewise.
40306         * tests/test-mkdirat.c: Likewise.
40307         * modules/openat-tests (Files): Add new files.
40308         (Makefile.am): Run new test.
40309
40310 2009-10-06  Eric Blake  <ebb9@byu.net>
40311
40312         doc: tweak *at function documentation
40313         * doc/posix-functions/faccessat.texi (faccessat): Mention
40314         known issue with replacement.
40315         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40316         * doc/posix-functions/linkat.texi (linkat): Likewise.
40317         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40318         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40319         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40320         * doc/posix-functions/renameat.texi (renameat): Likewise.
40321         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40322
40323         openat: fix GNU/Hurd bug in unlinkat
40324         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40325         broken.
40326         * doc/posix-functions/unlink.texi (unlink): Document this.
40327         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40328
40329         fdopendir: fix GNU/Hurd bug
40330         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40331         allowing non-directory fds.
40332         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40334         * modules/dirent (Makefile.am): Substitute it.
40335         * lib/dirent.in.h (fdopendir): Declare replacement.
40336         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40337         * tests/test-fdopendir.c (main): Test something other than
40338         /dev/null, since on Hurd that behaves like a directory.
40339
40340         test-symlink: port to GNU/Hurd
40341         * tests/test-symlink.h (test_symlink): Relax expected errno.
40342
40343         doc: tweak more cygwin information
40344         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40345         now compatible with glibc.
40346         * doc/posix-functions/getopt.texi (getopt): Likewise.
40347
40348         getopt-gnu: add another test
40349         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40350         guarantee behavior relied on by m4.
40351         * tests/test-getopt.c (main): Use it.
40352         * modules/getopt-posix-tests (Depends-on): Add setenv.
40353         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40354
40355         getopt: fix compilation on darwin
40356         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40357         include.
40358         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40359         Reported by Ludovic Courtès.
40360
40361 2009-10-06  Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/size_max (Description): Discourage its use.
40364         Reported by Simon Josefsson.
40365
40366 2009-10-06  Jim Meyering  <meyering@redhat.com>
40367
40368         linkat: avoid compilation failure
40369         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40370
40371 2009-10-05  Eric Blake  <ebb9@byu.net>
40372
40373         linkat: support Linux 2.6.17
40374         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40375         linkat on Linux, but allow cache variable override.
40376         * lib/linkat.c (rpl_linkat): Define override.
40377         * modules/linkat (Depends-on): Add symlinkat.
40378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40379         * modules/unistd (Makefile.am): Substitute it.
40380         * lib/unistd.in.h (linkat): Declare replacement.
40381         Reported by Pádraig Brady.
40382
40383         quotearg: port test to systems with C.UTF-8 locale
40384         * tests/test-quotearg.c (struct result_strings): Add another
40385         member, differentiating between C.ASCII and C.UTF-8 handling.
40386         (compare_strings): Add parameter.
40387         (main): Adjust all callers.
40388
40389         getopt: avoid clash with FreeBSD _getopt_internal
40390         * lib/getopt.in.h (_getopt_internal): Override the name.
40391         * lib/getopt_int.h (includes): Pick up any overrides.
40392         Reported by Reuben Thomas.
40393
40394         hash: allow C89 compilation
40395         * lib/hash.c (check_tuning): Move declaration before statement.
40396         Reported by Reuben Thomas.
40397
40398 2009-10-05  Karl Berry  <karl@gnu.org>
40399
40400         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40401
40402 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40403             Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/uname.c (uname): Use a table-driven algorithm to compute
40406         Windows NT versions.
40407
40408 2009-10-04  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40411         program_invocation_short_name.
40412         * modules/progname (configure.ac): Test for presence of
40413         program_invocation_short_name.
40414         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40415
40416 2009-10-04  Bruno Haible  <bruno@clisp.org>
40417
40418         * lib/progname.c (set_program_name): Fix comment.
40419         Reported by Jim Meyering.
40420
40421 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40422             Bruno Haible  <bruno@clisp.org>
40423
40424         * lib/uname.c: Include <string.h>.
40425         (uname): Do only one call to GetVersionEx in the common case.
40426
40427 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40428             Bruno Haible  <bruno@clisp.org>
40429
40430         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40431         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40432         (uname): Add support for Windows CE and various non-x86 CPU types.
40433
40434 2009-10-03  Bruno Haible  <bruno@clisp.org>
40435
40436         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40437         invocation to tests/configure.ac.
40438         Reported by Ian Beckwith <ianb@erislabs.net>.
40439
40440 2009-10-02  Eric Blake  <ebb9@byu.net>
40441
40442         fchdir: avoid compiler warning
40443         * lib/fchdir.c (canonicalize_file_name)
40444         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40445
40446         test-open: support mingw errno values
40447         * tests/test-open.h (test_open): Relax test.
40448         * tests/test-fopen.h (test_fopen): Likewise.
40449         * tests/test-openat-safer.c (main): Likewise.
40450
40451         open: fix opening directory on mingw
40452         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40453
40454         test-open: on GNU/Hurd, /dev/null is a directory
40455         * tests/test-fopen.h (main): Rename...
40456         (test_fopen): ...to this.  Use a guaranteed non-directory when
40457         confirming open behavior on trailing slash.
40458         * tests/test-openat-safer.c (main): Likewise.
40459         * tests/test-open.h (main): Likewise....
40460         (test_open): ...to this.
40461         * tests/test-fopen.c (main): Adjust caller.
40462         * tests/test-fopen-safer.c (main): Likewise.
40463         * tests/test-open.c (main): Likewise.
40464         * tests/test-fcntl-safer.c (main): Likewise.
40465         Reported by Samuel Thibault.
40466
40467         rename, fchdir: don't ignore chdir failure
40468         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40469         * lib/rename.c (rpl_rename) [W32]: Likewise.
40470         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40471         an empty destination directory if source cannot be renamed,
40472         although there is still possibility for failure.
40473         * doc/posix-functions/rename.texi (rename): Document the race.
40474         Reported by Jim Meyering.
40475
40476         maint: cleanup whitespace in recent commits
40477         * lib/rename.c (rpl_rename): Remove tabs.
40478         * tests/test-link.h (test_link): Likewise.
40479         * lib/fchdir.c (get_name): Likewise.
40480         Reported by Jim Meyering.
40481
40482 2009-10-02  Ben Pfaff  <blp@gnu.org>
40483
40484         relocatable-prog-wrapper: Add missing dependency on
40485         double-slash-root.
40486         * modules/relocatable-prog-wrapper: Add dependency.
40487         Reported by Ian Beckwith <ianb@erislabs.net>.
40488
40489 2009-10-02  Eric Blake  <ebb9@byu.net>
40490
40491         renameat: fix Solaris bugs
40492         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40493         needed fixing.
40494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40495         * modules/stdio (Makefile.am): Substitute it.
40496         * lib/stdio.in.h (renameat): Declare replacement.
40497         * lib/renameat.c (rpl_renameat): Implement fix.
40498
40499         renameat: new module
40500         * modules/renameat: New file.
40501         * lib/renameat.c (renameat): Likewise.
40502         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40504         * modules/stdio (Makefile.am): Substitute them.
40505         * lib/stdio.in.h (renameat): Declare it.
40506         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40507         * doc/posix-functions/renameat.texi (renameat): Likewise.
40508         * modules/renameat-tests: New test.
40509         * tests/test-renameat.c: Likewise.
40510
40511         rename: fix mingw bugs
40512         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40513         directory overwrite bugs.
40514
40515         rename: fix another cygwin 1.5 bug
40516         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40517         checks.
40518         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40519         unnecessary cygwin workarounds.  Also work around bug with moving
40520         full directory onto an empty one.
40521         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40522
40523         rename-dest-slash: merge into rename module
40524         * modules/rename-dest-slash (Status): Mark obsolete.
40525         (Depends-on): Add rename.
40526         (Files): Let rename do it all.
40527         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40528         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40529         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40530         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40531         * lib/rename.c (rpl_rename): Update comments.
40532
40533         rename: fix cygwin 1.5.x bugs
40534         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40535         * lib/rename.c (rpl_rename): Work around them.
40536         * modules/rename (Depends-on): Add same-inode.
40537
40538         rename: fix Solaris 10 bug
40539         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40540         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40541         was the only bug.
40542
40543         rename: fix Solaris 9 bug
40544         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40545         on non-directory.  Avoid calling exit.
40546         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40547         strdup.
40548         * modules/rename-tests (Depends-on): Drop lstat.
40549         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40550         (gl_PREREQ_RENAME): Delete unused macro.
40551
40552         rename-dest-slash: fix NetBSD bug
40553         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40554         links.
40555         * modules/rename-dest-slash (Depends-on): Add same-inode.
40556
40557         rename-tests: new test, exposes several platform bugs
40558         * modules/rename-tests: New file.
40559         * tests/test-rename.h: Likewise.
40560         * tests/test-rename.c: Likewise.
40561         * doc/posix-functions/rename.texi (rename): Improve documentation,
40562         including bugs that will eventually be fixed in gnulib.
40563
40564 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40565
40566         * lib/uname.c: Include <stdlib.h>
40567         (uname): Assume version info is available.
40568
40569 2009-10-02  Jim Meyering  <meyering@redhat.com>
40570
40571         gnu-web-doc-update: correct --help output
40572         * build-aux/gnu-web-doc-update: Make --help output relevant.
40573
40574         gnu-web-doc-update: add standard options
40575         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40576
40577         gnu-web-doc-update: New module.
40578         Use this script to automatically update the on-line web documentation
40579         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40580         * modules/gnu-web-doc-update: New file, from coreutils.
40581         * build-aux/gnu-web-doc-update: New script.
40582
40583 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40584
40585         link: LoadLibrary is not needed.
40586         * lib/link.c: Use GetModuleHandle.
40587
40588 2009-10-01  Eric Blake  <ebb9@byu.net>
40589
40590         getopt: bump serial number
40591         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40592         change.
40593
40594         tests: tighten link, rmdir, and remove tests
40595         * tests/test-link.h (includes): No need to use <config.h> here.
40596         Clean up if directory hard link was created, otherwise test for
40597         trailing '.'.
40598         * tests/test-linkat.c (main): Simplify.
40599         * tests/test-remove.c (main): Enhance test for trailing '.'.
40600         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40601
40602 2009-10-01  Jim Meyering  <meyering@redhat.com>
40603
40604         maint.mk: requiring "make major" was annoying, for a "minor" release.
40605         What is intended is "stable", to contrast with alpha and beta,
40606         so require "make stable", not "make major".
40607         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40608         (get_tool_versions): Likewise.
40609         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40610
40611 2009-09-30  Ben Pfaff  <blp@gnu.org>
40612
40613         Fix broken build of replacement for Windows tmpfile().
40614         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40615         flags argument added along with the 'mkostemp' module.
40616
40617 2009-09-28  Bruno Haible  <bruno@clisp.org>
40618
40619         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40620         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40621         to 'remove_elt'.
40622         (gl_list_remove): Update.
40623         * lib/gl_list.c (gl_list_remove): Update.
40624         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40625         to 'remove_elt'.
40626         (gl_oset_remove): Update.
40627         * lib/gl_list.c (gl_oset_remove): Update.
40628         Reported by Eric Blake.
40629
40630 2009-09-28  Eric Blake  <ebb9@byu.net>
40631
40632         doc: mention yet more cygwin 1.7 status
40633         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40634         cygwin.
40635         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40636         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40637
40638         argp: fix test failure
40639         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40640         that are not upper-case.  Pass correct range to tolower.
40641
40642 2009-09-27  Jim Meyering  <meyering@redhat.com>
40643
40644         test-yesno: work around sparc-dash here-document infelicity
40645         Without this change, the literal \177 byte in a here document
40646         would make dash 0.5.5.1-3 access uninitialized memory.
40647         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40648         Instead, use a marker, "@", and filter through tr to create the desired
40649         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40650
40651 2009-09-27  Bruno Haible  <bruno@clisp.org>
40652
40653         Disable untested support for new flavours of ACLs on AIX.
40654         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40655         progress.
40656         * lib/set-mode-acl.c (qset_acl): Likewise.
40657
40658 2008-12-07  Bruno Haible  <bruno@clisp.org>
40659
40660         Add support for new flavours of ACLs on AIX. (Untested.)
40661         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40662         (file_has_acl): Add support for newer AIX.
40663         * lib/set-mode-acl.c (qset_acl): Likewise.
40664         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40665         Rainer Tammer <tammer@tammer.net>.
40666
40667 2009-09-26  Eric Blake  <ebb9@byu.net>
40668
40669         argp: fix compilation of getopt
40670         * lib/getopt.in.h (includes): Use different guard than glibc.
40671         Reported by Sergey Poznyakoff.
40672
40673         doc: mention more cygwin 1.7 status
40674         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40675         bug.
40676         * doc/posix-functions/execl.texi (execl): Likewise.
40677         * doc/posix-functions/execle.texi (execle): Likewise.
40678         * doc/posix-functions/execlp.texi (execlp): Likewise.
40679         * doc/posix-functions/execv.texi (execv): Likewise.
40680         * doc/posix-functions/execve.texi (execve): Likewise.
40681         * doc/posix-functions/execvp.texi (execvp): Likewise.
40682         * doc/glibc-functions/canonicalize_file_name.texi
40683         (canonicalize_file_name): Cygwin 1.7 now provides this.
40684         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40685         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40686         on AT_SYMLINK_NOFOLLOW.
40687
40688 2009-09-24  Eric Blake  <ebb9@byu.net>
40689
40690         test-linkat: make test more robust
40691         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40692
40693         getopt: fix inclusion guards for cygwin
40694         * modules/getopt-posix (Depends-on): Add include-next.
40695         (Makefile.am): Substitute more items in replacement header.
40696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40697         <getopt.h>.
40698         * lib/getopt.in.h (includes): Use split inclusion guard, and
40699         prefer <getopt.h> over include <unistd.h> when one is present.
40700         (option): Also override name of 'struct option'.
40701
40702         same-inode: revert prior change; it is not yet ready
40703         * NEWS: Undo mention of this change.
40704         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40705         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40706         * lib/cycle-check.c (cycle_check): Likewise.
40707         * lib/same.c (same_name): Likewise.
40708         * lib/at-func2.c (at_func2): Likewise.
40709
40710 2009-09-23  Eric Blake  <ebb9@byu.net>
40711
40712         linkat: new module
40713         * modules/linkat: New file.
40714         * lib/at-func2.c (at_func2): Likewise.
40715         * lib/linkat.c (linkat): Likewise.
40716         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40717         * lib/openat-priv.h (at_func2): Add declaration.
40718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40719         * modules/unistd (Makefile.am): Substitute them.
40720         * lib/unistd.in.h (linkat): Declare it.
40721         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40722         * doc/posix-functions/linkat.texi (linkat): Likewise.
40723         * doc/posix-functions/link.texi (link): Tweak wording.
40724         * tests/test-link.c (main): Move guts...
40725         * tests/test-link.h (test_link): ...into new file.
40726         * modules/linkat-tests: New test.
40727         * tests/test-linkat.c: Likewise.
40728         * modules/link-tests (Files): Ship new file.
40729         (Depends-on): Add stdbool.
40730
40731         dirname: add library-safe mdir_name
40732         * lib/dirname.h (mdir_name): New prototype.
40733         * lib/dirname.c (dir_name): Move guts...
40734         (mdir_name): ...to new function that avoids xalloc_die.
40735
40736         fchdir: another mingw fix
40737         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40738         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40739         on mingw (where it has not yet been ported), and make it optional
40740         elsewhere.
40741         (_gl_register_fd): Use it.
40742
40743         same-inode: make SAME_INODE tri-state, to port to mingw
40744         * NEWS: Mention this change.
40745         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40746         st_ino always being 0.
40747         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40748         * lib/cycle-check.c (cycle_check): Likewise.
40749         * lib/same.c (same_name): Likewise.
40750
40751         lstat: avoid mingw compilation error
40752         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40753         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40754         lstat ourselves.
40755         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40756         was adequate.
40757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40758         the checks for lstat.
40759         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40760
40761         link: fix test failure on Solaris 9
40762         * lib/link.c (rpl_link): Don't assume link will catch bogus
40763         trailing slash on source.
40764
40765         test-symlinkat: enhance test
40766         * tests/test-readlink.c (main): Move guts...
40767         * tests/test-readlink.h (test_readlink): ...into new file.
40768         * tests/test-symlink.c (main): Move guts...
40769         * tests/test-symlink.h (test_symlink): ...into new file.
40770         * tests/test-symlinkat.c (main): Use new files for further
40771         coverage.
40772         (do_symlink, do_readlink): New helper functions.
40773         * modules/symlink-tests (Files): Ship new file.
40774         (Depends-on): Add stdbool.
40775         * modules/readlink-tests (Files): Ship new file.
40776         (Depends-on): Add stdbool.
40777         * modules/symlinkat-tests (Files): Use new files.
40778
40779 2009-09-23  Eric Blake  <ebb9@byu.net>
40780
40781         readlink: document portability issue with symlink length
40782         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40783         systems have bogus st_size on symlinks, and mention the
40784         areadlink-with-size module.
40785         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40786         * doc/posix-functions/readlink.texi (readlink): Mention the
40787         areadlink module, and ERANGE failure.
40788         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40789         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40790
40791         readlink: fix Solaris 9 bug with trailing slash
40792         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40793         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40794         * doc/posix-functions/readlink.texi (readlink): Document this.
40795         * modules/readlink-tests: New test.
40796         * tests/test-readlink.c: Likewise.
40797
40798         readlink: fix cygwin 1.5.x bug with return type
40799         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40800         * lib/unistd.in.h (readlink): Use ssize_t.
40801         * lib/readlink.c (readlink): Likewise.
40802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40803         * modules/unistd (Makefile.am): Substitute it.
40804         * lib/unistd.in.h (readlink): Declare replacement.
40805         * doc/posix-functions/readlink.texi (readlink): Document this.
40806
40807         symlink: use throughout gnulib
40808         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40809         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40810         symlink is not used.
40811         * modules/symlinkat (Depends-on): Add symlink.
40812         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40813         * modules/canonicalize-tests (Depends-on): Likewise.
40814         * modules/lstat-tests (Depends-on): Likewise.
40815         * modules/openat-tests (Depends-on): Likewise.
40816         * modules/remove-tests (Depends-on): Likewise.
40817         * modules/rmdir-tests (Depends-on): Likewise.
40818         * modules/unlink-tests (Depends-on): Likewise.
40819         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40820         * tests/test-canonicalize.c (symlink): Likewise.
40821         * tests/test-fstatat.c (symlink): Likewise.
40822         * tests/test-lstat.c (symlink): Likewise.
40823         * tests/test-remove.c (symlink): Likewise.
40824         * tests/test-rmdir.c (symlink): Likewise.
40825         * tests/test-unlink.c (symlink): Likewise.
40826         * tests/test-unlinkat.c (symlink): Likewise.
40827
40828         symlink: new module, for Solaris 9 bug
40829         * modules/symlink: New file.
40830         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40831         * lib/symlink.c: Likewise.
40832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40833         * modules/unistd (Makefile.am): Substitute them.
40834         * lib/unistd.in.h (symlink): Declare replacement.
40835         * MODULES.html.sh (File system functions): Mention it.
40836         * doc/posix-functions/symlink.texi (symlink): Likewise.
40837         * modules/symlink-tests: New test.
40838         * tests/test-symlink.c: Likewise.
40839
40840 2009-09-23  Bruno Haible  <bruno@clisp.org>
40841
40842         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40843         when needed.
40844         Test case: gnulib-tool --import --with-tests atexit inttypes.
40845         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40846
40847 2009-09-23  Bruno Haible  <bruno@clisp.org>
40848
40849         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40850         subcommand, not in a subshell.
40851
40852 2009-09-22  Eric Blake  <ebb9@byu.net>
40853
40854         unistd: sort replacement declarations
40855         * lib/unistd.in.h: Sort declarations.
40856
40857         open, openat: minor optimization
40858         * lib/open.c (open): If open succeeded, len is non-zero.
40859         * lib/openat.c (rpl_openat): Likewise.
40860
40861         link-follow: ensure correct result
40862         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40863         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40864         distinguish between possible failures.
40865
40866 2009-09-21  Eric Blake  <ebb9@byu.net>
40867
40868         fts: avoid compiler warning
40869         * lib/fts.c (dirent_inode_sort_may_be_useful)
40870         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40871
40872 2009-09-19  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/progreloc.c (canonicalize_file_name): New declaration.
40875
40876 2009-09-19  Eric Blake  <ebb9@byu.net>
40877
40878         link: fix quoting
40879         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40880
40881         openat: fix openat bugs on Solaris 9
40882         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40883         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40884         * modules/openat (Depends-on): Add open.
40885         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40886         * modules/fcntl-h (Makefile.am): Substitute it.
40887         * lib/fcntl.in.h (openat): Declare replacement.
40888         * doc/posix-functions/openat.texi (openat): Document this.
40889
40890         openat: move fstatat and unlinkat into correct files
40891         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40892         compiled.
40893         * lib/openat.c (fstatat, unlinkat): Move...
40894         * lib/fstatat.c (fstatat): ...into correct files.
40895         * lib/unlinkat.c (unlinkat): Likewise.
40896
40897         openat: fix unlinkat bugs on Solaris 9
40898         * lib/unlinkat.c (unlinkat): New file.
40899         * modules/openat (Depends-on): Add unlink.
40900         (Files): Distribute it.
40901         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40902         trailing slash behavior is broken.
40903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40904         * modules/unistd (Makefile.am): Substitute it.
40905         * lib/unistd.in.h (unlinkat): Declare replacement.
40906         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40907
40908         openat: fix fstatat bugs on Solaris 9
40909         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40910         stat.
40911         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40912
40913         test-unlinkat: enhance test, to expose Solaris 9 bug
40914         * tests/test-unlink.c (main): Factor guts...
40915         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40916         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40917         * tests/test-rmdir.c (main): Adjust caller.
40918         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40919         (unlinker): New helper function.
40920         (rmdirat): Enhance check.
40921         * modules/rmdir-tests (Depends-on): Add stdbool.
40922         * modules/unlink-tests (Depends-on): Likewise.
40923         (Files): Add test-unlink.h.
40924         * modules/openat-tests (Files): Likewise.
40925         (Depends-on): Add unlinkdir.
40926
40927         test-fstatat: new test, to expose Solaris 9 bugs
40928         * tests/test-stat.c (main): Factor guts...
40929         * tests/test-stat.h (test_stat_func): ...into new file.
40930         * tests/test-lstat.c (main): Factor guts...
40931         * tests/test-lstat.h (test_lstat_func): ...into new file.
40932         * tests/test-fstatat.c: New file.
40933         * modules/stat-tests (Files): Add test-stat.h.
40934         * modules/lstat-tests (Files): Add test-lstat.h.
40935         (Depends-on): Add stdbool.
40936         * modules/openat-tests (Depends-on): Add pathmax.
40937         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40938         (Makefile.am): Run new test.
40939
40940         remove: new module, for mingw and Solaris 9 bugs
40941         * modules/remove: New file.
40942         * lib/remove.c: Likewise.
40943         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40945         * modules/stdio (Makefile.am): Use them.
40946         * lib/stdio.in.h (remove): Declare replacement.
40947         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40948         * doc/posix-functions/remove.texi (remove): Likewise.
40949         * modules/remove-tests: New test.
40950         * tests/test-remove.c: Likewise.
40951
40952         unlink: new module, for Solaris 9 bug
40953         * modules/unlink: New file.
40954         * lib/unlink.c: Likewise.
40955         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40957         * modules/unistd (Makefile.am): Use them.
40958         * lib/unistd.in.h (stat): Declare replacement.
40959         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40960         * doc/posix-functions/unlink.texi (unlink): Likewise.
40961         * modules/unlink-tests: New test.
40962         * tests/test-unlink.c: Likewise.
40963
40964         lstat: fix Solaris 9 bug
40965         * lib/lstat.c (lstat): Also check for trailing slash on
40966         non-symlink, non-directories.  Use stat module to simplify logic.
40967         * doc/posix-functions/lstat.texi (lstat): Document it.
40968         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40969         (configure.ac): Check for symlink.
40970         * tests/test-lstat.c (main): Add more tests.
40971
40972         stat: add as dependency to other modules
40973         * modules/chown (Depends-on): Add stat.
40974         * modules/euidaccess (Depends-on): Likewise.
40975         * modules/fchdir (Depends-on): Likewise.
40976         * modules/isdir (Depends-on): Likewise.
40977         * modules/link (Depends-on): Likewise.
40978         * modules/lstat (Depends-on): Likewise.
40979         * modules/mkdir-p (Depends-on): Likewise.
40980         * modules/modechange (Depends-on): Likewise.
40981         * modules/open (Depends-on): Likewise.
40982         * modules/readlink (Depends-on): Likewise.
40983         * modules/same (Depends-on): Likewise.
40984
40985         stat: fix Solaris 9 bug
40986         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40987         slash.
40988         * lib/stat.c (rpl_stat): Work around it.
40989         * doc/posix-functions/stat.texi (stat): Update documentation.
40990
40991         stat: new module, for mingw bug
40992         * modules/stat: New file.
40993         * lib/stat.c: Likewise.
40994         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40996         * modules/sys_stat (Makefile.am): Use them.
40997         * lib/sys_stat.in.h (stat): Declare replacement.
40998         * lib/openat.c (fstatat): Deal with lstat and stat being function
40999         macros.
41000         * modules/openat (Depends-on): Add inline.
41001         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41002         * doc/posix-functions/stat.texi (stat): Likewise.
41003         * modules/stat-tests: New test.
41004         * tests/test-stat.c: Likewise.
41005
41006 2009-09-19  Jim Meyering  <meyering@redhat.com>
41007
41008         syntax-check: detect unnecessary inclusion of canonicalize.h
41009         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41010
41011 2009-09-19  Eric Blake  <ebb9@byu.net>
41012
41013         canonicalize-lgpl: adjust clients to use correct header
41014         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41015         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41016         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41017         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41018         * lib/progreloc.c (includes): Likewise.
41019
41020 2009-09-19  Jim Meyering  <meyering@redhat.com>
41021
41022         test-posixtm.c: correct a comment
41023         * tests/test-posixtm.c: Correct first-line comment.
41024         Spotted by Eric Blake.
41025
41026 2009-09-16  Jim Meyering  <meyering@redhat.com>
41027
41028         posixtm-tests: make T const-correct; add a test case
41029         * tests/test-posixtm.c (T): Declare const.
41030         Add a test for -(2^31+1).
41031         Remove useless can-succeed-only-in-2002 test.
41032
41033         posixtm-tests: adjust the sole failing test
41034         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41035         expected output matches what mktime now produces.  Cross-checked via
41036         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41037
41038         posixtm: move #ifdef'd tests into a new module
41039         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41040         * tests/test-posixtm.c: ... this new file.
41041         * modules/posixtm-tests: New module.
41042
41043 2009-09-19  Eric Blake  <ebb9@byu.net>
41044
41045         openat: simplify use of at-func.c
41046         * lib/at-func.c (includes): Include prerequisites here, to
41047         simplify requirements on client files.
41048         * lib/openat-priv.h: Add double-inclusion guard.
41049         * lib/faccessat.c (includes): Simplify.
41050         * lib/fchmodat.c (includes): Likewise.
41051         * lib/fchownat.c (includes): Likewise.
41052         * lib/mkdirat.c (includes): Likewise.
41053         * lib/mkfifoat.c (includes): Likewise.
41054         * lib/symlinkat.c (includes): Likewise.
41055
41056         openat: allow return of fd 0
41057         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41058         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41059         unistd-safer.
41060         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41061         <fcntl.h>; this module does not leak fds.
41062         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41063         must be allowed to return 0, leaving openat_safer to add the
41064         safety.
41065         (openat_permissive): Avoid writing to just-opened fd 2 if
41066         restoring the current directory fails.
41067         * lib/openat-die.c (openat_restore_fail): Add comment.
41068         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41069         (save_cwd): Guarantee safe fd, but without use of open_safer.
41070         * tests/test-openat.c: New test.
41071         * modules/openat-tests (Files, Makefile.am): Distribute and build
41072         new file.
41073
41074         relocatable-prog-wrapper: fix build
41075         * modules/relocatable-prog-wrapper (Files): Update name of
41076         canonicalize m4 file, broken on 2009-09-17.
41077         Reported by emad hajjar <aleppos@hotmail.com>.
41078
41079 2009-09-19  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41082         * lib/safe-alloc.c: Likewise.
41083         Reported by Ian Beckwith <ianb@erislabs.net>.
41084
41085 2009-09-18  Bruno Haible  <bruno@clisp.org>
41086
41087         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41088         Reported by <erobles@sensacd.com.mx>.
41089
41090 2009-09-17  Eric Blake  <ebb9@byu.net>
41091
41092         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41093         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41094         slashes when checking if last component is missing.
41095         * tests/test-canonicalize.c (main): Test this.
41096
41097         canonicalize, canonicalize-lgpl: honor // if distinct from /
41098         * modules/canonicalize (Files): Add double-slash-root.m4.
41099         * modules/canonicalize-lgpl (Files): Likewise.
41100         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41101         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41102         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41103         fallback definition.
41104         (canonicalize_filename_mode): Use it to protect //.
41105         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41106         (__realpath): Likewise.
41107         * tests/test-canonicalize.c (main): Test this.
41108         * tests/test-canonicalize-lgpl.c (main): Likewise.
41109         * modules/canonicalize-tests (Depends-on): Add same-inode.
41110         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41111
41112         canonicalize-lgpl: fix glibc bug with trailing slash
41113         * m4/canonicalize-lgpl.m4: Move contents...
41114         * m4/canonicalize.m4: ...here.
41115         (gl_CANONICALIZE_LGPL): Factor realpath check...
41116         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41117         glibc 2.3.5 bug, fixed 2005-04-27.
41118         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41119         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41120         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41121         * modules/canonicalize-lgpl (Files): Manage file rename.
41122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41123         * modules/stdlib (Makefile.am): Substitute witness.
41124         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41125         is needed.
41126         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41127         replacement is required.
41128         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41129         * doc/glibc-functions/canonicalize_file_name.texi
41130         (canonicalize_file_name): Document this.
41131         * doc/posix-functions/realpath.texi (realpath): Likewise.
41132
41133         canonicalize-lgpl: reject non-directory with trailing slash
41134         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41135         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41136         catches failures in glibc 2.3.5.
41137         * tests/test-canonicalize.c (main): Likewise.
41138
41139         canonicalize-lgpl: use native realpath if it works
41140         * lib/canonicalize-lgpl.c (realpath): Guard with
41141         FUNC_REALPATH_WORKS.
41142         * lib/stdlib.in.h (realpath): Make declaration optional based on
41143         HAVE_REALPATH.
41144         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41145         native realpath works.
41146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41147         * modules/stdlib (Makefile.am): Substitute witness.
41148
41149         canonicalize, canonicalize-lgpl: use <stdlib.h>
41150         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41151         (Include): Mention <stdlib.h>.
41152         (configure.ac): Mention functions we provide.
41153         * modules/canonicalize (configure.ac): Likewise.
41154         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41155         realpath if canonicalize_file_name is missing.
41156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41157         * modules/stdlib (Makefile.am): Substitute witnesses.
41158         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41159         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41160         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41161         * NEWS: Document this.
41162         * doc/glibc-functions/canonicalize_file_name.texi
41163         (canonicalize_file_name): Likewise.
41164         * doc/posix-functions/realpath.texi (realpath): Likewise.
41165         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41166
41167         test-canonicalize: consolidate into single C program
41168         * tests/test-canonicalize.sh: Delete; move setup into...
41169         * tests/test-canonicalize.c (main): ...the program, making it
41170         easier to run in debugger.  Add some tests.
41171         * modules/canonicalize-tests (Files): Remove unused file.
41172         (Depends-on): Add progname.
41173         (configure.ac, Makefile.am): Simplify.
41174
41175         test-canonicalize-lgpl: consolidate into single C program
41176         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41177         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41178         easier to run in debugger.  Add some tests.
41179         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41180         (configure.ac, Makefile.am): Simplify.
41181
41182         canonicalize: avoid resolvepath
41183         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41184         unnecessary checks.
41185         * lib/canonicalize.c (includes): Simplify.
41186         (canonicalize_file_name): Drop resolvepath implementation.
41187         * modules/canonicalize (Depends-on): Drop filenamecat.
41188
41189         canonicalize: don't lose errno
41190         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41191         over calls to free.
41192
41193         canonicalize: simplify errno handling
41194         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41195         assignment.
41196
41197         canonicalize, canonicalize-lgpl: update module dependencies
41198         * modules/canonicalize (Depends-on): Add extensions, lstat,
41199         pathmax, stdlib.
41200         (Files): Drop pathmax.h.
41201         (configure.ac): Adjust macro name.
41202         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41203         lstat, stdlib, sys_stat.
41204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41205         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41206         extensions.
41207         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41208         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41209         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41210         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41211         declaration, if available.
41212         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41213         we can rely on the readlink module.
41214         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41215         (includes): Use <unistd.h> unconditionally.
41216
41217 2009-09-17  Eric Blake  <ebb9@byu.net>
41218
41219         maint: make Include sections of modules consistent
41220         * modules/alloca: Use only header name; no need to list #include.
41221         * modules/alloca-opt: Likewise.
41222         * modules/arpa_inet: Likewise.
41223         * modules/canon-host: Likewise.
41224         * modules/configmake: Likewise.
41225         * modules/dirent: Likewise.
41226         * modules/eealloc: Likewise.
41227         * modules/environ: Likewise.
41228         * modules/fchdir: Likewise.
41229         * modules/fcntl: Likewise.
41230         * modules/fcntl-h: Likewise.
41231         * modules/gethrxtime: Likewise.
41232         * modules/gettime: Likewise.
41233         * modules/ignore-value: Likewise.
41234         * modules/inet_ntop: Likewise.
41235         * modules/inet_pton: Likewise.
41236         * modules/inttypes: Likewise.
41237         * modules/isnand-nolibm: Likewise.
41238         * modules/isnanf-nolibm: Likewise.
41239         * modules/mbchar: Likewise.
41240         * modules/mbfile: Likewise.
41241         * modules/mbiter: Likewise.
41242         * modules/mbuiter: Likewise.
41243         * modules/netdb: Likewise.
41244         * modules/netinet_in: Likewise.
41245         * modules/nproc: Likewise.
41246         * modules/pagealign_alloc: Likewise.
41247         * modules/poll: Likewise.
41248         * modules/printf-frexp: Likewise.
41249         * modules/pthread: Likewise.
41250         * modules/putenv: Likewise.
41251         * modules/random_r: Likewise.
41252         * modules/relocatable-prog: Likewise.
41253         * modules/search: Likewise.
41254         * modules/select: Likewise.
41255         * modules/selinux-h: Likewise.
41256         * modules/settime: Likewise.
41257         * modules/signal: Likewise.
41258         * modules/size_max: Likewise.
41259         * modules/socklen: Likewise.
41260         * modules/ssize_t: Likewise.
41261         * modules/stdarg: Likewise.
41262         * modules/stdbool: Likewise.
41263         * modules/stddef: Likewise.
41264         * modules/stdint: Likewise.
41265         * modules/stdio: Likewise.
41266         * modules/stdlib: Likewise.
41267         * modules/string: Likewise.
41268         * modules/strings: Likewise.
41269         * modules/sys_file: Likewise.
41270         * modules/sys_ioctl: Likewise.
41271         * modules/sys_select: Likewise.
41272         * modules/sys_socket: Likewise.
41273         * modules/sys_stat: Likewise.
41274         * modules/sys_time: Likewise.
41275         * modules/sys_times: Likewise.
41276         * modules/sys_utsname: Likewise.
41277         * modules/sys_wait: Likewise.
41278         * modules/sysexits: Likewise.
41279         * modules/time: Likewise.
41280         * modules/times: Likewise.
41281         * modules/tmpfile: Likewise.
41282         * modules/trim: Likewise.
41283         * modules/unistd: Likewise.
41284         * modules/wchar: Likewise.
41285         * modules/wctype: Likewise.
41286
41287 2009-09-17  Bruno Haible  <bruno@clisp.org>
41288
41289         Make getdate.y compile on QNX and NetBSD 5 / i386.
41290         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41291         TIME_T_FITS_IN_LONG_INT.
41292         * lib/getdate.y (long_time_t): New type.
41293         (relative_time): Change type of 'seconds' field to long_time_t.
41294         (get_date): Update types of local variables. Check against overflow
41295         during conversion from long_time_t to time_t.
41296         Reported by Matt Kraai <kraai@ftbfs.org>
41297         and Hasso Tepper <hasso@netbsd.org>.
41298
41299 2009-09-17  Bruno Haible  <bruno@clisp.org>
41300
41301         * modules/COPYING: Update copyright years.
41302         * modules/README: Likeiwse.
41303         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41304         Reported by Ian Beckwith <ianb@erislabs.net>.
41305
41306 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41307
41308         * users.txt: Update references for gnuit package.
41309
41310 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41311
41312         * m4/getdelim.m4: Fix typo in copyright line.
41313
41314 2009-09-17  Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/atoll.c: Use the standard header with GPL copyright.
41317         * lib/argz.in.h: Likewise.
41318         * lib/glob.c: Likewise.
41319         * lib/glob-libc.h: Likewise.
41320         * lib/random_r.c: Likewise.
41321         * lib/siglist.h: Likewise.
41322         * lib/strsignal.c: Likewise.
41323         Reported by Ian Beckwith <ianb@erislabs.net>.
41324
41325 2009-09-17  Eric Blake  <ebb9@byu.net>
41326
41327         rmdir: ensure correct dependency order
41328         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41329
41330 2009-09-17  Bruno Haible  <bruno@clisp.org>
41331
41332         Disable assertion that fails on NetBSD 5 / i386.
41333         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41334         Reported by Sam Steingold <sds@gnu.org>
41335         and Hasso Tepper <hasso@netbsd.org>.
41336
41337 2009-09-16  Eric Blake  <ebb9@byu.net>
41338
41339         unlinkdir: port to mingw
41340         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41341         on which no one can unlink a directory.
41342
41343         stdlib: sort witness names
41344         * modules/stdlib (Makefile.am): Sort replacements.
41345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41346         * lib/stdlib.in.h: Likewise.
41347
41348         parse-duration-tests: avoid link failure
41349         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41350         LIBINTL.
41351         Reported by Tom G. Christensen.
41352
41353         openat-tests: ensure unlinkat behaves like rmdir
41354         * tests/test-rmdir.c (main): Factor guts...
41355         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41356         * modules/rmdir-tests (Files): Ship new file.
41357         * modules/openat-tests: New test.
41358         * tests/test-unlinkat.c: Likewise.
41359
41360         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41361         * modules/rmdir-errno (Status, Notice): Now obsolete.
41362
41363         rmdir: work around cygwin 1.5.x and mingw bugs
41364         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41365         * lib/rmdir.c (rmdir): Work around it.
41366         * modules/rmdir (Status, Notice): No longer obsolete.
41367         (Files): Add dos.m4.
41368         (Depends-on): Add unistd.
41369         (configure.ac): Set witnesses.
41370         (License): Relax to LGPLv2+.
41371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41372         * modules/unistd (Makefile.am): Substitute witnesses.
41373         * lib/unistd.in.h (rmdir): Declare replacement.
41374         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41375         * modules/rmdir-tests: New tests.
41376         * tests/test-rmdir.c: Likewise.
41377
41378 2009-09-15  Eric Blake  <ebb9@byu.net>
41379
41380         fchdir: improve use of replacement functions
41381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41383         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41384         REPLACE_CLOSEDIR.
41385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41386         * modules/sys_stat (Makefile.am): Substitute correct witness.
41387         * modules/dirent (Makefile.am): Likewise.
41388         * modules/unistd (Makefile.am): Likewise.
41389         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41390         * lib/unistd.in.h (dup): Likewise.
41391         * lib/sys_stat.in.h (fstat): Likewise.
41392
41393         maint: ignore gnulib-tool temp files
41394         * .gitignore: Ignore files created during gnulib-tool --test.
41395
41396 2009-09-13  Jim Meyering  <meyering@redhat.com>
41397
41398         posixtm: don't reject a time that specify "60" as the number of seconds
41399         * lib/posixtm.c (posixtime): The code to reject invalid dates
41400         would also reject a time specified with the .60 suffix.
41401         But POSIX allows that, in order to accommodate leap seconds.
41402         So don't reject it.
41403         (main): Adjust tests accordingly.
41404         * modules/posixtm (Depends-on): Add stpcpy.
41405
41406 2009-09-11  Jim Meyering  <meyering@redhat.com>
41407
41408         announce-gen: include [$release_type] in emitted Subject:
41409         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41410         e.g., [stable] in the emitted Subject: line.
41411
41412 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41413
41414         Remove obsolete macros from several modules.
41415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41416         obsolete Autoconf macros with their modern counterparts.
41417         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41418         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41420         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41422         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41424         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41425         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41426         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41427         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41428         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41429         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41430         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41431         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41432         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41433         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41434         * m4/time_r.m4 (gl_TIME_R): Likewise.
41435         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41436         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41437         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41438
41439         Fix copyright header in build-aux scripts.
41440         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41441         recommendation.
41442         * build-aux/ncftpput-ftp: Likewise.
41443         * build-aux/update-copyright: Likewise.
41444
41445 2009-09-09  Eric Blake  <ebb9@byu.net>
41446
41447         test-link: allow Linux choice of errno
41448         * tests/test-link.c (main): Relax test for alternate error.
41449
41450         strndup: fix improper m4 caching
41451         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41452         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41453         (gl_PREREQ_STRNDUP): Delete.
41454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41455         * modules/string (Makefile.am): Substitute it.
41456         * lib/string.in.h (strndup): Modernize prototype.
41457
41458         getcwd: port to mingw
41459         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41460         different from the POSIX assumptions made throughout the getcwd
41461         module; fortunately, the mingw getcwd does not need replacement.
41462         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41463         * modules/getcwd-tests: New test.
41464         * tests/test-getcwd.c: Likewise.
41465
41466         link: fix platform bugs
41467         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41468         * lib/link.c (link): Work around them.  Fix related mingw bug.
41469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41470         * modules/unistd (Makefile.am): Substitute it.
41471         * lib/unistd.in.h (link): Declare replacement.
41472         * doc/posix-functions/link.texi (link): Document this.
41473         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41474
41475         test-link: consolidate into single C program, test more cases
41476         * tests/test-link.sh: Delete.
41477         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41478         at least Cygwin and Solaris.
41479         * modules/link-tests (Files): Remove unused file.
41480         (Depends-on): Add errno, sys_stat.
41481         (Makefile.am): Simplify.
41482
41483 2009-09-08  Bruno Haible  <bruno@clisp.org>
41484
41485         Work around towlower, towupper bug on mingw.
41486         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41487         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41488         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41489         * doc/posix-functions/towupper.texi: Likewise.
41490         Reported by Eric Blake.
41491
41492 2009-09-08  Jim Meyering  <meyering@redhat.com>
41493
41494         build: don't try to run autoheader if we don't use it
41495         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41496         is not used in configure.ac.
41497
41498 2009-09-08  Eric Blake  <ebb9@byu.net>
41499
41500         euidaccess: fix compilation error
41501         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41502
41503         rawmemchr: relax license
41504         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41505         okay.
41506         Reported by Jim Meyering.
41507
41508         mkfifoat: new module
41509         * modules/mkfifoat: New file.
41510         * lib/mkfifoat.c: Likewise.
41511         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41513         * modules/sys_stat (Makefile.am): Use them.
41514         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41515         * MODULES.html.sh (File system functions): Mention module.
41516         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41517         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41518         * modules/mkfifoat-tests: New test.
41519         * tests/test-mkfifoat.c: Likewise.
41520
41521         strchrnul: relax license
41522         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41523         okay.
41524         Reported by Jim Meyering.
41525
41526 2009-09-08  Eric Blake  <ebb9@byu.net>
41527
41528         fstatat: fix compilation on Solaris
41529         * lib/fstatat.c (includes): Add fcntl.h.
41530         Reported by Pádraig Brady.
41531
41532 2009-09-07  Eric Blake  <ebb9@byu.net>
41533
41534         rename: modernize replacement
41535         * modules/rename (Depends-on): Add stdio.
41536         (configure.ac): Declare witness.
41537         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41538         stdio take care of replacement.
41539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41540         * modules/stdio (Makefile.am): Substitute them.
41541         * lib/stdio.in.h (rename): Declare replacement.
41542         * lib/rename.c (includes): Allow cross-compilation to non-windows
41543         machines.
41544         * doc/posix-functions/rename.texi (rename): Improve
41545         documentation.
41546
41547         stdio: sort witness names
41548         * modules/stdio (Makefile.am): Sort replacements.
41549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41550         * lib/stdio.in.h: Likewise.
41551
41552         getcwd: minor cleanups
41553         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41554         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41555
41556         openat: provide more convenience names
41557         * modules/faccessat (configure.ac): Add C witness.
41558         * lib/unistd.in.h (readlinkat): Fix typo.
41559         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41560         convenience wrappers.
41561         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41562         wrappers in syntax checks.
41563
41564 2009-09-06  Eric Blake  <ebb9@byu.net>
41565
41566         doc: fix comments in recent patches
41567         * lib/faccessat.c: Mention correct function.
41568         * lib/fchmodat.c: Likewise.
41569         * lib/fchownat.c: Likewise.
41570         * lib/symlinkat.c: Likewise.
41571         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41572         constants.
41573
41574         faccessat, symlinkat: continue cleanup of previous patch
41575         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41576         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41577         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41579         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41580         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41581         set.
41582
41583 2009-09-06  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41586         (fstatat): Declare if GNULIB_FSTATAT is set.
41587         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41588         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41589         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41590         * modules/fcntl-h (Files): Remove m4/openat.m4.
41591         * modules/sys_stat (Files): Remove m4/openat.m4.
41592         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41593         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41594         * modules/unistd (Files): Remove m4/openat.m4.
41595         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41596         GNULIB_OPENAT.
41597         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41598         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41599         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41600         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41601         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41602         gl_OPENAT_DEFAULTS.
41603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41604         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41605         Don't require gl_OPENAT_DEFAULTS.
41606         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41607         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41608         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41609         (gl_OPENAT_DEFAULTS): Remove macro.
41610
41611 2009-09-06  Bruno Haible  <bruno@clisp.org>
41612
41613         * modules/openat (configure.ac): Remove unneeded witness.
41614
41615 2009-09-06  Bruno Haible  <bruno@clisp.org>
41616
41617         Set errno to ENOSYS when a function is entirely unsupported.
41618         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41619         EOPNOTSUPP.
41620         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41621         * modules/chown (Depends-on): Remove errno.
41622
41623 2009-09-06  Bruno Haible  <bruno@clisp.org>
41624
41625         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41626
41627 2009-09-06  Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41630
41631 2009-09-06  Ben Pfaff  <blp@gnu.org>
41632             Bruno Haible  <bruno@clisp.org>
41633
41634         Work around a glibc bug in strtok_r.
41635         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41636         Undefine if UNDEFINE_STRTOK_R is set.
41637         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41639         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41640         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41641         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41642         UNDEFINE_STRTOK_R.
41643         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41644
41645 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41646
41647         exclude: minor fix
41648         * lib/exclude.c: Include wctype.h
41649
41650 2009-09-06  Akim Demaille  <demaille@gostai.com>
41651
41652         bootstrap: improve error message
41653         * build-aux/bootstrap (find_tool): Upon failure, report the list
41654         of candidates.
41655         Honor the initial value of the envvar.
41656
41657 2009-09-05  Eric Blake  <ebb9@byu.net>
41658
41659         symlinkat: new module
41660         * modules/symlinkat: New file.
41661         * lib/symlinkat.c: Likewise.
41662         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41664         * modules/unistd (Makefile.am): Use them.
41665         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41666         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41667         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41668         * MODULES.html.sh (File system functions): Mention module.
41669         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41670         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41671         * modules/symlinkat-tests: New test.
41672         * tests/test-symlinkat.c: Likewise.
41673
41674         test-openat-safer: add more checks
41675         * tests/test-openat-safer.c (main): Check more code paths.
41676
41677 2009-09-05  Jim Meyering  <meyering@redhat.com>
41678
41679         syntax-check: detect unnecessary inclusion of openat.h
41680         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41681
41682 2009-09-05  Bruno Haible  <bruno@clisp.org>
41683
41684         Support towlower, towupper.
41685         * doc/posix-functions/towlower.texi: Mention module wctype.
41686         * doc/posix-functions/towupper.texi: Likewise.
41687         * lib/wctype.in.h (towlower, towupper): New functions.
41688         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41689         (ASSERT): New macro.
41690         (e): New variable.
41691         (main): Test also towlower, towupper. Test WEOF argument.
41692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41693
41694 2009-09-05  Bruno Haible  <bruno@clisp.org>
41695
41696         Fix conversion behaviour when the input is invalid.
41697         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41698         mark occurring in first pass of indirect conversion.
41699         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41700         input.
41701         Found by clang's static analyzer.
41702
41703 2009-09-05  Bruno Haible  <bruno@clisp.org>
41704
41705         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41706         where direct conversion is possible.
41707
41708 2009-09-04  Eric Blake  <ebb9@byu.net>
41709
41710         openat: fail with ENOENT on empty name
41711         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41712         buffer.
41713
41714         link-follow: fix logic bug in prior patch
41715         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41716         reversed sense of yes and no in prior patch.  Avoid confusing
41717         compilation failure with desired semantics.
41718
41719         link-follow: accomodate mingw and cross-compilation
41720         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41721         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41722         cross-compilation results to -1, to make linkat easier to
41723         implement when cross-compiling.  Trivially support mingw.
41724         * modules/link-follow (configure.ac): Call new name.
41725         * NEWS: Mention this.
41726
41727 2009-09-03  Eric Blake  <ebb9@byu.net>
41728
41729         faccessat: compile replacement
41730         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41731         needed.
41732
41733         fts: fix compilation error
41734         * lib/fts.c (includes): Re-add "openat.h", for
41735         openat_needs_fchdir.
41736
41737         faccessat: new module
41738         * modules/faccessat: New file.
41739         * lib/faccessat.c: Likewise.
41740         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41742         * modules/unistd (Makefile.am): Use it.
41743         * lib/unistd.in.h (faccessat): Declare it.
41744         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41745         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41746         * MODULES.html.sh (File system functions): Mention it.
41747         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41748         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41749
41750         euidaccess: prefer POSIX over non-standard implementation
41751         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41752         * lib/euidaccess.c (euidaccess): Use it if available.
41753
41754         openat: make template easier to use
41755         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41756         AT_FUNC_F2 to be undefined.
41757         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41758         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41759         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41760         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41761         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41762         Likewise.
41763         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41764         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41765         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41766         Likewise.
41767
41768         openat: declare in POSIX headers
41769         * NEWS: Mention this.
41770         * modules/openat (configure.ac): Declare witnesses.
41771         (Depends-on): Add fcntl-h, sys_stat, unistd.
41772         (Include): Mention correct headers.
41773         * modules/fcntl-h (Depends-on): Add link-warning.
41774         (Files): Add openat.m4.
41775         (Makefile.am): Substitute witnesses.
41776         * modules/sys_stat (Files, Makefile.am): Likewise.
41777         * modules/unistd (Files, Makefile.am): Likewise.
41778         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41779         (gl_OPENAT_DEFAULTS): New macro.
41780         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41783         (SYS_STAT_H): Remove unused variable.
41784         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41785         * lib/fcntl--.h (includes): Remove unneeded header.
41786         * lib/openat-safer.c (includes): Likewise.
41787         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41788         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41789         appropriate headers.
41790         (__OPENAT_PREFIX): Delete.
41791         * lib/fcntl.in.h (openat): Provide declaration.
41792         (AT_FDCWD): Fix Solaris bug.
41793         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41794         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41795         * lib/fchmodat.c (includes):  Adjust to find declaration.
41796         * lib/fchownat.c (includes): Likewise.
41797         * lib/mkdirat.c (includes): Likewise.
41798         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41799         still visible.
41800
41801 2009-09-02  Eric Blake  <ebb9@byu.net>
41802
41803         errno: use consistently
41804         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41805         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41806         * lib/canonicalize.c (ELOOP): Likewise.
41807         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41808         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41809         * lib/lchown.c (EOPNOTSUPP): Likewise.
41810         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41811         * lib/savewd.c (ESTALE): Likewise.
41812         * lib/settime.c (ENOSYS): Likewise.
41813         * lib/utimens.c (ENOSYS): Likewise.
41814         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41815         * lib/chdir-safer.c (ELOOP): Likewise.
41816         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41817         * modules/c-stack (Depends-on): Add errno.
41818         * modules/canonicalize (Depends-on): Likewise.
41819         * modules/chdir-safer (Depends-on): Likewise.
41820         * modules/fdopendir (Depends-on): Likewise.
41821         * modules/inet_ntop (Depends-on): Likewise.
41822         * modules/inet_pton (Depends-on): Likewise.
41823         * modules/lchown (Depends-on): Likewise.
41824         * modules/openat (Depends-on): Likewise.
41825         * modules/savewd (Depends-on): Likewise.
41826         * modules/settime (Depends-on): Likewise.
41827         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41828
41829         fts: avoid leaking fds
41830         * modules/fts (Depends-on): Add cloexec.
41831         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41832         flag.
41833
41834         fts: make directory fds more robust
41835         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41836         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41837
41838         backupfile, chdir-long, fts, savedir: make safer
41839         * lib/backupfile.c (includes): Use "dirent--.h", since
41840         numbered_backup can write to stderr during readdir.
41841         * lib/savedir.c (includes): Likewise.
41842         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41843         emulation can write to stderr on failure.
41844         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41845         * lib/getcwd.c: Document why opendir_safer is unused.
41846         * lib/glob.c: Likewise.
41847         * lib/scandir.c: Likewise.
41848         * lib/openat-proc.c: Likewise, for open_safer.
41849         * modules/backupfile (Depends-on): Add dirent-safer.
41850         * modules/savedir (Depends-on): Likewise.
41851         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41852         * modules/chdir-long (Depends-on): Add openat-safer.
41853
41854         openat-safer: new module
41855         * modules/openat-safer: New file.
41856         * lib/openat-safer.c: Likewise.
41857         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41858         * lib/fcntl-safer.h (openat_safer): Declare.
41859         * lib/fcntl--.h (openat): Override.
41860         * MODULES.html.sh (File descriptor based I/O): Mention it.
41861         * lib/openat.h: Add double-inclusion guards.
41862         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41863         "fcntl--.h", so we can implement openat.
41864         * modules/openat-safer-tests: New test.
41865         * tests/test-openat-safer.c: New file.
41866
41867         dirent-safer: new module
41868         * modules/dirent-safer: New file.
41869         * lib/dirent--.h: Likewise.
41870         * lib/dirent-safer.h: Likewise.
41871         * lib/opendir-safer.c: Likewise.
41872         * m4/dirent-safer.m4: Likewise.
41873         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41874         * modules/dirent-safer-tests: New test.
41875         * tests/test-dirent-safer.c: New file.
41876         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41877
41878         fdopendir: optimize on mingw
41879         * lib/unistd.in.h (_gl_directory_name): New prototype.
41880         * lib/fchdir.c (_gl_directory_name): Implement it.
41881         (fchdir): Use it to simplify implementation.
41882         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41883         fchdir, when available, to avoid calling [f]chdir().
41884
41885         fdopendir: split into its own module
41886         * lib/openat.c (fdopendir): Move...
41887         * lib/fdopendir.c: ...into new file.
41888         * modules/fdopendir: New module.
41889         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41890         * modules/openat (Depends-on): Add fdopendir.
41891         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41892         fdopendir here.
41893         * modules/savedir (Depends-on): Only need fdopendir, not full
41894         openat.
41895         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41896         * lib/openat.h (fdopendir): Drop prototype.
41897         * lib/dirent.in.h (fdopendir): Provide prototype.
41898         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41899         * modules/dirent (Makefile.am): Substitute them.
41900         * MODULES.html.sh (File system functions): Mention it.
41901         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41902         * modules/fdopendir-tests: New file.
41903         * tests/test-fdopendir.c: Likewise.
41904
41905         fchdir: use more consistent macro convention
41906         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41907         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41908         REPLACE_FCHDIR, rather than relying on config.h macros.
41909         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41910         inside a single make-time REPLACE_FCHDIR block, rather than using
41911         the config.h FCHDIR_REPLACEMENT.
41912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41913         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41914         Manage fstat replacement.
41915         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41916         REPLACE_FCHDIR.
41917         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41918         (Makefile.am): Substitute REPLACE_FCHDIR.
41919         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41920         FCHDIR_REPLACEMENT.
41921         * lib/dup-safer.c (dup_safer): Likewise.
41922         * lib/dup2.c (rpl_dup2): Likewise.
41923         * lib/dup3.c (rpl_dup3): Likewise.
41924         * lib/open.c (rpl_open): Likewise.
41925
41926         fchdir: simplify error handling, and support dup3
41927         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41928         stdbool, malloc-posix, realloc-posix.
41929         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41930         (ensure_dirs_slot): Return false on allocation failure.
41931         (rpl_dup2): Delete.
41932         (_gl_register_dup): New function.
41933         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41934         (_gl_register_fd): Close fd on allocation failure.
41935         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41936         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41937         prototype.
41938         (rpl_dup2_fchdir): Delete prototype.
41939         * lib/open.c (open): Update caller.
41940         * lib/dup2.c (dup2): Track fchdir metadata.
41941         * lib/dup3.c (dup3): Likewise.
41942         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41943         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41944
41945 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41946
41947         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41948         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41949         don't pass arguments to AC_OUTPUT.
41950
41951 2009-09-02  Bruno Haible  <bruno@clisp.org>
41952
41953         * modules/mkdtemp (License): Relicense under LGPLv2+.
41954         Reported by Paolo Bonzini.
41955
41956 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41957
41958         Replace uses of obsolete autoconf macros in Jim's modules.
41959         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41960         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41961         can evoke a warning from autoconf when run with -Wobsolete
41962         enabled.  They were declared obsolete for good reasons (see
41963         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41964         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41965         should not continue using the deprecated macros.
41966         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41967         obsolete Autoconf macros with modern counterparts.
41968         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41969         * m4/dos.m4 (gl_AC_DOS): Likewise.
41970         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41971         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41972         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41973         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41974         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41975         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41976         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41977         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41978         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41979         Likewise.
41980         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41981         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41983         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41984         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41985         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41986
41987 2009-09-01  Eric Blake  <ebb9@byu.net>
41988
41989         fchdir: fix off-by-one bug in previous patch
41990         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41991         (_gl_unregister_fd): Delete useless if.
41992
41993 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41994
41995         maint.mk: sort the list of syntax-check rules
41996         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41997         easier to get a sense of progress when the rules are run sequentially
41998         and take a long time.
41999
42000 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42001
42002         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42003         * modules/netinet_in: Likewise.
42004         * modules/sys_file: Likewise.
42005         * modules/sys_ioctl: Likewise.
42006         * modules/sys_select: Likewise.
42007         * modules/sys_socket: Likewise.
42008         * modules/sys_stat: Likewise.
42009         * modules/sys_time: Likewise.
42010         * modules/sys_times: Likewise.
42011         * modules/sys_utsname: Likewise.
42012         * modules/sys_wait: Likewise.
42013
42014 2009-09-01  Jim Meyering  <meyering@redhat.com>
42015
42016         fts: help ensure that return values are not ignored
42017         * lib/fts_.h (__GNUC_PREREQ): Define.
42018         (__attribute_warn_unused_result__): Define.
42019         (fts_children, fts_close, fts_open, fts_read): Declare with
42020         __attribute_warn_unused_result__.
42021
42022         fts: fts_close now fails also when closing a dir file descriptor fails
42023         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42024         and propagate to caller, along with errno.
42025
42026         announce-gen: correct formatting in --help output
42027         * build-aux/announce-gen (usage): Move the one-line description in
42028         --help output "up", to where it belongs, just after Usage:.
42029
42030 2009-08-31  Eric Blake  <ebb9@byu.net>
42031
42032         fchdir: port to mingw
42033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42034         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42035         opened, then use a substitute.
42036         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42037         replacement.
42038         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42039         (_gl_register_fd): No need to check stat if open already filters
42040         all directories.
42041         (fchdir): Fix error condition to match POSIX.
42042         * modules/fchdir (Depends-on): Add sys_stat.
42043         * doc/posix-functions/open.texi (open): Document the limitation.
42044         * modules/fchdir-tests: New file.
42045         * tests/test-fchdir.c: Likewise.
42046
42047         canonicalize: allow cross-testing from cygwin to mingw
42048         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42049         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42050         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42051         Likewise.
42052         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42053         target does not support symlinks.
42054         * tests/test-canonicalize-lgpl.sh: Likewise.
42055
42056         chown: avoid compilation warning on mingw
42057         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42058         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42059         mingw.
42060         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42061         * modules/chown (Depends-on): Add errno.
42062
42063 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42064
42065         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42066         command.
42067
42068 2009-08-31  Jim Meyering  <meyering@redhat.com>
42069
42070         canonicalize: remove useless initialization
42071         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42072         initialization of local, "end".
42073
42074 2009-08-30  Bruno Haible  <bruno@clisp.org>
42075
42076         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42077         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42078         ENOSYS.
42079
42080 2009-08-30  Bruno Haible  <bruno@clisp.org>
42081
42082         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42083         /usr/xpg4/bin/tr when it exists.
42084         * tests/test-pipe-filter-gi1.sh: Likewise.
42085
42086 2009-08-30  Bruno Haible  <bruno@clisp.org>
42087
42088         Work around deficient /usr/bin/id program on Solaris.
42089         * tests/test-file-has-acl.sh (ID): New variable.
42090         * tests/test-set-mode-acl.sh (ID): Likewise.
42091         * tests/test-copy-acl.sh (ID): Likewise.
42092         * tests/test-copy-file.sh (ID): Likewise.
42093
42094 2009-08-30  Bruno Haible  <bruno@clisp.org>
42095
42096         New module 'xstriconveh'.
42097         * lib/xstriconveh.h: New file.
42098         * lib/xstriconveh.c: New file.
42099         * modules/xstriconveh: New file.
42100
42101 2009-08-30  Bruno Haible  <bruno@clisp.org>
42102
42103         Make it easier to use mem_cd_iconveh.
42104         * lib/striconveh.h (iconveh_t): New type.
42105         (iconveh_open, iconveh_close): New declarations.
42106         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42107         with a single 'const iconveh_t *' argument.
42108         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42109         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42110         with a single 'const iconveh_t *' argument.
42111         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42112         * tests/test-striconveh.c (main): Update.
42113         * NEWS: Mention the change.
42114
42115 2009-08-30  Bruno Haible  <bruno@clisp.org>
42116
42117         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42118         problem.
42119
42120 2009-08-30  Bruno Haible  <bruno@clisp.org>
42121
42122         Work around iconv_open problem on Solaris.
42123         * lib/iconv_open-solaris.gperf: New file.
42124         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42125         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42126         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42127         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42128         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42129         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42130
42131 2009-08-29  Jim Meyering  <meyering@redhat.com>
42132
42133         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42134         * top/maint.mk (cvs-check): Remove target; it was just an alias
42135         to the better-named vc-diff-check.
42136         (maintainer-distcheck): Remove rule.  It was used only from
42137         the (alpha/beta/major) target, and all of its commands but one
42138         were coreutils-specific.
42139         (vc-dist): Remove rule.
42140         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42141         Run vc-diff-check, not vc-dist.
42142         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42143
42144 2009-08-27  Bruno Haible  <bruno@clisp.org>
42145
42146         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42147         of 0.
42148
42149 2009-08-27  Bruno Haible  <bruno@clisp.org>
42150
42151         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42152         compilers.
42153         * doc/func.texi: Document the SunPRO C bug.
42154
42155 2009-08-27  Bruno Haible  <bruno@clisp.org>
42156
42157         Fix link error on Solaris.
42158         * tests/test-parse-duration.c (xstrdup): Remove function.
42159
42160 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42161
42162         ignore-value: handle pointer types, too
42163         * lib/ignore-value.h (__attribute__): Remove definition.
42164         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42165         of a more concise and more-often effective "(void) i" statement.
42166         (ignore_ptr): New function to suppress warnings from functions that
42167         return pointers, and to make it explicit that one function doesn't
42168         handle all cases.
42169
42170 2009-08-25  Bruno Haible  <bruno@clisp.org>
42171
42172         dup2: work around a Linux bug.
42173         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42174         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42175         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42176         Reported by Simon Josefsson.
42177
42178 2009-08-25  Jim Meyering  <meyering@redhat.com>
42179
42180         libguestfs uses gnulib
42181         * users.txt: Add libguestfs.
42182
42183 2009-08-24  Eric Blake  <ebb9@byu.net>
42184
42185         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42186         * lib/pipe2.c (includes): Add binary-io.h.
42187         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42188
42189 2009-08-24  Bruno Haible  <bruno@clisp.org>
42190
42191         Tolerate declared but missing accept4 syscall.
42192         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42193         available.
42194         * lib/sys_socket.in.h (accept4): If the function is already present,
42195         override it.
42196         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42197         * modules/accept4 (Makefile.am): Compile accept4.c always.
42198         Reported by Paolo Bonzini and Eric Blake.
42199
42200 2009-08-23  Bruno Haible  <bruno@clisp.org>
42201
42202         New module 'accept4'.
42203         * lib/sys_socket.in.h (accept4): New declaration.
42204         * lib/accept4.c: New file.
42205         * m4/accept4.m4: New file.
42206         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42207         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42208         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42209         HAVE_ACCEPT4.
42210         * modules/accept4: New file.
42211         * doc/glibc-functions/accept4.texi: Mention the new module.
42212
42213 2009-08-24  Jim Meyering  <meyering@redhat.com>
42214
42215         progname: also set global program_invocation_name, when possible
42216         Before this change, a libtool-enabled program that calls glibc's
42217         error function would report the program name as
42218         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42219         * modules/progname (configure.ac): Check for a declaration of
42220         program_invocation_name.
42221         * lib/progname.c:  Include <errno.h>.
42222         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42223         Set program_invocation_name.
42224
42225 2009-08-23  Bruno Haible  <bruno@clisp.org>
42226
42227         * lib/dup3.c: Include <string.h>.
42228
42229 2009-08-23  Bruno Haible  <bruno@clisp.org>
42230
42231         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42232         * lib/pipe2.c (pipe2): Likewise.
42233         Suggested by Eric Blake.
42234
42235 2009-08-23  Bruno Haible  <bruno@clisp.org>
42236
42237         Tolerate declared but missing dup3 syscall.
42238         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42239         * lib/unistd.in.h (dup3): If the function is already present,
42240         override it.
42241         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42242         * modules/dup3 (Makefile.am): Compile dup3.c always.
42243         Reported by Paolo Bonzini.
42244
42245 2009-08-23  Bruno Haible  <bruno@clisp.org>
42246
42247         Tolerate declared but missing pipe2 syscall.
42248         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42249         available.
42250         * lib/unistd.in.h (pipe2): If the function is already present,
42251         override it.
42252         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42253         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42254         Reported by Paolo Bonzini.
42255
42256 2009-08-23  Bruno Haible  <bruno@clisp.org>
42257
42258         * lib/pipe2.c (pipe2): Move #ifs inside function.
42259
42260 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42261
42262         quotearg: document limitations of quote_these_too
42263         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42264         those limitations are created.
42265         * lib/quotearg.h (set_char_quoting): Document that digits and
42266         letters that are special after backslash are not permitted.
42267         (quotearg_char): Cross-reference set_char_quoting documentation.
42268
42269 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42270
42271         quotearg: implement custom_quoting_style
42272         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42273         right_quote fields.
42274         (set_custom_quoting): New public function.
42275         (quotearg_buffer_restyled): Add left_quote and right_quote
42276         arguments, handle them very much like locale quoting, and update
42277         all uses.
42278         (quotearg_n_custom): New public function.
42279         (quotearg_n_custom_mem): New public function.
42280         (quotearg_custom): New public function.
42281         (quotearg_custom_mem): New public function.
42282         * lib/quotearg.h: Prototype and document new public functions.
42283         (enum quoting_style): For escape_quoting_style and
42284         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42285         ignored even though they're otherwise like c_quoting_style.
42286         Add custom_quoting_style member and document with comparison to
42287         clocale_quoting_style.
42288         * tests/test-quotearg.c (custom_quotes): New array.
42289         (custom_results): New array.
42290         (main): Extend to test custom quoting.
42291
42292 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42293
42294         quotearg: fix right quote escaping when it's in quote_these_too
42295         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42296         quote, be sure to prepend only one backslash.
42297         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42298         (main): Test it.
42299
42300 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42301
42302         quotearg-tests: test escaping of embedded locale quotes
42303         * tests/test-quotearg.c (struct result_strings): Add member for
42304         new input.
42305         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42306         (inputs): Add new input.
42307         (results_g): Add expected results.
42308         (flag_results): Likewise.
42309         (locale_results): Likewise.
42310         (compare_strings): Check those.
42311
42312 2009-08-23  Bruno Haible  <bruno@clisp.org>
42313
42314         Tests for module 'dup3'.
42315         * modules/dup3-tests: New file.
42316         * tests/test-dup3.c: New file.
42317
42318         New module 'dup3'.
42319         * lib/unistd.in.h (dup3): New declaration.
42320         * lib/dup3.c: New file.
42321         * m4/dup3.m4: New file.
42322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42323         HAVE_DUP3.
42324         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42325         * modules/dup3: New file.
42326         * doc/glibc-functions/dup3.texi: Mention the new module.
42327
42328 2009-08-23  Bruno Haible  <bruno@clisp.org>
42329
42330         Tweak the dup2 test.
42331         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42332         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42333         the test file is still empty. Fix argument order of lseek.
42334
42335 2009-08-23  Bruno Haible  <bruno@clisp.org>
42336
42337         Avoid test link errors when the modules getopt-gnu, gettext are used.
42338         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42340
42341 2009-08-23  Bruno Haible  <bruno@clisp.org>
42342
42343         Fix getdtablesize() on mingw.
42344         * lib/getdtablesize.c (getdtablesize): Implement differently.
42345         * lib/unistd.in.h (getdtablesize): Improve comment.
42346
42347 2009-08-23  Bruno Haible  <bruno@clisp.org>
42348
42349         New module 'mkostemp'.
42350         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42351         * lib/stdlib.in.h (mksotemp): New declaration.
42352         * lib/mkostemp.c: New file, from glibc with modifications.
42353         * lib/tempname.h (GT_FILE): Remove outdated comment.
42354         (gen_tempname): Add flags argument.
42355         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42356         (__GT_FILE): Map to 1.
42357         (small_open, large_open): Remove macros.
42358         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42359         * lib/mkstemp.c (mkstemp): Update.
42360         * lib/mkdtemp.c (mkdtemp): Likewise.
42361         * m4/mkostemp.m4: New file.
42362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42363         HAVE_MKOSTEMP.
42364         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42365         HAVE_MKOSTEMP.
42366         * modules/mkostemp: New file, based on modules/mkstemp.
42367         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42368         * NEWS: Mention the change.
42369
42370 2009-08-23  Bruno Haible  <bruno@clisp.org>
42371
42372         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42373         Reported by Eric Blake.
42374
42375 2009-08-23  Bruno Haible  <bruno@clisp.org>
42376
42377         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42378         Reported by Eric Blake.
42379
42380 2009-08-23  Bruno Haible  <bruno@clisp.org>
42381
42382         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42383         * modules/pipe2 (Depends-on): Likewise.
42384
42385 2009-08-23  Eric Blake  <ebb9@byu.net>
42386
42387         fcntl-h: add O_TTY_INIT support
42388         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42389         * tests/test-fcntl-h.c (o): Test it.
42390         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42391
42392         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42393         * modules/fcntl: Move <fcntl.h> header replacement...
42394         * modules/fcntl-h: ...to new name, so as not to collide with
42395         like-named function.
42396         * tests/test-fcntl.c: Rename...
42397         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42398         * modules/fcntl-tests: Rename...
42399         * modules/fcntl-h-tests: ...to this.  Update test file name.
42400         * modules/chdir-long (Depends-on): Update clients.
42401         * modules/chdir-safer (Depends-on): Likewise.
42402         * modules/fcntl-safer (Depends-on): Likewise.
42403         * modules/fts (Depends-on): Likewise.
42404         * modules/mkancesdirs (Depends-on): Likewise.
42405         * modules/mkdir-p (Depends-on): Likewise.
42406         * modules/open (Depends-on): Likewise.
42407         * modules/savewd (Depends-on): Likewise.
42408         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42409         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42410
42411 2009-08-22  Bruno Haible  <bruno@clisp.org>
42412
42413         * modules/binary-io (License): Relicense under LGPL.
42414         * modules/pipe2 (License): Likewise.
42415
42416 2009-08-22  Bruno Haible  <bruno@clisp.org>
42417
42418         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42419         return value.
42420         * lib/pipe-filter-gi.c (filter_init): Likewise.
42421         Reported by Eric Blake.
42422
42423 2009-08-22  Bruno Haible  <bruno@clisp.org>
42424
42425         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42426         * modules/pipe (Depends-on): Add pipe2.
42427
42428 2009-08-22  Bruno Haible  <bruno@clisp.org>
42429
42430         Tests for module 'pipe2'.
42431         * modules/pipe2-tests: New file.
42432         * tests/test-pipe2.c: New file.
42433
42434         New module 'pipe2'.
42435         * lib/unistd.in.h (pipe2): New declaration.
42436         * lib/pipe2.c: New file.
42437         * m4/pipe2.m4: New file.
42438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42439         HAVE_PIPE2.
42440         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42441         * modules/pipe2: New file.
42442         * doc/glibc-functions/pipe2.texi: Mention the new module.
42443
42444 2009-08-22  Bruno Haible  <bruno@clisp.org>
42445
42446         Reference some new glibc functions.
42447         * doc/glibc-functions/accept4.texi: New file.
42448         * doc/glibc-functions/dup3.texi: New file.
42449         * doc/glibc-functions/mkostemp.texi: New file.
42450         * doc/glibc-functions/pipe2.texi: New file.
42451         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42452         (Glibc sys/socket.h): Refer to accept4.
42453         (Glibc unistd.h): Refer to dup3, pipe2.
42454         Reported by Eric Blake.
42455
42456 2009-08-22  Jim Meyering  <meyering@redhat.com>
42457             Bruno Haible  <bruno@clisp.org>
42458
42459         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42460         This makes it so packages using automake-1.11's silent-rules option
42461         can print e.g., a single "GEN    configmake.h" line, rather than
42462         the 30+ statements that perform the job.  If you want to see the
42463         actual commands, you can still run "make V=1".
42464         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42465         so that make output is abbreviated when those variables are defined
42466         appropriately.
42467         * modules/argz: Likewise.
42468         * modules/arpa_inet: Likewise.
42469         * modules/byteswap: Likewise.
42470         * modules/configmake: Likewise.
42471         * modules/dirent: Likewise.
42472         * modules/errno: Likewise.
42473         * modules/fcntl: Likewise.
42474         * modules/float: Likewise.
42475         * modules/fnmatch: Likewise.
42476         * modules/getopt-posix: Likewise.
42477         * modules/glob: Likewise.
42478         * modules/iconv_open: Likewise.
42479         * modules/inttypes: Likewise.
42480         * modules/localcharset: Likewise.
42481         * modules/locale: Likewise.
42482         * modules/math: Likewise.
42483         * modules/netdb: Likewise.
42484         * modules/netinet_in: Likewise.
42485         * modules/poll: Likewise.
42486         * modules/posix_spawnp-tests: Likewise.
42487         * modules/sched: Likewise.
42488         * modules/search: Likewise.
42489         * modules/selinux-h: Likewise.
42490         * modules/signal: Likewise.
42491         * modules/spawn: Likewise.
42492         * modules/stdarg: Likewise.
42493         * modules/stdbool: Likewise.
42494         * modules/stddef: Likewise.
42495         * modules/stdint: Likewise.
42496         * modules/stdio: Likewise.
42497         * modules/stdlib: Likewise.
42498         * modules/string: Likewise.
42499         * modules/strings: Likewise.
42500         * modules/sys_file: Likewise.
42501         * modules/sys_ioctl: Likewise.
42502         * modules/sys_select: Likewise.
42503         * modules/sys_socket: Likewise.
42504         * modules/sys_stat: Likewise.
42505         * modules/sys_time: Likewise.
42506         * modules/sys_times: Likewise.
42507         * modules/sys_utsname: Likewise.
42508         * modules/sys_wait: Likewise.
42509         * modules/sysexits: Likewise.
42510         * modules/time: Likewise.
42511         * modules/unistd: Likewise.
42512         * modules/wchar: Likewise.
42513         * modules/wctype: Likewise.
42514
42515 2009-08-22  Jim Meyering  <meyering@redhat.com>
42516
42517         announce-gen: detect write failure
42518         * build-aux/announce-gen: Add Coda at end.
42519         Remove equivalent-but-more-verbose block at top.
42520
42521 2009-08-19  Akim Demaille  <demaille@gostai.com>
42522
42523         bootstrap: --help to stdout.
42524         * bootstrap (usage): Don't send --help to stderr.
42525         Use a here doc instead of a long string.
42526
42527 2009-08-21  Eric Blake  <ebb9@byu.net>
42528
42529         test-popen-safer: split from test-popen
42530         * tests/test-popen.c (main): Move...
42531         * tests/test-popen.h: ...into new file.
42532         * tests/test-popen-safer2.c: New file.
42533         * modules/popen-tests (Files): Add test-popen.h.
42534         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42535         Suggested by Bruno Haible.
42536
42537         test-fcntl-safer: split from test-open
42538         * tests/test-open.c (main): Move...
42539         * tests/test-open.h: ...into new file.
42540         * tests/test-fcntl-safer.c: New file.
42541         * modules/open-tests (Files): Add test-open.h.
42542         * modules/fcntl-safer-tests: New file.
42543         Suggested by Bruno Haible.
42544
42545         test-fopen-safer: split from test-fopen
42546         * tests/test-fopen.c (main): Move...
42547         * tests/test-fopen.h: ...into new file.
42548         * tests/test-fopen-safer.c: New file.
42549         * modules/fopen-tests (Files): Add test-fopen.h.
42550         * modules/fopen-safer-tests: New file.
42551         Suggested by Bruno Haible.
42552
42553 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42554
42555         popen-safer: test O_CLOEXEC at run-time.
42556         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42557
42558 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42559
42560         fcntl: move more flags to the header
42561         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42562         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42563         * lib/fcntl.in.h: Do both things here.
42564
42565 2009-08-21  Jim Meyering  <meyering@redhat.com>
42566
42567         consistently remove $@-t before redirecting to it
42568         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42569         * modules/alloca-opt: Likewise.
42570         * modules/byteswap: Likewise.
42571         * modules/fnmatch: Likewise.
42572         * modules/getopt-posix: Likewise.
42573         * modules/glob: Likewise.
42574         * modules/poll: Likewise.
42575         * modules/posix_spawnp-tests: Likewise.
42576         * modules/sys_socket: Likewise.
42577         * modules/sysexits: Likewise.
42578
42579 2009-08-21  Eric Blake  <ebb9@byu.net>
42580
42581         popen: simplify access to original popen
42582         * lib/popen.c (rpl_popen): No need to worry about popen being a
42583         macro.
42584         Reported by Bruno Haible.
42585
42586 2009-08-20  Eric Blake  <ebb9@byu.net>
42587
42588         build: avoid some compiler warnings
42589         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42590         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42591         type.
42592         (new_exclude_segment, excluded_file_pattern_p)
42593         (excluded_file_name_p): Reduce scope.
42594         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42595         old-style declaration.
42596
42597 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42598
42599         * tests/test-exclude1.sh: Handle Windows EOL.
42600         * tests/test-exclude2.sh: Likewise.
42601         * tests/test-exclude3.sh: Likewise.
42602         * tests/test-exclude4.sh: Likewise.
42603         * tests/test-exclude5.sh: Likewise.
42604         * tests/test-exclude6.sh: Likewise.
42605         * tests/test-exclude7.sh: Likewise.
42606
42607 2009-08-19  Akim Demaille  <demaille@gostai.com>
42608
42609         bootstrap: find sha1sum when named gsha1sum.
42610         * bootstrap (find_tool): New.
42611         ($SHA1SUM): New.
42612         Use it.
42613
42614 2009-08-20  Jim Meyering  <meyering@redhat.com>
42615
42616         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42617         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42618         expression that converts "." in a file name to "\." in the resulting
42619         regexp.  Start with a dummy statement, so that prior shell variable
42620         definitions are expanded portably.  Reported by Simon Josefsson.
42621
42622 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42623
42624         Fix polling for writeability of a screen buffer.
42625         * lib/poll.c: Distinguish input and screen buffers for the
42626         Win32 implementation.
42627         * lib/select.c: Likewise.
42628
42629 2009-08-19  Eric Blake  <ebb9@byu.net>
42630
42631         popen-safer: prevent popen from clobbering std descriptors
42632         * modules/popen-safer: New file.
42633         * lib/popen-safer.c: Likewise.
42634         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42635         * lib/stdio--.h (popen): Provide override.
42636         * lib/stdio-safer.h (popen_safer): Provide declaration.
42637         * tests/test-popen.c (includes): Partially test this.
42638         * modules/popen-safer-tests: New file, for more tests.
42639         * tests/test-popen-safer.c: Likewise.
42640         * MODULES.html.sh (file stream based Input/Output): Mention it.
42641
42642         tests: test some of the *-safer modules
42643         * modules/fopen-safer (Depends-on): Add fopen.
42644         * modules/fcntl-safer (Depends-on): Add fcntl.
42645         * modules/stdlib-safer (Depends-on): Add stdlib.
42646         (configure.ac): Set indicator.
42647         * modules/unistd-safer (configure.ac): Likewise.
42648         * modules/tmpfile-safer (configure.ac): Likewise.
42649         (Depends-on): Add tmpfile.
42650         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42651         active.
42652         * tests/test-fopen.c (includes): Test safer versions when they are
42653         in use.
42654         * tests/test-open.c (includes): Likewise.
42655
42656         popen: fix cygwin 1.5 bug when stdin closed
42657         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42658         * modules/popen: New file.
42659         * modules/popen-tests: Likewise.
42660         * tests/test-popen.c: Likewise.
42661         * m4/popen.m4: Likewise.
42662         * lib/popen.c: Likewise.
42663         * lib/stdio.in.h (popen): New declaration.
42664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42665         * modules/stdio (Makefile.am): Likewise.
42666         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42667
42668 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42669
42670         maint.mk: give full control over update-copyright exclusions
42671         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42672         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42673         (update-copyright): Don't force inclusion of top-level
42674         ChangeLog.  Don't force exclusion of all COPYING files, but make
42675         them the default exclusion instead.
42676
42677 2009-08-16  Bruno Haible  <bruno@clisp.org>
42678
42679         Fix test failures on Solaris 10.
42680         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42681         tests when Solaris iconv() is used.
42682         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42683         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42684         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42685         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42686         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42687
42688 2009-08-16  Bruno Haible  <bruno@clisp.org>
42689
42690         Fix test failures on Solaris 10.
42691         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42692         'tr' program and pass it as first argument.
42693         * tests/test-pipe-filter-gi1.sh: Likewise.
42694         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42695         program as first argument.
42696         * tests/test-pipe-filter-gi1.c (main): Likewise.
42697
42698 2009-08-16  Eric Blake  <ebb9@byu.net>
42699
42700         fpurge: fix previous commits
42701         * modules/fpurge (Makefile.am): Make replacement conditional,
42702         partially reverting 2007-04-29 change; missed in previous
42703         attempt.
42704         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42705         is missing.
42706
42707 2009-08-16  Bruno Haible  <bruno@clisp.org>
42708
42709         Clarify fpurge's effect on the file position.
42710         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42711         * tests/test-fpurge.c (main): Make a second pass for checking the file
42712         position.
42713
42714 2009-08-16  Bruno Haible  <bruno@clisp.org>
42715
42716         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42717         declaration of fpurge is missing.
42718         * tests/test-fpurge.c (main): Check that the file has not more contents
42719         than expected. Close the file before removing it.
42720
42721 2009-08-15  Eric Blake  <ebb9@byu.net>
42722
42723         fpurge: don't wrap working cygwin implementation
42724         * lib/fpurge.c (fpurge): Fix comment typo.
42725         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42726         1.7 to avoid replacement.
42727         * tests/test-fpurge.c (main): Enhance test.
42728
42729 2009-08-15  Eric Blake  <ebb9@byu.net>
42730         and Jim Meyering  <meyering@redhat.com>
42731
42732         test-update-copyright: skip if perl is insufficient
42733         * tests/test-update-copyright.sh: Failure to run maintainer tool
42734         should not cause testsuite failure on cygwin 1.5.
42735
42736 2009-08-14  Eric Blake  <ebb9@byu.net>
42737
42738         doc: mention more functions added in cygwin 1.7.0
42739         * doc/posix-headers/limits.texi (limits.h): Update for recent
42740         cygwin additions.
42741         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42742         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42743         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42744         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42745         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42746
42747 2009-08-14  Eric Blake  <ebb9@byu.net>
42748
42749         maint.mk: simplify update-copyright rule
42750         * top/maint.mk (update-copyright-local): Delete, and document how
42751         to do it in cfg.mk instead.
42752         (update-copyright-exclude-regexp): Delete, and document how to do
42753         it in .x-update-copyright instead.
42754         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42755         exclude ChangeLog.
42756
42757 2009-08-14  Bruno Haible  <bruno@clisp.org>
42758
42759         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42760
42761 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42762
42763         maint.mk: support update-copyright-env
42764         * top/maint.mk (update-copyright-env): Define place-holder.
42765         (update-copyright): Expand $(update-copyright-env) before
42766         invoking update-copyright.
42767
42768 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42769
42770         update-copyright: implement forced reformatting
42771         * build-aux/update-copyright: Implement and document
42772         UPDATE_COPYRIGHT_FORCE.
42773         * tests/test-update-copyright.sh: Test it.
42774
42775 2009-08-14  Eric Blake  <ebb9@byu.net>
42776         and Bruno Haible  <bruno@clisp.org>
42777
42778         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42779         * tests/test-locale.c: Revert previous patch related to NULL.
42780         * tests/test-stdio.c: Likewise.
42781         * tests/test-stdlib.c: Likewise.
42782         * tests/test-string.c: Likewise.
42783         * tests/test-unistd.c: Likewise.
42784         * modules/time-tests (Depends-on): Add verify.
42785         * modules/wchar-tests (Depends-on): Likewise.
42786         * tests/test-time.c: Test for NULL compliance.
42787         * tests/test-wchar.c: Likewise.
42788         * modules/locale (Depends-on): Add stddef.
42789         * modules/stdio (Depends-on): Likewise.
42790         * modules/stdlib (Depends-on): Likewise.
42791         * modules/string (Depends-on): Likewise.
42792         * modules/time (Depends-on): Likewise.
42793         * modules/unistd (Depends-on): Likewise.
42794         * modules/wchar (Depends-on): Likewise.
42795         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42796         * lib/stdlib.in.h (includes): Likewise.
42797         * lib/string.in.h (includes): Likewise.
42798         * lib/time.in.h (includes): Likewise.
42799         * lib/unistd.in.h (includes): Likewise.
42800         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42801         replaced.
42802         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42803         * m4/stddef_h.m4: New file.
42804         * modules/stddef: Likewise.
42805         * lib/stddef.in.h: Likewise.
42806         * modules/stddef-tests: Likewise.
42807         * tests/test-stddef.c: Likewise.
42808         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42809         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42810         * doc/posix-headers/locale.texi (locale.h): Likewise.
42811         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42812         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42813         * doc/posix-headers/string.texi (string.h): Likewise.
42814         * doc/posix-headers/time.texi (time.h): Likewise.
42815         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42816         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42817
42818 2009-08-14  Eric Blake  <ebb9@byu.net>
42819
42820         doc: improve git diff of texinfo files
42821         * .gitattributes: Add rule for *.texi files, with hint on how to
42822         use it.
42823         Copied from m4, and based on a report by Bruno Haible.
42824
42825 2009-08-14  Bruno Haible  <bruno@clisp.org>
42826
42827         Disable multithread support by default on Cygwin 1.5.x for real.
42828         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42829
42830 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42831
42832         update-copyright: much ado about intervals
42833         * build-aux/update-copyright: Implement and document
42834         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42835         of copyright year intervals.
42836         Also, document UPDATE_COPYRIGHT_YEAR.
42837         * tests/test-update-copyright.sh: Test it.
42838
42839         update-copyright: convert 2-digit to 4-digit years
42840         * build-aux/update-copyright: Implement and document.
42841         * tests/test-update-copyright.sh: Update.
42842
42843 2009-08-14  Jim Meyering  <meyering@redhat.com>
42844
42845         test-exclude: avoid coreutils "make check" failure
42846         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42847         just as in test-argmatch.c.
42848
42849 2009-08-13  Eric Blake  <ebb9@byu.net>
42850
42851         test-dup2: fix bad assumption
42852         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42853         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42854
42855         test-version-etc: fix CRLF portability issue
42856         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42857         recognize \r.
42858         * tests/test-argp-version-etc-1.sh: Likewise.
42859
42860         getopt: update client modules
42861         * modules/argp (Depends-on): Use getopt-gnu.
42862         * modules/git-merge-changelog (Depends-on): Likewise.
42863         * modules/long-options (Depends-on): Likewise.
42864         * modules/xstrtol (Depends-on): Likewise.
42865
42866 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42867
42868         * tests/test-version-etc.sh: Don't fail on different
42869         project/version.  Don't fail on CRLF differences.  Rewrite to use
42870         multiple -e instead of multiple sed forks, suggested by Eric Blake
42871         <ebb9@byu.net>.
42872         * tests/test-argp-version-etc-1.sh: Likewise.
42873
42874 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42875
42876         * tests/test-version-etc.sh: Don't fail on different
42877         project/version.
42878
42879 2009-08-12  Bruno Haible  <bruno@clisp.org>
42880
42881         Tests for modules 'getopt-posix', 'getopt-gnu'.
42882         * modules/getopt-posix-tests: New file.
42883         * tests/test-getopt.c: New file.
42884         * tests/test-getopt.h: New file.
42885         * tests/test-getopt_long.h: New file.
42886
42887         New modules 'getopt-posix', 'getopt-gnu'.
42888         * modules/getopt-gnu: New file, renamed from modules/getopt.
42889         * modules/getopt-posix: New file.
42890         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42891         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42892         (gl_GETOPT): Remove macro.
42893         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42894         Disable the test against BSD systems that declare optreset. Test
42895         against mingw bug. Test against lack of support of optional arguments
42896         on many platforms.
42897         * doc/glibc-headers/getopt.texi: Update module name and list of
42898         relevant platforms.
42899         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42900         'getopt-gnu' and more portability problems.
42901         * NEWS: Mention the changes.
42902
42903 2009-08-12  Bruno Haible  <bruno@clisp.org>
42904
42905         Ensure that optarg etc. get declared by <unistd.h>.
42906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42907         AC_USE_SYSTEM_EXTENSIONS.
42908         * modules/getopt (Depends-on): Add 'extensions'.
42909
42910 2009-08-12  Bruno Haible  <bruno@clisp.org>
42911
42912         Avoid test link errors.
42913         * modules/pipe-filter-ii-tests (Makefile.am): Define
42914         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42915         * modules/pipe-filter-gi-tests (Makefile.am): Define
42916         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42918
42919 2009-08-12  Bruno Haible  <bruno@clisp.org>
42920
42921         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42922         gl_GETOPT_SUBSTITUTE before.
42923         (gl_GETOPT): Use it.
42924         * m4/argp.m4 (gl_ARGP): Update.
42925         Reported by Sergey Poznyakoff.
42926
42927         * m4/getopt.m4: Reorder macros.
42928         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42929         (gl_GETOPT_SUBSTITUTE): Remove macro.
42930
42931 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42932
42933         Minor improvement in gitlog-to-changelog
42934
42935         * build-aux/gitlog-to-changelog: New option `--format' makes
42936         output format string configurable.
42937
42938 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42939
42940         Optimize exclude: use hash tables for non-wildcard patterns.
42941
42942         * lib/exclude.c: Include hash.h and mbuiter.h
42943         (struct exclude_pattern, exclude_segment): New data types.
42944         (struct exclude): Rewrite.
42945         (fnmatch_pattern_has_wildcards): New function.
42946         (new_exclude_segment, free_exclude_segment): New functions.
42947         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42948         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42949         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42950         * modules/exclude: Depend on hash and mbuiter.
42951
42952         * modules/exclude-tests: New file.
42953         * tests/test-exclude.c: New file.
42954         * tests/test-exclude1.sh: New file.
42955         * tests/test-exclude2.sh: New file.
42956         * tests/test-exclude3.sh: New file.
42957         * tests/test-exclude4.sh: New file.
42958         * tests/test-exclude5.sh: New file.
42959         * tests/test-exclude6.sh: New file.
42960         * tests/test-exclude7.sh: New file.
42961
42962 2009-08-12  Bruno Haible  <bruno@clisp.org>
42963
42964         Ensure that getopt() gets declared by <unistd.h>.
42965         * lib/unistd.in.h: Conditionally include getopt.h.
42966         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42967         Set GNULIB_UNISTD_H_GETOPT.
42968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42969         GNULIB_UNISTD_H_GETOPT.
42970         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42971
42972 2009-08-12  Bruno Haible  <bruno@clisp.org>
42973
42974         Clarify logic.
42975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42976         gl_replace_getopt instead of GETOPT_H.
42977
42978 2009-08-12  Bruno Haible  <bruno@clisp.org>
42979
42980         * m4/getopt.m4: Add comments.
42981
42982 2009-08-12  Bruno Haible  <bruno@clisp.org>
42983
42984         Disable multithread support by default on Cygwin 1.5.x.
42985         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42986         set gl_use_threads=no if not specified otherwise.
42987
42988 2009-08-11  Bruno Haible  <bruno@clisp.org>
42989
42990         Avoid compilation error on NetBSD 5.0.
42991         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42992         * tests/test-stdio.c: Likewise.
42993         * tests/test-stdlib.c: Likewise.
42994         * tests/test-string.c: Likewise.
42995         * tests/test-unistd.c: Likewise.
42996         Reported by Greg Troxel <gdt@ir.bbn.com>
42997         at <https://savannah.gnu.org/support/?106973>.
42998
42999 2009-08-11  Bruno Haible  <bruno@clisp.org>
43000
43001         * modules/dup2-tests (Depends-on): Remove close.
43002
43003         Undo 2009-07-19 commit.
43004         * modules/acl-tests (Depends-on): Remove close.
43005         * modules/binary-io-tests (Depends-on): Likewise.
43006         * modules/closein-tests (Depends-on): Likewise.
43007         * modules/flock-tests (Depends-on): Likewise.
43008         * modules/fsync-tests (Depends-on): Likewise.
43009         * modules/lseek-tests (Depends-on): Likewise.
43010         * modules/pipe-tests (Depends-on): Likewise.
43011         * modules/posix_spawn-tests (Depends-on): Likewise.
43012         * modules/posix_spawnp-tests (Depends-on): Likewise.
43013         * modules/stat-time-tests (Depends-on): Likewise.
43014         * modules/yesno-tests (Depends-on): Likewise.
43015
43016 2009-08-10  Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43019
43020 2009-08-10  Bruno Haible  <bruno@clisp.org>
43021
43022         Fix a gcc warning.
43023         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43024
43025 2009-08-10  Bruno Haible  <bruno@clisp.org>
43026
43027         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43028         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43029         not only the first time.
43030         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43031         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43032         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43033         is 1, not only the the first time.
43034
43035 2009-08-10  Bruno Haible  <bruno@clisp.org>
43036
43037         Make it possible to use module 'gethostname' without module 'close'.
43038         * lib/unistd.in.h (close): Evoke a link error only if
43039         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43041         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43042         * modules/unistd (Makefile.am): Substitute
43043         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43044         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43045         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43046         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43047         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43048         * modules/sys_ioctl (Makefile.am): Substitute
43049         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43050         * modules/socket (configure.ac): On native Windows, set
43051         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43052         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43053         Reported by Sam Steingold <sds@gnu.org>.
43054
43055 2009-08-10  Bruno Haible  <bruno@clisp.org>
43056
43057         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43058         * modules/ioctl (configure.ac): Likewise.
43059
43060 2009-08-10  Bruno Haible  <bruno@clisp.org>
43061
43062         Avoid collision between gnulib wrapper and libintl wrapper.
43063         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43064         already defined in intl/printf.c.
43065         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43066         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43067
43068 2009-08-09  Bruno Haible  <bruno@clisp.org>
43069
43070         Make <sys/select.h> really self-contained, also on Solaris 10.
43071         * lib/sys_select.in.h: Include <string.h>.
43072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43073         Solaris 10 problem.
43074         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43075         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43076         Reported by Jim Meyering.
43077
43078 2009-08-09  Bruno Haible  <bruno@clisp.org>
43079
43080         Avoid warnings from 'aclocal' that are due to a use of macro name
43081         AM_XGETTEXT_OPTION that is not defined in automake.
43082         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43083         automake.
43084         * modules/error (configure.ac): Likewise.
43085         * modules/propername (configure.ac): Likewise.
43086         * modules/vasprintf (configure.ac): Likewise.
43087         * modules/verror (configure.ac): Likewise.
43088         * modules/xprintf (configure.ac): Likewise.
43089         * modules/xvasprintf (configure.ac): Likewise.
43090
43091 2009-08-08  Bruno Haible  <bruno@clisp.org>
43092
43093         Avoid compilation error in C++ mode.
43094         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43095         Reported by Sam Steingold <sds@gnu.org>.
43096
43097 2009-08-08  Bruno Haible  <bruno@clisp.org>
43098
43099         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43100         for the various Unix platforms.
43101         * doc/posix-headers/limits.texi: Update platforms list regarding
43102         HOST_NAME_MAX.
43103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43104
43105 2009-08-07  Jim Meyering  <meyering@redhat.com>
43106
43107         selinux-at: fix typo in a comment
43108         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43109         Spotted by Paolo Bonzini.
43110
43111         selinux-at: remove redundant m4 code, add documentation
43112         * modules/selinux-at (configure.ac): Remove redundant code.
43113         LIB_SELINUX is already set via the dependent module, selinux-h.
43114         (Include): Add quotes around selinux-at.h.
43115         * lib/selinux-at.h: Add documentation.
43116         Reported by Bruno Haible in
43117         http://marc.info/?l=gnulib-bug&m=124958988300749
43118
43119 2009-08-07  Bruno Haible  <bruno@clisp.org>
43120
43121         Avoid link error on MacOS X 10.3 and 10.4.
43122         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43123         on non-ELF systems.
43124         * lib/argp-pv.c (argp_program_version): Likewise.
43125         Reported by Simon Josefsson.
43126
43127 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43128
43129         * tests/test-version-etc.sh: Use $EXEEXT.
43130
43131 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43132
43133         update-copyright: update documentation to point to maint.mk
43134         * build-aux/update-copyright: Here.
43135
43136 2009-08-06  Jim Meyering  <meyering@redhat.com>
43137
43138         maint.mk: support update-copyright-local
43139         * top/maint.mk (update-copyright-local): Define place-holder.
43140         (update-copyright): Depend on $(update-copyright-local).
43141
43142 2009-08-06  Jim Meyering  <meyering@redhat.com>
43143
43144         selinux-at: new module
43145         Initially written for coreutils, this module will soon be
43146         used by findutils, too.
43147         * MODULES.html.sh [Misc]: Add selinux-at.
43148         * lib/selinux-at.h: New file, from coreutils.
43149         * lib/selinux-at.c: Likewise.
43150         * modules/selinux-at: Likewise.
43151         (License): Change from LGPL to GPL, since it depends
43152         on the GPL'd openat module.
43153
43154         doc: update README
43155         * README: Remove references to cogito.
43156         Remove cvs-repo-updating instructions from 2007.
43157         Don't imply that CVS is better if you have limited disk space.
43158
43159 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43160
43161         update-copyright: support C-style comments
43162         * build-aux/update-copyright: Implement and document.
43163         * tests/test-update-copyright.sh: Test.
43164
43165 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43166
43167         update-copyright: support omitted "(C)"
43168         * build-aux/update-copyright: Implement and document.  Also,
43169         allow variable whitespace before "(C)".
43170         * tests/test-update-copyright.sh: Test.
43171
43172 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43173
43174         update-copyright: don't trip on non-FSF copyright statements
43175         * build-aux/update-copyright: Fix so that the first correctly
43176         formatted FSF copyright statement is recognized no matter what
43177         appears before it.  Update documentation.
43178         * tests/test-update-copyright.sh: Test that.
43179
43180 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43181
43182         update-copyright: clean up code a little
43183         * build-aux/update-copyright: Append "_re" to the name of any
43184         variable holding a regular expression.
43185         Replace "old" and "new" with "stmt" in variable names.
43186         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43187         handled correctly.
43188         Format code more consistently.
43189
43190 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43191
43192         update-copyright-tests: improve portability
43193         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43194         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43195
43196 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43197
43198         update-copyright: support @copyright{} and &copy;
43199         * build-aux/update-copyright: Implement and document.
43200         * tests/test-update-copyright.sh: Test.
43201
43202 2009-08-04  Jim Meyering  <meyering@redhat.com>
43203
43204         update-copyright-tests: correctly test EOL=\r\n handling
43205         * tests/test-update-copyright.sh: Put \r at the end of some lines
43206         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43207
43208         maint.mk: make update-copyright exclusion list more configurable
43209         * top/maint.mk (update-copyright): Default to excluding COPYING,
43210         but allow an override, in case someone does want to update that file.
43211
43212         maint.mk: don't update copyright date in COPYING
43213         * top/maint.mk (update-copyright): Exclude COPYING.
43214
43215         maint.mk: add a copyright-updating rule
43216         * top/maint.mk (update-copyright): New rule.
43217         Derived from coreutils/Makefile.am.
43218
43219         update-copyright: rename some variables
43220         * build-aux/update-copyright: Rename a few variables for clarity.
43221         Tweak syntax.  List Joel E. Denny as coauthor.
43222
43223 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43224
43225         update-copyright: fix bug for 2-digit last year and add tests
43226         * build-aux/update-copyright: Fix bug.
43227         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43228         specified.
43229         * modules/update-copyright-tests: New
43230         * tests/test-update-copyright.sh: New.
43231
43232 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43233
43234         update-copyright: handle leading tabs in line prefix
43235         * build-aux/update-copyright: Count leading tabs as 8 spaces
43236         when computing margin.  This helps with the formatting of
43237         ChangeLogs, for example.
43238         Fix documentation a little.
43239
43240 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43241
43242         update-copyright: support EOL=\r\n
43243         * build-aux/update-copyright: Implement that.
43244
43245 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43246
43247         update-copyright: automatically format copyright statements
43248         * build-aux/update-copyright: Implement that.
43249         Also, be a little more predictable and safer by always failing
43250         when the full copyright format is not perfectly recognized as an
43251         unbroken whole.  Discussed at
43252         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43253         Rewrite documentation.
43254
43255 2009-08-03  Bruno Haible  <bruno@clisp.org>
43256
43257         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43258
43259 2009-08-02  Bruno Haible  <bruno@clisp.org>
43260
43261         Tests for module 'uname'.
43262         * modules/uname-tests: New file.
43263         * tests/test-uname.c: New file.
43264
43265         New module 'uname'.
43266         * lib/uname.c: New file.
43267         * m4/uname.m4: New file.
43268         * modules/uname: New file.
43269         * doc/posix-functions/uname.texi: Mention the new module.
43270
43271 2009-08-02  Bruno Haible  <bruno@clisp.org>
43272
43273         Tests for module 'sys_utsname'.
43274         * modules/sys_utsname-tests: New file.
43275         * tests/test-sys_utsname.c: New file.
43276
43277         New module 'sys_utsname'.
43278         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43279         * m4/sys_utsname_h.m4: New file.
43280         * modules/sys_utsname: New file.
43281         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43282
43283 2009-08-02  Bruno Haible  <bruno@clisp.org>
43284
43285         Implicitly initialize the sockets library.
43286         * lib/gethostname.c: Include sockets.h.
43287         (rpl_gethostname): Invoke gl_sockets_startup.
43288         * lib/socket.c: Include sockets.h.
43289         (rpl_socket): Invoke gl_sockets_startup.
43290         * modules/gethostname (Depends-on): Add sockets.
43291         * modules/socket (Depends-on): Likewise.
43292         * tests/test-poll.c: Don't include sockets.h.
43293         (main): Don't invoke gl_sockets_startup.
43294         * tests/test-select.c: Don't include sockets.h.
43295         (main): Don't invoke gl_sockets_startup.
43296
43297 2009-08-02  Bruno Haible  <bruno@clisp.org>
43298
43299         Allow multiple calls to gl_sockets_startup.
43300         * lib/sockets.c (initialized_sockets_version): New variable.
43301         (gl_sockets_startup): Do nothing if already called for this or a higher
43302         version.
43303         (gl_sockets_cleanup): Reset initialized_sockets_version.
43304
43305 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43306
43307         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43308         different project/version.
43309
43310 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43311             Bruno Haible  <bruno@clisp.org>
43312
43313         Tests for module 'pipe-filter-gi'.
43314         * modules/pipe-filter-gi-tests: New file.
43315         * tests/test-pipe-filter-gi1.sh: New file.
43316         * tests/test-pipe-filter-gi1.c: New file.
43317         * tests/test-pipe-filter-gi2.sh: New file.
43318         * tests/test-pipe-filter-gi2-main.c: New file.
43319         * tests/test-pipe-filter-gi2-child.c: New file.
43320
43321         New module 'pipe-filter-gi'.
43322         * lib/pipe-filter-gi.c: New file.
43323         * modules/pipe-filter-gi: New file.
43324
43325 2009-08-02  Bruno Haible  <bruno@clisp.org>
43326             Paolo Bonzini  <bonzini@gnu.org>
43327
43328         Tests for module 'pipe-filter-ii'.
43329         * modules/pipe-filter-ii-tests: New file.
43330         * tests/test-pipe-filter-ii1.sh: New file.
43331         * tests/test-pipe-filter-ii1.c: New file.
43332         * tests/test-pipe-filter-ii2.sh: New file.
43333         * tests/test-pipe-filter-ii2-main.c: New file.
43334         * tests/test-pipe-filter-ii2-child.c: New file.
43335
43336         New module 'pipe-filter-ii'.
43337         * lib/pipe-filter.h: New file.
43338         * lib/pipe-filter-ii.c: New file.
43339         * lib/pipe-filter-aux.h: New file.
43340         * modules/pipe-filter-ii: New file.
43341
43342 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43343
43344         * lib/gc-libgcrypt.c: Change copyright to FSF.
43345         * lib/gc-gnulib.c: Likewise.
43346
43347 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43348
43349         * lib/gethostname.c: Include limits.h.
43350
43351 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43352             Bruno Haible  <bruno@clisp.org>
43353
43354         Ensure HOST_NAME_MAX as part of the gethostname module.
43355         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43356         define also HOST_NAME_MAX.
43357         * tests/test-gethostname.c: Include <limits.h>.
43358         (main): Check also HOST_NAME_MAX.
43359         * doc/posix-headers/limits.texi: Document the mingw problem.
43360
43361 2009-08-02  Bruno Haible  <bruno@clisp.org>
43362
43363         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43364         Add comments.
43365
43366 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43367
43368         * lib/gethostname.c: Add Windows wrapper.
43369         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43370         * modules/gethostname: Depend on sys_socket & errno, for also
43371         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43372         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43373
43374 2009-07-31  Jim Meyering  <meyering@redhat.com>
43375
43376         getloadavg: fix symbol name in comment
43377         * lib/getloadavg.c: Correct a typo I introduced when adding
43378         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43379         Matt Kraai spotted the problem.
43380
43381 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43382
43383         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43384         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43385         code also if ! defined N_NAME_POINTER.
43386         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43387         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43388         but the n_name member is a 12-byte array.
43389
43390 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43391
43392         update-copyright: generalize comment handling
43393         * build-aux/update-copyright: Handle copyright statements
43394         within more comment styles.
43395         Document usage.
43396         Report any file with an external copyright holder or parse failure.
43397
43398 2009-07-29  Jim Meyering  <meyering@redhat.com>
43399
43400         mktime: correct setting of REPLACE_MKTIME
43401         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43402
43403         update-copyright: new module
43404         * modules/update-copyright: New file.
43405         * build-aux/update-copyright: New file.
43406         * MODULES.html.sh (maint+release support): Add update-copyright.
43407
43408 2009-07-27  Bruno Haible  <bruno@clisp.org>
43409
43410         Fix compilation error when <ctime> is used and mktime is replaced.
43411         * lib/time.in.h (mktime): New declaration.
43412         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43413         REPLACE_MKTIME instead of defining mktime in config.h.
43414         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43415         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43416         Reported by Ross McFarland <rwmcfa1@neces.com>.
43417
43418 2009-07-27  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43421         Reported by Matt Kraai <mkraai@beckman.com>.
43422
43423 2009-07-25  Jim Meyering  <meyering@redhat.com>
43424
43425         maint.mk: avoid warnings about missing files
43426         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43427         diagnostic when .prev-version does not exist.
43428         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43429         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43430         nonexistent cfg.mk.
43431         Suggestions from Simon Josefsson.
43432
43433 2009-07-25  Bruno Haible  <bruno@clisp.org>
43434
43435         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43436         defined as macros. Needed on QNX 6.4.1.
43437         Reported by Matt Kraai <mkraai@beckman.com>.
43438
43439 2009-07-23  Jim Meyering  <meyering@redhat.com>
43440
43441         maint.mk: invoke "make dist" with a working value of XZ_OPT
43442         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43443
43444 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43445
43446         Make fseeko.c compile on QNX.
43447         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43448
43449 2009-07-22  Peter Simons  <simons@cryp.to>
43450
43451         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43452         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43453         * lib/md4.h: Likewise.
43454         * lib/md5.h: Likewise.
43455         * lib/sha1.h: Likewise.
43456         * lib/sha256.h: Likewise.
43457         * lib/sha512.h: Likewise.
43458
43459         tests-sha1: don't assign literal string to 'char *' variable
43460         * tests/test-sha1.c (main): Declare locals with "const" to match
43461         attributes of the right hand side.
43462
43463 2009-07-21  Eric Blake  <ebb9@byu.net>
43464
43465         dup2: fix more mingw problems
43466         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43467         fd to itself.
43468         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43469         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43470         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43471         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43472         care of mingw bugs.
43473
43474 2009-07-21  Jim Meyering  <meyering@redhat.com>
43475
43476         vc-list-files: avoid failure when /bin/sh is dash
43477         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43478         On some Debian based systems, /bin/sh is a symlink to dash, and running
43479         this command would omit the "/" following each 'tests' prefix:
43480           dash -x build-aux/vc-list-files -C . tests
43481         That is because bash and dash work differently:
43482           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43483           bash ok
43484           dash odd
43485
43486 2009-07-21  Eric Blake  <ebb9@byu.net>
43487
43488         dup2-tests: test previous patch
43489         * modules/dup2-tests: New file.
43490         * tests/test-dup2.c: Likewise.
43491         * tests/test-open.c (main): Avoid unspecified behavior.
43492         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43493         test.
43494
43495         dup2: work around mingw and cygwin 1.5 bug
43496         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43498         * modules/unistd (Makefile.am): Substitute it.
43499         * lib/unistd.in.h (dup2): Declare the replacement.
43500         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43501         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43502         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43503         * modules/execute (Depends-on): Add dup2.
43504         * modules/fseterr (Depends-on): Likewise.
43505         * modules/pipe (Depends-on): Likewise.
43506         * modules/posix_spawn-internal (Depends-on): Likewise.
43507
43508 2009-07-21  Bruno Haible  <bruno@clisp.org>
43509
43510         * modules/.gitattributes: New file.
43511
43512 2009-07-20  Bruno Haible  <bruno@clisp.org>
43513
43514         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43515         (main): Use it.
43516
43517 2009-07-20  Eric Blake  <ebb9@byu.net>
43518
43519         test-pipe: make a bit more robust.
43520         * tests/test-pipe.c (myerr): Allow error messages regardless of
43521         what we do to stderr.
43522         (test_pipe): Rearrange to avoid deadlock.
43523         (child_main): Try a larger read, to ensure we avoided deadlock.
43524         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43525         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43526         if misused.
43527
43528 2009-07-19  Jim Meyering  <meyering@redhat.com>
43529
43530         fts: avoid false-positive cycle-detection
43531         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43532         for each new command line argument.
43533
43534 2009-07-19  Bruno Haible  <bruno@clisp.org>
43535
43536         Fix build error on mingw with the modules sys_select and unistd.
43537         * modules/acl-tests (Depends-on): Add close.
43538         * modules/binary-io-tests (Depends-on): Likewise.
43539         * modules/closein-tests (Depends-on): Likewise.
43540         * modules/flock-tests (Depends-on): Likewise.
43541         * modules/fsync-tests (Depends-on): Likewise.
43542         * modules/lseek-tests (Depends-on): Likewise.
43543         * modules/pipe-tests (Depends-on): Likewise.
43544         * modules/posix_spawn-tests (Depends-on): Likewise.
43545         * modules/posix_spawnp-tests (Depends-on): Likewise.
43546         * modules/stat-time-tests (Depends-on): Likewise.
43547         * modules/yesno-tests (Depends-on): Likewise.
43548
43549 2009-07-19  Bruno Haible  <bruno@clisp.org>
43550
43551         Unify conditionals.
43552         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43553         macros, not at the compiler macros.
43554         * lib/pipe.c: Likewise.
43555         * lib/execute.c: Likewise.
43556         * lib/spawni.c: Likewise.
43557
43558 2009-07-19  Bruno Haible  <bruno@clisp.org>
43559
43560         Fix handling of closed stdin/stdout/stderr on mingw.
43561         * lib/w32spawn.h: Include unistd.h.
43562         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43563         file descriptor with O_NOINHERIT flag.
43564         (fd_safer_noinherit): New function, based on fd-safer.c.
43565         (dup_safer_noinherit): New function, based on dup-safer.c.
43566         (undup_safer_noinherit): New function.
43567         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43568         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43569         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43570         instead of fd_safer.
43571         * tests/test-pipe.c: Include <windows.h>.
43572         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43573         result.
43574
43575         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43576         from main.
43577         (test_pipe): Pass an extra argument for disambiguation.
43578         (main): Invoke parent_main or child_main.
43579
43580         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43581         consistently.
43582
43583 2009-07-18  Eric Blake  <ebb9@byu.net>
43584
43585         test-pipe: fix mingw build
43586         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43587
43588 2009-07-18  Bruno Haible  <bruno@clisp.org>
43589
43590         * modules/pipe-tests (Makefile.am): Fix typo.
43591
43592 2009-07-18  Eric Blake  <ebb9@byu.net>
43593
43594         error: fix mingw build
43595         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43596         Reported by Bruno Haible.
43597
43598         error: avoid undefined use of stdout
43599         * lib/error.c (error, error_at_line): Check that fd 1 is open
43600         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43601         is handling faults and the close_stdout module wants to report the
43602         detection of closed stdout as an error.
43603
43604 2009-07-17  Eric Blake  <ebb9@byu.net>
43605
43606         pipe: be robust in face of closed fds
43607         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43608         should cause child to misbehave.
43609         * modules/pipe-tests: New module.
43610         * tests/test-pipe.c: New file.
43611         * tests/test-pipe.sh: New file.
43612         Reported by Akim Demaille.
43613
43614 2009-07-14  Bruno Haible  <bruno@clisp.org>
43615
43616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43617         Reported by anonymous kc.
43618
43619 2009-07-07  Jim Meyering  <meyering@redhat.com>
43620
43621         maint.mk: don't look for translatable strings in *.m4 or *.mk
43622         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43623         when searching for translatable strings.
43624
43625 2009-07-05  Jim Meyering  <meyering@redhat.com>
43626
43627         remove superfluous parentheses in STREQ definition
43628         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43629         * lib/getugroups.c (STREQ): Likewise.
43630         * lib/fnmatch.c (STREQ): Likewise.
43631         Spotted by Bruno Haible.
43632
43633 2009-07-04  Jim Meyering  <meyering@redhat.com>
43634
43635         argv-iter: new module
43636         * MODULES.html.sh: Add argv-iter.
43637         * lib/argv-iter.c, lib/argv-iter.h: New files.
43638         * modules/argv-iter: New file.
43639         * modules/argv-iter-tests: New file.
43640         * tests/test-argv-iter.c: Test it.
43641
43642 2009-07-04  Bruno Haible  <bruno@clisp.org>
43643
43644         Fix assertion.
43645         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43646         contains more exact copies of a given entry than file2, leave the extra
43647         copies unpaired rather than aborting.
43648         Reported by Eric Blake.
43649
43650 2009-07-02  Bruno Haible  <bruno@clisp.org>
43651
43652         Speedup git-merge-changelog for git cherry-pick.
43653         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43654         (entries_mapping_get): New function, extracted from compute_mapping.
43655         (entries_mapping_reverse_get): New function.
43656         (compute_mapping): Add a 'full' argument. Return the result in a
43657         'struct entries_mapping'.
43658         (main): Update. Access the mappings through entries_mapping_get.
43659         Reported by Eric Blake.
43660
43661 2009-07-02  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43664         best_i.
43665
43666 2009-07-02  Bruno Haible  <bruno@clisp.org>
43667
43668         Speed up approximate search for matching ChangeLog entries.
43669         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43670         argument. Call fstrcmp_bounded instead of fstrcmp.
43671         (compute_mapping, try_split_merged_entry, main): Update callers.
43672
43673 2009-07-02  Bruno Haible  <bruno@clisp.org>
43674
43675         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43676
43677 2009-06-30  Bruno Haible  <bruno@clisp.org>
43678
43679         Reduce the number of uc_is_cased calls.
43680         * lib/unicase.h (casing_suffix_context_t): Add
43681         'first_char_except_ignorable' field.
43682         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43683         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43684         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43685         Update initializer.
43686         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43687         case-ignorable characters.
43688         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43689         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43690         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43691         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43692         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43693
43694 2009-06-30  Bruno Haible  <bruno@clisp.org>
43695
43696         Tests for module 'unicase/ignorable'.
43697         * modules/unicase/ignorable-tests: New file.
43698         * tests/unicase/test-ignorable.c: New file, generated by
43699         gen-uni-tables.
43700
43701         Tests for module 'unicase/cased'.
43702         * modules/unicase/cased-tests: New file.
43703         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43704         * tests/unicase/test-predicate-part1.h: New file, derived from
43705         tests/unictype/test-predicate-part1.h.
43706         * tests/unicase/test-predicate-part2.h: New file, same as
43707         tests/unictype/test-predicate-part2.h.
43708
43709         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43710         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43711         (output_casing_properties): New function.
43712         (main): Call it.
43713         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43714         * lib/unicase/cased.c: Include unictype/bitmap.h.
43715         (uc_is_cased): Define through a bitmap lookup.
43716         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43717         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43718         (uc_is_case_ignorable): Define through a bitmap lookup.
43719         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43720         lib/unictype/bitmap.h.
43721         (Depends-on): Add inline. Clean up.
43722         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43723         lib/unictype/bitmap.h.
43724         (Depends-on): Add inline. Clean up.
43725         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43726         recognition.
43727         * tests/unicase/test-u16-tolower.c (main): Likewise.
43728         * tests/unicase/test-u32-tolower.c (main): Likewise.
43729
43730 2009-06-30  Bruno Haible  <bruno@clisp.org>
43731
43732         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43733         * lib/unicase/u16-casemap.c: Likewise.
43734         * lib/unicase/u32-casemap.c: Likewise.
43735
43736 2009-06-29  Bruno Haible  <bruno@clisp.org>
43737
43738         Define u32_casefold as a wrapper around u32_ct_casefold.
43739         * lib/unicase/u32-casefold.c: Update.
43740         * modules/unicase/u32-casefold (Depends-on): Add
43741         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43742         unicase/empty-suffix-context. Clean up.
43743
43744         Define u16_casefold as a wrapper around u16_ct_casefold.
43745         * lib/unicase/u16-casefold.c: Update.
43746         * modules/unicase/u16-casefold (Depends-on): Add
43747         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43748         unicase/empty-suffix-context. Clean up.
43749
43750         Define u8_casefold as a wrapper around u8_ct_casefold.
43751         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43752         * lib/unicase/u8-casefold.c: Update.
43753         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43754         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43755
43756         Define u32_totitle as a wrapper around u32_ct_totitle.
43757         * lib/unicase/u32-totitle.c: Update.
43758         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43759         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43760
43761         Define u16_totitle as a wrapper around u16_ct_totitle.
43762         * lib/unicase/u16-totitle.c: Update.
43763         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43764         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43765
43766         Define u8_totitle as a wrapper around u8_ct_totitle.
43767         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43768         functions.
43769         (FUNC): Delegate to U_CT_TOTITLE.
43770         * lib/unicase/u8-totitle.c: Update.
43771         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43772         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43773
43774         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43775         invocation.
43776         * modules/unicase/u32-tolower (Depends-on): Add
43777         unicase/empty-prefix-context, unicase/empty-suffix-context.
43778
43779         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43780         invocation.
43781         * modules/unicase/u16-tolower (Depends-on): Add
43782         unicase/empty-prefix-context, unicase/empty-suffix-context.
43783
43784         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43785         * modules/unicase/u8-tolower (Depends-on): Add
43786         unicase/empty-prefix-context, unicase/empty-suffix-context.
43787
43788         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43789         invocation.
43790         * modules/unicase/u32-toupper (Depends-on): Add
43791         unicase/empty-prefix-context, unicase/empty-suffix-context.
43792
43793         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43794         invocation.
43795         * modules/unicase/u16-toupper (Depends-on): Add
43796         unicase/empty-prefix-context, unicase/empty-suffix-context.
43797
43798         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43799         * modules/unicase/u8-toupper (Depends-on): Add
43800         unicase/empty-prefix-context, unicase/empty-suffix-context.
43801
43802         New module 'unicase/u32-ct-casefold'.
43803         * lib/unicase/u32-ct-casefold.c: New file.
43804         * modules/unicase/u32-ct-casefold: New file.
43805
43806         New module 'unicase/u16-ct-casefold'.
43807         * lib/unicase/u16-ct-casefold.c: New file.
43808         * modules/unicase/u16-ct-casefold: New file.
43809
43810         New module 'unicase/u8-ct-casefold'.
43811         * lib/unicase/u8-ct-casefold.c: New file.
43812         * lib/unicase/u-ct-casefold.h: New file, derived from
43813         lib/unicase/u-casefold.h.
43814         * modules/unicase/u8-ct-casefold: New file.
43815
43816         New module 'unicase/u32-ct-totitle'.
43817         * lib/unicase/u32-ct-totitle.c: New file.
43818         * modules/unicase/u32-ct-totitle: New file.
43819
43820         New module 'unicase/u16-ct-totitle'.
43821         * lib/unicase/u16-ct-totitle.c: New file.
43822         * modules/unicase/u16-ct-totitle: New file.
43823
43824         New module 'unicase/u8-ct-totitle'.
43825         * lib/unicase/u8-ct-totitle.c: New file.
43826         * lib/unicase/u-ct-totitle.h: New file, derived from
43827         lib/unicase/u-totitle.h.
43828         * modules/unicase/u8-ct-totitle: New file.
43829
43830         New module 'unicase/u32-ct-tolower'.
43831         * lib/unicase/u32-ct-tolower.c: New file.
43832         * modules/unicase/u32-ct-tolower: New file.
43833
43834         New module 'unicase/u16-ct-tolower'.
43835         * lib/unicase/u16-ct-tolower.c: New file.
43836         * modules/unicase/u16-ct-tolower: New file.
43837
43838         New module 'unicase/u8-ct-tolower'.
43839         * lib/unicase/u8-ct-tolower.c: New file.
43840         * modules/unicase/u8-ct-tolower: New file.
43841
43842         New module 'unicase/u32-ct-toupper'.
43843         * lib/unicase/u32-ct-toupper.c: New file.
43844         * modules/unicase/u32-ct-toupper: New file.
43845
43846         New module 'unicase/u16-ct-toupper'.
43847         * lib/unicase/u16-ct-toupper.c: New file.
43848         * modules/unicase/u16-ct-toupper: New file.
43849
43850         New module 'unicase/u8-ct-toupper'.
43851         * lib/unicase/u8-ct-toupper.c: New file.
43852         * modules/unicase/u8-ct-toupper: New file.
43853
43854         Add context arguments to u*_casemap functions.
43855         * lib/unicase/unicasemap.h: Include unicase.h.
43856         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43857         suffix_context arguments.
43858         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43859         functions.
43860         (FUNC): Add prefix_context and suffix_context arguments. Use
43861         uc_is_cased and uc_is_case_ignorable.
43862         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43863         * lib/unicase/u16-casemap.c: Likewise.
43864         * lib/unicase/u32-casemap.c: Likewise.
43865         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43866         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43867         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43868         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43869         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43870         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43871
43872         New module 'unicase/u32-suffix-context'.
43873         * lib/unicase/u32-suffix-context.c: New file.
43874         * modules/unicase/u32-suffix-context: New file.
43875
43876         New module 'unicase/u16-suffix-context'.
43877         * lib/unicase/u16-suffix-context.c: New file.
43878         * modules/unicase/u16-suffix-context: New file.
43879
43880         New module 'unicase/u8-suffix-context'.
43881         * lib/unicase/u8-suffix-context.c: New file.
43882         * lib/unicase/u-suffix-context.h: New file.
43883         * modules/unicase/u8-suffix-context: New file.
43884
43885         New module 'unicase/empty-suffix-context'.
43886         * lib/unicase/empty-suffix-context.c: New file.
43887         * modules/unicase/empty-suffix-context: New file.
43888
43889         New module 'unicase/u32-prefix-context'.
43890         * lib/unicase/u32-prefix-context.c: New file.
43891         * modules/unicase/u32-prefix-context: New file.
43892
43893         New module 'unicase/u16-prefix-context'.
43894         * lib/unicase/u16-prefix-context.c: New file.
43895         * modules/unicase/u16-prefix-context: New file.
43896
43897         New module 'unicase/u8-prefix-context'.
43898         * lib/unicase/u8-prefix-context.c: New file.
43899         * lib/unicase/u-prefix-context.h: New file.
43900         * lib/unicase/context.h: New file.
43901         * modules/unicase/u8-prefix-context: New file.
43902
43903         New module 'unicase/empty-prefix-context'.
43904         * lib/unicase/empty-prefix-context.c: New file.
43905         * modules/unicase/empty-prefix-context: New file.
43906
43907         New module 'unicase/ignorable'.
43908         * lib/unicase/ignorable.c: New file.
43909         * modules/unicase/ignorable: New file.
43910
43911         New module 'unicase/cased'.
43912         * lib/unicase/caseprop.h: New file.
43913         * lib/unicase/cased.c: New file.
43914         * modules/unicase/cased: New file.
43915
43916         New functions for case mapping of substrings.
43917         * lib/unicase.h (casing_prefix_context_t): New type.
43918         (unicase_empty_prefix_context): New variable.
43919         (u8_casing_prefix_context, u16_casing_prefix_context,
43920         u32_casing_prefix_context, u8_casing_prefixes_context,
43921         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43922         declarations.
43923         (casing_suffix_context_t): New type.
43924         (unicase_empty_suffix_context): New variable.
43925         (u8_casing_suffix_context, u16_casing_suffix_context,
43926         u32_casing_suffix_context, u8_casing_suffixes_context,
43927         u16_casing_suffixes_context, u32_casing_suffixes_context,
43928         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43929         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43930         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43931         declarations.
43932
43933 2009-06-28  Jim Meyering  <meyering@redhat.com>
43934
43935         boostrap: indent only with spaces
43936         * build-aux/bootstrap: Indent only with spaces, never TABs.
43937
43938         bootstrap: split long lines
43939         * build-aux/bootstrap: Keep line length < 80.
43940
43941         bootstrap: sync from coreutils
43942         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43943         just as autoreconf does.  Verify a list of prerequisite
43944         package-name,version-number pairs if defined in bootstrap.conf.
43945         Refer to README-prereq, if prerequisites are not satisfied.
43946
43947 2009-06-27  Eric Blake  <ebb9@byu.net>
43948
43949         tests: add test for bogus NULL definition
43950         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43951         * tests/test-stdlib.c: Likewise.
43952         * tests/test-string.c: Likewise.
43953         * tests/test-locale.c: Likewise.
43954         * tests/test-unistd.c: Likewise.
43955         * modules/stdio-tests (Depends-on): Add verify.
43956         * modules/stdlib-tests (Depends-on): Likewise.
43957         * modules/string-tests (Depends-on): Likewise.
43958         * modules/locale-tests (Depends-on): Likewise.
43959         * modules/unistd-tests (Depends-on): Likewise.
43960
43961 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43962
43963         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43964         self-explaining comment.
43965         * m4/selinux-selinux-h: Update serial.
43966         (gl_LIBSELINUX): New macro, adding a warning for missing development
43967         packages to code extracted from...
43968         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43969         Add warning for missing development packages here, too.
43970
43971 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43972
43973         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43974
43975 2009-06-25  Eric Blake  <ebb9@byu.net>
43976
43977         version-etc: fix regression
43978         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43979         gcc.
43980         (version_etc): Use it, to catch bugs with trailing NULL.
43981         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43982         (version_etc_va): Fix logic bug.
43983         * modules/version-etc-tests: Add test.
43984         * tests/test-version-etc.c: New file.
43985         * tests/test-version-etc.sh: Likewise.
43986
43987 2009-06-25  Sam Steingold  <sds@gnu.org>
43988
43989         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43990         mbtowc declaration.
43991
43992 2009-06-25  Eric Blake  <ebb9@byu.net>
43993
43994         fpurge: migrate into <stdio.h>
43995         * lib/fpurge.h: Delete...
43996         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43997         * lib/fpurge.c (fpurge): Change declaring header.
43998         * modules/fpurge (Files): Drop deleted file.
43999         (Depends-on): Add stdio.
44000         (configure.ac): Set witness.
44001         * modules/stdio (Makefile.am): Support fpurge macros.
44002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44003         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44004         * lib/fflush.c: Update client.
44005         * tests/test-fpurge.c: Likewise.
44006         * NEWS: Mention the change.
44007
44008 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44009
44010         * lib/argp-version-etc.c (program_authors): Add const
44011         qualifier.
44012         * lib/version-etc.c: Fix typos in the comments.
44013         * modules/argp-version-etc: Depends on version-etc.
44014
44015 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44016
44017         argp-version-etc: new module.
44018
44019         * lib/argp-version-etc.c: New file.
44020         * lib/argp-version-etc.h: New file.
44021         * modules/argp-version-etc: New file.
44022         * modules/argp-version-etc-tests: New file.
44023         * tests/test-argp-version-etc.c: New test.
44024         * tests/test-argp-version-etc-1.sh: New test.
44025
44026 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44027
44028         Provide additional interfaces and documentation for version-etc
44029         module.
44030
44031         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44032         interfaces.
44033         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44034         prototypes.
44035
44036 2009-06-24  Bruno Haible  <bruno@clisp.org>
44037
44038         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44039         HAVE_LIB${NAME} macro.
44040         Reported by Sam Steingold <sds@gnu.org>.
44041
44042 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44043
44044         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44045         needed.
44046
44047 2009-06-21  Bruno Haible  <bruno@clisp.org>
44048
44049         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44050         work.
44051         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44052         together with LIB${NAME}, LTLIB${NAME}.
44053         Reported by Sam Steingold <sds@gnu.org>.
44054
44055 2009-06-20  Jim Meyering  <meyering@redhat.com>
44056
44057         tests: make sc_require_test_exit_idiom more generic
44058         * top/maint.mk (Exit_witness_file): New overridable variable.
44059         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44060         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44061
44062 2009-06-19  Jim Meyering  <meyering@redhat.com>
44063
44064         hash: reverse order of src/dst parameters in an internal interface
44065         * lib/hash.c (transfer_entries): Reverse order of parameters to
44066         put DST before SRC.  Adjust callers.
44067
44068         tests: test-hash: avoid wholesale duplication
44069         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44070         Instead, use a loop and add a single conditional.
44071
44072         tests: test-hash: allow seed selection via a command line argument
44073         * tests/test-hash.c (get_seed): New function.
44074         (main): Use it.
44075
44076 2009-06-19  Eric Blake  <ebb9@byu.net>
44077
44078         hash: avoid memory leak on allocation failure
44079         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44080         failure.  Factor repeated algorithm...
44081         (transfer_entries): ...into new helper routine.
44082         (hash_delete): React to hash_rehash return value.
44083
44084         hash: reduce memory pressure in hash_rehash no-op case
44085         * lib/hash.c (next_prime): Avoid overflow.
44086         (hash_initialize): Factor bucket size computation...
44087         (compute_bucket_size): ...into new helper function.
44088         (hash_rehash): Use new function and open coding to reduce memory
44089         pressure, and avoid a memory leak in USE_OBSTACK code.
44090         Reported by Jim Meyering.
44091
44092 2009-06-18  Eric Blake  <ebb9@byu.net>
44093
44094         hash: make rotation more obvious
44095         * modules/hash (Depends-on): Add bitrotate and stdint.
44096         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44097         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44098         (SIZE_MAX): Rely on headers for definition.
44099         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44100         (raw_hasher): Use rotr_sz.
44101         Suggested by Jim Meyering.
44102
44103         hash: fix memory leak in last patch
44104         * lib/hash.c (hash_rehash): Avoid memory leak.
44105
44106         hash: avoid no-op rehashing
44107         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44108
44109         hash: provide default callback functions
44110         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44111         (hash_initialize): Use them as defaults.
44112         * tests/test-hash.c (main): Test this.
44113
44114         hash: minor optimization
44115         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44116         when possible.
44117         (hash_initialize): Document this promise.
44118         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44119         * tests/test-hash.c (hash_compare_strings): Test this.
44120
44121 2009-06-18  Bruno Haible  <bruno@clisp.org>
44122
44123         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44124         going to be replaced anyway.
44125
44126 2009-06-18  Bruno Haible  <bruno@clisp.org>
44127
44128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44129         in one place.
44130         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44131         be replaced anyway.
44132
44133 2009-06-18  Eric Blake  <ebb9@byu.net>
44134
44135         hash: check for resize before insertion
44136         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44137         threshold before insertion, so that a pathological hash_rehash
44138         that fills every bucket can still trigger another rehash.
44139
44140 2009-06-18  Jim Meyering  <meyering@redhat.com>
44141
44142         hash-tests: add a loop around the small tests
44143         * tests/test-hash.c (main): Repeat small tests with selected
44144         small initial table sizes.
44145
44146 2009-06-17  Eric Blake  <ebb9@byu.net>
44147
44148         hash: minor cleanups
44149         * lib/hash.h (hash_entry): Make opaque, by moving...
44150         * lib/hash.c (hash_entry): ...here.
44151         (hash_insert): Clarify restrictions on what can be inserted.
44152         (hash_get_next): Clarify when it is safe to remove an element
44153         during traversal.
44154         (check_tuning): Skip verification when tuning is known safe.
44155         (hash_initialize): Clarify restrictions on tuning.
44156
44157 2009-06-17  Jim Meyering  <jim@meyering.net>
44158         and Eric Blake  <ebb9@byu.net>
44159
44160         hash-tests: new module
44161         * modules/hash-tests: New file.
44162         * tests/test-hash.c: New file.
44163
44164 2009-06-17  Eric Blake  <ebb9@byu.net>
44165
44166         strstr-simple: document new module
44167         * MODULES.html.sh: Document new module.
44168
44169         strstr, strcasestr: replace on platforms with broken memchr
44170         * modules/strstr: Split into...
44171         * modules/strstr-simple: ...new module that does not care about
44172         performance, but does care about glibc bug.
44173         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44174         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44175         if platform memchr is broken, per Debian bug 521737.
44176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44177         memchr.
44178         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44179         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44180         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44181         * modules/mountlist (Depends-on): Add strstr-simple.
44182         * modules/gen-uni-tables (Depends-on): Likewise.
44183         * modules/argz (Depends-on): Add strstr.
44184
44185 2009-06-17  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/posix_spawn-internal (Depends-on): Add errno.
44188
44189 2009-06-17  Bruno Haible  <bruno@clisp.org>
44190
44191         Define missing ESTALE on Interix 3.5.
44192         * lib/errno.in.h (ESTALE): Assign a value if missing.
44193         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44194         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44195         missing.
44196         * doc/posix-headers/errno.texi: Mention the Interix bug.
44197         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44198
44199 2009-06-15  Eric Blake  <ebb9@byu.net>
44200
44201         memchr, memchr2: add valgrind exception
44202         * lib/memchr.valgrind: New file.
44203         * lib/memchr2.valgrind: New file.
44204         * modules/memchr (Files): Distribute valgrind file.
44205         * modules/memchr2 (Files): Likewise.
44206
44207         docs: memchr is no longer obsolete
44208         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44209         * lib/string.in.h (memchr): Simplify logic.
44210
44211 2009-06-14  Jim Meyering  <meyering@redhat.com>
44212
44213         link-follow: fix the "checking..." message to not mention trailing slash
44214         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44215         never considered trailing slashes.
44216
44217 2009-06-14  Bruno Haible  <bruno@clisp.org>
44218
44219         * m4/memchr.m4: Mention also the bug on IA-64.
44220         * doc/posix-functions/memchr.texi: Likewise.
44221
44222 2009-06-12  Eric Blake  <ebb9@byu.net>
44223
44224         memchr: detect broken x86_64 and alpha implementations
44225         * modules/memchr-tests (Depends-on): Move mmap detection...
44226         * modules/memchr (Depends-on): ...here.
44227         (configure.ac): Set indicator.
44228         * lib/string.in.h (memchr): Declare replacement.
44229         * modules/string (Makefile.am): Trigger replacement.
44230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44231         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44232         bugs.
44233         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44234         * modules/getpagesize (License): Relax license.
44235
44236 2009-06-11  Bruno Haible  <bruno@clisp.org>
44237
44238         * lib/idpriv.h: Add more references.
44239
44240 2009-06-08  Bruno Haible  <bruno@clisp.org>
44241
44242         Tests for module 'idpriv-droptemp'.
44243         * modules/idpriv-droptemp-tests: New file.
44244         * tests/test-idpriv-droptemp.sh: New file.
44245         * tests/test-idpriv-droptemp.su.sh: New file.
44246         * tests/test-idpriv-droptemp.c: New file.
44247
44248         New module 'idpriv-droptemp'.
44249         * lib/idpriv-droptemp.c: New file.
44250         * modules/idpriv-droptemp: New file.
44251
44252 2009-06-08  Bruno Haible  <bruno@clisp.org>
44253
44254         Tests for module 'idpriv-drop'.
44255         * modules/idpriv-drop-tests: New file.
44256         * tests/test-idpriv-drop.sh: New file.
44257         * tests/test-idpriv-drop.su.sh: New file.
44258         * tests/test-idpriv-drop.c: New file.
44259
44260         New module 'idpriv-drop'.
44261         * lib/idpriv.h: New file.
44262         * lib-idpriv-drop.c: New file.
44263         * m4/idpriv.m4: New file.
44264         * modules/idpriv-drop: New file.
44265
44266 2009-06-08  Bruno Haible  <bruno@clisp.org>
44267
44268         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44269         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44270         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44271         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44272         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44273         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44274         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44275
44276 2009-06-08  Eric Blake  <ebb9@byu.net>
44277
44278         test-strstr: use memory fence, when possible
44279         * tests/test-strstr.c (main): Use memory fence, in order to be
44280         more likely to trigger Debian bug 521737.
44281         * modules/strstr-tests (Files): Pull in additional files.
44282
44283         memchr: no longer obsolete, for wider field testing
44284         * modules/memchr (Status, Notice): Delete, this module is no
44285         longer obsolete.
44286         * modules/vasnprintf (Depends-on): Add memchr.
44287
44288 2009-06-07  Jim Meyering  <meyering@redhat.com>
44289
44290         hash: declare some functions with the warn_unused_result attribute
44291         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44292
44293 2009-06-07  Bruno Haible  <bruno@clisp.org>
44294
44295         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44296         Reported by Eric Blake.
44297
44298 2009-06-06  Eric Blake  <ebb9@byu.net>
44299
44300         test-alignof: fix typo with long double
44301         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44302         compiler error.
44303
44304 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44305
44306         Escape non-texinfo { and }s.
44307         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44308         markup error.
44309
44310 2009-06-04  Jim Meyering  <meyering@redhat.com>
44311
44312         gitlog-to-changelog: don't infloop on an empty commit log
44313         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44314         Reported by Boris Petersen <transacid@centerim.org>.
44315
44316 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44317
44318         version-etc: extend for packagers
44319         Add three new configure options, intended for packagers:
44320           --with-packager="packager name"
44321           --with-packager-version="packager-specific version"
44322           --with-packager-bug-reports="packager bug reporting"
44323         An example with coreutils:
44324           $ ./configure \
44325             --with-packager=Gentoo \
44326             --with-packager-bug-report=http://bugs.gentoo.org/ \
44327             --with-packager-version="patchset 1.6"
44328           $ ./src/ls --version | head -n2
44329           ls (GNU coreutils) 7.1-dirty
44330           Packaged by Gentoo (patchset 1.6)
44331         Note that the bug reporting info via --help doesn't show up because
44332         coreutils uses its own custom emit_bug_reporting_address() implementation
44333         in src/system.h.  If it didn't, it'd look like:
44334           $ ./src/ls --help | tail -n4
44335           Report bugs to <bug-coreutils@gnu.org>.
44336           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44337           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44338           General help using GNU software: <http://www.gnu.org/gethelp/>.
44339         * lib/version-etc.c: Print new information, if provided.
44340         * m4/version-etc.m4: New file.
44341         * modules/version-etc (Files): Add m4/version-etc.m4.
44342         (configure.ac): Add gl_VERSION_ETC.
44343
44344 2009-05-31  Bruno Haible  <bruno@clisp.org>
44345
44346         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44347         and 'int64_t'.
44348         * modules/alignof-tests (Dependencies): Add stdint.
44349         Reported by Eric Blake.
44350
44351 2009-05-31  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44354         restriction due to compiler bugs.
44355         Reported by Eric Blake.
44356
44357 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44358             Bruno Haible  <bruno@clisp.org>
44359
44360         Fix test-alignof failure.
44361         * lib/alignof.h (alignof_slot): New macro.
44362         (alignof_type): New macro, with the same semantics as the previous
44363         'alignof'.
44364         (alignof): Alias to alignof_slot.
44365         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44366         check that the results are usable as constant expressions.
44367
44368 2009-05-31  Bruno Haible  <bruno@clisp.org>
44369
44370         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44371         * tests/test-memchr.c (main): Check that memchr does not read past the
44372         first occurrence of the byte.
44373         * tests/test-strstr.c (main): Update comment.
44374         Suggested by Eric Blake.
44375
44376 2009-05-30  Bruno Haible  <bruno@clisp.org>
44377
44378         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44379         detail how to use dumpbin.
44380         Reported by David Byron <dbyron@dbyron.com>.
44381
44382 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44383
44384         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44385
44386 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44387
44388         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44389
44390 2009-05-28  Bruno Haible  <bruno@clisp.org>
44391
44392         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44393         build-aux/ files.
44394
44395 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44396
44397         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44398
44399 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44400
44401         * gnulib-tool (sed_transform_main_lib_file)
44402         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44403         regexps.
44404
44405 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44406
44407         * tests/test-strstr.c: Add another self-test.
44408         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44409         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44410
44411 2009-05-23  Bruno Haible  <bruno@clisp.org>
44412
44413         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44414         change.
44415
44416 2009-05-21  Bruno Haible  <bruno@clisp.org>
44417
44418         Simplify use of mode_t varargs.
44419         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44420         uses 'mode_t' or 'int'.
44421         * lib/openat.c (openat): Likewise.
44422         * lib/open-safer.c (open_safer): Likewise.
44423         * m4/mode_t.m4: New file.
44424         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44425         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44426         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44427         * modules/open (Files): Add m4/mode_t.m4.
44428         * modules/openat (Files): Likewise.
44429         * modules/fcntl-safer (Files): Likewise.
44430         Suggested by Eric Blake.
44431
44432 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44433
44434         * doc/glibc-functions/fallocate.texi: New file.
44435         * doc/gnulib.texi: Include it.
44436
44437 2009-05-21  Eric Blake  <ebb9@byu.net>
44438             Bruno Haible  <bruno@clisp.org>
44439
44440         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44441         invocations.
44442         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44443
44444 2009-05-21  Eric Blake  <ebb9@byu.net>
44445             Bruno Haible  <bruno@clisp.org>
44446
44447         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44448         include_next. Fix of 2008-11-20 commit.
44449         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44450         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44451         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44452         NEXT_MATH_H.
44453         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44454         instead of NEXT_MATH_H.
44455
44456 2009-05-21  Bruno Haible  <bruno@clisp.org>
44457
44458         Avoid redefinition warnings for SIZE_MAX.
44459         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44460         Reported by Simon Josefsson.
44461
44462 2009-05-21  Bruno Haible  <bruno@clisp.org>
44463
44464         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44465         AC_CACHE_VAL.
44466
44467 2009-05-20  Bruno Haible  <bruno@clisp.org>
44468
44469         Make zeroptr.h work on mingw.
44470         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44471         mprotect.
44472         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44473         * modules/memchr2-tests (configure.ac): Likewise.
44474         * modules/memcmp-tests (configure.ac): Likewise.
44475         * modules/memmem-tests (configure.ac): Likewise.
44476         * modules/memrchr-tests (configure.ac): Likewise.
44477         Reported by Simon Josefsson.
44478
44479 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44480
44481         * tests/test-glob.c: Include string.h for strcmp prototype.
44482
44483 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44484
44485         * modules/getdelim (Depends-on): Add explicit stdint, although it
44486         was implicitly already pulled in via realloc-posix.
44487         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44488
44489 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44490
44491         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44492         G. Christensen" <tgc@jupiterrise.com>.
44493         * m4/sys_socket_h.m4: Check for sa_family_t.
44494         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44495         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44496         * tests/test-sys_socket.c: Check that sa_family_t works.
44497
44498 2009-05-18  Eric Blake  <ebb9@byu.net>
44499
44500         maint.mk: allow gnulib_dir in VPATH build
44501         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44502
44503 2009-05-15  Jim Meyering  <meyering@redhat.com>
44504
44505         maint.mk: Give gnulib_dir a default definition.
44506         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44507         Thus, most packages no longer need to specify this variable in cfg.mk
44508
44509 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44510
44511         rename.m4: fix typos that would make non-mingw cross-configure fail
44512         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44513
44514 2009-05-13  Eric Blake  <ebb9@byu.net>
44515
44516         mmap-anon: avoid out-of-order autoconf expansion
44517         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44518         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44519         * modules/memchr-tests (Depends-on): Add extensions.
44520         * modules/memchr2-tests (Depends-on): Add extensions.
44521         * modules/memcmp-tests (Depends-on): Add extensions.
44522         * modules/memmem-tests (Depends-on): Add extensions.
44523         * modules/memrchr-tests (Depends-on): Add extensions.
44524
44525 2009-05-13  Bruno Haible  <bruno@clisp.org>
44526
44527         Make some tests ISO C 99 compliant.
44528         * tests/zerosize-ptr.h: New file.
44529         * tests/test-memchr.c: Include zerosize-ptr.h.
44530         (main): Use a zero-size object pointer instead of NULL.
44531         * tests/test-memchr2.c: Include zerosize-ptr.h.
44532         (main): Use a zero-size object pointer instead of NULL.
44533         * tests/test-memcmp.c: Include zerosize-ptr.h.
44534         (main): Use a zero-size object pointer instead of NULL.
44535         * tests/test-memmem.c: Include zerosize-ptr.h.
44536         (main): Use a zero-size object pointer instead of NULL.
44537         * tests/test-memrchr.c: Include zerosize-ptr.h.
44538         (main): Use a zero-size object pointer instead of NULL.
44539         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44540         m4/mmap-anon.m4.
44541         (Depends-on): Add getpagesize.
44542         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44543         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44544         m4/mmap-anon.m4.
44545         (Depends-on): Add getpagesize.
44546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44547         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44548         m4/mmap-anon.m4.
44549         (Depends-on): Add getpagesize.
44550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44551         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44552         m4/mmap-anon.m4.
44553         (Depends-on): Add getpagesize.
44554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44555         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44556         m4/mmap-anon.m4.
44557         (Depends-on): Add getpagesize.
44558         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44559
44560 2009-05-12  Bruno Haible  <bruno@clisp.org>
44561
44562         Tests for module 'alignof'.
44563         * modules/alignof-tests: New file.
44564         * tests/test-alignof.c: New file.
44565
44566 2009-05-12  Bruno Haible  <bruno@clisp.org>
44567
44568         Fix alignof macro.
44569         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44570         vendor compilers that are always correct.
44571
44572 2009-05-12  Bruno Haible  <bruno@clisp.org>
44573
44574         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44575         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44576         not whether its fully works.
44577
44578 2009-05-12  Bruno Haible  <bruno@clisp.org>
44579
44580         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44581
44582 2009-05-12  Jim Meyering  <meyering@redhat.com>
44583
44584         * top/maint.mk: Adjust backslash alignment.
44585
44586 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44587
44588         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44589
44590 2009-05-11  Eric Blake  <ebb9@byu.net>
44591
44592         argp: avoid undefined behavior
44593         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44594         macros.
44595
44596 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44597
44598         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44599         user.name to prevent git commit from complaining.
44600
44601 2009-05-10  Bruno Haible  <bruno@clisp.org>
44602
44603         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44604         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44605         it rewrites every file name only once.
44606         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44607
44608 2009-05-08  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44611         instead of 'max'.
44612
44613 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44614
44615         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44616         sockaddr_storage test.
44617
44618 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44619
44620         * modules/sys_socket (Makefile.am): Substitute
44621         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44622         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44623         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44624         * tests/test-sys_socket.c: Check sockaddr_storage.
44625
44626 2009-05-08  Bruno Haible  <bruno@clisp.org>
44627
44628         New module 'alignof'.
44629         * lib/alignof.h: New file.
44630         * modules/alignof: New file.
44631
44632 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44633             Bruno Haible  <bruno@clisp.org>
44634
44635         Fix test-file-has-acl on FreeBSD.
44636         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44637         mask is implicitly added.
44638         * tests/test-file-has-acl.c: Include <signal.h>.
44639         (main): Terminate the test after 5 seconds.
44640         * modules/acl-tests (configure.ac): Check for alarm function.
44641
44642 2009-05-04  Bruno Haible  <bruno@clisp.org>
44643
44644         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44645         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44646         * modules/errno (configure.ac): Drop AC_REQUIRE.
44647         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44648         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44649
44650 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44651
44652         * modules/glob-tests: New module.
44653         * tests/test-glob.c: Add.
44654
44655 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44656
44657         * modules/fnmatch-tests: New module.
44658         * tests/test-fnmatch.c: Add.
44659
44660 2009-05-04  Eric Blake  <ebb9@byu.net>
44661
44662         maint: make the new no-submodule-changes rule VPATH-safe
44663         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44664
44665 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44666             Bruno Haible  <bruno@clisp.org>
44667
44668         acl: Fix infinite loop on FreeBSD.
44669         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44670         of return value from acl_get_entry.
44671         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44672         Likewise.
44673
44674 2009-05-03  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/acl-internal.h (acl_entries): Clarify return value.
44677         * lib/acl_entries.c (acl_entries): Likewise.
44678
44679 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44680
44681         Bug fix in acl module.
44682         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44683
44684 2009-05-03  Bruno Haible  <bruno@clisp.org>
44685
44686         Create gperf-generated file in the source dir, not in the build dir.
44687         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44688         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44689         * modules/unicase/locale-language (unicase/locale-languages.h):
44690         Likewise.
44691         * modules/unicase/special-casing (unicase/special-casing-table.h):
44692         Likewise.
44693         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44694         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44695         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44696         Reported by Ralf Wildenhues.
44697
44698 2009-05-03  Bruno Haible  <bruno@clisp.org>
44699
44700         * modules/fnmatch (Description, configure.ac): Taken from
44701         fnmatch-posix.
44702         * modules/fnmatch-posix: Turn into a symbolic reference to the
44703         'fnmatch' module, and deprecate.
44704         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44705
44706 2009-05-03  Bruno Haible  <bruno@clisp.org>
44707
44708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44709         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44710         Reported by Ralf Wildenhues.
44711
44712 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44713
44714         * m4/fnmatch.m4: Fix fnmatch re-define.
44715
44716 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44717
44718         priv-set: new module and tests; adapt write-any-file
44719         * lib/priv-set.c: New file.
44720         * lib/priv-set.h: New file.
44721         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44722         * lib/write-any-file.c: Simplify by using priv-set module.
44723         * m4/priv-set.m4: New file.
44724         * modules/priv-set: New file.
44725         * modules/unlinkdir: Add dependency on priv-set module.
44726         * modules/write-any-file: Likewise.
44727
44728         Tests for module 'priv-set'.
44729         * modules/priv-set-tests: New file.
44730         * tests/test-priv-set.c: New file.
44731
44732 2009-05-03  Jim Meyering  <meyering@redhat.com>
44733             Bruno Haible  <bruno@clisp.org>
44734
44735         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44736         use the converted UTF-8 variant of the name instead.
44737
44738 2009-05-03  Jim Meyering  <meyering@redhat.com>
44739
44740         tests: tighten some getdate tests
44741         * tests/test-getdate.c (main): Tighten tests: require equality,
44742         not just greater than.  Set TZ envvar to UTC0.
44743
44744 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44745
44746         getdate: correctly interpret "next monday" when run on a Monday
44747         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44748         that e.g., "next tues" (when run on a tuesday) results in a date
44749         that is one week in the future, and not today's date.
44750         I.e., add a week when the wday is the same as the current one.
44751         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44752         and earlier by Martin Bernreuther and Jan Minář.
44753         * tests/test-getdate.c (main): Check that "next DAY" is always in
44754         the future and that "last DAY" is always in the past.
44755
44756 2009-05-02  Jim Meyering  <meyering@redhat.com>
44757
44758         build: ensure that a release build fails when a submodule is unclean
44759         * top/maint.mk (no-submodule-changes): New rule.
44760         (alpha beta major): Depend on it.
44761
44762 2009-05-02  Bruno Haible  <bruno@clisp.org>
44763
44764         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44765         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44766         shell variable gl_fnmatch_required to detect which variant is
44767         requested.
44768         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44769         gl_FUNC_FNMATCH_POSIX.
44770         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44771         exclude fnmatch-posix.
44772
44773 2009-05-02  Bruno Haible  <bruno@clisp.org>
44774
44775         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44776         * modules/mbsrtowcs (License): Change to LGPLv2+.
44777         * modules/strnlen1 (License): Likewise.
44778         Reported by Simon Josefsson.
44779
44780 2009-05-02  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44783         "cross".
44784         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44785         gnulib-tool was called with option --source-base=lib.
44786
44787 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44788
44789         Use automake *-local hooks without commands, for extensibility.
44790         * modules/localcharset (Makefile.am): Rename install-exec-local
44791         rule to install-exec-localcharset, and make it a prerequisite of
44792         install-exec-local.  Likewise, rename the uninstall-local rule to
44793         uninstall-localcharset, and make it a prerequisite of the former.
44794
44795 2009-05-01  Bruno Haible  <bruno@clisp.org>
44796
44797         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44798         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44799         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44801         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44802         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44803         m4/locale-zh.m4, m4/codeset.m4.
44804
44805         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44806         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44807         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44808         m4/locale-zh.m4.
44809
44810         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44811         REPLACE_WCRTOMB if mbstate_t must be replaced.
44812         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44813         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44814
44815 2009-05-01  Bruno Haible  <bruno@clisp.org>
44816
44817         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44818         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44819         dngettext, dcngettext, textdomain, bindtextdomain,
44820         bind_textdomain_codeset): Undefine before redefining.
44821
44822 2009-04-30  Bruno Haible  <bruno@clisp.org>
44823
44824         Fix bug introduced on 2009-04-25.
44825         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44826         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44827         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44828         is defined.
44829         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44830         is defined.
44831         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44832         is defined.
44833         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44834
44835 2009-04-28  Bruno Haible  <bruno@clisp.org>
44836
44837         Comment tweaks.
44838         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44839         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44840         * lib/unicase.h (u*_casexfrm): Likewise.
44841         Reported by Paolo Bonzini.
44842
44843 2009-04-28  Bruno Haible  <bruno@clisp.org>
44844
44845         Fix a compilation error.
44846         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44847         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44848         Reported by Jim Meyering.
44849
44850 2009-04-27  Bruno Haible  <bruno@clisp.org>
44851
44852         New module 'libunistring'.
44853         * modules/libunistring: New file.
44854         * m4/libunistring.m4: New file.
44855         * MODULES.html.sh (Unicode string functions): Add it.
44856
44857 2009-04-27  Eric Blake  <ebb9@byu.net>
44858
44859         maint.mk: allow package-specific header to provide <config.h>
44860         * top/maint.mk (sc_require_config_h): New variable.
44861         (sc_require_config_h, sc_require_config_h_first): Use it.
44862
44863 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44864
44865         * top/maint.mk (sc_avoid_if_before_free): Except
44866         useless-if-before-free script.
44867
44868 2009-04-27  Eric Blake  <ebb9@byu.net>
44869
44870         maintainer-makefile: depend on all required helper scripts
44871         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44872         useless-if-before-free.
44873         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44874         version, rather than assuming gnulib checkout is available.
44875         Reported by Simen Josefsson.
44876
44877 2009-04-26  Bruno Haible  <bruno@clisp.org>
44878
44879         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44880         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44881         "../" or "..".
44882
44883 2009-04-26  Bruno Haible  <bruno@clisp.org>
44884
44885         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44886         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44887         AC_LIB_HAVE_LINKFLAGS.
44888
44889 2009-04-26  Bruno Haible  <bruno@clisp.org>
44890
44891         Simplify calling convention of u*_conv_from_encoding.
44892         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44893         u32_conv_from_encoding): Expect a resultbuf argument and return the
44894         result directly as a pointer.
44895         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44896         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44897         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44898         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44899         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44900         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44901         Update.
44902         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44903         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44904         * lib/vasnprintf.c (VASNPRINTF): Update.
44905         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44906         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44907         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44908         * NEWS: Mention the change.
44909
44910 2009-04-26  Bruno Haible  <bruno@clisp.org>
44911
44912         Simplify calling convention of u*_conv_to_encoding.
44913         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44914         u32_conv_to_encoding): Expect a resultbuf argument and return the
44915         result directly as a pointer.
44916         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44917         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44918         freeing scaled_offsets if mem_iconveha failed.
44919         * lib/unicase/u-casexfrm.h (FUNC): Update.
44920         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44921         * lib/vasnprintf.c (VASNPRINTF): Update.
44922         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44923         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44924         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44925         * NEWS: Mention the change.
44926
44927 2009-04-26  Bruno Haible  <bruno@clisp.org>
44928
44929         Avoid test failures on AIX and OSF/1.
44930         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44931         malloc(0).
44932         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44933         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44934         Likewise.
44935         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44936         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44937         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44938         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44939         * doc/posix-functions/malloc.texi: Document the portability problem
44940         related to malloc(0).
44941
44942 2009-04-26  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44945         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44946         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44947
44948 2009-04-25  Bruno Haible  <bruno@clisp.org>
44949
44950         Avoid link error when creating a namespace clean library.
44951         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44952         as macro with arguments if already defined as an alias.
44953         * lib/signbitf.c (gl_signbitf): Don't undefine.
44954         * lib/signbitd.c (gl_signbitd): Don't undefine.
44955         * lib/signbitl.c (gl_signbitl): Don't undefine.
44956
44957 2009-04-25  Jim Meyering  <meyering@redhat.com>
44958
44959         vc-list-files: fix another quoting bug
44960         * build-aux/vc-list-files: Avoid sed backslash expansion
44961         of pathological directory names.
44962
44963 2009-04-25  Eric Blake  <ebb9@byu.net>
44964
44965         vc-list-files: fix shell quoting error
44966         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44967         timestamp.
44968
44969 2009-04-25  Jim Meyering  <meyering@redhat.com>
44970
44971         vc-list-files: restore lost functionality with subdir argument
44972         * build-aux/vc-list-files: When given a non-"." sub-directory
44973         argument, substitute the $dir/ prefix back onto each resulting name.
44974         Otherwise, coreutils' root_tests check would fail.
44975
44976 2009-04-24  Eric Blake  <ebb9@byu.net>
44977
44978         vc-list-files: ignore git symlinks
44979         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44980         than ls-files, to ignore git symlinks.
44981
44982         maint.mk: import improvements from m4
44983         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44984         (move_if_change): Delete unused macro.
44985         (news-date-check, vc-diff-check): Support VPATH builds.
44986         (announcement): Likewise.  Split --bootstrap-tools list...
44987         (boostrap-tools): ...into separate list, which can be overridden
44988         in cfg.mk.
44989         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44990         requiring dependency on useless-if-before-free module.
44991         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44992         Support VPATH builds.
44993
44994 2009-04-24  Jim Meyering  <meyering@redhat.com>
44995
44996         maint.mk: remove coreutils-specific rules and variables
44997         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44998         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44999         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45000
45001         maint.mk: remove obsolete rule
45002         * top/maint.mk (rel-check): Remove rule.
45003         (WGET, WGETFLAGS): Remove now-unused variables.
45004
45005 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45006
45007         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45008         consistency.
45009
45010         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45011         '$(PATH_SEPARATOR)' instead of ':'.
45012
45013 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45014
45015         * lib/getopt1.c (main): Use 'const' for static array.
45016
45017 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45018
45019         * top/maint.mk: Sync with coreutils.
45020         * NEWS: Explain incompatibilities.
45021
45022 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45023             Bruno Haible  <bruno@clisp.org>
45024
45025         Fix cross-compilation results.
45026         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45027         statement, as third argument of AC_TRY_RUN.
45028         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45029         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45030         Likewise.
45031         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45032         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45033         Likewise.
45034         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45036         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45037
45038 2009-04-20  Bruno Haible  <bruno@clisp.org>
45039
45040         Avoid test failure on mingw.
45041         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45042
45043 2009-04-20  Bruno Haible  <bruno@clisp.org>
45044
45045         Avoid compilation error on mingw.
45046         * modules/localename-tests (Depends-on): Add locale.
45047
45048 2009-04-19  Bruno Haible  <bruno@clisp.org>
45049
45050         Support for building a shared library on Windows platforms.
45051         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45052         (main): Test the presence of UNINORM_NFC here.
45053         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45054         (main): Test the presence of UNINORM_NFD here.
45055         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45056         (main): Test the presence of UNINORM_NFKC here.
45057         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45058         (main): Test the presence of UNINORM_NFKD here.
45059
45060 2009-04-19  Bruno Haible  <bruno@clisp.org>
45061
45062         Avoid a compiler warning.
45063         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45064         Change type of variable 'sequence'.
45065
45066 2009-04-19  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/configmake (Makefile.am): When the contents of configmake.h
45069         does not change, arrange to preserve its modification time.
45070
45071 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45072
45073         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45074         gettext domain.
45075
45076 2009-04-16  Jim Meyering  <meyering@redhat.com>
45077
45078         useless-if-before-free: improve conversion code
45079         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45080         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45081
45082 2009-04-14  Bruno Haible  <bruno@clisp.org>
45083
45084         * modules/fcntl (Depends-on): Add extensions.
45085         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45086
45087 2009-04-12  Ben Pfaff  <blp@gnu.org>
45088
45089         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45090         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45091
45092 2009-03-20  Ben Pfaff  <blp@gnu.org>
45093
45094         Make rename replace existing destinations on Windows.
45095         * m4/rename.m4: Add test for Mingw.
45096         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45097         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45098         * doc/posix-functions/rename.texi: Document.
45099
45100 2009-04-10  Bruno Haible  <bruno@clisp.org>
45101
45102         New include file "iconveh.h".
45103         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45104         * lib/striconveh.h: Include it.
45105         (enum iconv_ilseq_handler): Remove definition.
45106         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45107         striconveh.h.
45108         * lib/striconveha.c: Include striconveh.h.
45109         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45110         * modules/striconveh (Files): Add lib/iconveh.h.
45111         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45112         lib/striconveh.h.
45113
45114 2009-04-10  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/uniconv.h: Update comment.
45117
45118 2009-04-10  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45121         always.
45122         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45123         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45125         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45126         "unistring-notinline.h", so that the function gets defined always.
45127         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45128         * lib/unistr/u8-uctomb.c: Likewise.
45129         * lib/unistr/u16-mbtouc.c: Likewise.
45130         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45131         * lib/unistr/u16-uctomb.c: Likewise.
45132         * lib/unistr/u32-mbtouc.c: Likewise.
45133         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45134         * lib/unistr/u32-uctomb.c: Likewise.
45135
45136 2009-04-10  Bruno Haible  <bruno@clisp.org>
45137
45138         Mark 'utime' obsolete.
45139         * modules/utime (Status, Notice): New sections.
45140         Suggested by Jim Meyering.
45141
45142         Fix cross-compile guess for utime test.
45143         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45144         autoconf.
45145         * doc/posix-functions/utime.texi: Give more precisions.
45146         Reported by Jan <ipif@ymail.com>.
45147
45148 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45149
45150         filevercmp: correct today's change
45151         * lib/filevercmp.c: Also handle coreutils' test inputs.
45152         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45153
45154         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45155         for reporting it.
45156         * lib/filevercmp.c: Special handle for "", "." and "..".
45157         * tests/test-filevercmp.c: Enlarge the set suite.
45158
45159 2009-04-07  Jim Meyering  <meyering@redhat.com>
45160
45161         useless-if-before-free: show how to remove braced useless free, too
45162         * build-aux/useless-if-before-free: still only in a comment, though.
45163
45164 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45165
45166         maint.mk: import changes to syntax-check macros from coreutils
45167         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45168         Use them in the relevant macros.
45169
45170 2009-04-06  Bruno Haible  <bruno@clisp.org>
45171
45172         Fix unportable use of bit-fields.
45173         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45174         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45175         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45176
45177 2009-04-06  Bruno Haible  <bruno@clisp.org>
45178
45179         Avoid test failures on AIX and OSF/1.
45180         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45181         that malloc(0) = NULL.
45182         * tests/unicase/test-u8-tolower.c (check): Likewise.
45183         * tests/unicase/test-u8-totitle.c (check): Likewise.
45184         * tests/unicase/test-u8-toupper.c (check): Likewise.
45185         * tests/unicase/test-u16-casefold.c (check): Likewise.
45186         * tests/unicase/test-u16-tolower.c (check): Likewise.
45187         * tests/unicase/test-u16-totitle.c (check): Likewise.
45188         * tests/unicase/test-u16-toupper.c (check): Likewise.
45189         * tests/unicase/test-u32-casefold.c (check): Likewise.
45190         * tests/unicase/test-u32-tolower.c (check): Likewise.
45191         * tests/unicase/test-u32-totitle.c (check): Likewise.
45192         * tests/unicase/test-u32-toupper.c (check): Likewise.
45193         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45194         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45195         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45196         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45197         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45198         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45199         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45200         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45201         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45202         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45203         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45204         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45205
45206 2009-04-05  Bruno Haible  <bruno@clisp.org>
45207
45208         Work around an autoconf limitation.
45209         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45210         comment line if it would be longer than 3 KB.
45211
45212 2009-04-05  Bruno Haible  <bruno@clisp.org>
45213
45214         Avoid test failure with libiconv-1.13.
45215         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45216         of the expected test results.
45217
45218 2009-04-05  Bruno Haible  <bruno@clisp.org>
45219
45220         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45221         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45222         that it should be installed.
45223
45224 2009-04-05  Bruno Haible  <bruno@clisp.org>
45225
45226         * gnulib-tool: New option --copy-file.
45227         (func_usage): Document it.
45228         (func_dest_tmpfilename): Moved out of func_import.
45229         (func_add_file, func_update_file): New functions, extracted from
45230         func_import.
45231         (func_import): Update.
45232
45233 2009-04-05  Karl Berry  <karl@gnu.org>
45234
45235         * README: prominently mention gnulib-tool.
45236         Rearrange sections so getting the code is near the top.
45237
45238 2009-04-05  Bruno Haible  <bruno@clisp.org>
45239
45240         * lib/unicase.h: Mention u*_cmp2.
45241         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45242         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45243         * lib/unicase/ulc-casecmp.c: Likewise.
45244         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45245         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45246         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45247         unistr/u8-cmp.
45248         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45249         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45250         unistr/u16-cmp.
45251         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45252         unistr/u32-cmp.
45253
45254         * lib/uninorm.h: Mention u*_cmp2.
45255         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45256         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45257         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45258         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45259         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45260         unistr/u8-cmp.
45261         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45262         unistr/u16-cmp.
45263         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45264         unistr/u32-cmp.
45265
45266         New module 'unistr/u32-cmp2'.
45267         * lib/unistr/u32-cmp2.c: New file.
45268         * modules/unistr/u32-cmp2: New file.
45269
45270         New module 'unistr/u16-cmp2'.
45271         * lib/unistr/u16-cmp2.c: New file.
45272         * modules/unistr/u16-cmp2: New file.
45273
45274         New module 'unistr/u8-cmp2'.
45275         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45276         * lib/unistr/u8-cmp2.c: New file.
45277         * lib/unistr/u-cmp2.h: New file.
45278         * modules/unistr/u8-cmp2: New file.
45279
45280 2009-04-05  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/unictype.h (uc_property_is_valid): New macro.
45283         * tests/unictype/test-pr_byname.c (main): Use it.
45284
45285         * lib/unistr.h: Doc fixes.
45286         * lib/uniconv.h: Doc fixes.
45287         * lib/unictype.h: Doc fixes.
45288
45289 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45290
45291         Port coreutils 7.2 to Solaris 8.
45292
45293         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45294         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45295         for Solaris 8.  This is a bit of a hack, as it means it's the
45296         caller's responsibility to add -lnsl if needed, but most likely it
45297         won't be needed since only getaddrinfo uses this and getaddrinfo
45298         isn't needed on Solaris 8.
45299
45300         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45301         problem to Solaris 8 encountered with coreutils 7.2, which
45302         resulted in a message "fnmatch.c:292: warning: passing argument 4
45303         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45304         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45305
45306 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45307
45308         * m4/ld-version-script.m4: Add FIXME comment.
45309
45310 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45311
45312         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45313         SOVERSION variable.
45314
45315 2009-04-02  Bruno Haible  <bruno@clisp.org>
45316
45317         * Makefile (info, html, dvi, pdf): Combine the rules.
45318         Suggested by Jim Meyering.
45319
45320 2009-04-01  Bruno Haible  <bruno@clisp.org>
45321
45322         * Makefile (info, html, dvi, pdf): New targets.
45323         Reported by Reuben Thomas <rrt@sc3d.org>.
45324
45325 2009-04-01  Bruno Haible  <bruno@clisp.org>
45326
45327         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45328         can be put into PATH.
45329         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45330
45331 2009-04-01  Bruno Haible  <bruno@clisp.org>
45332
45333         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45334
45335 2009-04-01  Bruno Haible  <bruno@clisp.org>
45336
45337         Rename module 'visibility'.
45338         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45339         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45340         * doc/gnulib.texi: Update.
45341         * MODULES.html.sh (Misc): Update.
45342         * NEWS: Mention the change.
45343
45344 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45345
45346         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45347         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45348         Eric Blake <ebb9@byu.net> for review.
45349         * MODULES.html.sh: Add lib-msvc-compat.
45350         * doc/gnulib.texi: Link to new section.
45351         * m4/ld-output-def.m4: New file.
45352         * doc/ld-output-def.texi: New file.
45353
45354 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45355
45356         Rename ld-version-script to lib-symbol-versions.  Suggested by
45357         Bruno Haible <bruno@clisp.org>.
45358         * modules/ld-version-script: Renamed to lib-symbol-versions.
45359         * doc/ld-version-script.texi: Fix module name.
45360         * MODULES.html.sh: Add lib-symbol-versions.
45361
45362 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45363
45364         * modules/u64-tests: New file.
45365         * tests/test-u64.c: New file.
45366
45367 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45368
45369         * MODULES.html.sh: Mention u64.
45370         * modules/u64: New module.
45371         * modules/crypto/sha512: Depend on u64 module instead of providing
45372         u64.h.
45373
45374 2009-03-27  Eric Blake  <ebb9@byu.net>
45375
45376         test-strerror: make debugging EAI_SYSTEM easier
45377         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45378         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45379         failure was EAI_SYSTEM.
45380
45381 2009-03-25  Bruno Haible  <bruno@clisp.org>
45382
45383         Fix a problem with --enable-relocatable on Solaris 7.
45384         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45385         since 2008-02-24.
45386
45387 2009-03-25  Eric Blake  <ebb9@byu.net>
45388
45389         test-sockets: avoid gcc warning
45390         * tests/test-sockets.c (main): Silence compiler warning.
45391
45392 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45393
45394         New modules nproc, pthread, contributed by Glen Lenker.
45395
45396         * MODULES.html.sh: Add pthread, nproc.
45397         * lib/nproc.c: New file.
45398         * lib/nproc.h: New file.
45399         * lib/pthread.in.h: New file.
45400         * m4/pthread.m4: New file.
45401         * modules/nproc: New file.
45402         * modules/pthread: New file.
45403
45404 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45405
45406         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45407         New variable.
45408
45409 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45410
45411         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45412         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45413         * tests/test-filevercmp.c: Add tests for backup suffixes.
45414
45415 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45416
45417         * modules/stdlib (Depends-on): Add stdint, needed when defining
45418         struct random_data on, for example, HP-UX 10.20.  Reported by
45419         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45420
45421 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45422
45423         * lib/readline.c (readline): Call fflush on stdout after printing
45424         prompt.
45425
45426 2009-03-20  Bruno Haible  <bruno@clisp.org>
45427
45428         Remove dependency from 'close' module to -lws2_32 on native Windows.
45429         * lib/close-hook.h: New file.
45430         * lib/close-hook.c: New file.
45431         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45432         w32sock.h.
45433         (_gl_close_fd_maybe_socket): Remove function.
45434         (rpl_close): Invoke execute_all_close_hooks instead of
45435         _gl_close_fd_maybe_socket.
45436         * lib/sockets.c: Include close-hook.h, w32sock.h.
45437         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45438         (close_sockets_hook): New variable.
45439         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45440         (gl_sockets_cleanup): Unregister it.
45441         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45442         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45443         * modules/close-hook: New file.
45444         * modules/close (Files): Remove lib/w32sock.h.
45445         (Depends-on): Add close-hook.
45446         (Link): Remove section.
45447         * modules/sockets (Files): Add lib/w32sock.h.
45448         (Depends-on): Add close-hook.
45449         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45450         invocation.
45451         * NEWS: Mention that LIB_CLOSE is gone.
45452
45453 2009-03-23  Eric Blake  <ebb9@byu.net>
45454
45455         signal-tests: test previous patch
45456         * tests/test-signal.c: New file.
45457         * modules/signal-tests: Likewise.
45458
45459         signal.h: always support 'volatile sig_atomic_t'
45460         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45461         (gl_SIGNAL_H_DEFAULTS): Add a default.
45462         * modules/signal (Makefile.am): Substitute if needed.
45463         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45464         users can blindly add volatile.
45465         * doc/posix-headers/signal.texi (signal.h): Document it.
45466         Reported by Matthew Woehlke.
45467
45468 2009-03-23  Jim Meyering  <meyering@redhat.com>
45469
45470         pathmax: PATH_MAX: use pathconf only when available
45471         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45472         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45473         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45474         This avoids a link failure in a PSP cross-compilation environment
45475         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45476
45477         * lib/vasnprintf.c (divide): Fix typo in comment.
45478
45479 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45480
45481         * gnulib-tool (func_filter_filelist): Fix comment.
45482
45483 2009-03-20  Bruno Haible  <bruno@clisp.org>
45484
45485         Make sockets.h self-contained.
45486         * lib/sockets.c: Include sockets.h first.
45487         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45488
45489 2009-03-19  Eric Blake  <ebb9@byu.net>
45490
45491         doc: mention more functions added in cygwin 1.7.0
45492         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45493         addition.
45494         * doc/posix-functions/log2f.texi: Likewise.
45495
45496 2009-03-19  Jim Meyering  <meyering@redhat.com>
45497
45498         fsusage: avoid syntax error due to statement-before-declaration
45499         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45500         after all declarations.  Reported by Matthew Woehlke in
45501         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45502
45503 2009-03-18  Eric Blake  <ebb9@byu.net>
45504
45505         build-aux/compile: sync from automake
45506         * build-aux/compile: New file, from automake.
45507         * config/srclist.txt: Mention build-aux/compile.
45508
45509 2009-03-17  Bruno Haible  <bruno@clisp.org>
45510
45511         * lib/git-merge-changelog.c: Fix typo in comment.
45512         Reported by Reuben Thomas <rrt@sc3d.org>.
45513
45514 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45515
45516         * m4/regex.m4: update and improve help for
45517         --without-included-regex.
45518
45519 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45520
45521         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45522         failure on missing include files.
45523
45524 2009-03-17  Eric Blake  <ebb9@byu.net>
45525
45526         doc: mention more functions added in cygwin 1.7.0
45527         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45528         addition.
45529         * doc/posix-functions/fwscanf.texi: Likewise.
45530         * doc/posix-functions/swprintf.texi: Likewise.
45531         * doc/posix-functions/swscanf.texi: Likewise.
45532         * doc/posix-functions/vfwprintf.texi: Likewise.
45533         * doc/posix-functions/vfwscanf.texi: Likewise.
45534         * doc/posix-functions/vswprintf.texi: Likewise.
45535         * doc/posix-functions/vswscanf.texi: Likewise.
45536         * doc/posix-functions/vwprintf.texi: Likewise.
45537         * doc/posix-functions/vwscanf.texi: Likewise.
45538         * doc/posix-functions/wcscasecmp.texi: Likewise.
45539         * doc/posix-functions/wcsdup.texi: Likewise.
45540         * doc/posix-functions/wcsftime.texi: Likewise.
45541         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45542         * doc/posix-functions/wprintf.texi: Likewise.
45543         * doc/posix-functions/wscanf.texi: Likewise.
45544         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45545
45546 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45547
45548         maint.mk: really add $(AM_MAKEFLAGS)
45549         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45550         was inadvertently omitted in the last commit.
45551         Spotted by Bruno Haible.
45552
45553         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45554         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45555         $(AM_MAKEFLAGS)' rather than plain `make'.
45556
45557         gnulib-tool: execute $MAKE not make
45558         * gnulib-tool: Default $MAKE to 'make'.
45559         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45560         than make.  Initialize $MAKE in the do-autobuild script.
45561
45562         gnulib-tool: use $MAKE not make in generated files
45563         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45564         make, in generated files.  Initialize $MAKE in the do-autobuild
45565         script.
45566
45567         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45568
45569         GNUmakefile: disable parallelism only for multiple, recursive targets
45570         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45571         additions in the Makefile.
45572         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45573         by Automake.
45574         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45575         are listed on the command line and at least one of them is
45576         listed in $(ALL_RECURSIVE_TARGETS).
45577
45578 2009-03-14  Bruno Haible  <bruno@clisp.org>
45579
45580         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45581         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45582         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45583         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45584         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45585         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45586         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45587         unistr/u8-uctomb.
45588         * modules/unistr/u8-strchr (Depends-on): Likewise.
45589         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45590         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45591         unistr/u16-uctomb.
45592         * modules/unistr/u16-strchr (Depends-on): Likewise.
45593         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45594
45595 2009-03-12  Bruno Haible  <bruno@clisp.org>
45596
45597         Work around select() bug on Interix 3.5.
45598         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45599         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45600         * m4/select.m4: New file.
45601         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45602         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45603         * modules/select (Files): Add m4/select.m4.
45604         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45605         * modules/nanosleep (Depends-on): Add select.
45606         * modules/poll (Depends-on): Likewise.
45607         * doc/posix-functions/select.texi: Mention the Interix bug.
45608         Reported by Markus Duft <mduft@gentoo.org>.
45609
45610         * lib/select.c: Renamed from lib/winsock-select.c.
45611         * modules/select (Files): Add lib/select.c, remove
45612         lib/winsock-select.c.
45613         (configure.ac): Update.
45614
45615 2009-03-12  Jim Meyering  <meyering@redhat.com>
45616
45617         avoid gcc warnings about unused macro definitions
45618         * lib/readtokens.c (STREQ): Remove unused definition.
45619         * lib/xmalloc.c (SIZE_MAX): Likewise.
45620         * lib/openat-die.c (N_): Likewise.
45621         * lib/mountlist.c (SIZE_MAX): Remove definition.
45622         Instead, include <stdint.h>.
45623         * lib/readutmp.c: Likewise.
45624         * modules/readutmp (Depends-on): Add stdint.
45625         * modules/mountlist (Depends-on): Add stdint.
45626         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45627
45628 2009-03-10  Bruno Haible  <bruno@clisp.org>
45629
45630         Tests for module 'mbmemcasecoll'.
45631         * modules/mbmemcasecoll-tests: New file.
45632         * tests/test-mbmemcasecoll1.sh: New file.
45633         * tests/test-mbmemcasecoll2.sh: New file.
45634         * tests/test-mbmemcasecoll3.sh: New file.
45635         * tests/test-mbmemcasecoll.c: New file.
45636
45637         New module 'mbmemcasecoll'.
45638         * lib/mbmemcasecoll.h: New file.
45639         * lib/mbmemcasecoll.c: New file.
45640         * modules/mbmemcasecoll: New file.
45641
45642         * tests/test-mbmemcasecmp.h: New file, extracted from
45643         tests/test-mbmemcasecmp.c.
45644         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45645         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45646         (main): Update.
45647         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45648
45649 2009-03-09  Bruno Haible  <bruno@clisp.org>
45650
45651         Tests for module 'mbmemcasecmp'.
45652         * modules/mbmemcasecmp-tests: New file.
45653         * tests/test-mbmemcasecmp1.sh: New file.
45654         * tests/test-mbmemcasecmp2.sh: New file.
45655         * tests/test-mbmemcasecmp3.sh: New file.
45656         * tests/test-mbmemcasecmp.c: New file.
45657
45658         New module 'mbmemcasecmp'.
45659         * lib/mbmemcasecmp.h: New file.
45660         * lib/mbmemcasecmp.c: New file.
45661         * modules/mbmemcasecmp: New file.
45662
45663 2009-03-09  Bruno Haible  <bruno@clisp.org>
45664
45665         Tests for module 'unicase/ulc-casecoll'.
45666         * modules/unicase/ulc-casecoll-tests: New file.
45667         * tests/unicase/test-ulc-casecoll1.sh: New file.
45668         * tests/unicase/test-ulc-casecoll2.sh: New file.
45669         * tests/unicase/test-ulc-casecoll.c: New file.
45670
45671         New module 'unicase/ulc-casecoll'.
45672         * lib/unicase.h (ulc_casecoll): New declaration.
45673         * lib/unicase/ulc-casecoll.c: New file.
45674         * modules/unicase/ulc-casecoll: New file.
45675
45676         New module 'unicase/ulc-casexfrm'.
45677         * lib/unicase.h (ulc_casexfrm): New declaration.
45678         * lib/unicase/ulc-casexfrm.c: New file.
45679         * modules/unicase/ulc-casexfrm: New file.
45680
45681 2009-03-09  Bruno Haible  <bruno@clisp.org>
45682
45683         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45684         invocations.
45685
45686         * m4/mbscasecmp.m4: Remove file.
45687         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45688         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45689
45690         * m4/mbscasestr.m4: Remove file.
45691         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45692         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45693
45694         * m4/mbschr.m4: Remove file.
45695         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45696         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45697
45698         * m4/mbscspn.m4: Remove file.
45699         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45700         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45701
45702         * m4/mbslen.m4: Remove file.
45703         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45704         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45705
45706         * m4/mbsncasecmp.m4: Remove file.
45707         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45708         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45709
45710         * m4/mbsnlen.m4: Remove file.
45711         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45712         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45713
45714         * m4/mbspbrk.m4: Remove file.
45715         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45716         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45717
45718         * m4/mbspcasecmp.m4: Remove file.
45719         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45720         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45721
45722         * m4/mbsrchr.m4: Remove file.
45723         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45724         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45725
45726         * m4/mbssep.m4: Remove file.
45727         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45728         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45729
45730         * m4/mbsspn.m4: Remove file.
45731         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45732         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45733
45734         * m4/mbsstr.m4: Remove file.
45735         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45736         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45737
45738         * m4/mbstok_r.m4: Remove file.
45739         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45740         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45741
45742         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45743
45744         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45745         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45746
45747         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45748
45749 2009-03-08  Bruno Haible  <bruno@clisp.org>
45750
45751         Tests for module 'unicase/ulc-casecmp'.
45752         * modules/unicase/ulc-casecmp-tests: New file.
45753         * tests/unicase/test-ulc-casecmp1.sh: New file.
45754         * tests/unicase/test-ulc-casecmp2.sh: New file.
45755         * tests/unicase/test-ulc-casecmp.c: New file.
45756
45757         New module 'unicase/ulc-casecmp'.
45758         * lib/unicase.h (ulc_casecmp): New declaration.
45759         * lib/unicase/ulc-casecmp.c: New file.
45760         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45761         'const SRC_UNIT *'.
45762         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45763         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45764         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45765         * modules/unicase/ulc-casecmp: New file.
45766
45767         Tests for module 'unicase/u32-is-cased'.
45768         * modules/unicase/u32-is-cased-tests: New file.
45769         * tests/unicase/test-u32-is-cased.c: New file.
45770
45771         Tests for module 'unicase/u16-is-cased'.
45772         * modules/unicase/u16-is-cased-tests: New file.
45773         * tests/unicase/test-u16-is-cased.c: New file.
45774
45775         Tests for module 'unicase/u8-is-cased'.
45776         * modules/unicase/u8-is-cased-tests: New file.
45777         * tests/unicase/test-u8-is-cased.c: New file.
45778         * tests/unicase/test-is-cased.h: New file.
45779
45780         New module 'unicase/u32-is-cased'.
45781         * lib/unicase/u32-is-cased.c: New file.
45782         * modules/unicase/u32-is-cased: New file.
45783
45784         New module 'unicase/u16-is-cased'.
45785         * lib/unicase/u16-is-cased.c: New file.
45786         * modules/unicase/u16-is-cased: New file.
45787
45788         New module 'unicase/u8-is-cased'.
45789         * lib/unicase/u8-is-cased.c: New file.
45790         * lib/unicase/u-is-cased.h: New file.
45791         * modules/unicase/u8-is-cased: New file.
45792
45793         Tests for module 'unicase/u32-is-casefolded'.
45794         * modules/unicase/u32-is-casefolded-tests: New file.
45795         * tests/unicase/test-u32-is-casefolded.c: New file.
45796
45797         Tests for module 'unicase/u16-is-casefolded'.
45798         * modules/unicase/u16-is-casefolded-tests: New file.
45799         * tests/unicase/test-u16-is-casefolded.c: New file.
45800
45801         Tests for module 'unicase/u8-is-casefolded'.
45802         * modules/unicase/u8-is-casefolded-tests: New file.
45803         * tests/unicase/test-u8-is-casefolded.c: New file.
45804         * tests/unicase/test-is-casefolded.h: New file.
45805
45806         New module 'unicase/u32-is-casefolded'.
45807         * lib/unicase/u32-is-casefolded.c: New file.
45808         * modules/unicase/u32-is-casefolded: New file.
45809
45810         New module 'unicase/u16-is-casefolded'.
45811         * lib/unicase/u16-is-casefolded.c: New file.
45812         * modules/unicase/u16-is-casefolded: New file.
45813
45814         New module 'unicase/u8-is-casefolded'.
45815         * lib/unicase/u8-is-casefolded.c: New file.
45816         * modules/unicase/u8-is-casefolded: New file.
45817
45818         Tests for module 'unicase/u32-is-titlecase'.
45819         * modules/unicase/u32-is-titlecase-tests: New file.
45820         * tests/unicase/test-u32-is-titlecase.c: New file.
45821
45822         Tests for module 'unicase/u16-is-titlecase'.
45823         * modules/unicase/u16-is-titlecase-tests: New file.
45824         * tests/unicase/test-u16-is-titlecase.c: New file.
45825
45826         Tests for module 'unicase/u8-is-titlecase'.
45827         * modules/unicase/u8-is-titlecase-tests: New file.
45828         * tests/unicase/test-u8-is-titlecase.c: New file.
45829         * tests/unicase/test-is-titlecase.h: New file.
45830
45831         New module 'unicase/u32-is-titlecase'.
45832         * lib/unicase/u32-is-titlecase.c: New file.
45833         * modules/unicase/u32-is-titlecase: New file.
45834
45835         New module 'unicase/u16-is-titlecase'.
45836         * lib/unicase/u16-is-titlecase.c: New file.
45837         * modules/unicase/u16-is-titlecase: New file.
45838
45839         New module 'unicase/u8-is-titlecase'.
45840         * lib/unicase/u8-is-titlecase.c: New file.
45841         * modules/unicase/u8-is-titlecase: New file.
45842
45843         Tests for module 'unicase/u32-is-lowercase'.
45844         * modules/unicase/u32-is-lowercase-tests: New file.
45845         * tests/unicase/test-u32-is-lowercase.c: New file.
45846
45847         Tests for module 'unicase/u16-is-lowercase'.
45848         * modules/unicase/u16-is-lowercase-tests: New file.
45849         * tests/unicase/test-u16-is-lowercase.c: New file.
45850
45851         Tests for module 'unicase/u8-is-lowercase'.
45852         * modules/unicase/u8-is-lowercase-tests: New file.
45853         * tests/unicase/test-u8-is-lowercase.c: New file.
45854         * tests/unicase/test-is-lowercase.h: New file.
45855
45856         New module 'unicase/u32-is-lowercase'.
45857         * lib/unicase/u32-is-lowercase.c: New file.
45858         * modules/unicase/u32-is-lowercase: New file.
45859
45860         New module 'unicase/u16-is-lowercase'.
45861         * lib/unicase/u16-is-lowercase.c: New file.
45862         * modules/unicase/u16-is-lowercase: New file.
45863
45864         New module 'unicase/u8-is-lowercase'.
45865         * lib/unicase/u8-is-lowercase.c: New file.
45866         * modules/unicase/u8-is-lowercase: New file.
45867
45868         Tests for module 'unicase/u32-is-uppercase'.
45869         * modules/unicase/u32-is-uppercase-tests: New file.
45870         * tests/unicase/test-u32-is-uppercase.c: New file.
45871
45872         Tests for module 'unicase/u16-is-uppercase'.
45873         * modules/unicase/u16-is-uppercase-tests: New file.
45874         * tests/unicase/test-u16-is-uppercase.c: New file.
45875
45876         Tests for module 'unicase/u8-is-uppercase'.
45877         * modules/unicase/u8-is-uppercase-tests: New file.
45878         * tests/unicase/test-u8-is-uppercase.c: New file.
45879         * tests/unicase/test-is-uppercase.h: New file.
45880
45881         New module 'unicase/u32-is-uppercase'.
45882         * lib/unicase/u32-is-uppercase.c: New file.
45883         * modules/unicase/u32-is-uppercase: New file.
45884
45885         New module 'unicase/u16-is-uppercase'.
45886         * lib/unicase/u16-is-uppercase.c: New file.
45887         * modules/unicase/u16-is-uppercase: New file.
45888
45889         New module 'unicase/u8-is-uppercase'.
45890         * lib/unicase/u8-is-uppercase.c: New file.
45891         * modules/unicase/u8-is-uppercase: New file.
45892
45893         New module 'unicase/u32-is-invariant'.
45894         * lib/unicase/u32-is-invariant.c: New file.
45895         * modules/unicase/u32-is-invariant: New file.
45896
45897         New module 'unicase/u16-is-invariant'.
45898         * lib/unicase/u16-is-invariant.c: New file.
45899         * modules/unicase/u16-is-invariant: New file.
45900
45901         New module 'unicase/u8-is-invariant'.
45902         * lib/unicase/u8-is-invariant.c: New file.
45903         * lib/unicase/invariant.h: New file.
45904         * lib/unicase/u-is-invariant.h: New file.
45905         * modules/unicase/u8-is-invariant: New file.
45906
45907         Tests for module 'unicase/u32-casecoll'.
45908         * modules/unicase/u32-casecoll-tests: New file.
45909         * tests/unicase/test-u32-casecoll.c: New file.
45910
45911         Tests for module 'unicase/u16-casecoll'.
45912         * modules/unicase/u16-casecoll-tests: New file.
45913         * tests/unicase/test-u16-casecoll.c: New file.
45914
45915         Tests for module 'unicase/u8-casecoll'.
45916         * modules/unicase/u8-casecoll-tests: New file.
45917         * tests/unicase/test-u8-casecoll.c: New file.
45918
45919         New module 'unicase/u32-casecoll'.
45920         * lib/unicase/u32-casecoll.c: New file.
45921         * modules/unicase/u32-casecoll: New file.
45922
45923         New module 'unicase/u16-casecoll'.
45924         * lib/unicase/u16-casecoll.c: New file.
45925         * modules/unicase/u16-casecoll: New file.
45926
45927         New module 'unicase/u8-casecoll'.
45928         * lib/unicase/u8-casecoll.c: New file.
45929         * lib/unicase/u-casecoll.h: New file.
45930         * modules/unicase/u8-casecoll: New file.
45931
45932         New module 'unicase/u32-casexfrm'.
45933         * lib/unicase/u32-casexfrm.c: New file.
45934         * modules/unicase/u32-casexfrm: New file.
45935
45936         New module 'unicase/u16-casexfrm'.
45937         * lib/unicase/u16-casexfrm.c: New file.
45938         * modules/unicase/u16-casexfrm: New file.
45939
45940         New module 'unicase/u8-casexfrm'.
45941         * lib/unicase/u8-casexfrm.c: New file.
45942         * lib/unicase/u-casexfrm.h: New file.
45943         * modules/unicase/u8-casexfrm: New file.
45944
45945         Tests for module 'unicase/u32-casecmp'.
45946         * modules/unicase/u32-casecmp-tests: New file.
45947         * tests/unicase/test-u32-casecmp.c: New file.
45948
45949         Tests for module 'unicase/u16-casecmp'.
45950         * modules/unicase/u16-casecmp-tests: New file.
45951         * tests/unicase/test-u16-casecmp.c: New file.
45952
45953         Tests for module 'unicase/u8-casecmp'.
45954         * modules/unicase/u8-casecmp-tests: New file.
45955         * tests/unicase/test-u8-casecmp.c: New file.
45956         * tests/unicase/test-casecmp.h: New file.
45957
45958         New module 'unicase/u32-casecmp'.
45959         * lib/unicase/u32-casecmp.c: New file.
45960         * modules/unicase/u32-casecmp: New file.
45961
45962         New module 'unicase/u16-casecmp'.
45963         * lib/unicase/u16-casecmp.c: New file.
45964         * modules/unicase/u16-casecmp: New file.
45965
45966         New module 'unicase/u8-casecmp'.
45967         * lib/unicase/u8-casecmp.c: New file.
45968         * lib/unicase/u-casecmp.h: New file.
45969         * modules/unicase/u8-casecmp: New file.
45970
45971         Tests for module 'unicase/u32-casefold'.
45972         * modules/unicase/u32-casefold-tests: New file.
45973         * tests/unicase/test-u32-casefold.c: New file.
45974
45975         Tests for module 'unicase/u16-casefold'.
45976         * modules/unicase/u16-casefold-tests: New file.
45977         * tests/unicase/test-u16-casefold.c: New file.
45978
45979         Tests for module 'unicase/u8-casefold'.
45980         * modules/unicase/u8-casefold-tests: New file.
45981         * tests/unicase/test-u8-casefold.c: New file.
45982
45983         New module 'unicase/u32-casefold'.
45984         * lib/unicase/u32-casefold.c: New file.
45985         * modules/unicase/u32-casefold: New file.
45986
45987         New module 'unicase/u16-casefold'.
45988         * lib/unicase/u16-casefold.c: New file.
45989         * modules/unicase/u16-casefold: New file.
45990
45991         New module 'unicase/u8-casefold'.
45992         * lib/unicase/u8-casefold.c: New file.
45993         * lib/unicase/u-casefold.h: New file.
45994         * modules/unicase/u8-casefold: New file.
45995
45996         New module 'unicase/tocasefold'.
45997         * lib/unicase/casefold.h: New file.
45998         * lib/unicase/tocasefold.c: New file.
45999         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46000         * modules/unicase/tocasefold: New file.
46001
46002         Tests for module 'unicase/u32-totitle'.
46003         * modules/unicase/u32-totitle-tests: New file.
46004         * tests/unicase/test-u32-totitle.c: New file.
46005
46006         Tests for module 'unicase/u16-totitle'.
46007         * modules/unicase/u16-totitle-tests: New file.
46008         * tests/unicase/test-u16-totitle.c: New file.
46009
46010         Tests for module 'unicase/u8-totitle'.
46011         * modules/unicase/u8-totitle-tests: New file.
46012         * tests/unicase/test-u8-totitle.c: New file.
46013
46014         New module 'unicase/u32-totitle'.
46015         * lib/unicase/u32-totitle.c: New file.
46016         * modules/unicase/u32-totitle: New file.
46017
46018         New module 'unicase/u16-totitle'.
46019         * lib/unicase/u16-totitle.c: New file.
46020         * modules/unicase/u16-totitle: New file.
46021
46022         New module 'unicase/u8-totitle'.
46023         * lib/unicase/u8-totitle.c: New file.
46024         * lib/unicase/u-totitle.h: New file.
46025         * modules/unicase/u8-totitle: New file.
46026
46027         Tests for module 'unicase/u32-tolower'.
46028         * modules/unicase/u32-tolower-tests: New file.
46029         * tests/unicase/test-u32-tolower.c: New file.
46030
46031         Tests for module 'unicase/u16-tolower'.
46032         * modules/unicase/u16-tolower-tests: New file.
46033         * tests/unicase/test-u16-tolower.c: New file.
46034
46035         Tests for module 'unicase/u8-tolower'.
46036         * modules/unicase/u8-tolower-tests: New file.
46037         * tests/unicase/test-u8-tolower.c: New file.
46038
46039         New module 'unicase/u32-tolower'.
46040         * lib/unicase/u32-tolower.c: New file.
46041         * modules/unicase/u32-tolower: New file.
46042
46043         New module 'unicase/u16-tolower'.
46044         * lib/unicase/u16-tolower.c: New file.
46045         * modules/unicase/u16-tolower: New file.
46046
46047         New module 'unicase/u8-tolower'.
46048         * lib/unicase/u8-tolower.c: New file.
46049         * modules/unicase/u8-tolower: New file.
46050
46051         Tests for module 'unicase/u32-toupper'.
46052         * modules/unicase/u32-toupper-tests: New file.
46053         * tests/unicase/test-u32-toupper.c: New file.
46054
46055         Tests for module 'unicase/u16-toupper'.
46056         * modules/unicase/u16-toupper-tests: New file.
46057         * tests/unicase/test-u16-toupper.c: New file.
46058
46059         Tests for module 'unicase/u8-toupper'.
46060         * modules/unicase/u8-toupper-tests: New file.
46061         * tests/unicase/test-u8-toupper.c: New file.
46062
46063         New module 'unicase/u32-toupper'.
46064         * lib/unicase/u32-toupper.c: New file.
46065         * modules/unicase/u32-toupper: New file.
46066
46067         New module 'unicase/u16-toupper'.
46068         * lib/unicase/u16-toupper.c: New file.
46069         * modules/unicase/u16-toupper: New file.
46070
46071         New module 'unicase/u8-toupper'.
46072         * lib/unicase/u8-toupper.c: New file.
46073         * modules/unicase/u8-toupper: New file.
46074
46075         New module 'unicase/u32-casemap'.
46076         * lib/unicase/u32-casemap.c: New file.
46077         * modules/unicase/u32-casemap: New file.
46078
46079         New module 'unicase/u16-casemap'.
46080         * lib/unicase/u16-casemap.c: New file.
46081         * modules/unicase/u16-casemap: New file.
46082
46083         New module 'unicase/u8-casemap'.
46084         * lib/unicase/unicasemap.h: New file.
46085         * lib/unicase/u8-casemap.c: New file.
46086         * lib/unicase/u-casemap.h: New file.
46087         * modules/unicase/u8-casemap: New file.
46088
46089         New module 'unicase/special-casing'.
46090         * lib/unicase/special-casing.h: New file.
46091         * lib/unicase/special-casing.c: New file.
46092         * lib/unicase/special-casing-table.gperf: New file, generated by
46093         gen-uni-tables.c.
46094         * modules/unicase/special-casing: New file.
46095
46096         Tests for module 'unicase/locale-language'.
46097         * modules/unicase/locale-language-tests: New file.
46098         * tests/unicase/test-locale-language.sh: New file.
46099         * tests/unicase/test-locale-language.c: New file.
46100
46101         New module 'unicase/locale-language'.
46102         * lib/unicase/locale-language.c: New file.
46103         * lib/unicase/locale-languages.gperf: New file.
46104         * modules/unicase/locale-language: New file.
46105
46106         Generate more tables for case conversion and case folding.
46107         * lib/gen-uni-tables.c (SCC_*): New enum items.
46108         (struct special_casing_rule): New type.
46109         (casing_rules, num_casing_rules, allocated_casing_rules): New
46110         variables.
46111         (add_casing_rule, fill_casing_rules): New functions.
46112         (struct casefold_rule): New type.
46113         (casefolding_rules, num_casefolding_rules,
46114         allocated_casefolding_rules): New variables.
46115         (fill_casefolding_rules): New function.
46116         (unicode_casefold): New variable.
46117         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46118         sort_casing_rules, output_casing_rules): New functions.
46119         (main): Accept to more arguments: SpecialCasing.txt and
46120         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46121         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46122         Output mapping for casefolding.
46123
46124         * lib/unicase.h: Include stdbool.h, uninorm.h.
46125         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46126         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46127         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46128         arguments.
46129         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46130         resultp arguments.
46131         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46132         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46133         resultp arguments.
46134         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46135         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46136         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46137         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46138         declarations.
46139         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46140
46141 2009-03-08  Bruno Haible  <bruno@clisp.org>
46142
46143         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46144         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46145         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46146         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46147
46148 2009-03-07  Bruno Haible  <bruno@clisp.org>
46149
46150         Adjust u*_normcmp, u*_normcoll API.
46151         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46152         u16_normcoll, u32_normcoll): Change failure conventions.
46153         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46154         errno and return -1.
46155         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46156
46157 2009-03-07  Bruno Haible  <bruno@clisp.org>
46158
46159         Tests for module 'uninorm/u32-normcoll'.
46160         * modules/uninorm/u32-normcoll-tests: New file.
46161         * tests/uninorm/test-u32-normcoll.c: New file.
46162
46163         Tests for module 'uninorm/u16-normcoll'.
46164         * modules/uninorm/u16-normcoll-tests: New file.
46165         * tests/uninorm/test-u16-normcoll.c: New file.
46166
46167         Tests for module 'uninorm/u8-normcoll'.
46168         * modules/uninorm/u8-normcoll-tests: New file.
46169         * tests/uninorm/test-u8-normcoll.c: New file.
46170
46171 2009-03-07  Bruno Haible  <bruno@clisp.org>
46172
46173         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46174         tests/uninorm/test-u32-normcmp.c.
46175         * tests/uninorm/test-u32-normcmp.c: Include it.
46176         (test_nonascii): New function, extracted from main. Add some more
46177         tests.
46178         (main): Invoke test_ascii and test_nonascii.
46179         * modules/uninorm/u32-normcmp-tests (Files): Add
46180         tests/uninorm/test-u32-normcmp.h.
46181         (Depends-on): Remove uninorm/u32-normcmp.
46182
46183         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46184         tests/uninorm/test-u16-normcmp.c.
46185         * tests/uninorm/test-u16-normcmp.c: Include it.
46186         (test_nonascii): New function, extracted from main. Add some more
46187         tests.
46188         (main): Invoke test_ascii and test_nonascii.
46189         * modules/uninorm/u16-normcmp-tests (Files): Add
46190         tests/uninorm/test-u16-normcmp.h.
46191         (Depends-on): Remove uninorm/u16-normcmp.
46192
46193         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46194         tests/uninorm/test-u8-normcmp.c.
46195         * tests/uninorm/test-u8-normcmp.c: Include it.
46196         (test_nonascii): New function, extracted from main. Add some more
46197         tests.
46198         (main): Invoke test_ascii and test_nonascii.
46199         * modules/uninorm/u8-normcmp-tests (Files): Add
46200         tests/uninorm/test-u8-normcmp.h.
46201         (Depends-on): Remove uninorm/u8-normcmp.
46202
46203 2009-03-07  Bruno Haible  <bruno@clisp.org>
46204
46205         New module 'uninorm/u32-normcoll'.
46206         * lib/uninorm/u32-normcoll.c: New file.
46207         * modules/uninorm/u32-normcoll: New file.
46208
46209         New module 'uninorm/u16-normcoll'.
46210         * lib/uninorm/u16-normcoll.c: New file.
46211         * modules/uninorm/u16-normcoll: New file.
46212
46213         New module 'uninorm/u8-normcoll'.
46214         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46215         declarations.
46216         * lib/uninorm/u8-normcoll.c: New file.
46217         * lib/uninorm/u-normcoll.h: New file.
46218         * modules/uninorm/u8-normcoll: New file.
46219
46220         New module 'uninorm/u32-normxfrm'.
46221         * lib/uninorm/u32-normxfrm.c: New file.
46222         * modules/uninorm/u32-normxfrm: New file.
46223
46224         New module 'uninorm/u16-normxfrm'.
46225         * lib/uninorm/u16-normxfrm.c: New file.
46226         * modules/uninorm/u16-normxfrm: New file.
46227
46228         New module 'uninorm/u8-normxfrm'.
46229         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46230         declarations.
46231         * lib/uninorm/u8-normxfrm.c: New file.
46232         * lib/uninorm/u-normxfrm.h: New file.
46233         * modules/uninorm/u8-normxfrm: New file.
46234
46235 2009-03-07  Bruno Haible  <bruno@clisp.org>
46236
46237         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46238         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46239         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46240
46241 2009-03-07  Bruno Haible  <bruno@clisp.org>
46242
46243         New module 'memxfrm'.
46244         * lib/memxfrm.h: New file.
46245         * lib/memxfrm.c: New file.
46246         * modules/memxfrm: New file.
46247
46248 2009-03-07  Bruno Haible  <bruno@clisp.org>
46249
46250         New module 'memcmp2'.
46251         * lib/memcmp2.h: New file.
46252         * lib/memcmp2.c: New file.
46253         * modules/memcmp2: New file.
46254
46255 2009-03-07  Bruno Haible  <bruno@clisp.org>
46256
46257         Tests for module 'uninorm/decomposing-form'.
46258         * modules/uninorm/decomposing-form-tests: New file.
46259         * tests/uninorm/test-decomposing-form.c: New file.
46260
46261         New module 'uninorm/decomposing-form'.
46262         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46263         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46264         Add 'decomposing_variant' field.
46265         * lib/uninorm/decomposing-form.c: New file.
46266         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46267         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46268         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46269         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46270         * modules/uninorm/decomposing-form: New file.
46271         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46272         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46273
46274 2009-03-07  Bruno Haible  <bruno@clisp.org>
46275
46276         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46277         strings.
46278
46279 2009-03-06  Bruno Haible  <bruno@clisp.org>
46280
46281         Tests for module 'uninorm/u32-normcmp'.
46282         * tests/uninorm/test-u32-normcmp.c: New file.
46283         * modules/uninorm/u32-normcmp-tests: New file.
46284
46285         Tests for module 'uninorm/u16-normcmp'.
46286         * tests/uninorm/test-u16-normcmp.c: New file.
46287         * modules/uninorm/u16-normcmp-tests: New file.
46288
46289         Tests for module 'uninorm/u8-normcmp'.
46290         * tests/uninorm/test-u8-normcmp.c: New file.
46291         * modules/uninorm/u8-normcmp-tests: New file.
46292
46293         New module 'uninorm/u32-normcmp'.
46294         * lib/uninorm/u32-normcmp.c: New file.
46295         * modules/uninorm/u32-normcmp: New file.
46296
46297         New module 'uninorm/u16-normcmp'.
46298         * lib/uninorm/u16-normcmp.c: New file.
46299         * modules/uninorm/u16-normcmp: New file.
46300
46301         New module 'uninorm/u8-normcmp'.
46302         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46303         declarations.
46304         * lib/uninorm/u8-normcmp.c: New file.
46305         * lib/uninorm/u-normcmp.h: New file.
46306         * modules/uninorm/u8-normcmp: New file.
46307
46308 2009-03-06  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46311         Reported by Eric Blake.
46312
46313 2009-03-06  Eric Blake  <ebb9@byu.net>
46314             Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46317         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46318         condition.
46319         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46320         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46321         condition.
46322         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46323
46324 2009-03-06  Eric Blake  <ebb9@byu.net>
46325
46326         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46327         to avoid compiler warnings.
46328         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46329
46330 2009-03-05  Bruno Haible  <bruno@clisp.org>
46331
46332         * tests/test-ftell.c (main): Disable test beyond end of file on
46333         FreeMiNT.
46334         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46335
46336 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46337
46338         * lib/filevercmp.c: Move hidden files up in ordering.
46339         * tests/test-filevercmp.c: Add tests for hidden files.
46340
46341 2009-03-04  Bruno Haible  <bruno@clisp.org>
46342
46343         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46344         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46345         AM_CFLAGS.
46346         Reported by Simon Josefsson.
46347
46348 2009-03-03  Bruno Haible  <bruno@clisp.org>
46349
46350         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46351         Reported by Simon Josefsson.
46352
46353         * doc/ld-version-script.texi: Update node reference.
46354
46355 2009-03-03  Bruno Haible  <bruno@clisp.org>
46356
46357         * modules/visibility (License): Change to 'unlimited'.
46358         Suggested by Simon Josefsson.
46359
46360 2009-03-03  Jim Meyering  <meyering@redhat.com>
46361
46362         unlinkdir: cannot_unlink_dir may modify process state
46363         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46364         it's neither thread-safe nor appropriate for use in a library.
46365
46366 2009-03-03  Eric Blake  <ebb9@byu.net>
46367
46368         test-closein: silence test under Darwin
46369         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46370         care if it dies from EPIPE or EBADF.
46371
46372 2009-03-03  Bruno Haible  <bruno@clisp.org>
46373
46374         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46375         earlier.
46376         * doc/visibility.texi: Fix @node and @section.
46377
46378 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46379
46380         * doc/gnulib.texi: Link to sections for ld version script and
46381         visibility.
46382         * doc/visibility.texi: Add @node and @section.
46383         * modules/ld-version-script: New module.
46384         * m4/ld-version-script.m4: New file.
46385         * doc/ld-version-script.texi: New file.
46386
46387 2009-03-02  David Lutterkort  <lutter@redhat.com>
46388
46389         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46391
46392 2009-03-02  Bruno Haible  <bruno@clisp.org>
46393
46394         * doc/visibility.texi: Mention libtool's -export-symbols option.
46395
46396 2009-03-02  Jim Meyering  <meyering@redhat.com>
46397
46398         announce-gen: new option: --no-print-checksums
46399         * build-aux/announce-gen (usage): Describe it.
46400         (print_checksums): Print a newline here, not in the [*] footnote.
46401         (main): Honor it.
46402
46403 2009-03-01  Bruno Haible  <bruno@clisp.org>
46404
46405         Use socklen_t in the native Windows replacements prototypes.
46406         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46407         instead of 'int'.
46408         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46409         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46410         * modules/getsockopt (Depends-on): Add socklen.
46411         * modules/setsockopt (Depends-on): Add socklen.
46412
46413 2009-03-01  Bruno Haible  <bruno@clisp.org>
46414
46415         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46416         least 4.2.
46417
46418 2009-03-01  Eric Blake  <ebb9@byu.net>
46419             Bruno Haible  <bruno@clisp.org>
46420
46421         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46422         error messages.
46423         * lib/wait-process.c (wait_subprocess): Omit error message about
46424         deadly signal sent to the child of termsigp != NULL.
46425
46426 2009-03-01  Eric Blake  <ebb9@byu.net>
46427
46428         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46429
46430 2009-03-01  Bruno Haible  <bruno@clisp.org>
46431
46432         Avoid a gcc warning.
46433         * tests/test-sched.c (b): Make global.
46434         Reported by Eric Blake.
46435
46436 2009-01-19  Martin Lambers  <marlam@marlam.de>
46437
46438         Provide POSIX semantics for socket timeout options on W32.
46439         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46440         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46441         * modules/setsockopt: Depend on sys_time module for struct timeval.
46442         * modules/getsockopt: Depend on sys_time module for struct timeval.
46443
46444 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46445
46446         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46447         __USE_GNU, for consistency with netdb.in.h.
46448         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46449
46450 2009-03-01  Bruno Haible  <bruno@clisp.org>
46451
46452         More support for FreeMiNT.
46453         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46454         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46455
46456 2009-03-01  Bruno Haible  <bruno@clisp.org>
46457
46458         More support for FreeMiNT.
46459         * lib/fpurge.c (fpurge): Correct last commit.
46460         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46461
46462 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46463
46464         Fix unportable awk script in vc-list-files.
46465         * build-aux/vc-list-files: In the replacement awk script, use
46466         substr with a second argument of 1, not zero.
46467         Report by Simon Josefsson.
46468
46469 2009-02-28  Bruno Haible  <bruno@clisp.org>
46470
46471         More support for FreeMiNT.
46472         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46473         to FreeMiNT today.
46474         * lib/fwriting.c (fwriting): Likewise.
46475         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46476
46477 2009-02-28  Bruno Haible  <bruno@clisp.org>
46478
46479         * tests/test-freadseek.c (main): Disable test beyond end of file on
46480         FreeMiNT.
46481         * tests/test-ftello.c (main): Likewise.
46482         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46483
46484 2009-02-28  Bruno Haible  <bruno@clisp.org>
46485
46486         Add tentative support for FreeMiNT.
46487         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46488         * lib/fpurge.c (fpurge): Likewise.
46489         * lib/freadable.c (freadable): Likewise.
46490         * lib/freading.c (freading): Likewise.
46491         * lib/freadptr.c (freadptr): Likewise.
46492         * lib/freadseek.c (freadptrinc): Likewise.
46493         * lib/fseeko.c (rpl_fseeko): Likewise.
46494         * lib/fseterr.c (fseterr): Likewise.
46495         * lib/fwritable.c (fwritable): Likewise.
46496         * lib/fwriting.c (fwriting): Likewise.
46497         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46498         Hourihane.
46499         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46500
46501 2009-02-28  Bruno Haible  <bruno@clisp.org>
46502
46503         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46504         SIGCHLD.
46505         Reported by Jim Meyering.
46506
46507 2009-02-28  Bruno Haible  <bruno@clisp.org>
46508
46509         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46510         Mention the results of these tests on various platforms.
46511         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46512         order.
46513         * doc/posix-functions/printf.texi: Likewise.
46514         * doc/posix-functions/snprintf.texi: Likewise.
46515         * doc/posix-functions/sprintf.texi: Likewise.
46516         * doc/posix-functions/vfprintf.texi: Likewise.
46517         * doc/posix-functions/vprintf.texi: Likewise.
46518         * doc/posix-functions/vsnprintf.texi: Likewise.
46519         * doc/posix-functions/vsprintf.texi: Likewise.
46520         * doc/glibc-functions/obstack_printf.texi: Likewise.
46521         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46522
46523 2009-02-28  Bruno Haible  <bruno@clisp.org>
46524
46525         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46526         Reported by Loïc Minier <lool@dooz.org>.
46527
46528 2009-02-27  Bruno Haible  <bruno@clisp.org>
46529
46530         * gnulib-tool (func_import): Make the sed expression used to create the
46531         sed script for updating the .gitignore file POSIX compliant.
46532         Reported by Eric Blake.
46533
46534 2009-02-27  Bruno Haible  <bruno@clisp.org>
46535
46536         * gnulib-tool (sed): Don't alias as "sed --posix".
46537         Reported by Eric Blake.
46538
46539 2009-02-27  Bruno Haible  <bruno@clisp.org>
46540
46541         Avoid test link errors.
46542         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46543         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46544         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46545         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46547
46548 2009-02-27  Bruno Haible  <bruno@clisp.org>
46549
46550         Avoid spurious "(cached)" in configure output.
46551         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46552         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46553         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46554         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46555         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46556         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46557         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46558         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46559         Reported by Eric Blake.
46560
46561 2009-02-27  Eric Blake  <ebb9@byu.net>
46562
46563         printf: fix regression in previous patch
46564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46565
46566 2009-02-27  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46569         value.
46570         * lib/stdint.in.h: Likewise.
46571         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46572
46573 2009-02-27  Eric Blake  <ebb9@byu.net>
46574
46575         doc: mention more functions added in cygwin 1.7.0
46576         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46577         addition.
46578         * doc/posix-functions/open_wmemstream.texi: Likewise.
46579         * doc/posix-functions/wcsnlen.texi: Likewise.
46580         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46581         * doc/posix-functions/wcstod.texi: Likewise.
46582         * doc/posix-functions/wcstof.texi: Likewise.
46583         * doc/posix-functions/wcstoimax.texi: Likewise.
46584         * doc/posix-functions/wcstok.texi: Likewise.
46585         * doc/posix-functions/wcstoumax.texi: Likewise.
46586
46587         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46588         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46589         * doc/posix-functions/fprintf.texi: Update.
46590         * doc/posix-functions/printf.texi: Update.
46591         * doc/posix-functions/snprintf.texi: Update.
46592         * doc/posix-functions/sprintf.texi: Update.
46593         * doc/posix-functions/vfprintf.texi: Update.
46594         * doc/posix-functions/vprintf.texi: Update.
46595         * doc/posix-functions/vsnprintf.texi: Update.
46596         * doc/posix-functions/vsprintf.texi: Update.
46597         * doc/glibc-functions/obstack_printf.texi: Update.
46598         * doc/glibc-functions/obstack_vprintf.texi: Update.
46599
46600 2009-02-26  Eric Blake  <ebb9@byu.net>
46601
46602         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46603         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46604         compilation bug by using runtime conversion.
46605         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46607         * modules/ceill-tests (Files): Use nan.h.
46608         * modules/floorl-tests (Files): Likewise.
46609         * modules/frexpl-tests (Files): Likewise.
46610         * modules/isnanl-tests (Files): Likewise.
46611         * modules/ldexpl-tests (Files): Likewise.
46612         * modules/roundl-tests (Files): Likewise.
46613         * modules/truncl-tests (Files): Likewise.
46614         * tests/test-ceill.c (main): Use a working NaN.
46615         * tests/test-floorl.c (main): Likewise.
46616         * tests/test-frexpl.c (main): Likewise.
46617         * tests/test-isnan.c (test_long_double): Likewise.
46618         * tests/test-isnanl.h (main): Likewise.
46619         * tests/test-ldexpl.h (main): Likewise.
46620         * tests/test-roundl.h (main): Likewise.
46621         * tests/test-truncl.h (main): Likewise.
46622         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46623
46624 2009-02-26  Eric Blake  <ebb9@byu.net>
46625             Bruno Haible  <bruno@clisp.org>
46626
46627         Work around a *printf bug with %ls on Solaris.
46628         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46629         precision is specified, sprintf stops converting the wide string
46630         argument when the number of bytes that have been produced by this
46631         conversion equals or exceeds the precision.
46632         * doc/posix-functions/fprintf.texi: Update.
46633         * doc/posix-functions/printf.texi: Update.
46634         * doc/posix-functions/snprintf.texi: Update.
46635         * doc/posix-functions/sprintf.texi: Update.
46636         * doc/posix-functions/vfprintf.texi: Update.
46637         * doc/posix-functions/vprintf.texi: Update.
46638         * doc/posix-functions/vsnprintf.texi: Update.
46639         * doc/posix-functions/vsprintf.texi: Update.
46640         * doc/glibc-functions/obstack_printf.texi: Update.
46641         * doc/glibc-functions/obstack_vprintf.texi: Update.
46642
46643 2009-02-26  Eric Blake  <ebb9@byu.net>
46644
46645         stdlib: favor compiler check of random.h
46646         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46647         to avoid an ObjC random.h installed by Swarm.
46648
46649 2009-02-26  Bruno Haible  <bruno@clisp.org>
46650
46651         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46652         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46653         Reported by Gary V. Vaughan <gary@gnu.org>.
46654
46655 2009-02-26  Bruno Haible  <bruno@clisp.org>
46656
46657         Fix *printf behaviour regarding the %ls directive.
46658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46659         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46660         NEED_PRINTF_DIRECTIVE_LS.
46661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46662         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46664         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46665         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46666         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46667         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46669         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46670         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46671         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46672         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46673         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46676         * doc/posix-functions/fprintf.texi: Update.
46677         * doc/posix-functions/printf.texi: Update.
46678         * doc/posix-functions/snprintf.texi: Update.
46679         * doc/posix-functions/sprintf.texi: Update.
46680         * doc/posix-functions/vfprintf.texi: Update.
46681         * doc/posix-functions/vprintf.texi: Update.
46682         * doc/posix-functions/vsnprintf.texi: Update.
46683         * doc/posix-functions/vsprintf.texi: Update.
46684         * doc/glibc-functions/obstack_printf.texi: Update.
46685         * doc/glibc-functions/obstack_vprintf.texi: Update.
46686         Reported by Eric Blake.
46687
46688 2009-02-25  Bruno Haible  <bruno@clisp.org>
46689
46690         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46691         with known value.
46692         Reported by Gary V. Vaughan <gary@gnu.org>.
46693
46694 2009-02-25  Bruno Haible  <bruno@clisp.org>
46695
46696         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46697         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46698         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46699         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46700         Reported by Gary V. Vaughan <gary@gnu.org>.
46701
46702 2009-02-25  Bruno Haible  <bruno@clisp.org>
46703
46704         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46705         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46706         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46707         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46708         Reported by Gary V. Vaughan <gary@gnu.org>.
46709
46710 2009-02-25  Eric Blake  <ebb9@byu.net>
46711
46712         tests: skip fseek/ftell tests if ungetc is broken
46713         * m4/ungetc.m4: New file.
46714         * modules/fseek-tests: Split test, so ungetc dependency is
46715         separate from rest of test.
46716         * modules/fseeko-tests: Likewise.
46717         * modules/ftell-tests: Likewise.
46718         * modules/ftello-tests: Likewise.
46719         * tests/test-fseek.c (main): Isolate ungetc dependency.
46720         * tests/test-fseeko.c (main): Likewise.
46721         * tests/test-ftell.c (main): Likewise.
46722         * tests/test-ftello.c (main): Likewise.
46723         * tests/test-fseek2.sh: New file.
46724         * tests/test-fseeko2.sh: Likewise.
46725         * tests/test-ftell2.sh: Likewise.
46726         * tests/test-ftello2.sh: Likewise.
46727
46728 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46729
46730         test-getaddrinfo: fix usage of skip return code 77
46731         * tests/test-gettaddrinfo.c: Return skip code 77 only
46732         for first occurance of skip (4x77 is not 77)
46733
46734 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46735
46736         strtod: avoid C99 decl-after-statement
46737         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46738
46739 2009-02-24  Eric Blake  <ebb9@byu.net>
46740
46741         strtod: detect HP-UX 11.31 bug
46742         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46743         Reported by Gary V. Vaughan.
46744
46745 2009-02-23  Bruno Haible  <bruno@clisp.org>
46746
46747         Fix invalid read past end of memory block.
46748         * lib/vasnprintf.c (DCHAR_SET): Define.
46749         (local_wcslen): Define only when needed.
46750         (local_strnlen, local_wcsnlen): New functions.
46751         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46752         directives that involve a conversion ourselves.
46753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46754         wcsnlen, mbrtowc, wcrtomb.
46755         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46756         * tests/test-vasprintf-posix.c (test_function): Likewise.
46757         * tests/test-snprintf-posix.h (test_function): Likewise.
46758         * tests/test-sprintf-posix.h (test_function): Likewise.
46759         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46760
46761 2009-02-22  Bruno Haible  <bruno@clisp.org>
46762
46763         Implement new clarified decomposition of Hangul syllables.
46764         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46765         of type LTV, return only a pairwise decomposition.
46766         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46767         Likewise.
46768         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46769         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46770         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46771
46772 2009-02-22  Bruno Haible  <bruno@clisp.org>
46773
46774         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46775         zero-length results and shrink excess allocated memory.
46776         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46777         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46778         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46779         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46780         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46781         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46782         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46783         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46784         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46785         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46786         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46787         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46788
46789 2009-02-21  Bruno Haible  <bruno@clisp.org>
46790
46791         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46792         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46793         spaces after a period. Put a space between a macro name and its
46794         argument list. Trivial rewordings.
46795         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46796         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46797         (main): Return 0 explicitly.
46798
46799 2009-02-21  Bruno Haible  <bruno@clisp.org>
46800
46801         Tests for module 'uninorm/filter'.
46802         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46803         * modules/uninorm/filter-tests: New file.
46804
46805         New module 'uninorm/filter'.
46806         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46807         uninorm_filter_flush, uninorm_filter_free): New declarations.
46808         * lib/uninorm/uninorm-filter.c: New file.
46809         * modules/uninorm/filter: New file.
46810
46811 2009-02-21  Bruno Haible  <bruno@clisp.org>
46812
46813         Tests for module 'uninorm/nfkc'.
46814         * tests/uninorm/test-nfkc.c: New file.
46815         * tests/uninorm/test-u8-nfkc.c: New file.
46816         * tests/uninorm/test-u16-nfkc.c: New file.
46817         * tests/uninorm/test-u32-nfkc.c: New file.
46818         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46819         * tests/uninorm/test-u32-nfkc-big.c: New file.
46820         * modules/uninorm/nfkc-tests: New file.
46821
46822         New module 'uninorm/nfkc'.
46823         * lib/uninorm/nfkc.c: New file.
46824         * modules/uninorm/nfkc: New file.
46825
46826         Tests for module 'uninorm/nfkd'.
46827         * tests/uninorm/test-nfkd.c: New file.
46828         * tests/uninorm/test-u8-nfkd.c: New file.
46829         * tests/uninorm/test-u16-nfkd.c: New file.
46830         * tests/uninorm/test-u32-nfkd.c: New file.
46831         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46832         * tests/uninorm/test-u32-nfkd-big.c: New file.
46833         * modules/uninorm/nfkd-tests: New file.
46834
46835         New module 'uninorm/nfkd'.
46836         * lib/uninorm/nfkd.c: New file.
46837         * modules/uninorm/nfkd: New file.
46838
46839         Tests for module 'uninorm/nfc'.
46840         * tests/uninorm/test-nfc.c: New file.
46841         * tests/uninorm/test-u8-nfc.c: New file.
46842         * tests/uninorm/test-u16-nfc.c: New file.
46843         * tests/uninorm/test-u32-nfc.c: New file.
46844         * tests/uninorm/test-u32-nfc-big.sh: New file.
46845         * tests/uninorm/test-u32-nfc-big.c: New file.
46846         * modules/uninorm/nfc-tests: New file.
46847
46848         New module 'uninorm/nfc'.
46849         * lib/uninorm/nfc.c: New file.
46850         * modules/uninorm/nfc: New file.
46851
46852         Tests for module 'uninorm/nfd'.
46853         * tests/uninorm/test-nfd.c: New file.
46854         * tests/uninorm/test-u8-nfd.c: New file.
46855         * tests/uninorm/test-u16-nfd.c: New file.
46856         * tests/uninorm/test-u32-nfd.c: New file.
46857         * tests/uninorm/test-u32-nfd-big.sh: New file.
46858         * tests/uninorm/test-u32-nfd-big.c: New file.
46859         * tests/uninorm/test-u32-normalize-big.h: New file.
46860         * tests/uninorm/test-u32-normalize-big.c: New file.
46861         * tests/uninorm/NormalizationTest.txt: New file, created from
46862         Unicode 5.1.0 NormalizationTest.txt.
46863         * modules/uninorm/nfd-tests: New file.
46864
46865         New module 'uninorm/nfd'.
46866         * lib/uninorm/nfd.c: New file.
46867         * modules/uninorm/nfd: New file.
46868
46869         New module 'uninorm/u32-normalize'.
46870         * lib/uninorm/u32-normalize.c: New file.
46871         * modules/uninorm/u32-normalize: New file.
46872
46873         New module 'uninorm/u16-normalize'.
46874         * lib/uninorm/u16-normalize.c: New file.
46875         * modules/uninorm/u16-normalize: New file.
46876
46877         New module 'uninorm/u8-normalize'.
46878         * lib/uninorm/u8-normalize.c: New file.
46879         * lib/uninorm/normalize-internal.h: New file.
46880         * lib/uninorm/u-normalize-internal.h: New file.
46881         * modules/uninorm/u8-normalize: New file.
46882
46883         New module 'uninorm/decompose-internal'.
46884         * lib/uninorm/decompose-internal.c: New file.
46885         * modules/uninorm/decompose-internal: New file.
46886
46887         Tests for module 'uninorm/composition'.
46888         * tests/uninorm/test-composition.c: New file.
46889         * modules/uninorm/composition-tests: New file.
46890
46891         New module 'uninorm/composition'.
46892         * lib/uninorm/composition.c: New file.
46893         * lib/uninorm/composition-table.gperf: New file, generated by
46894         gen-uni-tables.
46895         * modules/uninorm/composition: New file.
46896
46897         Tests for module 'uninorm/compat-decomposition'.
46898         * tests/uninorm/test-compat-decomposition.c: New file.
46899         * modules/uninorm/compat-decomposition-tests: New file.
46900
46901         New module 'uninorm/compat-decomposition'.
46902         * lib/uninorm/decompose-internal.h: New file.
46903         * lib/uninorm/compat-decomposition.c: New file.
46904         * modules/uninorm/compat-decomposition: New file.
46905
46906         Tests for module 'uninorm/canonical-decomposition'.
46907         * tests/uninorm/test-canonical-decomposition.c: New file.
46908         * modules/uninorm/canonical-decomposition-tests: New file.
46909
46910         New module 'uninorm/canonical-decomposition'.
46911         * lib/uninorm/canonical-decomposition.c: New file.
46912         * modules/uninorm/canonical-decomposition: New file.
46913
46914         Tests for module 'uninorm/decomposition'.
46915         * tests/uninorm/test-decomposition.c: New file.
46916         * modules/uninorm/decomposition-tests: New file.
46917
46918         New module 'uninorm/decomposition'.
46919         * lib/uninorm/decomposition.c: New file.
46920         * modules/uninorm/decomposition: New file.
46921
46922         New module 'uninorm/decomposition-table'.
46923         * lib/uninorm/decomposition-table.h: New file.
46924         * lib/uninorm/decomposition-table.c: New file.
46925         * lib/uninorm/decomposition-table1.h: New file, generated by
46926         gen-uni-tables.
46927         * lib/uninorm/decomposition-table2.h: New file, generated by
46928         gen-uni-tables.
46929         * modules/uninorm/decomposition-table: New file.
46930
46931         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46932         (UC_DECOMP_*): New enumeration items.
46933         (get_decomposition): New function.
46934         (struct decomp_table): New type.
46935         (output_decomposition, output_decomposition_tables): New functions.
46936         (unicode_composition_exclusions): New variable.
46937         (fill_composition_exclusions, debug_output_composition_tables): New
46938         functions.
46939         (main): Accept one more argument. Invoke fill_composition_exclusions.
46940         Output decomposition and composition tables.
46941
46942         New module 'uninorm/base'.
46943         * lib/uninorm.h: New file.
46944         * lib/unictype.h: Update comment.
46945         * modules/uninorm/base: New file.
46946
46947 2009-02-21  David Lutterkort  <lutter@redhat.com>
46948
46949         Tests for module 'safe-alloc'.
46950         * tests/test-safe-alloc.c: New file.
46951         * modules/safe-alloc-tests: New file.
46952
46953         New module 'safe-alloc'.
46954         * lib/safe-alloc.h: New file.
46955         * lib/safe-alloc.c: New file.
46956         * m4/safe-alloc.m4: New file.
46957         * modules/safe-alloc: New file.
46958         * doc/safe-alloc.texi: New file.
46959         * doc/gnulib.texi: Include it.
46960         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46961         safe-alloc.
46962
46963 2009-02-18  Bruno Haible  <bruno@clisp.org>
46964
46965         Fix link error on non-glibc systems.
46966         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46967         variable.
46968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46969
46970 2009-02-18  Jim Meyering  <meyering@redhat.com>
46971
46972         fts: avoid used-uninitialized error due to recent change
46973         * lib/fts.c (fts_read): Guard uses of the new member,
46974         parent->fts_n_dirs_remaining, since it's not relevant for
46975         the parent of a directory specified on the command-line.
46976
46977 2009-02-17  James Youngman  <jay@gnu.org>
46978             Bruno Haible  <bruno@clisp.org>
46979
46980         * m4/include_next.m4: Reformulate comment.
46981
46982 2009-02-16  Jim Meyering  <meyering@redhat.com>
46983
46984         fts: add #if guards so that the fts_lgpl module still builds
46985         * lib/fts.c: Guard just-added hash-table-using parts with
46986         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46987         Reported by Simon Josefsson.
46988
46989 2009-02-15  Bruno Haible  <bruno@clisp.org>
46990
46991         * modules/array-mergesort-tests: New file.
46992         * tests/test-array-mergesort.c: New file.
46993
46994         New module 'array-mergesort'.
46995         * modules/array-mergesort: New file.
46996         * lib/array-mergesort.h: New file.
46997
46998 2009-02-15  Bruno Haible  <bruno@clisp.org>
46999
47000         Fix 2009-02-07 commit.
47001         * lib/gen-uni-tables.c (output_predicate, output_category,
47002         output_combclass, output_bidi_category, output_decimal_digit,
47003         output_digit, output_numeric, output_mirror, output_scripts,
47004         output_ident_category, output_simple_mapping): Fix format directives.
47005         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47006
47007 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47008
47009         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47010         fixes are available from IBM.
47011
47012 2009-02-13  Jim Meyering  <meyering@redhat.com>
47013
47014         fts: arrange not to stat non-directories in more cases
47015         This makes GNU find (when it doesn't need to stat each file)
47016         *much* more efficient at traversing reiserfs file systems.
47017         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47018         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47019         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47020         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47021         (leaf_optimization_applies): New function.
47022         (LCO_hash, LCO_compare): New helper functions.
47023         (link_count_optimize_ok): New function.
47024         (fts_stat): Initialize new member (if dir).
47025         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47026         we've just stat'ed a directory.  Skip the stat call when possible.
47027         ---
47028         Note this AFS-related exchange:
47029         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47030         and note find's pioctl call in find/fstype.c.
47031         But that is necessary only if you want to enable the
47032         optimization for AFS, and for now, I don't.
47033
47034         fts: move a function definition "up" (no semantic change)
47035         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47036         "up" to precede upcoming use of a related function.
47037
47038 2009-02-11  Jim Meyering  <meyering@redhat.com>
47039
47040         fts: correct internal computation of nlinks (optimization-related)
47041         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47042         whether the current entry is a directory, so don't test it.
47043
47044 2009-02-10  Bruno Haible  <bruno@clisp.org>
47045
47046         Tests for module 'uniwbrk/ulc-wordbreaks'.
47047         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47048         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47049         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47050
47051         Tests for module 'uniwbrk/u32-wordbreaks'.
47052         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47053         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47054
47055         Tests for module 'uniwbrk/u16-wordbreaks'.
47056         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47057         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47058
47059         Tests for module 'uniwbrk/u8-wordbreaks'.
47060         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47061         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47062
47063 2009-02-10  Bruno Haible  <bruno@clisp.org>
47064
47065         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47066         property.
47067         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47068         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47069         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47070
47071 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47072
47073         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47074         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47075
47076 2009-02-10  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47079         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47080         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47081         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47082         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47083         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47084
47085 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47086
47087         * lib/sockets.h (gl_fd_to_handle): New function.
47088
47089         * tests/test-sockets.c: Call gl_fd_to_handle.
47090
47091 2009-02-09  Bruno Haible  <bruno@clisp.org>
47092
47093         * doc/havelib.texi: Document the conventions on bi-arch systems.
47094
47095 2009-02-08  Bruno Haible  <bruno@clisp.org>
47096
47097         Document the AC_LIB_LINKFLAGS macro.
47098         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47099         * doc/gnulib.texi: Include it.
47100
47101 2009-02-08  Bruno Haible  <bruno@clisp.org>
47102
47103         Fix wrong order of sections, compared to TOC.
47104         * doc/gnulib.texi: Include relocatable-maint.texi after the
47105         "Regular expressions" node, not before.
47106
47107 2009-02-08  Bruno Haible  <bruno@clisp.org>
47108
47109         Tests for module 'unicase/totitle'.
47110         * modules/unicase/totitle-tests: New file.
47111
47112         Tests for module 'unicase/tolower'.
47113         * modules/unicase/tolower-tests: New file.
47114
47115         Tests for module 'unicase/toupper'.
47116         * modules/unicase/toupper-tests: New file.
47117         * tests/unicase/test-mapping-part1.h: New file.
47118         * tests/unicase/test-mapping-part2.h: New file.
47119
47120         New module 'unicase/totitle'.
47121         * modules/unicase/totitle: New file.
47122         * lib/unicase/totitle.c: New file.
47123
47124         New module 'unicase/tolower'.
47125         * modules/unicase/tolower: New file.
47126         * lib/unicase/tolower.c: New file.
47127
47128         New module 'unicase/toupper'.
47129         * modules/unicase/toupper: New file.
47130         * lib/unicase/toupper.c: New file.
47131         * lib/unicase/simple-mapping.h: New file.
47132
47133         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47134         (mapping_table): New structure.
47135         (output_simple_mapping): New function.
47136         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47137         * modules/gen-uni-tables (Description): Update.
47138         * lib/unicase/toupper.h: New file, automatically generated by
47139         gen-uni-tables.
47140         * lib/unicase/tolower.h: New file, automatically generated by
47141         gen-uni-tables.
47142         * lib/unicase/totitle.h: New file, automatically generated by
47143         gen-uni-tables.
47144         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47145         gen-uni-tables.
47146         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47147         gen-uni-tables.
47148         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47149         gen-uni-tables.
47150
47151         New module 'unicase/base'.
47152         * modules/unicase/base: New file.
47153         * lib/unicase.h: New file.
47154
47155 2009-02-08  Bruno Haible  <bruno@clisp.org>
47156
47157         New module 'uniwbrk/ulc-wordbreaks'.
47158         * modules/uniwbrk/ulc-wordbreaks: New file.
47159         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47160
47161         New module 'uniwbrk/u32-wordbreaks'.
47162         * modules/uniwbrk/u32-wordbreaks: New file.
47163         * lib/uniwbrk/u32-wordbreaks.c: New file.
47164
47165         New module 'uniwbrk/u16-wordbreaks'.
47166         * modules/uniwbrk/u16-wordbreaks: New file.
47167         * lib/uniwbrk/u16-wordbreaks.c: New file.
47168
47169         New module 'uniwbrk/u8-wordbreaks'.
47170         * modules/uniwbrk/u8-wordbreaks: New file.
47171         * lib/uniwbrk/u8-wordbreaks.c: New file.
47172         * lib/uniwbrk/u-wordbreaks.h: New file.
47173
47174         New module 'uniwbrk/table'.
47175         * modules/uniwbrk/table: New file.
47176         * lib/uniwbrk/wbrktable.h: New file.
47177         * lib/uniwbrk/wbrktable.c: New file.
47178
47179         New module 'uniwbrk/wordbreak-property'.
47180         * modules/uniwbrk/wordbreak-property: New file.
47181         * lib/uniwbrk/wordbreak-property.c: New file.
47182
47183         * lib/gen-uni-tables.c (WBP_*): New enum items.
47184         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47185         (unicode_org_wbp): New variable.
47186         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47187         New functions.
47188         (wbp_table): New structure.
47189         (output_wbp, output_wbrk_tables): New functions.
47190         (main): Accept additional argument. Invoke fill_org_wbp,
47191         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47192         output_wbrk_tables.
47193         * modules/gen-uni-tables (Description): Update.
47194         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47195         gen-uni-tables.
47196
47197         New module 'uniwbrk/base'.
47198         * modules/uniwbrk/base: New file.
47199         * lib/uniwbrk.h: New file.
47200
47201 2009-02-08  Bruno Haible  <bruno@clisp.org>
47202
47203         Update to Unicode 5.1.0.
47204         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47205         U+2185..U+2188.
47206         (is_property_default_ignorable_code_point): Don't include characters
47207         of category Cc or Cs and not-a-characters.
47208         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47209         U+0D79, U+109E, U+109F, U+A60C.
47210         * lib/unictype/bidi_of.h: Regenerated.
47211         * lib/unictype/blocks.h: Regenerated.
47212         * lib/unictype/categ_C.h: Regenerated.
47213         * lib/unictype/categ_Cf.h: Regenerated.
47214         * lib/unictype/categ_Cn.h: Regenerated.
47215         * lib/unictype/categ_L.h: Regenerated.
47216         * lib/unictype/categ_Ll.h: Regenerated.
47217         * lib/unictype/categ_Lm.h: Regenerated.
47218         * lib/unictype/categ_Lo.h: Regenerated.
47219         * lib/unictype/categ_Lu.h: Regenerated.
47220         * lib/unictype/categ_M.h: Regenerated.
47221         * lib/unictype/categ_Mc.h: Regenerated.
47222         * lib/unictype/categ_Me.h: Regenerated.
47223         * lib/unictype/categ_Mn.h: Regenerated.
47224         * lib/unictype/categ_N.h: Regenerated.
47225         * lib/unictype/categ_Nd.h: Regenerated.
47226         * lib/unictype/categ_Nl.h: Regenerated.
47227         * lib/unictype/categ_No.h: Regenerated.
47228         * lib/unictype/categ_P.h: Regenerated.
47229         * lib/unictype/categ_Pd.h: Regenerated.
47230         * lib/unictype/categ_Pe.h: Regenerated.
47231         * lib/unictype/categ_Pf.h: Regenerated.
47232         * lib/unictype/categ_Pi.h: Regenerated.
47233         * lib/unictype/categ_Po.h: Regenerated.
47234         * lib/unictype/categ_Ps.h: Regenerated.
47235         * lib/unictype/categ_S.h: Regenerated.
47236         * lib/unictype/categ_Sk.h: Regenerated.
47237         * lib/unictype/categ_Sm.h: Regenerated.
47238         * lib/unictype/categ_So.h: Regenerated.
47239         * lib/unictype/categ_of.h: Regenerated.
47240         * lib/unictype/combining.h: Regenerated.
47241         * lib/unictype/ctype_alnum.h: Regenerated.
47242         * lib/unictype/ctype_alpha.h: Regenerated.
47243         * lib/unictype/ctype_graph.h: Regenerated.
47244         * lib/unictype/ctype_lower.h: Regenerated.
47245         * lib/unictype/ctype_print.h: Regenerated.
47246         * lib/unictype/ctype_punct.h: Regenerated.
47247         * lib/unictype/ctype_upper.h: Regenerated.
47248         * lib/unictype/decdigit.h: Regenerated.
47249         * lib/unictype/digit.h: Regenerated.
47250         * lib/unictype/mirror.h: Regenerated.
47251         * lib/unictype/numeric.h: Regenerated.
47252         * lib/unictype/pr_alphabetic.h: Regenerated.
47253         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47254         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47255         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47256         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47257         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47258         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47259         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47260         * lib/unictype/pr_combining.h: Regenerated.
47261         * lib/unictype/pr_dash.h: Regenerated.
47262         * lib/unictype/pr_decimal_digit.h: Regenerated.
47263         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47264         * lib/unictype/pr_deprecated.h: Regenerated.
47265         * lib/unictype/pr_diacritic.h: Regenerated.
47266         * lib/unictype/pr_extender.h: Regenerated.
47267         * lib/unictype/pr_format_control.h: Regenerated.
47268         * lib/unictype/pr_grapheme_base.h: Regenerated.
47269         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47270         * lib/unictype/pr_grapheme_link.h: Regenerated.
47271         * lib/unictype/pr_id_continue.h: Regenerated.
47272         * lib/unictype/pr_id_start.h: Regenerated.
47273         * lib/unictype/pr_ideographic.h: Regenerated.
47274         * lib/unictype/pr_ignorable_control.h: Regenerated.
47275         * lib/unictype/pr_lowercase.h: Regenerated.
47276         * lib/unictype/pr_math.h: Regenerated.
47277         * lib/unictype/pr_numeric.h: Regenerated.
47278         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47279         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47280         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47281         * lib/unictype/pr_other_id_continue.h: Regenerated.
47282         * lib/unictype/pr_other_lowercase.h: Regenerated.
47283         * lib/unictype/pr_other_math.h: Regenerated.
47284         * lib/unictype/pr_punctuation.h: Regenerated.
47285         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47286         * lib/unictype/pr_soft_dotted.h: Regenerated.
47287         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47288         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47289         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47290         * lib/unictype/pr_uppercase.h: Regenerated.
47291         * lib/unictype/pr_xid_continue.h: Regenerated.
47292         * lib/unictype/pr_xid_start.h: Regenerated.
47293         * lib/unictype/pr_zero_width.h: Regenerated.
47294         * lib/unictype/scripts.h: Regenerated.
47295         * lib/unictype/scripts_byname.gperf: Regenerated.
47296         * lib/unictype/sy_java_ident.h: Regenerated.
47297         * lib/unilbrk/lbrkprop1.h: Regenerated.
47298         * lib/unilbrk/lbrkprop2.h: Regenerated.
47299         * tests/unictype/test-categ_C.c: Regenerated.
47300         * tests/unictype/test-categ_Cf.c: Regenerated.
47301         * tests/unictype/test-categ_Cn.c: Regenerated.
47302         * tests/unictype/test-categ_L.c: Regenerated.
47303         * tests/unictype/test-categ_Ll.c: Regenerated.
47304         * tests/unictype/test-categ_Lm.c: Regenerated.
47305         * tests/unictype/test-categ_Lo.c: Regenerated.
47306         * tests/unictype/test-categ_Lu.c: Regenerated.
47307         * tests/unictype/test-categ_M.c: Regenerated.
47308         * tests/unictype/test-categ_Mc.c: Regenerated.
47309         * tests/unictype/test-categ_Me.c: Regenerated.
47310         * tests/unictype/test-categ_Mn.c: Regenerated.
47311         * tests/unictype/test-categ_N.c: Regenerated.
47312         * tests/unictype/test-categ_Nd.c: Regenerated.
47313         * tests/unictype/test-categ_Nl.c: Regenerated.
47314         * tests/unictype/test-categ_No.c: Regenerated.
47315         * tests/unictype/test-categ_P.c: Regenerated.
47316         * tests/unictype/test-categ_Pd.c: Regenerated.
47317         * tests/unictype/test-categ_Pe.c: Regenerated.
47318         * tests/unictype/test-categ_Pf.c: Regenerated.
47319         * tests/unictype/test-categ_Pi.c: Regenerated.
47320         * tests/unictype/test-categ_Po.c: Regenerated.
47321         * tests/unictype/test-categ_Ps.c: Regenerated.
47322         * tests/unictype/test-categ_S.c: Regenerated.
47323         * tests/unictype/test-categ_Sk.c: Regenerated.
47324         * tests/unictype/test-categ_Sm.c: Regenerated.
47325         * tests/unictype/test-categ_So.c: Regenerated.
47326         * tests/unictype/test-ctype_alnum.c: Regenerated.
47327         * tests/unictype/test-ctype_alpha.c: Regenerated.
47328         * tests/unictype/test-ctype_graph.c: Regenerated.
47329         * tests/unictype/test-ctype_lower.c: Regenerated.
47330         * tests/unictype/test-ctype_print.c: Regenerated.
47331         * tests/unictype/test-ctype_punct.c: Regenerated.
47332         * tests/unictype/test-ctype_upper.c: Regenerated.
47333         * tests/unictype/test-decdigit.h: Regenerated.
47334         * tests/unictype/test-digit.h: Regenerated.
47335         * tests/unictype/test-numeric.h: Regenerated.
47336         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47337         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47338         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47339         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47340         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47341         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47342         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47343         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47344         * tests/unictype/test-pr_combining.c: Regenerated.
47345         * tests/unictype/test-pr_dash.c: Regenerated.
47346         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47347         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47348         * tests/unictype/test-pr_deprecated.c: Regenerated.
47349         * tests/unictype/test-pr_diacritic.c: Regenerated.
47350         * tests/unictype/test-pr_extender.c: Regenerated.
47351         * tests/unictype/test-pr_format_control.c: Regenerated.
47352         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47353         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47354         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47355         * tests/unictype/test-pr_id_continue.c: Regenerated.
47356         * tests/unictype/test-pr_id_start.c: Regenerated.
47357         * tests/unictype/test-pr_ideographic.c: Regenerated.
47358         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47359         * tests/unictype/test-pr_lowercase.c: Regenerated.
47360         * tests/unictype/test-pr_math.c: Regenerated.
47361         * tests/unictype/test-pr_numeric.c: Regenerated.
47362         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47363         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47364         Regenerated.
47365         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47366         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47367         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47368         * tests/unictype/test-pr_other_math.c: Regenerated.
47369         * tests/unictype/test-pr_punctuation.c: Regenerated.
47370         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47371         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47372         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47373         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47374         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47375         * tests/unictype/test-pr_uppercase.c: Regenerated.
47376         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47377         * tests/unictype/test-pr_xid_start.c: Regenerated.
47378         * tests/unictype/test-pr_zero_width.c: Regenerated.
47379
47380         Update to Unicode 5.1.0.
47381         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47382         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47383         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47384         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47385         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47386         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47387         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47388         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47389         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47390         (nonspacing_table_ind): Update.
47391         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47392
47393         Update to Unicode 5.1.0.
47394         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47395         code transform.
47396         * lib/uniname/uniname.c (unicode_character_name,
47397         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47398         * lib/uniname/uninames.h: Regenerated.
47399         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47400
47401 2009-02-07  Bruno Haible  <bruno@clisp.org>
47402
47403         Merge gen-ctype and gen-lbrk into a single program.
47404         * lib/gen-uni-tables.c: New file, incorporating
47405         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47406         Add directory prefixes to the names of the generated files.
47407         * lib/unictype/gen-ctype.c: Remove file.
47408         * lib/unilbrk/gen-lbrk.c: Remove file.
47409         * modules/gen-uni-tables: New file.
47410         * modules/unictype/gen-ctype: Remove file.
47411         * modules/unilbrk/gen-lbrk: Remove file.
47412
47413 2009-02-07  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47416
47417         New module 'unistr/u32-strcoll'.
47418         * modules/unistr/u32-strcoll: New file.
47419         * lib/unistr/u32-strcoll.c: New file.
47420
47421         New module 'unistr/u16-strcoll'.
47422         * modules/unistr/u16-strcoll: New file.
47423         * lib/unistr/u16-strcoll.c: New file.
47424
47425         New module 'unistr/u8-strcoll'.
47426         * modules/unistr/u8-strcoll: New file.
47427         * lib/unistr/u8-strcoll.c: New file.
47428         * lib/unistr/u-strcoll.h: New file.
47429
47430 2009-02-07  Bruno Haible  <bruno@clisp.org>
47431
47432         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47433         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47434         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47435         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47436         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47437         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47438
47439 2009-02-07  Bruno Haible  <bruno@clisp.org>
47440
47441         Make 64-bit clean.
47442         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47443         output_combclass, output_bidi_category, output_decimal_digit,
47444         output_digit, output_numeric, output_mirror, output_scripts,
47445         output_ident_category): Use proper width specifier in format strings.
47446
47447 2009-02-07  Bruno Haible  <bruno@clisp.org>
47448
47449         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47450         failure behaviour.
47451
47452 2009-02-07  Jim Meyering  <meyering@redhat.com>
47453
47454         regex: avoid compilation failure with upcoming gcc-4.4
47455         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47456         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47457         "... error: integer overflow in preprocessor expression".
47458
47459 2009-02-05  Ben Pfaff  <blp@gnu.org>
47460
47461         Fix link errors on Windows when close module is used.
47462         * modules/close: Add $(LIB_CLOSE) to Link section.
47463         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47464         $(LIB_CLOSE) on Windows.
47465
47466 2009-02-05  Jim Meyering  <meyering@redhat.com>
47467
47468         still avoid unused-parameter warnings, but do it cleanly
47469         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47470         (get_fs_usage): Cast to void instead.
47471         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47472         (dev_from_mount_options, read_file_system_list): Cast to void.
47473         Prompted by Bruno Haible.
47474
47475 2009-02-04  Jim Meyering  <meyering@redhat.com>
47476
47477         fsusage.c: correct copyright year
47478         * lib/fsusage.c: Reflect year in which the change is pushed into
47479
47480         avoid misc. warnings
47481         * lib/fsusage.c (UNUSED_PARAM): Define.
47482         (get_fs_usage): Mark parameter "disk" as unused.
47483         * lib/getugroups.c (getgrent): Use "void" in prototype.
47484         * lib/mountlist.c: Mark unused parameters.
47485         (read_file_system_list): Declare a local with "const".
47486         * lib/nanosleep.c (getnow): Declare static.
47487         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47488
47489         dirfd: set errno upon failure
47490         * lib/dirfd.c: Include <errno.h>.
47491         Set errno to ENOTSUP when returning -1.
47492         * modules/dirfd (Depends-on): Add errno.
47493         Suggested by John Kodis <kodis@comcast.net>.
47494
47495 2009-02-01  Bruno Haible  <bruno@clisp.org>
47496
47497         Don't assume sizeof (long) >= sizeof (void *).
47498         * lib/memcmp.c: Include stdint.h.
47499         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47500         srcp2 to 'const byte *'.
47501         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47502         types to uintptr_t.
47503         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47504         * modules/memcmp (Depends-on): Add stdint.
47505         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47506
47507 2009-01-30  Eric Blake  <ebb9@byu.net>
47508
47509         fix more require-before-expand issues
47510         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47511         expand, AC_PROG_AWK.
47512         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47513
47514 2009-01-28  Eric Blake  <ebb9@byu.net>
47515
47516         version-etc: use consistent URL formatting
47517         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47518         Improve formatting.  Use fputs for string without %.
47519
47520 2009-01-28  Jim Meyering  <meyering@redhat.com>
47521
47522         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47523         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47524         "underquoted definition of NAME" from autoconf-2.59.
47525
47526 2009-01-28  Bruno Haible  <bruno@clisp.org>
47527
47528         * doc/gnulib.texi: Add "Obsolete modules" to index.
47529
47530 2009-01-28  Jim Meyering  <meyering@redhat.com>
47531
47532         useless-if-before-free: recognize more variants
47533         * build-aux/useless-if-before-free: Also recognize e.g.,
47534         if (NULL != p) free (p);
47535
47536 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47537
47538         test-getaddrinfo: skip (don't fail) this test when there's no network
47539         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47540         on the presumption that it means you lack network access.
47541
47542 2009-01-26  Jim Meyering  <meyering@redhat.com>
47543
47544         fflush: avoid warnings on modern systems
47545         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47546         pos and result, into scopes where they're used.
47547
47548 2009-01-26  Eric Blake  <ebb9@byu.net>
47549
47550         Silence warning reintroduced by recent extensions patch.
47551         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47552         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47553         autoconf.
47554
47555         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47556         * m4/00gnulib.m4: New file.
47557         * gnulib-tool (func_get_filelist): Always use it.
47558         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47559         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47560
47561 2009-01-25  Bruno Haible  <bruno@clisp.org>
47562
47563         Make test-quotearg work on MacOS X and AIX.
47564         * tests/test-quotearg.sh: New file.
47565         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47566         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47567         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47568         include <libintl.h>.
47569         (fake_locale): Remove variable.
47570         (gettext, dgettext, dcgettext): Remove functions.
47571         (main): Instead of setting a fake locale, set a real locale. Call
47572         textdomain and bindtextdomain.
47573         * modules/quotearg-tests (Files): Add the new files.
47574         (Depends-on): Add gettext, setenv, unsetenv.
47575         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47576         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47577         Augment TESTS_ENVIRONMENT.
47578
47579 2009-01-25  Bruno Haible  <bruno@clisp.org>
47580
47581         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47582         fr_FR.ISO8859-1 locale on MacOS X.
47583         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47584         ja_JP.eucJP locale on MacOS X.
47585         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47586         zh_CN.GB18030 locale on MacOS X.
47587
47588 2009-01-25  Bruno Haible  <bruno@clisp.org>
47589
47590         Avoid link errors on MacOS X 10.3.
47591         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47592         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47593
47594 2009-01-25  Bruno Haible  <bruno@clisp.org>
47595
47596         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47597         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47598         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47599         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47600         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47601         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47602         posix_spawnattr_init, posix_spawnattr_setsigmask,
47603         posix_spawnattr_setflags, posix_spawnattr_destroy.
47604
47605         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47606         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47607         * modules/execute (Files): Remove m4/posix_spawn.m4.
47608         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47609         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47610         posix_spawnattr_init, posix_spawnattr_setsigmask,
47611         posix_spawnattr_setflags, posix_spawnattr_destroy.
47612
47613 2009-01-25  Bruno Haible  <bruno@clisp.org>
47614
47615         * lib/glthread/threadlib.c: Include <stdlib.h>.
47616
47617 2009-01-25  Bruno Haible  <bruno@clisp.org>
47618
47619         * lib/glthread/threadlib.c (dummy): New declaration.
47620
47621 2009-01-25  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47624         multibyte characters also for the GB18030 encoding. Don't crash when
47625         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47626
47627 2009-01-25  Bruno Haible  <bruno@clisp.org>
47628
47629         Avoid redefining 'struct random_data' on OSF/1 5.1.
47630         * lib/stdlib.in.h: Include <random.h> if it exists.
47631         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47632         HAVE_RANDOM_H. Include <random.h> when testing whether
47633         'struct random_data' exists.
47634         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47635
47636 2009-01-25  Bruno Haible  <bruno@clisp.org>
47637
47638         Don't install charset.alias on MacOS X >= 10.3.
47639         * lib/localcharset.c (DARWIN7): New macro.
47640         (get_charset_aliases): Hardcode the result for Darwin7.
47641         * modules/localcharset (install-exec-local): Don't install
47642         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47643
47644 2009-01-25  Bruno Haible  <bruno@clisp.org>
47645
47646         Don't install charset.alias on mingw and Cygwin.
47647         * modules/localcharset (install-exec-local): Don't install
47648         charset.alias on mingw and Cygwin, if the file does not yet exist.
47649         The result for these platforms is hardcoded in localcharset.c.
47650
47651 2009-01-25  Bruno Haible  <bruno@clisp.org>
47652
47653         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47654         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47655         before requiring AC_USE_SYSTEM_EXTENSIONS.
47656
47657 2009-01-25  Jim Meyering  <meyering@redhat.com>
47658
47659         c-strtod: avoid warnings
47660         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47661         "assignment discards qualifiers from pointer target type" warnings.
47662
47663 2009-01-24  Bruno Haible  <bruno@clisp.org>
47664
47665         Add support for non-UTF-8 locales on MacOS X.
47666         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47667         canonical encodings. For Darwin 7 and newer, don't map traditional
47668         encodings to UTF-8.
47669         Reported by Vincent Lefevre <vincent@vinc17.org>
47670         at <http://savannah.gnu.org/bugs/?25235>.
47671
47672 2009-01-24  Bruno Haible  <bruno@clisp.org>
47673
47674         * doc/gnulib.texi (Obsolete modules): New section.
47675         Reported by Mike Frysinger <vapier@gentoo.org>.
47676
47677 2009-01-24  Bruno Haible  <bruno@clisp.org>
47678
47679         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47680         (%.dvi): New rule.
47681
47682 2009-01-24  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47685         Reported by Eric Blake.
47686
47687 2009-01-24  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47690         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47691         Reported by Gary V. Vaughan <gary@gnu.org>.
47692
47693 2009-01-24  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47696
47697 2009-01-23  Bruno Haible  <bruno@clisp.org>
47698
47699         Make c-strtod, c-strtold usable in libraries.
47700         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47701         (C_STRTOD): Call strdup instead of xstrdup.
47702         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47703         * modules/c-strtold (Depends-on): Likewise.
47704         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47705         * NEWS: Mention the change.
47706         Reported by Michael Gold <mgold@ncf.ca>.
47707
47708 2009-01-23  Jim Meyering  <meyering@redhat.com>
47709
47710         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47711         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47712         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47713
47714 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47715
47716         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47717         GNU CoreUtils.
47718         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47719         * modules/version-etc (Description): Update.
47720
47721 2009-01-22  Bruno Haible  <bruno@clisp.org>
47722
47723         Cache the C locale object.
47724         * lib/c-strtod.c (c_locale_cache): New variable.
47725         (c_locale): New function.
47726         (C_STRTOD): Use it, and don't call freelocale.
47727         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47728         Suggested by Paolo Bonzini.
47729
47730 2009-01-21  Bruno Haible  <bruno@clisp.org>
47731
47732         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47733         conditions other than overflow.
47734
47735 2009-01-21  Bruno Haible  <bruno@clisp.org>
47736
47737         * lib/c-strtod.c: Include errno.h.
47738         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47739         value from STRTOD_L and STRTOD.
47740
47741 2009-01-21  Bruno Haible  <bruno@clisp.org>
47742         and Jim Meyering  <meyering@redhat.com>
47743
47744         nanosleep: skip configure test (fail it) for apple universal builds
47745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47746         universal builds, assume that nanosleep does not work.
47747         * modules/nanosleep (Depends-on): Add multiarch.
47748
47749         mktime: skip configure test (fail it) for apple universal builds
47750         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47751         universal builds, assume that mktime does not work.
47752         * modules/mktime (Depends-on): Add multiarch.
47753
47754 2009-01-21  Eric Blake  <ebb9@byu.net>
47755
47756         multiarch: avoid expand-before-require warning
47757         * modules/multiarch (configure.ac): Require, rather than expand,
47758         gl_MULTIARCH.
47759         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47760         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47761         enforce that all clients require it.  Partial reversion of
47762         2008-12-29 patch.
47763
47764         error: avoid expand-before-require warning
47765         * modules/errno (configure.ac): Require, rather than expand,
47766         gl_HEADER_ERRNO_H.
47767         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47768         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47769         enforce that all clients require it.
47770
47771         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47772         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47773         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47774         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47775
47776 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47777
47778         Revert:
47779         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47780
47781         regex: do not depend on obsolete modules.
47782         * modules/regex: Remove memcmp and memmove.
47783
47784 2009-01-20  Bruno Haible  <bruno@clisp.org>
47785
47786         Make the 'link' module link on Windows NT 4.
47787         * lib/link.c (_WIN32_WINNT): Don't define.
47788         (CreateHardLinkFuncType): New type.
47789         (CreateHardLinkFunc, initialized): New variables.
47790         (initialize): New function.
47791         (link): Invoke CreateHardLink indirectly through the function pointer.
47792
47793 2009-01-20  Bruno Haible  <bruno@clisp.org>
47794
47795         Fix compilation failure on mingw.
47796         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47797
47798 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47799
47800         * doc/c-strtod.texi: Mention a couple of restrictions.
47801
47802 2009-01-20  Jim Meyering  <meyering@redhat.com>
47803
47804         gettimeofday: move more declarations out of functions
47805         * lib/gettimeofday.c: Move extern declarations of tzset and
47806         gmtime out of containing functions.  Prompted by Bruno Haible.
47807
47808 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47809
47810         regex: do not depend on obsolete modules.
47811         * modules/regex: Remove memcmp and memmove.
47812
47813 2009-01-19  Bruno Haible  <bruno@clisp.org>
47814
47815         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47816         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47817         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47818         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47819         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47820
47821 2009-01-19  Bruno Haible  <bruno@clisp.org>
47822
47823         * tests/test-link.c: Include <errno.h>.
47824         (main): Exit with code 77 when a hard link cannot be created due to
47825         the file system.
47826         * tests/test-link.sh: Skip test when a hard link cannot be created due
47827         to the file system.
47828         Suggested by Eric Blake.
47829
47830 2009-01-19  Martin Lambers  <marlam@marlam.de>
47831
47832         * modules/link-tests: New file.
47833         * tests/test-link.sh: New file.
47834         * tests/test-link.c: New file.
47835
47836 2009-01-19  Eric Blake  <ebb9@byu.net>
47837
47838         doc: mention another function added in cygwin 1.7.0
47839         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47840         Another new function in cygwin 1.7.
47841
47842 2009-01-19  Bruno Haible  <bruno@clisp.org>
47843
47844         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47845         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47846         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47847         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47848         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47849         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47850         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47851         * m4/md4.m4 (gl_MD4): Likewise.
47852         * m4/md5.m4 (gl_MD5): Likewise.
47853         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47854         * m4/sha1.m4 (gl_SHA1): Likewise.
47855         * m4/sha256.m4 (gl_SHA256): Likewise.
47856         * m4/sha512.m4 (gl_SHA512): Likewise.
47857
47858 2009-01-19  Bruno Haible  <bruno@clisp.org>
47859
47860         * modules/uniname/uniname-tests (Depends-on): Add progname.
47861         * tests/uniname/test-uninames.c: Include progname.h.
47862         (main): Call set_program_name.
47863
47864         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47865         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47866         (main): Call set_program_name.
47867
47868         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47869         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47870         (main): Call set_program_name.
47871
47872         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47873         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47874         (main): Call set_program_name.
47875
47876         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47877         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47878         (main): Call set_program_name.
47879
47880         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47881         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47882         (main): Call set_program_name.
47883
47884         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47885         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47886         (main): Call set_program_name.
47887
47888         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47889         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47890         (main): Call set_program_name.
47891
47892         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47893         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47894         (main): Call set_program_name.
47895
47896 2009-01-19  Eric Blake  <ebb9@byu.net>
47897
47898         test-unistd: test previous patch
47899         * tests/test-unistd.c: Test *_FILENO macros.
47900
47901         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47902         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47903         Guarantee a definition.
47904         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47905         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47906         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47907         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47908         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47909         Likewise.
47910         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47911         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47912         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47913         Likewise.
47914         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47915         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47916         (STDERR_FILENO): Likewise.
47917         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47918         (STDERR_FILENO): Likewise.
47919         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47920         (STDERR_FILENO): Likewise.
47921         Reported by Elbert Pol.
47922
47923 2009-01-19  Eric Blake  <ebb9@byu.net>
47924
47925         doc: mention more functions added in cygwin 1.7.0
47926         * doc/posix-functions/abort.texi (abort): Update wording related
47927         to cygwin.
47928         * doc/posix-functions/daylight.texi (daylight): Likewise.
47929         * doc/posix-functions/optarg.texi (optarg): Likewise.
47930         * doc/posix-functions/optarg.texi (opterr): Likewise.
47931         * doc/posix-functions/optarg.texi (optind): Likewise.
47932         * doc/posix-functions/optarg.texi (optopt): Likewise.
47933         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47934         worked in 1.5.x, and was withdrawn in 1.7.
47935         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47936         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47937         cygwin versions.
47938         * doc/posix-functions/perror.texi (perror): Likewise.
47939         * doc/posix-functions/printf.texi (printf): Likewise.
47940         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47941         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47942         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47943         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47944         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47945         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47946         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47947         Likewise.
47948         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47949         Likewise.
47950         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47951         this function.
47952         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47953         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47954         Likewise.
47955         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47956         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47957         * doc/posix-functions/confstr.texi (confstr): Likewise.
47958         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47959         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47960         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47961         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47962         * doc/posix-functions/fputws.texi (fputws): Likewise.
47963         * doc/posix-functions/fwide.texi (fwide): Likewise.
47964         * doc/posix-functions/getwc.texi (getwc): Likewise.
47965         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47966         * doc/posix-functions/putwc.texi (putwc): Likewise.
47967         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47968         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47969         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47970         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47971         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47972         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47973         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47974         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47975         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47976         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47977         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47978
47979 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47980
47981         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47982         * lib/ioctl.c: Include <sys/ioctl.h>.
47983
47984 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47985
47986         * modules/getdate-tests (Depends-on): Add progname.
47987         * tests/test-getdate.c: Use progname module, to avoid link errors
47988         on non-glibc systems.
47989
47990 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47991
47992         * modules/filenamecat-tests (Depends-on): Add progname.
47993         * modules/fstrcmp-tests (Depends-on): Likewise.
47994
47995         * tests/test-filenamecat.c: Use progname module, to avoid link
47996         errors on non-glibc systems.
47997         * tests/test-fstrcmp.c: Likewise.
47998
47999 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48000
48001         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48002         * lib/gettimeofday.c: Move extern declaration out of function.
48003
48004 2009-01-18  Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48007         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48008         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48009
48010 2009-01-18  Bruno Haible  <bruno@clisp.org>
48011
48012         * lib/strftime.c (MEMPCPY): Remove unused macro.
48013         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48014
48015 2009-01-18  Martin Lambers  <marlam@marlam.de>
48016
48017         New module 'link'.
48018         * lib/unistd.in.h (link): New declaration.
48019         * lib/link.c: New file.
48020         * m4/link.m4: New file.
48021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48022         HAVE_LINK.
48023         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48024         * modules/link: New file.
48025         * doc/posix-functions/link.texi: Mention the new module.
48026
48027 2009-01-18  Bruno Haible  <bruno@clisp.org>
48028
48029         * tests/test-avltree_list.c (main): Call set_program_name.
48030         * tests/test-avltree_oset.c (main): Likewise.
48031         * tests/test-obstack-printf.c: Include progname.h.
48032         (main): Call set_program_name.
48033         * tests/test-quotearg.c: Include progname.h.
48034         (main): Call set_program_name.
48035         * tests/test-xmemdup0.c: Include progname.h.
48036         (main): Call set_program_name.
48037
48038 2009-01-18  Bruno Haible  <bruno@clisp.org>
48039
48040         New module 'alphasort'.
48041         * lib/dirent.in.h (alphasort): New declaration.
48042         * lib/alphasort.c: New file, from glibc with modifications.
48043         * m4/alphasort.m4: New file.
48044         * modules/alphasort: New file.
48045         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48046         HAVE_ALPHASORT.
48047         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48048         HAVE_ALPHASORT.
48049         * doc/posix-functions/alphasort.texi: Mention the new module and the
48050         portability problems.
48051
48052 2009-01-18  Bruno Haible  <bruno@clisp.org>
48053
48054         New module 'scandir'.
48055         * lib/dirent.in.h (scandir): New declaration.
48056         * lib/scandir.c: New file, from glibc with modifications.
48057         * m4/scandir.m4: New file.
48058         * modules/scandir: New file.
48059         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48060         HAVE_SCANDIR.
48061         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48062         HAVE_SCANDIR.
48063         * doc/posix-functions/scandir.texi: Mention the new module and the
48064         portability problems.
48065
48066 2009-01-17  Bruno Haible  <bruno@clisp.org>
48067
48068         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48069         Update documentation.
48070         (func_remove_suffix): Escape all dots in the suffix. Update
48071         documentation.
48072         (func_filter_filelist): Update documentation.
48073         Reported by Ralf Wildenhues.
48074
48075 2009-01-17  Bruno Haible  <bruno@clisp.org>
48076
48077         * modules/dprintf-posix-tests: New file.
48078         * tests/test-dprintf-posix.sh: New file.
48079         * tests/test-dprintf-posix.c: New file.
48080
48081         New modules 'dprintf', 'dprintf-posix'.
48082         * lib/stdio.in.h (dprintf): New declaration.
48083         * lib/dprintf.c: New file.
48084         * m4/dprintf.m4: New file.
48085         * m4/dprintf-posix.m4: New file.
48086         * modules/dprintf: New file.
48087         * modules/dprintf-posix: New file.
48088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48089         HAVE_DPRINTF, REPLACE_DPRINTF.
48090         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48091         HAVE_DPRINTF, REPLACE_DPRINTF.
48092         * doc/posix-functions/dprintf.texi: Mention the new modules.
48093
48094 2009-01-17  Bruno Haible  <bruno@clisp.org>
48095
48096         * modules/vdprintf-posix-tests: New file.
48097         * tests/test-vdprintf-posix.sh: New file.
48098         * tests/test-vdprintf-posix.c: New file.
48099
48100         New modules 'vdprintf', 'vdprintf-posix'.
48101         * lib/stdio.in.h (vdprintf): New declaration.
48102         * lib/vdprintf.c: New file.
48103         * m4/vdprintf.m4: New file.
48104         * m4/vdprintf-posix.m4: New file.
48105         * modules/vdprintf: New file.
48106         * modules/vdprintf-posix: New file.
48107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48108         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48109         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48110         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48111         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48112
48113 2009-01-17  Bruno Haible  <bruno@clisp.org>
48114
48115         Fix replacement of fopen on mingw.
48116         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48117         mingw.
48118
48119 2009-01-17  Bruno Haible  <bruno@clisp.org>
48120
48121         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48122         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48123
48124 2009-01-17  Bruno Haible  <bruno@clisp.org>
48125
48126         Avoid test-fflush2.sh failure on mingw.
48127         * tests/test-fflush2.c: Include binary-io.h.
48128         (main): Put standard input into binary mode.
48129         * modules/fflush-tests (Depends-on): Add binary-io.
48130
48131 2009-01-17  Bruno Haible  <bruno@clisp.org>
48132
48133         * lib/wchar.in.h: In another particular situation, include only the
48134         system's <wchar.h> file.
48135         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48136         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48137         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48138
48139 2009-01-17  Bruno Haible  <bruno@clisp.org>
48140
48141         Support for stripping executables in --enable-relocatable.
48142         * build-aux/install-reloc: Expect one more argument, or an environment
48143         variable RELOC_STRIP_PROG. If set, strip the destination program and
48144         its wrapper.
48145         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48146         RELOC_STRIP_PROG.
48147         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48148         to set RELOCATABLE_STRIP.
48149         * NEWS: Mention the new Makefile requirement.
48150
48151 2009-01-17  Bruno Haible  <bruno@clisp.org>
48152
48153         * build-aux/install-reloc: Remove debugging information left over by
48154         C compiler on MacOS X.
48155
48156 2009-01-17  Bruno Haible  <bruno@clisp.org>
48157
48158         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48159         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48160         _NSGetExecutablePath.
48161
48162 2009-01-16  Jim Meyering  <meyering@redhat.com>
48163
48164         strerror: avoid warnings about discarding "const"
48165         * lib/strerror.c (rpl_strerror): Instead of returning a const
48166         string from each and every "case", use a variable, and add a single
48167         cast after the switch.
48168
48169 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48170
48171         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48172
48173 2009-01-16  Bruno Haible  <bruno@clisp.org>
48174
48175         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48176         array initializer syntax that also works in C++ mode.
48177         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48178
48179 2009-01-16  Jim Meyering  <meyering@redhat.com>
48180
48181         poll: suppress a warning
48182         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48183         to ignore "...unsigned expression < 0 is always false" warnings.
48184
48185 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48186
48187         poll: remove declarations of unused variables
48188         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48189         sockbuf and optlen.
48190
48191 2009-01-15  Bruno Haible  <bruno@clisp.org>
48192
48193         Make fflush-after-ungetc POSIX compliant on BSD systems.
48194         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48195         (clear_ungetc_buffer): Implement also for other systems.
48196         (rpl_fflush): On glibc systems, invoke
48197         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48198         clear_ungetc_buffer after fetching the stream's position, not before.
48199
48200 2009-01-15  Bruno Haible  <bruno@clisp.org>
48201
48202         Make fflush-after-ungetc POSIX compliant on glibc systems.
48203         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48204         after ungetc.
48205         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48206         (rpl_fflush): On glibc systems, simply call the system's fflush
48207         function after clearing the ungetc buffer.
48208         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48209         Instead, lseek only to the end of file, then use the system's fseeko
48210         for the rest. On glibc systems, reset the EOF indicator bit.
48211
48212 2009-01-15  Jim Meyering  <meyering@redhat.com>
48213
48214         openmp.m4: revert quote-adding change, for portability to older autoconf
48215         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48216         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48217         Simon Josefsson noticed the problem when using autoconf-2.61.
48218
48219 2009-01-15  Bruno Haible  <bruno@clisp.org>
48220
48221         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48222         * tests/test-fflush2.c (ASSERT): Always fail.
48223         (main): Add two tests for fflush() after ungetc(), taking into account
48224         the Austin Group's clarification.
48225         Suggested by Eric Blake.
48226
48227 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48228
48229         mktime.m4: remove K&R-style function prototypes
48230         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48231         for the Sun C++ compiler.
48232
48233 2009-01-14  Bruno Haible  <bruno@clisp.org>
48234
48235         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48236         while including <wchar.h>.
48237         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48238         the system's <wchar.h> file.
48239         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48240
48241 2009-01-14  Bruno Haible  <bruno@clisp.org>
48242
48243         * m4/csharp.m4: Don't mention gettext on the serial number line.
48244         * m4/csharpexec.m4: Likewise.
48245         * m4/eaccess.m4: Likewise.
48246         * m4/javaexec.m4: Likewise.
48247         * m4/sig_atomic_t.m4: Likewise.
48248         * m4/tmpdir.m4: Likewise.
48249         * m4/intldir.m4: Bump gettext version.
48250         * m4/lib-ld.m4: Likewise.
48251
48252 2009-01-14  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/progname.c (set_program_name): Add more comments.
48255         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48256
48257 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48258
48259         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48260         were sys/stat.h does not define it.
48261
48262 2009-01-14  Jim Meyering  <meyering@redhat.com>
48263
48264         many *.m4 files: improve m4 quoting
48265         99% of this change was performed by running the following commands:
48266         git ls-files | grep '\.m4$' | xargs perl -pi \
48267           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48268           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48269           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48270           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48271         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48272         The remainder were to add Copyright dates, increment serial numbers,
48273         undo some changes in comments, exclude m4/intl.m4, and add quotes
48274         around the "1" in ",1" where the unusual spacing prohibited the
48275         above regexps from doing the job.  For more details, see
48276         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48277         * m4/acl.m4: Modified.
48278         * m4/afs.m4: Likewise.
48279         * m4/alloca.m4: Likewise.
48280         * m4/argp.m4: Likewise.
48281         * m4/argz.m4: Likewise.
48282         * m4/atexit.m4: Likewise.
48283         * m4/bison-i18n.m4: Likewise.
48284         * m4/bison.m4: Likewise.
48285         * m4/byteswap.m4: Likewise.
48286         * m4/c-stack.m4: Likewise.
48287         * m4/c-strtod.m4: Likewise.
48288         * m4/calloc.m4: Likewise.
48289         * m4/canonicalize-lgpl.m4: Likewise.
48290         * m4/chown.m4: Likewise.
48291         * m4/clock_time.m4: Likewise.
48292         * m4/codeset.m4: Likewise.
48293         * m4/copy-file.m4: Likewise.
48294         * m4/csharp.m4: Likewise.
48295         * m4/csharpcomp.m4: Likewise.
48296         * m4/csharpexec.m4: Likewise.
48297         * m4/d-ino.m4: Likewise.
48298         * m4/d-type.m4: Likewise.
48299         * m4/dirfd.m4: Likewise.
48300         * m4/double-slash-root.m4: Likewise.
48301         * m4/eaccess.m4: Likewise.
48302         * m4/eealloc.m4: Likewise.
48303         * m4/environ.m4: Likewise.
48304         * m4/errno_h.m4: Likewise.
48305         * m4/euidaccess.m4: Likewise.
48306         * m4/execute.m4: Likewise.
48307         * m4/fatal-signal.m4: Likewise.
48308         * m4/fchdir.m4: Likewise.
48309         * m4/fcntl_h.m4: Likewise.
48310         * m4/fileblocks.m4: Likewise.
48311         * m4/filenamecat.m4: Likewise.
48312         * m4/findprog.m4: Likewise.
48313         * m4/flexmember.m4: Likewise.
48314         * m4/fnmatch.m4: Likewise.
48315         * m4/fopen.m4: Likewise.
48316         * m4/fpending.m4: Likewise.
48317         * m4/fprintf-posix.m4: Likewise.
48318         * m4/free.m4: Likewise.
48319         * m4/frexp.m4: Likewise.
48320         * m4/frexpl.m4: Likewise.
48321         * m4/fsusage.m4: Likewise.
48322         * m4/ftruncate.m4: Likewise.
48323         * m4/gc-camellia.m4: Likewise.
48324         * m4/gc-random.m4: Likewise.
48325         * m4/gc.m4: Likewise.
48326         * m4/getaddrinfo.m4: Likewise.
48327         * m4/getcwd-abort-bug.m4: Likewise.
48328         * m4/getcwd-path-max.m4: Likewise.
48329         * m4/getdate.m4: Likewise.
48330         * m4/getdomainname.m4: Likewise.
48331         * m4/getgroups.m4: Likewise.
48332         * m4/gethostname.m4: Likewise.
48333         * m4/gethrxtime.m4: Likewise.
48334         * m4/getline.m4: Likewise.
48335         * m4/getloadavg.m4: Likewise.
48336         * m4/getndelim2.m4: Likewise.
48337         * m4/getpass.m4: Likewise.
48338         * m4/gettext.m4: Likewise.
48339         * m4/gettime.m4: Likewise.
48340         * m4/gettimeofday.m4: Likewise.
48341         * m4/gnulib-common.m4: Likewise.
48342         * m4/group-member.m4: Likewise.
48343         * m4/host-os.m4: Likewise.
48344         * m4/iconv.m4: Likewise.
48345         * m4/iconv_open.m4: Likewise.
48346         * m4/inet_ntop.m4: Likewise.
48347         * m4/inet_pton.m4: Likewise.
48348         * m4/inline.m4: Likewise.
48349         * m4/intldir.m4: Likewise.
48350         * m4/intlmacosx.m4: Likewise.
48351         * m4/intmax.m4: Likewise.
48352         * m4/intmax_t.m4: Likewise.
48353         * m4/inttypes.m4: Likewise.
48354         * m4/inttypes_h.m4: Likewise.
48355         * m4/inttypes-pri.m4: Likewise.
48356         * m4/isapipe.m4: Likewise.
48357         * m4/isnand.m4: Likewise.
48358         * m4/isnanf.m4: Likewise.
48359         * m4/isnanl.m4: Likewise.
48360         * m4/javacomp.m4: Likewise.
48361         * m4/javaexec.m4: Likewise.
48362         * m4/jm-winsz1.m4: Likewise.
48363         * m4/jm-winsz2.m4: Likewise.
48364         * m4/lchown.m4: Likewise.
48365         * m4/lcmessage.m4: Likewise.
48366         * m4/ldexpl.m4: Likewise.
48367         * m4/lib-ld.m4: Likewise.
48368         * m4/lib-link.m4: Likewise.
48369         * m4/libsigsegv.m4: Likewise.
48370         * m4/link-follow.m4: Likewise.
48371         * m4/localcharset.m4: Likewise.
48372         * m4/locale-fr.m4: Likewise.
48373         * m4/locale-ja.m4: Likewise.
48374         * m4/locale-tr.m4: Likewise.
48375         * m4/locale-zh.m4: Likewise.
48376         * m4/lock.m4: Likewise.
48377         * m4/longlong.m4: Likewise.
48378         * m4/ls-mntd-fs.m4: Likewise.
48379         * m4/lstat.m4: Likewise.
48380         * m4/malloc.m4: Likewise.
48381         * m4/mathl.m4: Likewise.
48382         * m4/mbrtowc.m4: Likewise.
48383         * m4/mbstate_t.m4: Likewise.
48384         * m4/mbswidth.m4: Likewise.
48385         * m4/memchr.m4: Likewise.
48386         * m4/memcmp.m4: Likewise.
48387         * m4/memcpy.m4: Likewise.
48388         * m4/memmem.m4: Likewise.
48389         * m4/memmove.m4: Likewise.
48390         * m4/mempcpy.m4: Likewise.
48391         * m4/memrchr.m4: Likewise.
48392         * m4/memset.m4: Likewise.
48393         * m4/minmax.m4: Likewise.
48394         * m4/mkdir-slash.m4: Likewise.
48395         * m4/mkdtemp.m4: Likewise.
48396         * m4/mktime.m4: Likewise.
48397         * m4/mmap-anon.m4: Likewise.
48398         * m4/mountlist.m4: Likewise.
48399         * m4/nanosleep.m4: Likewise.
48400         * m4/nls.m4: Likewise.
48401         * m4/nocrash.m4: Likewise.
48402         * m4/open.m4: Likewise.
48403         * m4/openat.m4: Likewise.
48404         * m4/openmp.m4: Likewise.
48405         * m4/pathmax.m4: Likewise.
48406         * m4/perl.m4: Likewise.
48407         * m4/physmem.m4: Likewise.
48408         * m4/pipe.m4: Likewise.
48409         * m4/po.m4: Likewise.
48410         * m4/poll.m4: Likewise.
48411         * m4/posixtm.m4: Likewise.
48412         * m4/posixver.m4: Likewise.
48413         * m4/printf-frexp.m4: Likewise.
48414         * m4/printf-frexpl.m4: Likewise.
48415         * m4/printf-posix.m4: Likewise.
48416         * m4/printf-posix-rpl.m4: Likewise.
48417         * m4/printf.m4: Likewise.
48418         * m4/progtest.m4: Likewise.
48419         * m4/putenv.m4: Likewise.
48420         * m4/readline.m4: Likewise.
48421         * m4/readlink.m4: Likewise.
48422         * m4/readutmp.m4: Likewise.
48423         * m4/realloc.m4: Likewise.
48424         * m4/regex.m4: Likewise.
48425         * m4/relocatable.m4: Likewise.
48426         * m4/relocatable-lib.m4: Likewise.
48427         * m4/rename-dest-slash.m4: Likewise.
48428         * m4/rename.m4: Likewise.
48429         * m4/rmdir-errno.m4: Likewise.
48430         * m4/rmdir.m4: Likewise.
48431         * m4/roundf.m4: Likewise.
48432         * m4/roundl.m4: Likewise.
48433         * m4/rpmatch.m4: Likewise.
48434         * m4/save-cwd.m4: Likewise.
48435         * m4/selinux-selinux-h.m4: Likewise.
48436         * m4/setenv.m4: Likewise.
48437         * m4/settime.m4: Likewise.
48438         * m4/sig2str.m4: Likewise.
48439         * m4/sig_atomic_t.m4: Likewise.
48440         * m4/signalblocking.m4: Likewise.
48441         * m4/signbit.m4: Likewise.
48442         * m4/sigpipe.m4: Likewise.
48443         * m4/sockets.m4: Likewise.
48444         * m4/sockpfaf.m4: Likewise.
48445         * m4/st_dm_mode.m4: Likewise.
48446         * m4/stat-time.m4: Likewise.
48447         * m4/stdbool.m4: Likewise.
48448         * m4/stdint.m4: Likewise.
48449         * m4/stdint_h.m4: Likewise.
48450         * m4/stpcpy.m4: Likewise.
48451         * m4/stpncpy.m4: Likewise.
48452         * m4/strcase.m4: Likewise.
48453         * m4/strchrnul.m4: Likewise.
48454         * m4/strcspn.m4: Likewise.
48455         * m4/strdup.m4: Likewise.
48456         * m4/strftime.m4: Likewise.
48457         * m4/strndup.m4: Likewise.
48458         * m4/strnlen.m4: Likewise.
48459         * m4/strpbrk.m4: Likewise.
48460         * m4/strptime.m4: Likewise.
48461         * m4/strsep.m4: Likewise.
48462         * m4/strtod.m4: Likewise.
48463         * m4/strtoimax.m4: Likewise.
48464         * m4/strtok_r.m4: Likewise.
48465         * m4/strtol.m4: Likewise.
48466         * m4/strtoll.m4: Likewise.
48467         * m4/strtoul.m4: Likewise.
48468         * m4/strtoull.m4: Likewise.
48469         * m4/strtoumax.m4: Likewise.
48470         * m4/strverscmp.m4: Likewise.
48471         * m4/threadlib.m4: Likewise.
48472         * m4/timegm.m4: Likewise.
48473         * m4/tm_gmtoff.m4: Likewise.
48474         * m4/tmpdir.m4: Likewise.
48475         * m4/tmpfile.m4: Likewise.
48476         * m4/tzset.m4: Likewise.
48477         * m4/uintmax_t.m4: Likewise.
48478         * m4/unlinkdir.m4: Likewise.
48479         * m4/unlocked-io.m4: Likewise.
48480         * m4/uptime.m4: Likewise.
48481         * m4/userspec.m4: Likewise.
48482         * m4/utimbuf.m4: Likewise.
48483         * m4/utime.m4: Likewise.
48484         * m4/utimes-null.m4: Likewise.
48485         * m4/utimes.m4: Likewise.
48486         * m4/vararrays.m4: Likewise.
48487         * m4/vasnprintf.m4: Likewise.
48488         * m4/vfprintf-posix.m4: Likewise.
48489         * m4/vprintf-posix.m4: Likewise.
48490         * m4/wait-process.m4: Likewise.
48491         * m4/wchar_t.m4: Likewise.
48492         * m4/wint_t.m4: Likewise.
48493         * m4/write-any-file.m4: Likewise.
48494         * m4/yield.m4: Likewise.
48495
48496 2009-01-13  Bruno Haible  <bruno@clisp.org>
48497
48498         Avoid test-copy-file.sh failures when ACL support insufficient.
48499         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48500         TESTS_ENVIRONMENT.
48501         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48502         Reported by Jim Meyering.
48503
48504 2009-01-13  Bruno Haible  <bruno@clisp.org>
48505
48506         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48507         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48508         * modules/unistdio/u8-printf-parse (Files): Likewise.
48509         * modules/unistdio/u32-printf-parse (Files): Likewise.
48510         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48511
48512 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48513
48514         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48515         and m4/inttypes_h.m4 too.
48516
48517 2009-01-12  Eric Blake  <ebb9@byu.net>
48518
48519         tests: IRIX 6.2 cc can't compile -0.0 into .data
48520         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48521         rather than at compile-time.
48522         * tests/test-floorl.c (minus_zero): Likewise.
48523         * tests/test-frexpl.c (minus_zero): Likewise.
48524         * tests/test-isnan.c (minus_zerol): Likewise.
48525         * tests/test-isnanl.h (minus_zero): Likewise.
48526         * tests/test-ldexpl.c (minus_zero): Likewise.
48527         * tests/test-roundl.c (minus_zero): Likewise.
48528         * tests/test-signbit.c (minus_zerol): Likewise.
48529         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48530         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48531         * tests/test-truncl.c (minus_zero): Likewise.
48532         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48533         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48534         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48535
48536 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48537
48538         regex: fix glibc bug 9697
48539         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48540         handling.
48541
48542 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48543
48544         regex: fix glibc bug 697
48545         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48546         being NULL also if there are no backreferences.
48547
48548 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48549
48550         regex: merge glibc changes
48551         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48552         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48553         re_string_skip_chars, re_string_reconstruct): Likewise.
48554         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48555
48556 2009-01-07  Jim Meyering  <meyering@redhat.com>
48557
48558         poll: filter through cppi
48559         * lib/poll.c: Indent cpp directives to reflect nesting.
48560
48561 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48562
48563         poll: don't return uninitialized
48564         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48565
48566 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48567
48568         avoid compile failure on AIX 6.1
48569         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48570         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48571
48572 2009-01-04  Jim Meyering  <meyering@redhat.com>
48573
48574         remove duplicate inclusion of <stdio.h>
48575         * tests/test-fprintf-posix.c: Likewise.
48576         * tests/test-printf-posix.c: Likewise.
48577         * tests/test-snprintf-posix.c: Likewise.
48578         * tests/test-sprintf-posix.c: Likewise.
48579         * tests/test-vasprintf-posix.c: Likewise.
48580         * tests/test-vfprintf-posix.c: Likewise.
48581         * tests/test-vprintf-posix.c: Likewise.
48582         * tests/test-vsnprintf-posix.c: Likewise.
48583         * tests/test-vsprintf-posix.c: Likewise.
48584
48585 2009-01-03  Jim Meyering  <meyering@redhat.com>
48586
48587         gnulib-tool: fix sed-based filtering
48588         * gnulib-tool (func_filter_filelist): Remove extra backslash
48589         in sed_fff_filter definition.
48590
48591 2009-01-02  Jim Meyering  <meyering@redhat.com>
48592
48593         strftime: avoid compilation failure on Solaris 2.6
48594         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48595         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48596         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48597         be available.  Reported by Tom G. Christensen.  Details in
48598         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48599
48600 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48601             Bruno Haible  <bruno@clisp.org>
48602
48603         Speed up gnulib-tool by doing more string processing through shell
48604         built-ins.
48605         * gnulib-tool (fast_func_append): New variable.
48606         (func_remove_prefix, func_remove_suffix): New functions.
48607         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48608         (func_filter_filelist): New function.
48609         (func_get_dependencies): Use func_remove_suffix instead of sed.
48610         (func_get_automake_snippet): Use func_filter_filelist instead of a
48611         subshell and sed invocation.
48612
48613 2009-01-01  Bruno Haible  <bruno@clisp.org>
48614
48615         Fix a security bug.
48616         * gnulib-tool (func_import, import, update): Don't allow the characters
48617         '"', '$', '`', '\' in macro arguments that become part of commands that
48618         are evaluated.
48619
48620 2009-01-01  Bruno Haible  <bruno@clisp.org>
48621
48622         * gnulib-tool (func_reset_sigpipe): Add more comments.
48623
48624 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48625
48626         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48627         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48628         already know the answer.
48629
48630 2009-01-01  Jim Meyering  <meyering@redhat.com>
48631
48632         * lib/version-etc.c (version_etc_va): Update copyright year.
48633
48634 2008-12-30  Bruno Haible  <bruno@clisp.org>
48635
48636         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48637         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48638         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48639
48640 2008-12-29  Eric Blake  <ebb9@byu.net>
48641
48642         multiarch: avoid autoconf AC_REQUIRE bug
48643         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48644         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48645         2.63 and older.
48646         Reported by Bruno Haible, and analyzed in
48647         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48648
48649 2008-12-29  Bruno Haible  <bruno@clisp.org>
48650
48651         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48652         files in subdirectories correctly.
48653         Reported by Ralf Wildenhues.
48654
48655 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48656
48657         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48658         rather than 'join FILE -', for Solaris join.
48659
48660 2008-12-29  Bruno Haible  <bruno@clisp.org>
48661
48662         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48663         quoting.
48664         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48665         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48666         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48667         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48668         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48669         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48670         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48671         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48672         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48673         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48674         * m4/nls.m4 (AM_NLS): Likewise.
48675         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48676         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48677         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48678         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48679         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48680         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48681         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48682         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48683         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48684         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48685         * m4/xsize.m4 (gl_XSIZE): Likewise.
48686         Suggested by Jim Meyering.
48687
48688 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48689
48690         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48691         * lib/parse-duration.c: use a switch instead of cascading if's.
48692
48693 2008-12-29  Eric Blake  <ebb9@byu.net>
48694
48695         wchar.h: supply WEOF on Irix 5.3
48696         * lib/wchar.in.h (wint_t): Also supply WEOF.
48697         * lib/wctype.in.h (wint_t): Likewise.
48698         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48699         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48700         Reported by Tom G. Christensen.
48701
48702 2008-12-26  Bruno Haible  <bruno@clisp.org>
48703
48704         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48705         i486, i586, i686.
48706
48707 2008-12-26  Bruno Haible  <bruno@clisp.org>
48708
48709         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48710
48711 2008-12-26  Bruno Haible  <bruno@clisp.org>
48712
48713         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48714         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48715         not __STDC_CONSTANT_MACROS.
48716         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48717
48718 2008-12-25  Bruno Haible  <bruno@clisp.org>
48719
48720         Add support for universal builds to vasnprintf.
48721         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48722         universal builds, guess no.
48723         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48724         * modules/vasprintf-posix (Depends-on): Likewise.
48725         * modules/fprintf-posix (Depends-on): Likewise.
48726         * modules/vfprintf-posix (Depends-on): Likewise.
48727         * modules/snprintf-posix (Depends-on): Likewise.
48728         * modules/vsnprintf-posix (Depends-on): Likewise.
48729         * modules/sprintf-posix (Depends-on): Likewise.
48730         * modules/vsprintf-posix (Depends-on): Likewise.
48731         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48732         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48733         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48734         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48735         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48736         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48737         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48738
48739         Add support for universal builds to <inttypes.h>.
48740         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48741         _SCNu64_PREFIX): In Apple
48742         universal builds, define directly, using _LP64.
48743         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48744         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48745         * modules/inttypes (Depends-on): Add multiarch.
48746         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48747
48748         Add support for universal builds to <stdint.h>.
48749         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48750         universal builds, define directly, using _LP64.
48751         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48752         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48753         and size_t.
48754         * modules/stdint (Depends-on): Add multiarch.
48755         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48756
48757         New module 'multiarch'.
48758         * modules/multiarch: New file.
48759         * m4/multiarch.m4: New file.
48760
48761 2008-12-25  Bruno Haible  <bruno@clisp.org>
48762
48763         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48764
48765 2008-12-25  Bruno Haible  <bruno@clisp.org>
48766
48767         * modules/btowc (License): Relicense under LGPLv2+.
48768         * modules/mbsinit (License): Likewise.
48769         * modules/mbrtowc (License): Likewise.
48770         * modules/wcrtomb (License): Likewise.
48771         * modules/streq (License): Likewise.
48772         Reported by David Lutterkort <lutter@redhat.com>.
48773
48774 2008-12-23  Bruno Haible  <bruno@clisp.org>
48775
48776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48777
48778 2008-12-23  Bruno Haible  <bruno@clisp.org>
48779
48780         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48782         GETADDRINFO_LIB, not in LIBS.
48783         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48784         * modules/canon-host (Link): Likewise.
48785         * NEWS: Mention the change.
48786         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48787         GETADDRINFO_LIB.
48788
48789 2008-12-22  Bruno Haible  <bruno@clisp.org>
48790
48791         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48792         * doc/posix-functions/iswalpha_l.texi: Likewise.
48793         * doc/posix-functions/iswblank_l.texi: Likewise.
48794         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48795         * doc/posix-functions/iswctype_l.texi: Likewise.
48796         * doc/posix-functions/iswdigit_l.texi: Likewise.
48797         * doc/posix-functions/iswgraph_l.texi: Likewise.
48798         * doc/posix-functions/iswlower_l.texi: Likewise.
48799         * doc/posix-functions/iswprint_l.texi: Likewise.
48800         * doc/posix-functions/iswpunct_l.texi: Likewise.
48801         * doc/posix-functions/iswspace_l.texi: Likewise.
48802         * doc/posix-functions/iswupper_l.texi: Likewise.
48803         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48804         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48805         * doc/posix-functions/open_wmemstream.texi: Likewise.
48806         * doc/posix-functions/swscanf.texi: Likewise.
48807         * doc/posix-functions/towctrans_l.texi: Likewise.
48808         * doc/posix-functions/towlower.texi: Likewise.
48809         * doc/posix-functions/towlower_l.texi: Likewise.
48810         * doc/posix-functions/towupper.texi: Likewise.
48811         * doc/posix-functions/towupper_l.texi: Likewise.
48812         * doc/posix-functions/vfwprintf.texi: Likewise.
48813         * doc/posix-functions/vfwscanf.texi: Likewise.
48814         * doc/posix-functions/vswscanf.texi: Likewise.
48815         * doc/posix-functions/vwprintf.texi: Likewise.
48816         * doc/posix-functions/vwscanf.texi: Likewise.
48817         * doc/posix-functions/wcpcpy.texi: Likewise.
48818         * doc/posix-functions/wcpncpy.texi: Likewise.
48819         * doc/posix-functions/wcscasecmp.texi: Likewise.
48820         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48821         * doc/posix-functions/wcscoll_l.texi: Likewise.
48822         * doc/posix-functions/wcsdup.texi: Likewise.
48823         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48824         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48825         * doc/posix-functions/wcsnlen.texi: Likewise.
48826         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48827         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48828         * doc/posix-functions/wctrans_l.texi: Likewise.
48829         * doc/posix-functions/wctype_l.texi: Likewise.
48830         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48831         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48832         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48833         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48834         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48835         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48836         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48837         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48838         * doc/glibc-functions/wcschrnul.texi: Likewise.
48839         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48840         * doc/glibc-functions/wcstod_l.texi: Likewise.
48841         * doc/glibc-functions/wcstof_l.texi: Likewise.
48842         * doc/glibc-functions/wcstol_l.texi: Likewise.
48843         * doc/glibc-functions/wcstold_l.texi: Likewise.
48844         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48845         * doc/glibc-functions/wcstoq.texi: Likewise.
48846         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48847         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48848         * doc/glibc-functions/wcstouq.texi: Likewise.
48849         * doc/glibc-functions/wmempcpy.texi: Likewise.
48850
48851 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48852             Eric Blake  <ebb9@byu.net>
48853             Paolo Bonzini  <bonzini@gnu.org>
48854             Bruno Haible  <bruno@clisp.org>
48855
48856         Make c-stack work on Haiku.
48857         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48858         (c_stack_action): Use SA_ONSTACK flag.
48859
48860 2008-12-22  Bruno Haible  <bruno@clisp.org>
48861
48862         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48863
48864 2008-12-22  Bruno Haible  <bruno@clisp.org>
48865
48866         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48867         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48868         being overridden.
48869         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48870         New macros.
48871         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48873         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48874         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48875
48876 2008-12-22  Bruno Haible  <bruno@clisp.org>
48877
48878         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48879         from test code.
48880
48881 2008-12-22  Eric Blake  <ebb9@byu.net>
48882
48883         Avoid gcc warnings on cygwin.
48884         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48885         Avoid unused variable.
48886         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48887         Likewise.
48888
48889 2008-12-22  Bruno Haible  <bruno@clisp.org>
48890
48891         Remove HAVE_MBRTOWC conditionals.
48892         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48893         (mbscasecmp): Assume mbrtowc function.
48894         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48895         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48896         * lib/mbschr.c: Include mbuiter.h unconditionally.
48897         (mbschr): Assume mbrtowc function.
48898         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48899         (mbscspn): Assume mbrtowc function.
48900         * lib/mbslen.c: Include mbuiter.h unconditionally.
48901         (mbslen): Assume mbrtowc function.
48902         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48903         (mbsncasecmp): Assume mbrtowc function.
48904         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48905         (mbsnlen): Assume mbrtowc function.
48906         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48907         (mbspbrk): Assume mbrtowc function.
48908         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48909         (mbspcasecmp): Assume mbrtowc function.
48910         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48911         (mbsrchr): Assume mbrtowc function.
48912         * lib/mbssep.c: Include mbuiter.h unconditionally.
48913         (mbssep): Assume mbrtowc function.
48914         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48915         (mbsspn): Assume mbrtowc function.
48916         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48917         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48918         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48919         (mbstok_r): Assume mbrtowc function.
48920         * lib/propername.c: Include mbuiter.h unconditionally.
48921         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48922         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48923         (trim2): Assume mbrtowc function.
48924         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48925         (mbsnwidth): Assume mbrtowc function.
48926         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48927         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48928         fallback definitions.
48929         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48930
48931 2008-12-22  Bruno Haible  <bruno@clisp.org>
48932
48933         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48934
48935 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48936
48937         * modules/regex: Request emulations for the mb*/wc* functions we need.
48938         * m4/regex.m4: Don't look for those functions here.
48939         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48940
48941 2008-12-22  Bruno Haible  <bruno@clisp.org>
48942
48943         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48944
48945 2008-12-21  Bruno Haible  <bruno@clisp.org>
48946
48947         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48948         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48949         (Include): Remove conditionalization.
48950         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48951         (Include): Remove conditionalization.
48952         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48953         (Include): Remove conditionalization.
48954         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48955         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48956         * NEWS: Mention the change.
48957         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48958         via Sergey Poznyakoff <gray@gnu.org.ua>.
48959
48960 2008-12-21  Bruno Haible  <bruno@clisp.org>
48961
48962         * MODULES.html.sh (Extended multibyte and wide character utilities
48963         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48964         wcrtomb, wcsrtombs.
48965         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48966         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48967         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48968         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48969
48970 2008-12-21  Bruno Haible  <bruno@clisp.org>
48971
48972         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48973
48974 2008-12-21  Bruno Haible  <bruno@clisp.org>
48975
48976         * modules/wcsnrtombs-tests: New file.
48977         * tests/test-wcsnrtombs1.sh: New file.
48978         * tests/test-wcsnrtombs2.sh: New file.
48979         * tests/test-wcsnrtombs3.sh: New file.
48980         * tests/test-wcsnrtombs4.sh: New file.
48981         * tests/test-wcsnrtombs.c: New file.
48982
48983         New module 'wcsnrtombs'.
48984         * lib/wchar.in.h (wcsnrtombs): New declaration.
48985         * lib/wcsnrtombs.c: New file.
48986         * lib/wcsrtombs-state.c: New file.
48987         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48988         (internal_state): Remove variable.
48989         * m4/wcsnrtombs.m4: New file.
48990         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48991         compilation units.
48992         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48993         HAVE_WCSNRTOMBS.
48994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48995         HAVE_WCSNRTOMBS.
48996         * modules/wcsnrtombs: New file.
48997         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48998         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48999
49000 2008-12-21  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/wcsrtombs-tests: New file.
49003         * tests/test-wcsrtombs1.sh: New file.
49004         * tests/test-wcsrtombs2.sh: New file.
49005         * tests/test-wcsrtombs3.sh: New file.
49006         * tests/test-wcsrtombs4.sh: New file.
49007         * tests/test-wcsrtombs.c: New file.
49008
49009         New module 'wcsrtombs'.
49010         * lib/wchar.in.h (wcsrtombs): New declaration.
49011         * lib/wcsrtombs.c: New file.
49012         * m4/wcsrtombs.m4: New file.
49013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49014         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49016         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49017         * modules/wcsrtombs: New file.
49018         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49019         bugs.
49020
49021 2008-12-21  Bruno Haible  <bruno@clisp.org>
49022
49023         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49024         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49025         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49026         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49027         if not correct.
49028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49029         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49030         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49031         m4/locale-zh.m4, m4/codeset.m4.
49032         * doc/posix-functions/wcrtomb.texi: Document the bug.
49033
49034 2008-12-21  Bruno Haible  <bruno@clisp.org>
49035
49036         Work around a btowc() bug on IRIX 6.5.
49037         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49038         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49039         REPLACE_WTOBC if not.
49040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49041         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49042         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49043
49044 2008-12-21  Bruno Haible  <bruno@clisp.org>
49045
49046         * modules/wcrtomb-tests: New file.
49047         * tests/test-wcrtomb.sh: New file.
49048         * tests/test-wcrtomb.c: New file.
49049
49050         New module 'wcrtomb'.
49051         * lib/wchar.in.h (wcrtomb): New declaration.
49052         * lib/wcrtomb.c: New file.
49053         * m4/wcrtomb.m4: New file.
49054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49055         HAVE_WCRTOMB.
49056         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49057         HAVE_WCRTOMB.
49058         * modules/wcrtomb: New file.
49059         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49060
49061 2008-12-21  Bruno Haible  <bruno@clisp.org>
49062
49063         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49064         * modules/mbsrtowcs (Files): Likewise.
49065         * modules/wctob (Files): Likewise.
49066         * modules/c-strcase-tests (Files): Likewise.
49067         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49068         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49069         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49070         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49071         * modules/vasnprintf-posix-tests (Files): Likewise.
49072
49073 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49074
49075         gitlog-to-changelog: pass all command-line arguments to git-log
49076         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49077         it is sometimes convenient to filter the commits in various ways.
49078         gitlog-to-changelog only allows --since to specify a start date,
49079         but git-log itself supports many other filtering mechanisms.
49080         At the moment, I want to filter by branch name.  Rather than
49081         adding a --branch option to gitlog-to-changelog, it seems more
49082         flexible to simply pass all options directly to git-log and let
49083         git do the work.  Notice that this effectively makes --since a
49084         redundant option for gitlog-to-changelog, but removing it would
49085         require current usage to change since calls would then require
49086         an additional '--'.
49087
49088 2008-12-21  Bruno Haible  <bruno@clisp.org>
49089
49090         * modules/mbsnrtowcs-tests: New file.
49091         * tests/test-mbsnrtowcs1.sh: New file.
49092         * tests/test-mbsnrtowcs2.sh: New file.
49093         * tests/test-mbsnrtowcs3.sh: New file.
49094         * tests/test-mbsnrtowcs4.sh: New file.
49095         * tests/test-mbsnrtowcs.c: New file.
49096
49097         New module 'mbsnrtowcs'.
49098         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49099         * lib/mbsnrtowcs.c: New file.
49100         * lib/mbsrtowcs-state.c: New file.
49101         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49102         (internal_state): Remove variable.
49103         * m4/mbsnrtowcs.m4: New file.
49104         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49105         compilation units.
49106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49107         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49108         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49109         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49110         * modules/mbsnrtowcs: New file.
49111         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49112         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49113         portability problem.
49114
49115 2008-12-21  Bruno Haible  <bruno@clisp.org>
49116
49117         Work around mbsrtowcs bug.
49118         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49119         (gl_FUNC_MBSRTOWCS): Invoke it.
49120         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49121         m4/locale-zh.m4.
49122         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49123
49124 2008-12-21  Bruno Haible  <bruno@clisp.org>
49125
49126         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49127
49128 2008-12-21  Bruno Haible  <bruno@clisp.org>
49129
49130         Update doc for AIX.
49131         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49132         16-bit wchar_t type.
49133         * doc/posix-functions/btowc.texi: Likewise.
49134         * doc/posix-functions/fgetwc.texi: Likewise.
49135         * doc/posix-functions/fgetws.texi: Likewise.
49136         * doc/posix-functions/fputwc.texi: Likewise.
49137         * doc/posix-functions/fputws.texi: Likewise.
49138         * doc/posix-functions/fwide.texi: Likewise.
49139         * doc/posix-functions/fwprintf.texi: Likewise.
49140         * doc/posix-functions/fwscanf.texi: Likewise.
49141         * doc/posix-functions/getwchar.texi: Likewise.
49142         * doc/posix-functions/getwc.texi: Likewise.
49143         * doc/posix-functions/iswalnum.texi: Likewise.
49144         * doc/posix-functions/iswalpha.texi: Likewise.
49145         * doc/posix-functions/iswblank.texi: Likewise.
49146         * doc/posix-functions/iswcntrl.texi: Likewise.
49147         * doc/posix-functions/iswctype.texi: Likewise.
49148         * doc/posix-functions/iswdigit.texi: Likewise.
49149         * doc/posix-functions/iswgraph.texi: Likewise.
49150         * doc/posix-functions/iswlower.texi: Likewise.
49151         * doc/posix-functions/iswprint.texi: Likewise.
49152         * doc/posix-functions/iswpunct.texi: Likewise.
49153         * doc/posix-functions/iswspace.texi: Likewise.
49154         * doc/posix-functions/iswupper.texi: Likewise.
49155         * doc/posix-functions/iswxdigit.texi: Likewise.
49156         * doc/posix-functions/mbrtowc.texi: Likewise.
49157         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49158         * doc/posix-functions/mbstowcs.texi: Likewise.
49159         * doc/posix-functions/mbtowc.texi: Likewise.
49160         * doc/posix-functions/putwchar.texi: Likewise.
49161         * doc/posix-functions/putwc.texi: Likewise.
49162         * doc/posix-functions/swprintf.texi: Likewise.
49163         * doc/posix-functions/tolower.texi: Likewise.
49164         * doc/posix-functions/toupper.texi: Likewise.
49165         * doc/posix-functions/towctrans.texi: Likewise.
49166         * doc/posix-functions/ungetwc.texi: Likewise.
49167         * doc/posix-functions/vswprintf.texi: Likewise.
49168         * doc/posix-functions/wcrtomb.texi: Likewise.
49169         * doc/posix-functions/wcscat.texi: Likewise.
49170         * doc/posix-functions/wcschr.texi: Likewise.
49171         * doc/posix-functions/wcscmp.texi: Likewise.
49172         * doc/posix-functions/wcscoll.texi: Likewise.
49173         * doc/posix-functions/wcscpy.texi: Likewise.
49174         * doc/posix-functions/wcscspn.texi: Likewise.
49175         * doc/posix-functions/wcsftime.texi: Likewise.
49176         * doc/posix-functions/wcslen.texi: Likewise.
49177         * doc/posix-functions/wcsncat.texi: Likewise.
49178         * doc/posix-functions/wcsncmp.texi: Likewise.
49179         * doc/posix-functions/wcsncpy.texi: Likewise.
49180         * doc/posix-functions/wcspbrk.texi: Likewise.
49181         * doc/posix-functions/wcsrchr.texi: Likewise.
49182         * doc/posix-functions/wcsrtombs.texi: Likewise.
49183         * doc/posix-functions/wcsspn.texi: Likewise.
49184         * doc/posix-functions/wcsstr.texi: Likewise.
49185         * doc/posix-functions/wcstod.texi: Likewise.
49186         * doc/posix-functions/wcstof.texi: Likewise.
49187         * doc/posix-functions/wcstoimax.texi: Likewise.
49188         * doc/posix-functions/wcstok.texi: Likewise.
49189         * doc/posix-functions/wcstold.texi: Likewise.
49190         * doc/posix-functions/wcstoll.texi: Likewise.
49191         * doc/posix-functions/wcstol.texi: Likewise.
49192         * doc/posix-functions/wcstombs.texi: Likewise.
49193         * doc/posix-functions/wcstoull.texi: Likewise.
49194         * doc/posix-functions/wcstoul.texi: Likewise.
49195         * doc/posix-functions/wcstoumax.texi: Likewise.
49196         * doc/posix-functions/wcswidth.texi: Likewise.
49197         * doc/posix-functions/wcsxfrm.texi: Likewise.
49198         * doc/posix-functions/wctob.texi: Likewise.
49199         * doc/posix-functions/wctomb.texi: Likewise.
49200         * doc/posix-functions/wctrans.texi: Likewise.
49201         * doc/posix-functions/wctype.texi: Likewise.
49202         * doc/posix-functions/wcwidth.texi: Likewise.
49203         * doc/posix-functions/wmemchr.texi: Likewise.
49204         * doc/posix-functions/wmemcmp.texi: Likewise.
49205         * doc/posix-functions/wmemcpy.texi: Likewise.
49206         * doc/posix-functions/wmemmove.texi: Likewise.
49207         * doc/posix-functions/wmemset.texi: Likewise.
49208         * doc/posix-functions/wprintf.texi: Likewise.
49209         * doc/posix-functions/wscanf.texi: Likewise.
49210
49211 2008-12-21  Bruno Haible  <bruno@clisp.org>
49212
49213         Update doc for HP-UX 11.11.
49214         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49215         in HP-UX version 11.00, not in all versions of HP-UX 11.
49216         * doc/posix-functions/fwide.texi: Likewise.
49217         * doc/posix-functions/fwprintf.texi: Likewise.
49218         * doc/posix-functions/fwscanf.texi: Likewise.
49219         * doc/posix-functions/inet_ntop.texi: Likewise.
49220         * doc/posix-functions/inet_pton.texi: Likewise.
49221         * doc/posix-functions/mbrlen.texi: Likewise.
49222         * doc/posix-functions/mbrtowc.texi: Likewise.
49223         * doc/posix-functions/mbsinit.texi: Likewise.
49224         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49225         * doc/posix-functions/swprintf.texi: Likewise.
49226         * doc/posix-functions/swscanf.texi: Likewise.
49227         * doc/posix-functions/towctrans.texi: Likewise.
49228         * doc/posix-functions/vfwprintf.texi: Likewise.
49229         * doc/posix-functions/vswprintf.texi: Likewise.
49230         * doc/posix-functions/vwprintf.texi: Likewise.
49231         * doc/posix-functions/wcrtomb.texi: Likewise.
49232         * doc/posix-functions/wcsrtombs.texi: Likewise.
49233         * doc/posix-functions/wcsstr.texi: Likewise.
49234         * doc/posix-functions/wctob.texi: Likewise.
49235         * doc/posix-functions/wctrans.texi: Likewise.
49236         * doc/posix-functions/wmemchr.texi: Likewise.
49237         * doc/posix-functions/wmemcmp.texi: Likewise.
49238         * doc/posix-functions/wmemcpy.texi: Likewise.
49239         * doc/posix-functions/wmemmove.texi: Likewise.
49240         * doc/posix-functions/wmemset.texi: Likewise.
49241         * doc/posix-functions/wprintf.texi: Likewise.
49242         * doc/posix-functions/wscanf.texi: Likewise.
49243
49244 2008-12-21  Bruno Haible  <bruno@clisp.org>
49245
49246         Work around a portability problem.
49247         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49248         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49249
49250 2008-12-20  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49253         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49254         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49256         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49257
49258         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49259         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49260         set.
49261         (GNULIB_defined_mbstate_t): New macro.
49262         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49263         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49264         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49265         reuses the system's mbrtowc function but works around the bugs.
49266         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49267         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49268         macros.
49269         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49270         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49271         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49272         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49273         REPLACE_MBSINIT if mbsinit needs to be overridden.
49274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49275         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49276         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49277         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49278         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49279         m4/locale-zh.m4.
49280         (Depends): Add mbsinit.
49281         * modules/mbsinit (Depends): Add mbrtowc.
49282         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49283
49284 2008-12-20  Bruno Haible  <bruno@clisp.org>
49285
49286         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49287         so that there are no conversion errors on AIX.
49288         * tests/test-mbsrtowcs.c (main): LIkewise.
49289
49290 2008-12-20  Bruno Haible  <bruno@clisp.org>
49291
49292         Work around wctob bug on Solaris <= 9.
49293         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49294         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49295         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49296         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49297         * modules/wctob (Files): Add m4/locale-fr.m4.
49298         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49299
49300 2008-12-20  Bruno Haible  <bruno@clisp.org>
49301
49302         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49303         /dev/null.
49304         * tests/test-select-in.sh: Likewise.
49305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49306
49307 2008-12-20  Bruno Haible  <bruno@clisp.org>
49308
49309         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49310         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49311         Cygwin 1.5.x.
49312
49313 2008-12-20  Bruno Haible  <bruno@clisp.org>
49314
49315         Ensure mbstate_t is defined on HP-UX 11.11.
49316         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49317         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49318         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49319         AC_USE_SYSTEM_EXTENSIONS.
49320         * modules/fnmatch (Depends-on): Add extensions.
49321         * modules/mbrlen (Depends-on): Likewise.
49322         * modules/mbrtowc (Depends-on): Likewise.
49323         * modules/mbsinit (Depends-on): Likewise.
49324         * modules/mbsrtowcs (Depends-on): Likewise.
49325         * modules/mbswidth (Depends-on): Likewise.
49326         * modules/quotearg (Depends-on): Likewise.
49327         * modules/strftime (Depends-on): Likewise.
49328
49329 2008-12-20  Bruno Haible  <bruno@clisp.org>
49330
49331         Ensure wctob is declared on IRIX 6.5.
49332         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49333         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49334         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49336         of HAVE_WCTOB.
49337         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49338         HAVE_WCTOB.
49339         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49340
49341 2008-12-19  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/mbsrtowcs-tests: New file.
49344         * tests/test-mbsrtowcs1.sh: New file.
49345         * tests/test-mbsrtowcs2.sh: New file.
49346         * tests/test-mbsrtowcs3.sh: New file.
49347         * tests/test-mbsrtowcs4.sh: New file.
49348         * tests/test-mbsrtowcs.c: New file.
49349
49350         New module 'mbsrtowcs'.
49351         * lib/wchar.in.h (mbsrtowcs): New declaration.
49352         * lib/mbsrtowcs.c: New file.
49353         * m4/mbsrtowcs.m4: New file.
49354         * modules/mbsrtowcs: New file.
49355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49356         HAVE_MBSRTOWCS.
49357         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49358         HAVE_MBSRTOWCS.
49359         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49360
49361 2008-12-19  Bruno Haible  <bruno@clisp.org>
49362
49363         New module 'mbrlen'.
49364         * lib/wchar.in.h (mbrlen): New declaration.
49365         * lib/mbrlen.c: New file.
49366         * m4/mbrlen.m4: New file.
49367         * modules/mbrlen: New file.
49368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49369         HAVE_MBRLEN.
49370         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49371         HAVE_MBRLEN.
49372         * doc/posix-functions/mbrlen.texi: Document the new module.
49373
49374 2008-12-19  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49377         * modules/mbrtowc (Depends-on): Add verify.
49378         Suggested by Paul Eggert.
49379
49380 2008-12-18  Bruno Haible  <bruno@clisp.org>
49381
49382         * modules/mbsinit-tests: New file.
49383         * tests/test-mbsinit.sh: New file.
49384         * tests/test-mbsinit.c: New file.
49385
49386 2008-12-18  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/mbrtowc-tests: New file.
49389         * tests/test-mbrtowc1.sh: New file.
49390         * tests/test-mbrtowc2.sh: New file.
49391         * tests/test-mbrtowc3.sh: New file.
49392         * tests/test-mbrtowc4.sh: New file.
49393         * tests/test-mbrtowc.c: New file.
49394
49395         New module 'mbrtowc'.
49396         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49397         mbsinit and mbrtowc.
49398         (mbrtowc): New declaration.
49399         * lib/mbrtowc.c: New file.
49400         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49401         * modules/mbrtowc: New file.
49402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49403         HAVE_MBRTOWC.
49404         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49405         HAVE_MBRTOWC.
49406         * doc/posix-functions/mbrtowc.texi: Document the new module.
49407
49408 2008-12-18  Bruno Haible  <bruno@clisp.org>
49409
49410         New module 'wctob'.
49411         * lib/wchar.in.h (wctob): New declaration.
49412         * lib/wctob.c: New file.
49413         * m4/wctob.m4: New file.
49414         * modules/wctob: New file.
49415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49416         HAVE_WCTOB.
49417         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49418         * doc/posix-functions/wctob.texi: Document the new module.
49419
49420 2008-12-18  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49423         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49424
49425 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49426
49427         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49428         G. Christensen" <tgc@jupiterrise.com>.
49429
49430         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49431         G. Christensen" <tgc@jupiterrise.com>.
49432
49433         * lib/flock.c: Need to include string.h.  Reported by "Tom
49434         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49435         <ebb9@byu.net>.
49436
49437 2008-12-18  Bruno Haible  <bruno@clisp.org>
49438
49439         * m4/locale-ja.m4: New file, from GNU gettext.
49440
49441 2008-12-17  Bruno Haible  <bruno@clisp.org>
49442
49443         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49444         Suggested by Eric Blake.
49445
49446 2008-12-17  Bruno Haible  <bruno@clisp.org>
49447
49448         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49449
49450 2008-12-17  Bruno Haible  <bruno@clisp.org>
49451
49452         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49453         * modules/mbsinit (Depends-on): Add verify.
49454         Suggested by Paul Eggert.
49455
49456 2008-12-17  Bruno Haible  <bruno@clisp.org>
49457
49458         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49459         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49460         gl_FUNC_MBRTOWC.
49461         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49462         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49463         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49464         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49465         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49466         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49467         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49468         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49469         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49470         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49471         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49472         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49473         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49474         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49475         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49476         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49477         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49478         * modules/trim (configure.ac): Likewise.
49479
49480 2008-12-17  Bruno Haible  <bruno@clisp.org>
49481
49482         * modules/btowc-tests: New file.
49483         * tests/test-btowc1.sh: New file.
49484         * tests/test-btowc2.sh: New file.
49485         * tests/test-btowc.c: New file.
49486
49487         New module 'btowc'.
49488         * lib/wchar.in.h (btowc): New declaration.
49489         * lib/btowc.c: New file.
49490         * m4/btowc.m4: New file.
49491         * modules/btowc: New file.
49492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49493         HAVE_BTOWC.
49494         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49495         * doc/posix-functions/btowc.texi: Document the new module.
49496
49497 2008-12-17  Bruno Haible  <bruno@clisp.org>
49498
49499         New module 'mbsinit'.
49500         * lib/wchar.in.h (mbsinit): New declaration.
49501         * lib/mbsinit.c: New file.
49502         * m4/mbsinit.m4: New file.
49503         * modules/mbsinit: New file.
49504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49505         HAVE_MBSINIT.
49506         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49507         HAVE_MBSINIT.
49508         * doc/posix-functions/mbsinit.texi: Document the new module.
49509
49510 2008-12-16  Bruno Haible  <bruno@clisp.org>
49511
49512         * lib/unistd.in.h: Add comment.
49513         * tests/test-environ.c: Don't include <stdlib.h>.
49514
49515 2008-12-16  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/parse-duration.h (parse_duration): Document return value
49518         convention.
49519         * lib/parse-duration.c: Include specification header first. Add
49520         comments.
49521         (_): Remove macro.
49522         (parse_year_month_day, parse_hour_minute_second): Move side effects
49523         outside of strchr call.
49524         (parse_non_iso8601): Move side effects outside of isspace call.
49525         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49526         call.
49527
49528 2008-12-16  Bruno Haible  <bruno@clisp.org>
49529
49530         * tests/test-parse-duration.sh: Produce no output when the test
49531         succeeds.
49532
49533 2008-12-16  Bruno Haible  <bruno@clisp.org>
49534
49535         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49536         expressions.
49537
49538 2008-12-15  Bruno Haible  <bruno@clisp.org>
49539
49540         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49541         * doc/glibc-functions/flistxattr.texi: Likewise.
49542         * doc/glibc-functions/fopencookie.texi: Likewise.
49543         * doc/glibc-functions/fremovexattr.texi: Likewise.
49544         * doc/glibc-functions/fsetxattr.texi: Likewise.
49545         * doc/glibc-functions/getxattr.texi: Likewise.
49546         * doc/glibc-functions/lgetxattr.texi: Likewise.
49547         * doc/glibc-functions/listxattr.texi: Likewise.
49548         * doc/glibc-functions/llistxattr.texi: Likewise.
49549         * doc/glibc-functions/lremovexattr.texi: Likewise.
49550         * doc/glibc-functions/lsetxattr.texi: Likewise.
49551         * doc/glibc-functions/removexattr.texi: Likewise.
49552         * doc/glibc-functions/setxattr.texi: Likewise.
49553         * doc/posix-functions/open_memstream.texi: Likewise.
49554
49555 2008-12-15  Eric Blake  <ebb9@byu.net>
49556
49557         Update doc for cygwin 1.7.
49558         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49559         functions.
49560         * doc/posix-functions/fchmodat.texi: Likewise.
49561         * doc/posix-functions/fchownat.texi: Likewise.
49562         * doc/posix-functions/fdopendir.texi: Likewise.
49563         * doc/posix-functions/fmemopen.texi: Likewise.
49564         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49565         * doc/posix-functions/fstatat.texi: Likewise.
49566         * doc/posix-functions/futimens.texi: Likewise.
49567         * doc/posix-functions/gai_strerror.texi: Likewise.
49568         * doc/posix-functions/getaddrinfo.texi: Likewise.
49569         * doc/posix-functions/getnameinfo.texi: Likewise.
49570         * doc/posix-functions/if_freenameindex.texi: Likewise.
49571         * doc/posix-functions/if_indextoname.texi: Likewise.
49572         * doc/posix-functions/if_nameindex.texi: Likewise.
49573         * doc/posix-functions/if_nametoindex.texi: Likewise.
49574         * doc/posix-functions/insque.texi: Likewise.
49575         * doc/posix-functions/linkat.texi: Likewise.
49576         * doc/posix-functions/llrint.texi: Likewise.
49577         * doc/posix-functions/llrintf.texi: Likewise.
49578         * doc/posix-functions/llrintl.texi: Likewise.
49579         * doc/posix-functions/lockf.texi: Likewise.
49580         * doc/posix-functions/lrintl.texi: Likewise.
49581         * doc/posix-functions/mkdirat.texi: Likewise.
49582         * doc/posix-functions/mkfifoat.texi: Likewise.
49583         * doc/posix-functions/mknodat.texi: Likewise.
49584         * doc/posix-functions/mq_close.texi: Likewise.
49585         * doc/posix-functions/mq_getattr.texi: Likewise.
49586         * doc/posix-functions/mq_notify.texi: Likewise.
49587         * doc/posix-functions/mq_open.texi: Likewise.
49588         * doc/posix-functions/mq_receive.texi: Likewise.
49589         * doc/posix-functions/mq_send.texi: Likewise.
49590         * doc/posix-functions/mq_setattr.texi: Likewise.
49591         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49592         * doc/posix-functions/mq_timedsend.texi: Likewise.
49593         * doc/posix-functions/mq_unlink.texi: Likewise.
49594         * doc/posix-functions/open_memstream.texi: Likewise.
49595         * doc/posix-functions/openat.texi: Likewise.
49596         * doc/posix-functions/posix_fadvise.texi: Likewise.
49597         * doc/posix-functions/posix_fallocate.texi: Likewise.
49598         * doc/posix-functions/posix_madvise.texi: Likewise.
49599         * doc/posix-functions/posix_memalign.texi: Likewise.
49600         * doc/posix-functions/posix_openpt.texi: Likewise.
49601         * doc/posix-functions/readlinkat.texi: Likewise.
49602         * doc/posix-functions/remque.texi: Likewise.
49603         * doc/posix-functions/renameat.texi: Likewise.
49604         * doc/posix-functions/rintl.texi: Likewise.
49605         * doc/posix-functions/sem_unlink.texi: Likewise.
49606         * doc/posix-functions/shm_open.texi: Likewise.
49607         * doc/posix-functions/shm_unlink.texi: Likewise.
49608         * doc/posix-functions/signgam.texi: Likewise.
49609         * doc/posix-functions/sigset.texi: Likewise.
49610         * doc/posix-functions/stpcpy.texi: Likewise.
49611         * doc/posix-functions/stpncpy.texi: Likewise.
49612         * doc/posix-functions/strerror.texi: Likewise.
49613         * doc/posix-functions/strtod.texi: Likewise.
49614         * doc/posix-functions/symlinkat.texi: Likewise.
49615         * doc/posix-functions/unlinkat.texi: Likewise.
49616         * doc/posix-functions/utimensat.texi: Likewise.
49617         * doc/glibc-functions/bindresvport.texi: Likewise.
49618         * doc/glibc-functions/dn_expand.texi: Likewise.
49619         * doc/glibc-functions/exp10.texi: Likewise.
49620         * doc/glibc-functions/exp10f.texi: Likewise.
49621         * doc/glibc-functions/fgetxattr.texi: Likewise.
49622         * doc/glibc-functions/flistxattr.texi: Likewise.
49623         * doc/glibc-functions/fopencookie.texi: Likewise.
49624         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49625         * doc/glibc-functions/fremovexattr.texi: Likewise.
49626         * doc/glibc-functions/fsetxattr.texi: Likewise.
49627         * doc/glibc-functions/getifaddrs.texi: Likewise.
49628         * doc/glibc-functions/getxattr.texi: Likewise.
49629         * doc/glibc-functions/lgetxattr.texi: Likewise.
49630         * doc/glibc-functions/listxattr.texi: Likewise.
49631         * doc/glibc-functions/llistxattr.texi: Likewise.
49632         * doc/glibc-functions/lremovexattr.texi: Likewise.
49633         * doc/glibc-functions/lsetxattr.texi: Likewise.
49634         * doc/glibc-functions/pow10.texi: Likewise.
49635         * doc/glibc-functions/pow10f.texi: Likewise.
49636         * doc/glibc-functions/rcmd_af.texi: Likewise.
49637         * doc/glibc-functions/removexattr.texi: Likewise.
49638         * doc/glibc-functions/res_init.texi: Likewise.
49639         * doc/glibc-functions/res_mkquery.texi: Likewise.
49640         * doc/glibc-functions/res_query.texi: Likewise.
49641         * doc/glibc-functions/res_querydomain.texi: Likewise.
49642         * doc/glibc-functions/res_send.texi: Likewise.
49643         * doc/glibc-functions/rresvport_af.texi: Likewise.
49644         * doc/glibc-functions/setxattr.texi: Likewise.
49645         * doc/glibc-functions/strcasestr.texi: Likewise.
49646
49647 2008-12-15  Bruno Haible  <bruno@clisp.org>
49648
49649         Fix compilation error on OSF/1 4.0.
49650         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49651         <sys/time.h>, simply delegate to the system header.
49652         Reported by Daniel Richard G. <oss@teragram.com>.
49653
49654 2008-12-15  Bruno Haible  <bruno@clisp.org>
49655
49656         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49657         * doc/posix-functions/fchmodat.texi: Likewise.
49658         * doc/posix-functions/fchownat.texi: Likewise.
49659         * doc/posix-functions/fdopendir.texi: Likewise.
49660         * doc/posix-functions/fstatat.texi: Likewise.
49661         * doc/posix-functions/mkdirat.texi: Likewise.
49662         * doc/posix-functions/unlinkat.texi: Likewise.
49663
49664 2008-12-14  Bruno Haible  <bruno@clisp.org>
49665
49666         Update doc for POSIX:2008.
49667         * doc/posix-functions/faccessat.texi: New file.
49668         * doc/posix-functions/fchmodat.texi: New file.
49669         * doc/posix-functions/fchownat.texi: New file.
49670         * doc/posix-functions/fdopendir.texi: New file.
49671         * doc/posix-functions/fstatat.texi: New file.
49672         * doc/posix-functions/futimens.texi: New file.
49673         * doc/posix-functions/linkat.texi: New file.
49674         * doc/posix-functions/mkdirat.texi: New file.
49675         * doc/posix-functions/mkfifoat.texi: New file.
49676         * doc/posix-functions/mknodat.texi: New file.
49677         * doc/posix-functions/open_wmemstream.texi: New file.
49678         * doc/posix-functions/openat.texi: New file.
49679         * doc/posix-functions/psiginfo.texi: New file.
49680         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49681         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49682         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49683         * doc/posix-functions/readlinkat.texi: New file.
49684         * doc/posix-functions/renameat.texi: New file.
49685         * doc/posix-functions/strerror_l.texi: New file.
49686         * doc/posix-functions/symlinkat.texi: New file.
49687         * doc/posix-functions/unlinkat.texi: New file.
49688         * doc/posix-functions/utimensat.texi: New file.
49689         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49690
49691 2008-12-14  Bruno Haible  <bruno@clisp.org>
49692
49693         Update doc for POSIX:2008.
49694         * doc/posix-functions/alphasort.texi: Renamed from
49695         doc/glibc-functions/alphasort.texi.
49696         * doc/posix-functions/dirfd.texi: Renamed from
49697         doc/glibc-functions/dirfd.texi.
49698         * doc/posix-functions/dprintf.texi: Renamed from
49699         doc/glibc-functions/dprintf.texi.
49700         * doc/posix-functions/duplocale.texi: Renamed from
49701         doc/glibc-functions/duplocale.texi.
49702         * doc/posix-functions/fexecve.texi: Renamed from
49703         doc/glibc-functions/fexecve.texi.
49704         * doc/posix-functions/fmemopen.texi: Renamed from
49705         doc/glibc-functions/fmemopen.texi.
49706         * doc/posix-functions/freelocale.texi: Renamed from
49707         doc/glibc-functions/freelocale.texi.
49708         * doc/posix-functions/getdate_err.texi: Renamed from
49709         doc/glibc-functions/getdate_err.texi.
49710         * doc/posix-functions/isalnum_l.texi: Renamed from
49711         doc/glibc-functions/isalnum_l.texi.
49712         * doc/posix-functions/isalpha_l.texi: Renamed from
49713         doc/glibc-functions/isalpha_l.texi.
49714         * doc/posix-functions/isblank_l.texi: Renamed from
49715         doc/glibc-functions/isblank_l.texi.
49716         * doc/posix-functions/iscntrl_l.texi: Renamed from
49717         doc/glibc-functions/iscntrl_l.texi.
49718         * doc/posix-functions/isdigit_l.texi: Renamed from
49719         doc/glibc-functions/isdigit_l.texi.
49720         * doc/posix-functions/isgraph_l.texi: Renamed from
49721         doc/glibc-functions/isgraph_l.texi.
49722         * doc/posix-functions/islower_l.texi: Renamed from
49723         doc/glibc-functions/islower_l.texi.
49724         * doc/posix-functions/isprint_l.texi: Renamed from
49725         doc/glibc-functions/isprint_l.texi.
49726         * doc/posix-functions/ispunct_l.texi: Renamed from
49727         doc/glibc-functions/ispunct_l.texi.
49728         * doc/posix-functions/isspace_l.texi: Renamed from
49729         doc/glibc-functions/isspace_l.texi.
49730         * doc/posix-functions/isupper_l.texi: Renamed from
49731         doc/glibc-functions/isupper_l.texi.
49732         * doc/posix-functions/iswalnum_l.texi: Renamed from
49733         doc/glibc-functions/iswalnum_l.texi.
49734         * doc/posix-functions/iswalpha_l.texi: Renamed from
49735         doc/glibc-functions/iswalpha_l.texi.
49736         * doc/posix-functions/iswblank_l.texi: Renamed from
49737         doc/glibc-functions/iswblank_l.texi.
49738         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49739         doc/glibc-functions/iswcntrl_l.texi.
49740         * doc/posix-functions/iswctype_l.texi: Renamed from
49741         doc/glibc-functions/iswctype_l.texi.
49742         * doc/posix-functions/iswdigit_l.texi: Renamed from
49743         doc/glibc-functions/iswdigit_l.texi.
49744         * doc/posix-functions/iswgraph_l.texi: Renamed from
49745         doc/glibc-functions/iswgraph_l.texi.
49746         * doc/posix-functions/iswlower_l.texi: Renamed from
49747         doc/glibc-functions/iswlower_l.texi.
49748         * doc/posix-functions/iswprint_l.texi: Renamed from
49749         doc/glibc-functions/iswprint_l.texi.
49750         * doc/posix-functions/iswpunct_l.texi: Renamed from
49751         doc/glibc-functions/iswpunct_l.texi.
49752         * doc/posix-functions/iswspace_l.texi: Renamed from
49753         doc/glibc-functions/iswspace_l.texi.
49754         * doc/posix-functions/iswupper_l.texi: Renamed from
49755         doc/glibc-functions/iswupper_l.texi.
49756         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49757         doc/glibc-functions/iswxdigit_l.texi.
49758         * doc/posix-functions/isxdigit_l.texi: Renamed from
49759         doc/glibc-functions/isxdigit_l.texi.
49760         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49761         doc/glibc-functions/mbsnrtowcs.texi.
49762         * doc/posix-functions/mkdtemp.texi: Renamed from
49763         doc/glibc-functions/mkdtemp.texi.
49764         * doc/posix-functions/newlocale.texi: Renamed from
49765         doc/glibc-functions/newlocale.texi.
49766         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49767         doc/glibc-functions/nl_langinfo_l.texi.
49768         * doc/posix-functions/open_memstream.texi: Renamed from
49769         doc/glibc-functions/open_memstream.texi.
49770         * doc/posix-functions/opterr.texi: Renamed from
49771         doc/glibc-functions/opterr.texi.
49772         * doc/posix-functions/optind.texi: Renamed from
49773         doc/glibc-functions/optind.texi.
49774         * doc/posix-functions/optopt.texi: Renamed from
49775         doc/glibc-functions/optopt.texi.
49776         * doc/posix-functions/psignal.texi: Renamed from
49777         doc/glibc-functions/psignal.texi.
49778         * doc/posix-functions/scandir.texi: Renamed from
49779         doc/glibc-functions/scandir.texi.
49780         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49781         doc/glibc-functions/sched_get_priority_min.texi.
49782         * doc/posix-functions/signgam.texi: Renamed from
49783         doc/glibc-functions/signgam.texi.
49784         * doc/posix-functions/stpcpy.texi: Renamed from
49785         doc/glibc-functions/stpcpy.texi.
49786         * doc/posix-functions/stpncpy.texi: Renamed from
49787         doc/glibc-functions/stpncpy.texi.
49788         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49789         doc/glibc-functions/strcasecmp_l.texi.
49790         * doc/posix-functions/strcoll_l.texi: Renamed from
49791         doc/glibc-functions/strcoll_l.texi.
49792         * doc/posix-functions/strfmon_l.texi: Renamed from
49793         doc/glibc-functions/strfmon_l.texi.
49794         * doc/posix-functions/strftime_l.texi: Renamed from
49795         doc/glibc-functions/strftime_l.texi.
49796         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49797         doc/glibc-functions/strncasecmp_l.texi.
49798         * doc/posix-functions/strndup.texi: Renamed from
49799         doc/glibc-functions/strndup.texi.
49800         * doc/posix-functions/strnlen.texi: Renamed from
49801         doc/glibc-functions/strnlen.texi.
49802         * doc/posix-functions/strsignal.texi: Renamed from
49803         doc/glibc-functions/strsignal.texi.
49804         * doc/posix-functions/strxfrm_l.texi: Renamed from
49805         doc/glibc-functions/strxfrm_l.texi.
49806         * doc/posix-functions/timer_gettime.texi: Renamed from
49807         doc/glibc-functions/timer_gettime.texi.
49808         * doc/posix-functions/tolower_l.texi: Renamed from
49809         doc/glibc-functions/tolower_l.texi.
49810         * doc/posix-functions/toupper_l.texi: Renamed from
49811         doc/glibc-functions/toupper_l.texi.
49812         * doc/posix-functions/towctrans_l.texi: Renamed from
49813         doc/glibc-functions/towctrans_l.texi.
49814         * doc/posix-functions/towlower_l.texi: Renamed from
49815         doc/glibc-functions/towlower_l.texi.
49816         * doc/posix-functions/towupper_l.texi: Renamed from
49817         doc/glibc-functions/towupper_l.texi.
49818         * doc/posix-functions/uselocale.texi: Renamed from
49819         doc/glibc-functions/uselocale.texi.
49820         * doc/posix-functions/vdprintf.texi: Renamed from
49821         doc/glibc-functions/vdprintf.texi.
49822         * doc/posix-functions/wcpcpy.texi:
49823         Renamed from doc/glibc-functions/wcpcpy.texi.
49824         * doc/posix-functions/wcpncpy.texi: Renamed from
49825         doc/glibc-functions/wcpncpy.texi.
49826         * doc/posix-functions/wcscasecmp.texi: Renamed from
49827         doc/glibc-functions/wcscasecmp.texi.
49828         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49829         doc/glibc-functions/wcscasecmp_l.texi.
49830         * doc/posix-functions/wcscoll_l.texi: Renamed from
49831         doc/glibc-functions/wcscoll_l.texi.
49832         * doc/posix-functions/wcsdup.texi: Renamed from
49833         doc/glibc-functions/wcsdup.texi.
49834         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49835         doc/glibc-functions/wcsncasecmp.texi.
49836         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49837         doc/glibc-functions/wcsncasecmp_l.texi.
49838         * doc/posix-functions/wcsnlen.texi: Renamed from
49839         doc/glibc-functions/wcsnlen.texi.
49840         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49841         doc/glibc-functions/wcsnrtombs.texi.
49842         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49843         doc/glibc-functions/wcsxfrm_l.texi.
49844         * doc/posix-functions/wctrans_l.texi: Renamed from
49845         doc/glibc-functions/wctrans_l.texi.
49846         * doc/posix-functions/wctype_l.texi: Renamed from
49847         doc/glibc-functions/wctype_l.texi.
49848         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49849         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49850         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49851         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49852         these subsections.
49853         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49854         Remove sections.
49855
49856 2008-12-14  Bruno Haible  <bruno@clisp.org>
49857
49858         Update doc for POSIX:2008.
49859         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49860
49861 2008-12-14  Bruno Haible  <bruno@clisp.org>
49862
49863         Update doc for POSIX:2008.
49864         * doc/pastposix-functions/bcmp.texi: Renamed from
49865         doc/posix-functions/bcmp.texi.
49866         * doc/pastposix-functions/bcopy.texi: Renamed from
49867         doc/posix-functions/bcopy.texi.
49868         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49869         doc/posix-functions/bsd_signal.texi.
49870         * doc/pastposix-functions/bzero.texi: Renamed from
49871         doc/posix-functions/bzero.texi.
49872         * doc/pastposix-functions/ecvt.texi: Renamed from
49873         doc/posix-functions/ecvt.texi.
49874         * doc/pastposix-functions/fcvt.texi: Renamed from
49875         doc/posix-functions/fcvt.texi.
49876         * doc/pastposix-functions/ftime.texi: Renamed from
49877         doc/posix-functions/ftime.texi.
49878         * doc/pastposix-functions/gcvt.texi: Renamed from
49879         doc/posix-functions/gcvt.texi.
49880         * doc/pastposix-functions/getcontext.texi: Renamed from
49881         doc/posix-functions/getcontext.texi.
49882         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49883         doc/posix-functions/gethostbyaddr.texi.
49884         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49885         doc/posix-functions/gethostbyname.texi.
49886         * doc/pastposix-functions/getwd.texi: Renamed from
49887         doc/posix-functions/getwd.texi.
49888         * doc/pastposix-functions/h_errno.texi: Renamed from
49889         doc/posix-functions/h_errno.texi.
49890         * doc/pastposix-functions/index.texi: Renamed from
49891         doc/posix-functions/index.texi.
49892         * doc/pastposix-functions/makecontext.texi: Renamed from
49893         doc/posix-functions/makecontext.texi.
49894         * doc/pastposix-functions/mktemp.texi: Renamed from
49895         doc/posix-functions/mktemp.texi.
49896         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49897         doc/posix-functions/pthread_attr_getstackaddr.texi.
49898         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49899         doc/posix-functions/pthread_attr_setstackaddr.texi.
49900         * doc/pastposix-functions/rindex.texi: Renamed from
49901         doc/posix-functions/rindex.texi.
49902         * doc/pastposix-functions/scalb.texi: Renamed from
49903         doc/posix-functions/scalb.texi.
49904         * doc/pastposix-functions/setcontext.texi: Renamed from
49905         doc/posix-functions/setcontext.texi.
49906         * doc/pastposix-functions/swapcontext.texi: Renamed from
49907         doc/posix-functions/swapcontext.texi.
49908         * doc/pastposix-functions/ualarm.texi: Renamed from
49909         doc/posix-functions/ualarm.texi.
49910         * doc/pastposix-functions/usleep.texi: Renamed from
49911         doc/posix-functions/usleep.texi.
49912         * doc/pastposix-functions/vfork.texi: Renamed from
49913         doc/posix-functions/vfork.texi.
49914         * doc/pastposix-functions/wcswcs.texi: Renamed from
49915         doc/posix-functions/wcswcs.texi.
49916         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49917         (Function Substitutes): Update.
49918
49919 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49920
49921         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49922         m4/strerror.m4.
49923
49924 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49925             Bruno Haible  <bruno@clisp.org>
49926
49927         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49928
49929 2008-12-13  Bruno Haible  <bruno@clisp.org>
49930
49931         * modules/strtoull (Depends-on): Remove unistd.
49932
49933 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49934
49935         * modules/strtoull (Depends-on): Add stdlib.
49936
49937 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49938
49939         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49940
49941 2008-12-10  Jim Meyering  <meyering@redhat.com>
49942
49943         gl_ASSERT: don't say assertions are disabled when they're not
49944         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49945         "checking whether to enable assertions... no", when they are in
49946         fact enabled.  This is solely a bug in the output of configure.
49947         In spite of saying "no", NDEBUG was not defined in that case.
49948         Also, as noted by Eric Blake, leave assertions enabled upon
49949         --enable-assert=INVALID.
49950
49951 2008-12-10  Bruno Haible  <bruno@clisp.org>
49952
49953         Change MODULES.html to refer to POSIX:2008 where possible.
49954         * MODULES.html.sh (POSIX2008_URL): New variable.
49955         (posix_headers): Remove sys/timeb, ucontext.
49956         (posix2001_headers): New variable.
49957         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49958         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49959         index, makecontext, mktemp, pthread_attr_getstackaddr,
49960         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49961         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49962         (posix2001_functions): New variable.
49963         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49964         otherwise.
49965
49966 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49967
49968         add missing include to parse-duration.c
49969         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49970         * modules/parse-duration (Depends-on): Add xalloc.
49971
49972         fix sed script reading maint.mk
49973         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49974         (syntax-check-rules): Use it.
49975
49976 2008-12-09  Bruno Haible  <bruno@clisp.org>
49977
49978         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49979         MacOS X 10.4/PowerPC.
49980         Reported by Simon Josefsson.
49981
49982 2008-12-08  Jim Meyering  <meyering@redhat.com>
49983
49984         work around mingw's lack of some S_IF definitions
49985         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49986         Reported by Simon Josefsson.
49987
49988 2008-12-08  Bruno Haible  <bruno@clisp.org>
49989
49990         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49991         applied to variables. Needed on MacOS X 10.4/PowerPC.
49992         Reported by Simon Josefsson.
49993
49994 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49995         and Eric Blake  <ebb9@byu.net>
49996
49997         assert: honor --enable-assert
49998         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49999         order to honor --enable-assert, rather than treating it as a
50000         synonym for --disable-assert.
50001
50002 2008-12-08  Jim Meyering  <meyering@redhat.com>
50003
50004         * lib/posixtm.c: Remove now-useless declaration of mktime.
50005
50006         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50007
50008 2008-12-07  Bruno Haible  <bruno@clisp.org>
50009
50010         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50011         test_once): Mark functions as static.
50012         * tests/test-tls.c (test_tls): Likewise.
50013
50014 2008-12-07  Bruno Haible  <bruno@clisp.org>
50015
50016         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50017         iconv_register_autodetect.
50018
50019 2008-12-07  Jim Meyering  <meyering@redhat.com>
50020
50021         posixtm.c: avoid a warning
50022         * lib/posixtm.c (posixtime): Don't initialize tm0.
50023         It's no longer needed to placate gcc4's -Wuninitialized,
50024         and the attempt to placate would elicit a new warning.
50025
50026         unicodeio.c: mark unused parameters
50027         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50028         (fallback_failure_callback): Likewise.
50029
50030 2008-12-07  Bruno Haible  <bruno@clisp.org>
50031
50032         * gnulib-tool (func_create_testdir): When building the tests
50033         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50034         Reported by Simon Josefsson.
50035
50036 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50037
50038         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50039
50040 2008-12-06  Bruno Haible  <bruno@clisp.org>
50041
50042         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50043         Suggested by Eric Blake.
50044
50045 2008-12-06  Bruno Haible  <bruno@clisp.org>
50046
50047         Fix a c-stack test failure on MacOS X.
50048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50049         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50050         handler for SIGBUS as well.
50051         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50052         install a signal handler for SIGBUS as well.
50053         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50054
50055 2008-12-06  Bruno Haible  <bruno@clisp.org>
50056
50057         Advocacy documentation.
50058         * doc/gnulib-intro.texi (Benefits): New section.
50059         * doc/gnulib.texi: Update.
50060
50061 2008-12-06  Bruno Haible  <bruno@clisp.org>
50062
50063         Document the 'manywarnings' module.
50064         * doc/manywarnings.texi: New file.
50065         * doc/gnulib.texi: Include it.
50066
50067 2008-12-05  Eric Blake  <ebb9@byu.net>
50068
50069         tests: silence some gcc warnings
50070         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50071         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50072         type mismatches.
50073
50074 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50075             Bruno Haible  <bruno@clisp.org>
50076
50077         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50078
50079 2008-11-29  Jim Meyering  <meyering@redhat.com>
50080
50081         unicodeio.c: mark unused parameters
50082         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50083         (fallback_failure_callback): Likewise.
50084
50085         fts: fix a thinko
50086         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50087         (set_stat_type): Return S_IF*-valued "type" directly.
50088         Prompted by James Youngman's spotting a related bug.
50089         Confirmed by further testing through find.
50090
50091         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50092         * lib/fts.c (D_TYPE): Define.
50093         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50094         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50095         (s_ifmt_shift_bits): New function.
50096         (set_stat_type): New function.
50097         (fts_build): When not calling fts_stat, call set_stat_type
50098         to propagate dirent.d_type info to fts_read caller.
50099         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50100         fts_statp->st_mode type information may be valid.
50101
50102 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50103
50104         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50105         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50106         <sds@gnu.org>.
50107
50108 2008-11-20  Bruno Haible  <bruno@clisp.org>
50109
50110         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50111         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50112         INCLUDE_NEXT.
50113         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50114         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50115         * modules/math (Makefile.am): Substitute
50116         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50117         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50118
50119 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50120             Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/stdint.in.h: Define all type macros so that their expansion is
50123         a single typedef'ed token. Fixes a compilation failure in Boost which
50124         does "using ::int8_t;".
50125
50126 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50127
50128         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50129         gl_MANYWARN_ALL_GCC.
50130         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50131         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50132         * modules/manywarnings: New file.
50133         * MODULES.html.sh: Mention manywarnings module.
50134
50135 2008-11-18  Bruno Haible  <bruno@clisp.org>
50136
50137         * doc/gnulib-tool.texi (Unit tests): New section.
50138
50139 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50140
50141         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50142         paths like 'lib/po/foo.po'.
50143
50144 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50145
50146         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50147         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50148
50149 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50150
50151         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50152         parameter works.
50153
50154 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50155
50156         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50157
50158 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50159
50160         * modules/parse-duration-tests: New file.
50161         * tests/test-parse-duration.sh: New file.
50162         * tests/test-parse-duration.c: New file.
50163
50164         New module 'parse-duration'.
50165         * lib/parse-duration.h: New file.
50166         * lib/parse-duration.c: New file.
50167         * modules/parse-duration: New file.
50168
50169 2008-11-17  Bruno Haible  <bruno@clisp.org>
50170
50171         * tests/test-select-out.sh: Comment out the first pipe test.
50172         Reported by Simon Josefsson.
50173
50174 2008-11-17  Bruno Haible  <bruno@clisp.org>
50175
50176         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50178         gl_HOSTENT.
50179
50180 2008-11-17  Bruno Haible  <bruno@clisp.org>
50181
50182         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50183         -lnetwork and -lnet. Needed for Haiku and BeOS.
50184
50185 2008-11-16  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50188
50189 2008-11-16  Bruno Haible  <bruno@clisp.org>
50190
50191         Avoid test failure on Haiku.
50192         * tests/test-fsync.c: Include <errno.h>.
50193         (main): Don't require that fsync (0) fails.
50194
50195 2008-11-15  Bruno Haible  <bruno@clisp.org>
50196
50197         New module 'hostent'.
50198         * modules/hostent: New file.
50199         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50200
50201 2008-11-15  Bruno Haible  <bruno@clisp.org>
50202
50203         New module 'servent'.
50204         * modules/servent: New file.
50205         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50206
50207 2008-11-15  Bruno Haible  <bruno@clisp.org>
50208
50209         Avoid generating same test program with two different rules.
50210         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50211         test-frexp to test-frexp-nolibm.
50212         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50213         test-frexpl to test-frexpl-nolibm.
50214
50215 2008-11-15  Bruno Haible  <bruno@clisp.org>
50216
50217         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50218         $(FREXPL_LIBM).
50219
50220 2008-11-15  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/netdb.in.h: Activate the definitions also when the system's
50223         <netdb.h> has 'struct addrinfo'.
50224         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50225         EAI_OVERFLOW or AI_NUMERICSERV.
50226         * doc/posix-headers/netdb.texi: Document the problem.
50227
50228 2008-11-15  Bruno Haible  <bruno@clisp.org>
50229
50230         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50231
50232         Make the 'sched' module work on platforms where <sched.h> exists but
50233         is incomplete (such as Haiku).
50234         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50235         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50236         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50237         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50238         HAVE_STRUCT_SCHED_PARAM.
50239         * modules/sched (Depends-on): Add include_next.
50240         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50241         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50242         * doc/posix-headers/sched.texi: Document the issue.
50243
50244 2008-11-13  Jim Meyering  <meyering@redhat.com>
50245
50246         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50247         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50248         test would fail due to the difference in the Report bugs to ...
50249         line.  The expected address is empty, "<>", while the actual
50250         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50251
50252 2008-11-12  Bruno Haible  <bruno@clisp.org>
50253
50254         lstat: don't compile lstat.c on systems lacking lstat
50255         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50256         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50257         Reported by Daniel P. Berrange via Jim Meyering.
50258
50259 2008-11-12  Jim Meyering  <meyering@redhat.com>
50260
50261         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50262
50263 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50264
50265         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50266         instead.
50267
50268 2008-11-12  Bruno Haible  <bruno@clisp.org>
50269
50270         * lib/unicodeio.c: Include unistr.h.
50271         (utf8_wctomb): Remove function.
50272         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50273
50274 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50275
50276         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50277         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50278         <bruno@clisp.org>.
50279         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50280
50281 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50282
50283         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50284         * doc/gnulib.texi: Add section for warnings.
50285
50286 2008-11-11  Bruno Haible  <bruno@clisp.org>
50287
50288         * lib/sockets.h: Add a comment.
50289
50290 2008-11-11  Karl Berry  <karl@gnu.org>
50291
50292         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50293
50294 2008-11-11  Eric Blake  <ebb9@byu.net>
50295
50296         fdl.texi: avoid git symlinks
50297         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50298
50299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50300
50301         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50302
50303 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50304
50305         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50306         (gl_WARN_ADD): Substitute $2 if literal.
50307
50308 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50309
50310         * m4/warning.m4: Remove.
50311
50312 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50313
50314         * m4/warnings.m4: Almost complete rewrite. :-)
50315
50316 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50317
50318         * modules/warnings: New module.
50319         * m4/warnings.m4: New file.
50320         * MODULES.html.sh: Mention warnings module.
50321         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50322         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50323
50324 2008-11-10  Eric Blake  <ebb9@byu.net>
50325
50326         fdl.texi: make a symlink to the latest version
50327         * doc/standards.texi: Revert today's earlier change.
50328         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50329         * doc/fdl.texi: ...and replace this with a symlink to the newer
50330         fdl-1.3.texi.
50331
50332 2008-11-10  Bruno Haible  <bruno@clisp.org>
50333
50334         * tests/test-select-fd.c (main): Accept the result file name as fourth
50335         argument.
50336         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50337         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50338
50339 2008-11-10  Bruno Haible  <bruno@clisp.org>
50340
50341         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50342         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50343         as autoconf-substituted macros.
50344         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50346         gl_NETDB_H_DEFAULTS. Set these variables.
50347         * modules/netdb (Makefile.am): Substitute these variables.
50348
50349 2008-11-10  Eric Blake  <ebb9@byu.net>
50350
50351         standards.texi: include correct file for FDL 1.3
50352         * doc/standards.texi (GNU Free Documentation License): Change
50353         include file to pull in FDL 1.3, not 1.2.
50354
50355         fdl.texi: revert accidental change to license
50356         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50357
50358 2008-11-10  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50361         cross-compiling guesses also when the native compile gives no result.
50362
50363 2008-11-10  Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/spawni.c (__spawni): Force variable into the stack.
50366
50367 2008-11-10  Bruno Haible  <bruno@clisp.org>
50368
50369         Add support for Haiku.
50370         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50371         glibc and BeOS, but also on Haiku.
50372         * lib/fpurge.c (fpurge): Likewise.
50373         * lib/freadable.c (freadable): Likewise.
50374         * lib/freadahead.c (freadahead): Likewise.
50375         * lib/freading.c (freading): Likewise.
50376         * lib/freadptr.c (freadptr): Likewise.
50377         * lib/freadseek.c (freadptrinc): Likewise.
50378         * lib/fseeko.c (rpl_fseeko): Likewise.
50379         * lib/fseterr.c (fseterr): Likewise.
50380         * lib/fwritable.c (fwritable): Likewise.
50381         * lib/fwriting.c (fwriting): Likewise.
50382         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50383
50384 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50385
50386         * lib/config.charset: Treat Haiku like BeOS.
50387
50388 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50389
50390         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50391         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50392
50393 2008-11-08  Bruno Haible  <bruno@clisp.org>
50394
50395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50396         AC_CACHE_CHECK.
50397
50398 2008-11-08  Bruno Haible  <bruno@clisp.org>
50399
50400         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50401
50402 2008-11-08  Bruno Haible  <bruno@clisp.org>
50403
50404         * tests/test-select-fd.c: New file.
50405         * tests/test-select-in.sh: New file.
50406         * tests/test-select-out.sh: New file.
50407         * tests/test-select-stdin.c: New file.
50408         * modules/select-tests (Files): Add the new files.
50409         (Depends-on): Add gettimeofday.
50410         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50411         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50412         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50413
50414 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50415             Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50418
50419 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50420
50421         * build-aux/pmccabe2html: Added support for C++ source files.
50422
50423 2008-11-05  Ben Pfaff  <blp@gnu.org>
50424
50425         Fix lib/close.c build on Windows.
50426         * modules/close (Files): Add lib/w32sock.h.
50427
50428 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50429
50430         Accept Bison's NEWS format.
50431         * build-aux/announce-gen (print_news_deltas): Tweak
50432         $re_prefix.
50433
50434 2008-11-04  Bruno Haible  <bruno@clisp.org>
50435
50436         * modules/random_r (Maintainer): Add glibc.
50437
50438 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50439
50440         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50441         by karl@freefriends.org (Karl Berry).
50442         * doc/alloca.texi: Likewise.
50443         * doc/c-ctype.texi: Likewise.
50444         * doc/c-strcase.texi: Likewise.
50445         * doc/c-strcaseeq.texi: Likewise.
50446         * doc/c-strcasestr.texi: Likewise.
50447         * doc/c-strstr.texi: Likewise.
50448         * doc/c-strtod.texi: Likewise.
50449         * doc/c-strtold.texi: Likewise.
50450         * doc/ctime.texi: Likewise.
50451         * doc/error.texi: Likewise.
50452         * doc/fdl.texi: Likewise.
50453         * doc/gcd.texi: Likewise.
50454         * doc/getdate.texi: Likewise.
50455         * doc/gnulib-intro.texi: Likewise.
50456         * doc/gnulib-tool.texi: Likewise.
50457         * doc/gnulib.texi: Likewise.
50458         * doc/inet_ntoa.texi: Likewise.
50459         * doc/maintain.texi: Likewise.
50460         * doc/make-stds.texi: Likewise.
50461         * doc/quote.texi: Likewise.
50462         * doc/regexprops-generic.texi: Likewise.
50463         * doc/standards.texi: Likewise.
50464         * doc/verify.texi: Likewise.
50465         * doc/visibility.texi: Likewise.
50466         * doc/gnulib.texi (GNU Free Documentation License): Include
50467         fdl-1.3.texi instead of fdl.texi.
50468
50469 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50470
50471         * doc/fdl-1.3.texi: New file, from
50472         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50473         * modules/fdl-1.3: Add.
50474         * MODULES.html.sh: Add fdl-1.3.
50475
50476 2008-11-03  Bruno Haible  <bruno@clisp.org>
50477
50478         Make determination of absolute name of header file work with AIX xlc.
50479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50480         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50481         preprocessing.
50482         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50483         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50484
50485 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50486
50487         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50488         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50489         <ludo@gnu.org>.
50490
50491 2008-11-02  Bruno Haible  <bruno@clisp.org>
50492
50493         Mark 'strpbrk' obsolete.
50494         * modules/strpbrk (Status, Notice): New sections.
50495         * modules/strtok_r (Depends-on): Add strpbrk.
50496
50497 2008-11-02  Bruno Haible  <bruno@clisp.org>
50498
50499         Mark 'strdup' obsolete.
50500         * modules/strdup (Status, Notice): New sections.
50501         * modules/findprog (Depends-on): Add strdup.
50502         * modules/getaddrinfo (Depends-on): Likewise.
50503         * modules/localename (Depends-on): Likewise.
50504         * modules/relocatable-lib (Depends-on): Likewise.
50505         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50506         * modules/relocatable-prog (Depends-on): Likewise.
50507         * modules/trim (Depends-on): Likewise.
50508         * modules/unictype/gen-ctype (Depends-on): Likewise.
50509         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50510
50511 2008-11-02  Bruno Haible  <bruno@clisp.org>
50512
50513         Mark 'strcspn' obsolete.
50514         * modules/strcspn (Status, Notice): New sections.
50515
50516 2008-11-02  Bruno Haible  <bruno@clisp.org>
50517
50518         Mark 'rmdir' obsolete.
50519         * modules/rmdir (Status, Notice): New sections.
50520         * modules/clean-temp (Depends-on): Add rmdir.
50521         * modules/openat (Depends-on): Likewise.
50522
50523 2008-11-02  Bruno Haible  <bruno@clisp.org>
50524
50525         Mark 'raise' obsolete.
50526         * modules/raise (Status, Notice): New sections.
50527         (Include): Specify <signal.h>.
50528         * modules/stdio (Depends-on): Add raise.
50529         * modules/write (Depends-on): Likewise.
50530
50531 2008-11-02  Bruno Haible  <bruno@clisp.org>
50532
50533         Mark 'memset' obsolete.
50534         * modules/memset (Status, Notice): New sections.
50535
50536 2008-11-02  Bruno Haible  <bruno@clisp.org>
50537
50538         Mark 'memmove' obsolete.
50539         * modules/memmove (Status, Notice): New sections.
50540         * modules/argp (Depends-on): Add memmove.
50541         * modules/argz (Depends-on): Likewise.
50542         * modules/canonicalize (Depends-on): Likewise.
50543         * modules/canonicalize-lgpl (Depends-on): Likewise.
50544         * modules/fts (Depends-on): Likewise.
50545         * modules/getcwd (Depends-on): Likewise.
50546         * modules/human (Depends-on): Likewise.
50547         * modules/regex (Depends-on): Likewise.
50548         * modules/striconveh (Depends-on): Likewise.
50549         * modules/trim (Depends-on): Likewise.
50550         * modules/unistr/u8-move (Depends-on): Likewise.
50551         * modules/unistr/u16-move (Depends-on): Likewise.
50552         * modules/unistr/u32-move (Depends-on): Likewise.
50553
50554 2008-11-02  Bruno Haible  <bruno@clisp.org>
50555
50556         Mark 'memcpy' obsolete.
50557         * modules/memcpy (Status, Notice): New sections.
50558
50559 2008-11-02  Bruno Haible  <bruno@clisp.org>
50560
50561         Mark 'memcmp' obsolete.
50562         * modules/memcmp (Status, Notice): New sections.
50563         * modules/argmatch (Depends-on): Add memchr.
50564         * modules/backupfile (Depends-on): Likewise.
50565         * modules/c-strcasestr (Depends-on): Likewise.
50566         * modules/crypto/des (Depends-on): Likewise.
50567         * modules/csharpcomp (Depends-on): Likewise.
50568         * modules/fnmatch (Depends-on): Likewise.
50569         * modules/git-merge-changelog (Depends-on): Likewise.
50570         * modules/isnand (Depends-on): Likewise.
50571         * modules/isnand-nolibm (Depends-on): Likewise.
50572         * modules/isnanf (Depends-on): Likewise.
50573         * modules/isnanf-nolibm (Depends-on): Likewise.
50574         * modules/isnanl (Depends-on): Likewise.
50575         * modules/isnanl-nolibm (Depends-on): Likewise.
50576         * modules/mbchar (Depends-on): Likewise.
50577         * modules/memcoll (Depends-on): Likewise.
50578         * modules/quotearg (Depends-on): Likewise.
50579         * modules/regex (Depends-on): Likewise.
50580         * modules/relocatable-prog (Depends-on): Likewise.
50581         * modules/same (Depends-on): Likewise.
50582         * modules/signbit (Depends-on): Likewise.
50583         * modules/strcasestr-simple (Depends-on): Likewise.
50584         * modules/unictype/gen-ctype (Depends-on): Likewise.
50585         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50586         * modules/uniname/uniname (Depends-on): Likewise.
50587         * modules/unistr/u8-cmp (Depends-on): Likewise.
50588
50589 2008-11-02  Bruno Haible  <bruno@clisp.org>
50590
50591         Mark 'memchr' obsolete.
50592         * modules/memchr (Status, Notice): New sections.
50593         * modules/argp (Depends-on): Add memchr.
50594         * modules/base64 (Depends-on): Likewise.
50595         * modules/c-strcasestr (Depends-on): Likewise.
50596         * modules/chdir-long (Depends-on): Likewise.
50597         * modules/fnmatch (Depends-on): Likewise.
50598         * modules/getsubopt (Depends-on): Likewise.
50599         * modules/git-merge-changelog (Depends-on): Likewise.
50600         * modules/glob (Depends-on): Likewise.
50601         * modules/strcasestr-simple (Depends-on): Likewise.
50602         * modules/strnlen (Depends-on): Likewise.
50603
50604 2008-11-02  Bruno Haible  <bruno@clisp.org>
50605
50606         Mark 'atexit' obsolete.
50607         * modules/atexit (Status, Notice): New sections.
50608         * modules/chdir-long (Depends-on): Add atexit.
50609         * modules/wait-process (Depends-on): Likewise.
50610
50611 2008-11-02  Bruno Haible  <bruno@clisp.org>
50612
50613         * gnulib-tool: New option --with-obsolete.
50614         (func_usage): Document it.
50615         (func_modules_transitive_closure): Drop obsolete dependencies if
50616         incobsolete is not true.
50617         (func_import): Read and save the incobsolete variable to the cache.
50618
50619 2008-11-02  Bruno Haible  <bruno@clisp.org>
50620
50621         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50622         * gnulib-tool: New option --extract-status.
50623         (func_usage): Document it.
50624         (sed_extract_prog): Recognize it.
50625         (func_get_status): New function.
50626
50627 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50628
50629         * modules/sockets (License): Change from LGPL to LGPLv2+.
50630
50631 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50632
50633         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50634
50635 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50636
50637         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50638         Mention times and sys_times.
50639         * modules/sys_times, modules/sys_times-tests: New modules.
50640         * modules/times, modules/times-tests: Likewise
50641         * m4/sys_times_h.m4: New file.
50642         * lib/sys_times.in.h: Likewise
50643         * lib/times.c: Likewise.
50644         * tests/test-sys_times.c: Likewise.
50645         * tests/test-times.c: Likewise.
50646         * doc/posix-headers/sys_times.texi: Update.
50647         * doc/posix-functions/times.texi: Update.
50648
50649 2008-10-28  Jim Meyering  <meyering@redhat.com>
50650
50651         * modules/tempname (Depends-on): Add lstat.
50652
50653         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50654
50655 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50656
50657         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50658         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50659         using idiom used elsewhere in gnulib.
50660
50661 2008-10-27  Jim Meyering  <meyering@redhat.com>
50662
50663         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50664
50665 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50666
50667         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50668         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50669         programs.
50670         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50671
50672 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50673
50674         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50675
50676 2008-10-27  Bruno Haible  <bruno@clisp.org>
50677
50678         * tests/test-lstat.c: Include <stdio.h>.
50679
50680 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50681
50682         * modules/lstat-tests: New module.
50683         * tests/test-lstat.c: New file.
50684
50685 2008-10-26  Jim Meyering  <meyering@redhat.com>
50686
50687         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50688
50689 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50690             Bruno Haible  <bruno@clisp.org>
50691
50692         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50693         * modules/configmake (Include): Add a note that the include must come
50694         after all system headers.
50695         * lib/javaversion.c: Include configmake.h after all other includes.
50696
50697 2008-10-26  Bruno Haible  <bruno@clisp.org>
50698
50699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50700         HAVE_STRUCT_RANDOM_DATA to 1.
50701         (gl_STDLIB_H): Simplify.
50702
50703 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50704
50705         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50706         substitute HAVE_STRUCT_RANDOM_DATA.
50707         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50708         random_data.
50709         * modules/stdlib (Makefile.am): Substitute
50710         HAVE_STRUCT_RANDOM_DATA.
50711
50712 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50713
50714         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50715         * doc/gnulib-intro.texi (Copyright): Likewise.
50716
50717 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50718
50719         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50720         findings.
50721
50722 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50723             Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/unistd.in.h: Include <winsock2.h>.
50726         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50727         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50728         Provide dummy declarations.
50729         (gethostname): Override.
50730         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50731         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50732         gl_PREREQ_SYS_H_WINSOCK2.
50733         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50734         * doc/posix-functions/gethostname.texi: More details.
50735
50736 2008-10-25  Bruno Haible  <bruno@clisp.org>
50737
50738         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50739         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50740         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50741
50742         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50743         here ...
50744         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50745         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50746         gl_UNISTD_H_DEFAULTS.
50747
50748 2008-10-25  Eric Blake  <ebb9@byu.net>
50749
50750         signbit: avoid spurious compiler failure
50751         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50752         declarations inside function.
50753
50754 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50755             Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50758         * modules/random_r (Depends-on): Add stdint.
50759
50760 2008-10-24  Bruno Haible  <bruno@clisp.org>
50761
50762         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50763         Eggert.
50764         * modules/strerror (License): Likewise.
50765
50766 2008-10-24  Jim Meyering  <meyering@redhat.com>
50767
50768         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50769         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50770
50771 2008-10-24  Eric Blake  <ebb9@byu.net>
50772
50773         getgroups: fix compilation when getgroups is available
50774         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50775         but with <config.h> override of getgroups disabled.
50776
50777 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50778
50779         * doc/gnulib.texi (Header files): Add note about C++ problems.
50780         Explained by Bruno Haible <bruno@clisp.org>.
50781
50782 2008-10-23  Bruno Haible  <bruno@clisp.org>
50783
50784         Define a dummy SA_NODEFER macro on Interix.
50785         * lib/signal.in.h (SA_NODEFER): Define fallback.
50786         Reported by Aleksey Cheusov <cheusov@tut.by> via
50787         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50788
50789 2008-10-23  Bruno Haible  <bruno@clisp.org>
50790
50791         * modules/freadahead (License): Change to LGPLv2+.
50792         Suggested by Simon Josefsson.
50793
50794 2008-10-23  Jim Meyering  <meyering@redhat.com>
50795
50796         random_r: new module
50797         * modules/random_r: New file.
50798         * m4/random_r.m4: New file.
50799         * lib/random_r.c: New file, from glibc.
50800         * modules/random_r-tests: New file.
50801         * tests/test-random_r.c: New file.
50802         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50803          Declare.
50804         (RAND_MAX): Define.
50805         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50806         * modules/stdlib: Substitute them, too.
50807         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50808         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50809         * doc/glibc-functions/random_r.texi: Likewise.
50810         * doc/glibc-functions/setstate_r.texi: Likewise.
50811         * doc/glibc-functions/srandom_r.texi: Likewise.
50812         * config/srclist.txt: Mention it.
50813
50814 2008-10-23  David Lutterkort  <lutter@redhat.com>
50815
50816         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50817         link requirement
50818
50819 2008-10-23  Jim Meyering  <meyering@redhat.com>
50820
50821         selinux-h: mark parameters of stub functions as intentionally unused
50822         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50823         * lib/se-context.in.h: Likewise.
50824
50825 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50826
50827         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50828
50829 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50830
50831         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50832
50833 2008-10-22  Eric Blake  <ebb9@byu.net>
50834
50835         glthread/thread: avoid compiler warning
50836         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50837         Add unreachable abort to silence compiler.
50838
50839 2008-10-22  Eric Blake  <ebb9@byu.net>
50840
50841         netdb: also supply struct addrinfo for cygwin 1.5.x
50842         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50843         older cygwin.
50844         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50845         cygwin.
50846         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50847
50848 2008-10-22  Bruno Haible  <bruno@clisp.org>
50849
50850         * users.txt: Update entry about pspp.
50851
50852 2008-10-21  Bruno Haible  <bruno@clisp.org>
50853
50854         Simplification.
50855         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50856         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50857
50858         Simplification.
50859         * lib/ioctl.c (ioctl): Don't undefine.
50860         * lib/socket.c (socket): Don't undefine.
50861
50862         Remove unused module indicator macros.
50863         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50864         GNULIB_$1 as a C macro.
50865
50866         * doc/posix-functions/close.texi: Undo last change.
50867         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50868         Windows platforms.
50869
50870 2008-10-21  Bruno Haible  <bruno@clisp.org>
50871
50872         Add gethostname() declaration to <unistd.h>.
50873         * lib/unistd.in.h (gethostname): New declaration.
50874         * lib/gethostname.c: Include <unistd.h>.
50875         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50876         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50878         and HAVE_GETHOSTNAME.
50879         * modules/gethostname (Depends-on): Add unistd.
50880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50881         (Include): Specify <unistd.h>.
50882         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50883         HAVE_GETHOSTNAME.
50884         * tests/test-gethostname.c: Include <unistd.h> first.
50885
50886 2008-10-21  Bruno Haible  <bruno@clisp.org>
50887
50888         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50889         * modules/select-tests (Depends-on): Likewise.
50890         Reported by Simon Josefsson.
50891
50892 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50893
50894         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50895         * lib/accept.c: New file, based on winsock.c.
50896         * lib/bind.c: New file, based on winsock.c.
50897         * lib/connect.c: New file, based on winsock.c.
50898         * lib/getpeername.c: New file, based on winsock.c.
50899         * lib/getsockname.c: New file, based on winsock.c.
50900         * lib/getsockopt.c: New file, based on winsock.c.
50901         * lib/ioctl.c: New file, based on winsock.c.
50902         * lib/listen.c: New file, based on winsock.c.
50903         * lib/recv.c: New file, based on winsock.c.
50904         * lib/recvfrom.c: New file, based on winsock.c.
50905         * lib/send.c: New file, based on winsock.c.
50906         * lib/sendto.c: New file, based on winsock.c.
50907         * lib/setsockopt.c: New file, based on winsock.c.
50908         * lib/shutdown.c: New file, based on winsock.c.
50909         * lib/socket.c: New file, based on winsock.c.
50910         * lib/w32sock.h: New file, based on winsock.c.
50911         * lib/winsock.c: Remove file.
50912         * modules/accept: Likewise.
50913         * modules/bind: Likewise.
50914         * modules/connect: Likewise.
50915         * modules/getpeername: Likewise.
50916         * modules/getsockname: Likewise.
50917         * modules/getsockopt: Likewise.
50918         * modules/ioctl: Likewise.
50919         * modules/listen: Likewise.
50920         * modules/recv: Likewise.
50921         * modules/recvfrom: Likewise.
50922         * modules/send: Likewise.
50923         * modules/sendto: Likewise.
50924         * modules/setsockopt: Likewise.
50925         * modules/shutdown: Likewise.
50926         * modules/socket: Use socket.c instead of winsock.c.
50927         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50928         * doc/posix-functions/accept.texi: Doc fix.
50929         * doc/posix-functions/bind.texi: Doc fix.
50930         * doc/posix-functions/close.texi: Doc fix.
50931         * doc/posix-functions/connect.texi: Doc fix.
50932         * doc/posix-functions/getpeername.texi: Doc fix.
50933         * doc/posix-functions/getsockname.texi: Doc fix.
50934         * doc/posix-functions/getsockopt.texi: Doc fix.
50935         * doc/posix-functions/ioctl.texi: Doc fix.
50936         * doc/posix-functions/listen.texi: Doc fix.
50937         * doc/posix-functions/recv.texi: Doc fix.
50938         * doc/posix-functions/recvfrom.texi: Doc fix.
50939         * doc/posix-functions/send.texi: Doc fix.
50940         * doc/posix-functions/sendto.texi: Doc fix.
50941         * doc/posix-functions/setsockopt.texi: Doc fix.
50942         * doc/posix-functions/shutdown.texi: Doc fix.
50943         * doc/posix-functions/socket.texi: Doc fix.
50944
50945 2008-10-20  Bruno Haible  <bruno@clisp.org>
50946
50947         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50948         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50949         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50950         as an alias for SIGABRT.
50951         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50952         (sigaction): Map it to SIGABRT.
50953         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50954
50955 2008-10-20  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/fts.c: Don't include lstat.h.
50958         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50959
50960         Move the lstat() declaration to <sys/stat.h>.
50961         * lib/lstat.h: Remove file.
50962         * lib/sys_stat.in.h: Add special invocation convention.
50963         (lstat): New declaration.
50964         * lib/lstat.c (orig_lstat): New function.
50965         (rpl_lstat): Use orig_lstat instead of lstat.
50966         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50967         AC_C_INLINE. Set REPLACE_LSTAT.
50968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50969         and REPLACE_LSTAT.
50970         * modules/lstat (Files): Remove lib/lstat.h.
50971         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50972         (Include): Specify <sys/stat.h> instead of lstat.h.
50973         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50974         REPLACE_LSTAT.
50975         * NEWS: Mention the change.
50976
50977 2008-10-20  Bruno Haible  <bruno@clisp.org>
50978
50979         * modules/posix_spawn-tests: New file.
50980         * tests/test-posix_spawn3.c: New file.
50981
50982 2008-10-20  Bruno Haible  <bruno@clisp.org>
50983
50984         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50985         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50986         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50987         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50988         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50989
50990 2008-10-20  Bruno Haible  <bruno@clisp.org>
50991
50992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50993         of posix_spawn on AIX 5.3.
50994
50995 2008-10-20  Bruno Haible  <bruno@clisp.org>
50996
50997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50998
50999 2008-10-20  Bruno Haible  <bruno@clisp.org>
51000
51001         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51002         of AC_LANG_PROGRAM.
51003
51004 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51005
51006         * lib/netdb.in.h: Don't define GNU specific constants until they
51007         are supported or needed.  Reported by Bruno Haible
51008         <bruno@clisp.org>.
51009
51010 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51011
51012         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51013
51014 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51015
51016         * lib/getaddrinfo.h: Remove file.
51017         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51018         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51019         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51020         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51021         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51022         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51023         * tests/test-getaddrinfo.c: Likewise.
51024         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51025         * NEWS: Mention change.
51026
51027 2008-10-19  Bruno Haible  <bruno@clisp.org>
51028
51029         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51030
51031 2008-10-19  Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/wait-process.c: Include simply <sys/wait.h>.
51034         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51035         WIFSTOPPED): Remove fallback definitions.
51036         * modules/wait-process (Depends-on): Add sys_wait.
51037
51038         New module 'sys_wait'.
51039         * modules/sys_wait: New file.
51040         * lib/sys_wait.in.h: New file, partially copied from
51041         lib/wait-process.c.
51042         * m4/sys_wait_h.m4: New file.
51043         * doc/posix-headers/sys_wait.texi: Mention the new module.
51044
51045 2008-10-19  Bruno Haible  <bruno@clisp.org>
51046
51047         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51048
51049 2008-10-19  Bruno Haible  <bruno@clisp.org>
51050
51051         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51052         * lib/wait-process.c (WAIT_T): Remove type.
51053         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51054         (wait_subprocess): Update.
51055
51056 2008-10-19  Bruno Haible  <bruno@clisp.org>
51057
51058         New module 'atoll'.
51059         * modules/atoll: New file.
51060         * lib/stdlib.in.h (atoll): New declaration.
51061         * lib/atoll.c: New file, from glibc with modifications.
51062         * m4/atoll.m4: New file.
51063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51064         HAVE_ATOLL.
51065         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51066         * doc/posix-functions/atoll.texi: Mention the new module.
51067
51068 2008-10-19  Bruno Haible  <bruno@clisp.org>
51069
51070         Add strtoull() declaration to <stdlib.h>.
51071         * lib/stdlib.in.h (strtoull): New declaration.
51072         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51073         Set HAVE_STRTOULL.
51074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51075         HAVE_STRTOULL.
51076         * modules/strtoull (Depends-on): Add stdlib.
51077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51078         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51079         HAVE_STRTOULL.
51080
51081 2008-10-19  Bruno Haible  <bruno@clisp.org>
51082
51083         Add strtoll() declaration to <stdlib.h>.
51084         * lib/stdlib.in.h (strtoll): New declaration.
51085         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51086         Set HAVE_STRTOLL.
51087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51088         HAVE_STRTOLL.
51089         * modules/strtoll (Depends-on): Add stdlib.
51090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51091         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51092
51093 2008-10-19  Bruno Haible  <bruno@clisp.org>
51094
51095         * modules/bcopy (Depends-on): Add strings.
51096         (Include): Specify <strings.h>.
51097
51098 2008-10-19  Bruno Haible  <bruno@clisp.org>
51099
51100         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51101
51102 2008-10-19  Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51105         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51106         mingw.
51107
51108 2008-10-19  Bruno Haible  <bruno@clisp.org>
51109
51110         * lib/atanl.c: Don't include isnanl.h.
51111         * lib/cosl.c: Likewise.
51112         * lib/ldexpl.c: Likewise.
51113         * lib/logl.c: Likewise.
51114         * lib/sinl.c: Likewise.
51115         * lib/sqrtl.c: Likewise.
51116         * lib/tanl.c: Likewise.
51117
51118         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51119         * lib/isnanf.h: Remove file.
51120         * lib/isnand.h: Remove file.
51121         * lib/isnanl.h: Remove file.
51122         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51123         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51124         macros.
51125         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51126         HAVE_ISNANF, don't define it as a C macro.
51127         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51128         HAVE_ISNAND, don't define it as a C macro.
51129         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51130         HAVE_ISNANL, don't define it as a C macro.
51131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51132         HAVE_ISNAN[FDL].
51133         * modules/isnanf (Files): Remove lib/isnanf.h.
51134         (Depends-on): Add math.
51135         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51136         (Include): Specify <math.h> instead of isnanf.h.
51137         * modules/isnand (Files): Remove lib/isnand.h.
51138         (Depends-on): Add math.
51139         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51140         (Include): Specify <math.h> instead of isnand.h.
51141         * modules/isnanl (Files): Remove lib/isnanl.h.
51142         (Depends-on): Add math.
51143         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51144         (Include): Specify <math.h> instead of isnanl.h.
51145         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51146         HAVE_ISNAN[FDL].
51147         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51148         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51149         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51150         * NEWS: Mention the change.
51151
51152 2008-10-18  Bruno Haible  <bruno@clisp.org>
51153
51154         Add getusershell(), setusershell(), endusershell() declarations to
51155         <unistd.h>.
51156         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51157         declarations.
51158         * lib/getusershell.c: Include unistd.h.
51159         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51160         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51161         HAVE_GETUSERSHELL.
51162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51163         and HAVE_GETUSERSHELL.
51164         * modules/getusershell (Depends-on): Add unistd, extensions.
51165         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51166         (Include): Specify <unistd.h>.
51167         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51168         HAVE_GETUSERSHELL.
51169
51170 2008-10-18  Bruno Haible  <bruno@clisp.org>
51171
51172         Add a getloadavg() declaration to <stdlib.h>.
51173         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51174         getloadavg declaration.
51175         (getloadavg): New declaration.
51176         * lib/getloadavg.c: Include <stdlib.h> first.
51177         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51178         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51179         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51181         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51182         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51183         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51184         (Include): Specify <stdlib.h>.
51185         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51186         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51187
51188 2008-10-18  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/dirchownmod.c: Don't include lchmod.h.
51191
51192         Move the lchmod() declaration to <sys/stat.h>.
51193         * lib/lchmod.h: Remove file.
51194         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51195         (lchmod): New declaration, moved here from lib/lchown.h.
51196         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51197         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51199         and HAVE_LCHMOD.
51200         * modules/lchmod (Files): Remove lib/lchmod.h.
51201         (Depends-on): Add sys_stat, extensions.
51202         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51203         (Include): Specify <sys/stat.h> instead of lchmod.h.
51204         * modules/sys_stat (Depends-on): Add link-warning.
51205         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51206         definition of GL_LINK_WARNING.
51207         * NEWS: Mention the change.
51208
51209 2008-10-18  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/fchdir.c: Don't include dirfd.h.
51212         * lib/fts.c: Likewise.
51213         * lib/getcwd.c: Likewise.
51214         * lib/glob.c: Likewise.
51215
51216         Move the dirfd() declaration to <dirent.h>.
51217         * lib/dirfd.h: Remove file.
51218         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51219         (dirfd): New declaration.
51220         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51221         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51222         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51223         HAVE_DECL_DIRFD.
51224         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51225         HAVE_DECL_DIRFD.
51226         * modules/dirfd (Files): Remove lib/dirfd.h.
51227         (Depends-on): Add dirent, extensions.
51228         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51229         (Include): Specify <dirent.h> instead of dirfd.h.
51230         * modules/dirent (Depends-on): Add link-warning.
51231         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51232         definition of GL_LINK_WARNING.
51233         * NEWS: Mention the change.
51234
51235 2008-10-18  Bruno Haible  <bruno@clisp.org>
51236
51237         Move the euidaccess() declaration to <unistd.h>.
51238         * lib/euidaccess.h: Remove file.
51239         * lib/unistd.in.h (euidaccess): New declaration.
51240         * lib/euidaccess.c: Don't include euidaccess.h.
51241         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51242         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51244         and HAVE_EUIDACCESS.
51245         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51246         (Depends-on): Add unistd.
51247         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51248         (Include): Specify <unistd.h> instead of euidaccess.h.
51249         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51250         HAVE_EUIDACCESS.
51251         * NEWS: Mention the change.
51252
51253 2008-10-18  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51256
51257         Move the getdomainname() declaration to <unistd.h>.
51258         * lib/getdomainname.h: Remove file.
51259         * lib/unistd.in.h (getdomainname): New declaration.
51260         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51261         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51262         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51263         HAVE_GETDOMAINNAME.
51264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51265         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51266         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51267         (Depends-on): Add unistd, extensions.
51268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51269         (Includes): Specify <unistd.h> instead of getdomainname.h.
51270         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51271         HAVE_GETDOMAINNAME.
51272         * NEWS: Mention the change.
51273
51274 2008-10-18  Bruno Haible  <bruno@clisp.org>
51275
51276         * modules/dirent: New file.
51277         * m4/dirent_h.m4: New file.
51278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51279         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51280         * modules/fchdir (Files): Remove lib/dirent.in.h.
51281         (Depends-on): Add dirent.
51282         (Makefile.am): Move rules to modules/dirent.
51283         * doc/posix-headers/dirent.texi: Mention the new module.
51284
51285 2008-10-18  Bruno Haible  <bruno@clisp.org>
51286
51287         Avoid -Wunused-parameter warnings in public gnulib header files.
51288         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51289         macro.
51290         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51291
51292 2008-10-18  Bruno Haible  <bruno@clisp.org>
51293
51294         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51295         * doc/glibc-functions/error.texi: Mention the module 'error'.
51296         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51297         * doc/glibc-functions/getdomainname.texi: Mention the module
51298         'getdomainname'.
51299         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51300         * doc/glibc-functions/getpagesize.texi: Mention the module
51301         'getpagesize'.
51302         * doc/glibc-functions/getusershell.texi: Mention the module
51303         'getusershell'.
51304         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51305         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51306         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51307         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51308         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51309         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51310         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51311         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51312         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51313         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51314         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51315         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51316         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51317         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51318
51319 2008-10-17  Bruno Haible  <bruno@clisp.org>
51320
51321         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51322         HP-UX and IRIX, use -0.0L.
51323         * tests/test-ceill.c (minus_zero): Likewise.
51324         * tests/test-floorl.c (minus_zero): Likewise.
51325         * tests/test-frexpl.c (minus_zero): Likewise.
51326         * tests/test-isnan.c (minus_zerol): Likewise.
51327         * tests/test-isnanl.h (minus_zero): Likewise.
51328         * tests/test-ldexpl.c (minus_zero): Likewise.
51329         * tests/test-roundl.c (minus_zero): Likewise.
51330         * tests/test-signbit.c (minus_zerol): Likewise.
51331         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51332         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51333         * tests/test-truncl.c (minus_zero): Likewise.
51334         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51335         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51336         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51337         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51338
51339 2008-10-17  Bruno Haible  <bruno@clisp.org>
51340
51341         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51342         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51343         that it gets activated only for gcc >= 3.0.
51344         * lib/dirent.in.h: Likewise.
51345         * lib/errno.in.h: Likewise.
51346         * lib/fcntl.in.h: Likewise.
51347         * lib/float.in.h: Likewise.
51348         * lib/iconv.in.h: Likewise.
51349         * lib/inttypes.in.h: Likewise.
51350         * lib/locale.in.h: Likewise.
51351         * lib/math.in.h: Likewise.
51352         * lib/netdb.in.h: Likewise.
51353         * lib/netinet_in.in.h: Likewise.
51354         * lib/search.in.h: Likewise.
51355         * lib/signal.in.h: Likewise.
51356         * lib/spawn.in.h: Likewise.
51357         * lib/stdarg.in.h: Likewise.
51358         * lib/stdint.in.h: Likewise.
51359         * lib/stdio.in.h: Likewise.
51360         * lib/stdlib.in.h: Likewise.
51361         * lib/string.in.h: Likewise.
51362         * lib/strings.in.h: Likewise.
51363         * lib/sys_file.in.h: Likewise.
51364         * lib/sys_ioctl.in.h: Likewise.
51365         * lib/sys_select.in.h: Likewise.
51366         * lib/sys_socket.in.h: Likewise.
51367         * lib/sys_stat.in.h: Likewise.
51368         * lib/sys_time.in.h: Likewise.
51369         * lib/sysexits.in.h: Likewise.
51370         * lib/time.in.h: Likewise.
51371         * lib/unistd.in.h: Likewise.
51372         * lib/wchar.in.h: Likewise.
51373         * lib/wctype.in.h: Likewise.
51374         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51375
51376 2008-10-17  Jim Meyering  <meyering@redhat.com>
51377
51378         ignore-value: don't depend on inline module
51379         * modules/ignore-value (Depends-on): Remove 'inline'.
51380         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51381         Suggestion from Bruno Haible.
51382
51383 2008-10-17  Bruno Haible  <bruno@clisp.org>
51384
51385         New implementation of condition variables for Win32.
51386         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51387         (gl_linked_waitqueue_t): New type.
51388         (gl_cond_t): Use it.
51389         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51390         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51391         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51392         (glthread_cond_init_func, glthread_cond_wait_func,
51393         glthread_cond_timedwait_func, glthread_cond_signal_func,
51394         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51395         Reimplemented on the basis of gl_linked_waitqueue_t.
51396         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51397         gl_waitqueue_t.
51398         (gl_rwlock_t): Update.
51399         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51400
51401 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51402
51403         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51404         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51405
51406 2008-10-17  Jim Meyering  <meyering@redhat.com>
51407
51408         ignore-value: new module
51409         * modules/ignore-value: New file.
51410         * lib/ignore-value.h: New file.
51411         * MODULES.html.sh (Compiler warning management): New section,
51412         just for this module.  More to come.
51413
51414 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51415
51416         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51417         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51418         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51419
51420 2008-10-16  Jim Meyering  <meyering@redhat.com>
51421
51422         openat-die.c: avoid 'no previous prototype' warning
51423         * lib/openat-die.c: Include "openat.h".
51424         Reported by Reuben Thomas <rrt@sc3d.org>.
51425
51426 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51427
51428         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51429         * lib/netdb.in.h: Fix typo.
51430         Reported by Bruno Haible  <bruno@clisp.org>
51431
51432         * lib/netdb.in.h: Include sys/socket.h for platforms without
51433         netdb.h, to get structures like hostent on MinGW.
51434         * modules/netdb (Depends-on): Add sys_socket.
51435
51436 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51437
51438         * modules/netdb, modules/netdb-tests: New file.
51439         * m4/netdb_h.m4: New file.
51440         * lib/netdb.in.h: Add, currently just an empty file pending
51441         definitions.
51442         * tests/test-netdb.c: New file.
51443         * doc/posix-headers/netdb.texi: Mention that we replace it if
51444         needed.
51445         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51446         netdb.
51447
51448 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51449
51450         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51451         with code.
51452
51453 2008-10-13  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/glthread/cond.c (glthread_cond_wait_func,
51456         glthread_cond_timedwait_func): Add a comment.
51457
51458 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51459
51460         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51461         * tests/test-select.c: Likewise,
51462
51463 2008-10-13  Bruno Haible  <bruno@clisp.org>
51464
51465         * lib/glthread/cond.c (glthread_cond_wait_func,
51466         glthread_cond_timedwait_func): Fix variable name.
51467         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51468
51469 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51470
51471         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51472         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51473         struct sockaddr.sa_len.
51474         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51475
51476 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51477
51478         * build-aux/pmccabe2html: Add css and css_url parameters.
51479
51480 2008-10-12  Bruno Haible  <bruno@clisp.org>
51481
51482         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51483         calling aclx_get.
51484         Reported by Rainer Tammer <tammer@tammer.net>.
51485
51486 2008-10-12  Bruno Haible  <bruno@clisp.org>
51487
51488         Use msvcrt aware primitives for creation/termination of Win32 threads.
51489         * lib/glthread/thread.c: Include <process.h>.
51490         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51491         (wrapper_func): Update signature.
51492         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51493
51494 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51495             Bruno Haible  <bruno@clisp.org>
51496
51497         Provide a Win32 implementation of the 'cond' module.
51498         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51499         * lib/glthread/cond.c (glthread_cond_init_func,
51500         glthread_cond_wait_func, glthread_cond_timedwait_func,
51501         glthread_cond_signal_func, glthread_cond_broadcast_func,
51502         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51503         * modules/cond (Dependencies): Add gettimeofday.
51504
51505 2008-10-11  Bruno Haible  <bruno@clisp.org>
51506
51507         Make sleep work on older versions of mingw.
51508         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51509         only whether it exists.
51510         * doc/posix-functions/sleep.texi: Mention the problem with older
51511         versions of mingw.
51512
51513 2008-10-11  Bruno Haible  <bruno@clisp.org>
51514
51515         New module 'shutdown'.
51516         * modules/shutdown: New file.
51517         * lib/sys_socket.in.h (shutdown): New declaration.
51518         * lib/winsock.c (shutdown): New function.
51519         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51520         GNULIB_SHUTDOWN.
51521         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51522         * doc/posix-functions/shutdown.texi: Document the new module.
51523
51524 2008-10-11  Jim Meyering  <meyering@redhat.com>
51525
51526         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51527
51528 2008-10-11  Bruno Haible  <bruno@clisp.org>
51529
51530         New module 'fclose'.
51531         * modules/fclose: New file.
51532         * lib/stdio.in.h (fclose): New declaration.
51533         * lib/fclose.c: New file.
51534         * m4/fclose.m4: New file.
51535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51536         REPLACE_FCLOSE.
51537         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51538         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51539         REPLACE_FCLOSE.
51540         * modules/close (Depends-on): fclose.
51541         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51542
51543 2008-10-11  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51546         set errno and don't call _close.
51547
51548 2008-10-10  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51551         ACL, not afterwards. Fixes test failure on Cygwin.
51552
51553 2008-10-09  Ben Pfaff  <blp@gnu.org>
51554
51555         * build-aux/announce-gen: Fix gnulib version related part of usage
51556         message.  Die with a useful error message if no tarballs are
51557         found.
51558
51559 2008-10-10  Jim Meyering  <meyering@redhat.com>
51560
51561         bootstrap: use git's --depth=N option only if it's supported
51562         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51563         recognize the --depth option.  Reported by Pádraig Brady.
51564
51565 2008-10-09  Bruno Haible  <bruno@clisp.org>
51566
51567         New module 'ioctl'.
51568         * modules/ioctl: New file.
51569         * lib/sys_socket.in.h (ioctl): Remove declaration.
51570         * lib/winsock.c: Include <sys/ioctl.h>.
51571         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51572         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51573         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51574         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51575         * doc/posix-functions/ioctl.texi: Mention the new module.
51576
51577 2008-10-09  Bruno Haible  <bruno@clisp.org>
51578
51579         New module 'sys_ioctl'.
51580         * lib/sys_ioctl.in.h: New file.
51581         * m4/sys_ioctl_h.m4: New file.
51582         * modules/sys_ioctl: New file.
51583         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51584
51585 2008-10-09  Bruno Haible  <bruno@clisp.org>
51586
51587         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51588         * lib/winsock.c: Include <stdarg.h>.
51589         (rpl_ioctl): Change to second argument 'int' and then varargs.
51590
51591 2008-10-09  Bruno Haible  <bruno@clisp.org>
51592
51593         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51594         when the sys_socket module is present and the system has <winsock2.h>.
51595
51596 2008-10-09  Bruno Haible  <bruno@clisp.org>
51597
51598         * doc/posix-functions/close.texi: Mention module 'close' instead of
51599         module 'sys_socket'.
51600
51601 2008-10-09  Bruno Haible  <bruno@clisp.org>
51602
51603         * doc/glibc-headers/sys_ioctl.texi: New file.
51604         * doc/gnulib.texi: Include it.
51605
51606 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51607             Bruno Haible  <bruno@clisp.org>
51608
51609         Combine the two replacements of 'close'.
51610         * lib/sys_socket.in.h (close): Define to a reminder to include
51611         <unistd.h>.
51612         (_gl_close_fd_maybe_socket): New declaration.
51613         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51614         * lib/winsock.c (close): Remove undefinition.
51615         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51616         needed for the gnulib module 'close'.
51617         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51618         define to an error symbol or to a warning, if suitable.
51619         * lib/close.c: Include <sys/socket.h>.
51620         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51621         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51622         UNISTD_H_HAVE_WINSOCK2_H.
51623         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51625         UNISTD_H_HAVE_WINSOCK2_H.
51626         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51627         (configure.ac): Set a module indicator.
51628         (Makefile.am): Substitute GNULIB_CLOSE.
51629         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51630         * modules/poll-tests (Depends-on): Add close.
51631         * modules/select-tests (Depends-on): Likewise.
51632
51633 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51634             Bruno Haible  <bruno@clisp.org>
51635
51636         New module 'close'.
51637         * modules/close: New file.
51638         * lib/unistd.in.h (close): Move declaration out of the
51639         FCHDIR_REPLACEMENT scope.
51640         (_gl_unregister_fd): New declaration.
51641         * lib/close.c: New file.
51642         * lib/fchdir.c (rpl_close): Remove function.
51643         * m4/close.m4: New file.
51644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51645         close.
51646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51647         REPLACE_CLOSE.
51648         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51649         REPLACE_CLOSE.
51650         * modules/fchdir (Depends-on): Add close.
51651
51652 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51653             Bruno Haible  <bruno@clisp.org>
51654
51655         * lib/fcntl.in.h (open): Simplify conditionals.
51656         (_gl_register_fd): New declaration.
51657         * lib/fchdir.c (rpl_open): Remove function.
51658         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51659         also.
51660         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51662         open.
51663
51664 2008-10-09  Jim Meyering  <meyering@redhat.com>
51665
51666         GNUmakefile: use the more name-space-friendly "_version"
51667         * top/GNUmakefile (_dummy): Update.
51668         (_version): Rename from "version".
51669
51670 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51671             Bruno Haible  <bruno@clisp.org>
51672
51673         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51674         rpl_close.
51675         (_gl_register_fd): New function, extracted from rpl_open.
51676         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51677         (rpl_open, rpl_opendir): Use _gl_register_fd.
51678
51679 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51680
51681         Fix organization of 'open' replacement.
51682         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51683         (gl_FUNC_OPEN): Use it.
51684         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51685
51686 2008-10-08  Bruno Haible  <bruno@clisp.org>
51687
51688         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51689
51690 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51691
51692         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51693         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51694         listen).
51695
51696 2008-10-08  Eric Blake  <ebb9@byu.net>
51697
51698         GNUmakefile: add 'make version' target
51699         * top/GNUmakefile (_curr-ver): Split version update rules...
51700         (version): ...into a target.
51701
51702 2008-10-07  Bruno Haible  <bruno@clisp.org>
51703
51704         Use a more portable replacement expression for -0.0L.
51705         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51706         instead of -0.0L. Fix m4 quotation.
51707
51708         * tests/test-signbit.c: Include <float.h>.
51709         (minus_zero): New variable.
51710         (test_signbitl): Use minus_zero instead of -zero.
51711         * modules/signbit-tests (Depends-on): Add float.
51712
51713         * tests/test-ceill.c: Include <float.h>.
51714         (zero): Remove variable.
51715         (minus_zero): New variable.
51716         (main): Use minus_zero instead of -zero.
51717         * modules/ceill-tests (Depends-on): Add float.
51718
51719         * tests/test-floorl.c: Include <float.h>.
51720         (zero): Remove variable.
51721         (minus_zero): New variable.
51722         (main): Use minus_zero instead of -zero.
51723         * modules/floorl-tests (Depends-on): Add float.
51724
51725         * tests/test-roundl.c: Include <float.h>.
51726         (zero): Remove variable.
51727         (minus_zero): New variable.
51728         (main): Use minus_zero instead of -zero.
51729         * modules/roundl-tests (Depends-on): Add float.
51730
51731         * tests/test-truncl.c: Include <float.h>.
51732         (zero): Remove variable.
51733         (minus_zero): New variable.
51734         (main): Use minus_zero instead of -zero.
51735         * modules/truncl-tests (Depends-on): Add float.
51736
51737         * tests/test-frexpl.c (zero): Remove variable.
51738         (minus_zero): New variable.
51739         (main): Use minus_zero instead of -zero.
51740         * modules/frexpl-tests (Depends-on): Add float.
51741
51742         * tests/test-isnan.c (zerol): Remove variable.
51743         (minus_zerol): New variable.
51744         (test_long_double): Use minus_zerol instead of -zerol.
51745         * modules/isnan-tests (Depends-on): Add float.
51746
51747         * tests/test-isnanl.h (zero): Remove variable.
51748         (minus_zero): New variable.
51749         (main): Use minus_zero instead of -zero.
51750         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51751         * modules/isnanl-tests (Depends-on): Add float.
51752
51753         * tests/test-ldexpl.c (zero): Remove variable.
51754         (minus_zero): New variable.
51755         (main): Use minus_zero instead of -zero.
51756         * modules/ldexpl-tests (Depends-on): Add float.
51757
51758         * tests/test-snprintf-posix.h (zerol): Remove variable.
51759         (minus_zerol): New variable.
51760         (test_function): Use minus_zerol instead of -zerol.
51761         * modules/snprintf-posix-tests (Depends-on): Add float.
51762         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51763
51764         * tests/test-sprintf-posix.h (zerol): Remove variable.
51765         (minus_zerol): New variable.
51766         (test_function): Use minus_zerol instead of -zerol.
51767         * modules/sprintf-posix-tests (Depends-on): Add float.
51768         * modules/vsprintf-posix-tests (Depends-on): Add float.
51769
51770         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51771         (minus_zerol): New variable.
51772         (test_function): Use minus_zerol instead of -zerol.
51773         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51774
51775         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51776         (minus_zerol): New variable.
51777         (test_function): Use minus_zerol instead of -zerol.
51778         * modules/vasprintf-posix-tests (Depends-on): Add float.
51779
51780 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51781
51782         * MODULES.html.sh (Support for building documentation): Mention
51783         pmccabe2html.  Sort entries.
51784
51785         Add pmccabe2html module, from gnupdf.
51786         * build-aux/pmccabe.css: New file.
51787         * build-aux/pmccabe2html: New file.
51788         * m4/pmccabe2html.m4: New file.
51789         * modules/pmccabe2html: New file.
51790
51791 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51792
51793         flock: new module
51794         * MODULES.html.sh: Add to list of modules.
51795         * lib/flock.c: flock implementation for Windows and Unix systems
51796         which have fcntl.
51797         * doc/glibc-functions/flock.texi: Update documentation.
51798         * lib/sys_file.in.h: <sys/file.h> header file.
51799         * m4/flock.m4: M4 macros.
51800         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51801         * modules/flock: flock module.
51802         * modules/flock-tests: flock tests module.
51803         * modules/sys_file: sys/file.h module.
51804         * tests/test-flock.c: test suite for flock.
51805
51806 2008-10-06  Jim Meyering  <meyering@redhat.com>
51807
51808         bootstrap: check for LT_INIT more portably still ;-)
51809         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51810         Spotted by Bruno Haible.
51811
51812 2008-10-06  Eric Blake  <ebb9@byu.net>
51813
51814         test-signbit: avoid tripping Irix cc bug on -0.0L
51815         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51816         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51817         entire testsuite consistent and avoids an Irix 6.2 bug.
51818
51819 2008-10-05  Bruno Haible  <bruno@clisp.org>
51820             Jim Meyering  <jim@meyering.net>
51821
51822         Add an option for ignoring EPIPE during close_stdout.
51823         * lib/closeout.h: Include <stdbool.h>.
51824         (close_stdout_set_ignore_EPIPE): New declaration.
51825         * lib/closeout.c: Include <stdbool.h>.
51826         (ignore_EPIPE): New variable.
51827         (close_stdout_set_ignore_EPIPE): New function.
51828         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51829         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51830         failure.
51831         * modules/closeout (Depends-on): Add stdbool.
51832
51833 2008-10-05  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/accept: New file.
51836         * modules/bind: New file.
51837         * modules/connect: New file.
51838         * modules/getpeername: New file.
51839         * modules/getsockname: New file.
51840         * modules/getsockopt: New file.
51841         * modules/listen: New file.
51842         * modules/recv: New file.
51843         * modules/recvfrom: New file.
51844         * modules/send: New file.
51845         * modules/sendto: New file.
51846         * modules/setsockopt: New file.
51847         * modules/socket: New file.
51848         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51849         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51850         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51851         the particular module is requested. Add a link warning when the
51852         particular module is not requested.
51853         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51854         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51855         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51856         the particular module is requested.
51857         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51858         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51859         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51860         * modules/sys_socket (Depends-on): Add link-warning.
51861         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51862         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51863         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51864         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51865         GL_LINK_WARNING.
51866         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51867         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51868         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51869         * doc/posix-functions/getpeername.texi: Mention the new module
51870         'getpeername'.
51871         * doc/posix-functions/getsockname.texi: Mention the new module
51872         'getsockname'.
51873         * doc/posix-functions/getsockopt.texi: Mention the new module
51874         'getsockopt'.
51875         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51876         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51877         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51878         * doc/posix-functions/send.texi: Mention the new module 'send'.
51879         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51880         * doc/posix-functions/setsockopt.texi: Mention the new module
51881         'setsockopt'.
51882         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51883         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51884         listen, connect, accept.
51885         * modules/select-tests (Depends-on): Likewise.
51886
51887 2008-10-05  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/winsock.c (strerror): Remove unused #undef.
51890         (rpl_close): Remove unused local variable.
51891
51892         * modules/sys_socket (Depends-on); Add errno.
51893
51894 2008-10-05  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51897         (select): Add a link warning when the 'select' module is not used.
51898         * modules/sys_select (Depends-on): Add link-warning.
51899         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51900         Suggested by Paolo Bonzini.
51901
51902 2008-10-05  Jim Meyering  <meyering@redhat.com>
51903
51904         bootstrap: check for LT_INIT more portably
51905         * build-aux/bootstrap: Avoid using grep -E, since it's not
51906         portable enough.  Suggestion from Bruno Haible.
51907
51908 2008-10-05  Bruno Haible  <bruno@clisp.org>
51909
51910         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51911         as being fixed by gnulib.
51912
51913 2008-10-05  Bruno Haible  <bruno@clisp.org>
51914
51915         * modules/select-tests: New file, mostly copied from
51916         modules/sys_select-tests.
51917         * tests/test-select.c: New file, mostly copied from
51918         tests/test-sys_select.c.
51919         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51920         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51921         (Makefile.am): Remove test_sys_select_LDADD.
51922
51923         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51924         to an undefined symbol, for an error message.
51925         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51926         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51927         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51928         winsock-select.c here.
51929         * modules/sys_select (Files): Remove lib/winsock-select.c.
51930         (Depends-on): Remove alloca.
51931         (Makefile.am): Substitute GNULIB_SELECT.
51932         * modules/select: New file.
51933         * doc/posix-functions/select.texi: Update.
51934
51935 2008-10-05  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51938         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51939         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51940         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51941         getdtablesize.
51942         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51943         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51944
51945 2008-10-05  Bruno Haible  <bruno@clisp.org>
51946
51947         * modules/getdtablesize-tests: New file.
51948         * tests/test-getdtablesize.c: New file.
51949
51950         New module 'getdtablesize'.
51951         * lib/unistd.in.h (getdtablesize): New declaration.
51952         * lib/getdtablesize.c: New file.
51953         * m4/getdtablesize.m4: New file.
51954         * modules/getdtablesize: New file.
51955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51956         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51957         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51958         HAVE_GETDTABLESIZE.
51959         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51960
51961 2008-10-05  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/sched (Makefile.am): Fix typo.
51964         Reported by Simon Josefsson.
51965
51966 2008-10-05  Jim Meyering  <meyering@redhat.com>
51967
51968         bootstrap: check for LT_INIT, too
51969         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51970         are deprecated.  Suggestion from Ralf Wildenhues.
51971
51972 2008-10-05  Bruno Haible  <bruno@clisp.org>
51973
51974         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51975         overriding them by ours.
51976         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51977
51978 2008-10-05  Jim Meyering  <meyering@redhat.com>
51979
51980         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51981         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51982         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51983
51984 2008-10-04  Bruno Haible  <bruno@clisp.org>
51985
51986         * modules/dup2 (License): Change to LGPLv2+.
51987         * modules/sleep (License): Likewise.
51988         * modules/perror (License): Likewise.
51989         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51990         Blake.
51991         * modules/signal (License): Likewise.
51992         * modules/sigprocmask (License): Likewise.
51993         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51994         Meyering.
51995
51996 2008-10-04  Bruno Haible  <bruno@clisp.org>
51997
51998         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51999         Reported by Rainer Tammer <tammer@tammer.net>.
52000
52001 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52002             Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52005         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52006         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52007
52008 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52009
52010         filevercmp: new module
52011         * lib/filevercmp.h: New function filevercmp comparing version strings.
52012         * lib/filevercmp.c: Implementation of filevercmp function.
52013         * modules/filevercmp: Module metadata.
52014         * tests/test-filevercmp.c: Unit test for new module.
52015         * modules/filevercmp-tests: Unit test metadata.
52016         * MODULES.html.sh: Add filevercmp module.
52017
52018 2008-10-03  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/c-ctype.h: Add comment.
52021         Reported by Jim Meyering.
52022
52023 2008-10-02  Bruno Haible  <bruno@clisp.org>
52024
52025         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52026
52027 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52028
52029         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52030         name of bootstrap.conf accordingly.
52031
52032 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52033
52034         * build-aux/bootstrap: Install git-merge-changelog configuration
52035         items into .gitconfig if needed.
52036
52037 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52038
52039         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52040         git repository, and initialize/update it accordingly.
52041
52042 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52043
52044         * modules/fsync-tests: New file.
52045         * tests/test-fsync.c: New file.
52046
52047         New module 'fsync'.
52048         * lib/fsync.c: New file.
52049         * m4/fsync.m4: New file.
52050         * modules/fsync: New file.
52051         * lib/unistd.in.h (fsync): New declaration.
52052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52053         GNULIB_FSYNC and HAVE_FSYNC.
52054         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52055         * MODULES.html.sh (posix_functions): Add fsync.
52056         * doc/posix-functions/fsync.texi: Mention the new module.
52057
52058 2008-10-02  Jim Meyering  <meyering@redhat.com>
52059
52060         fts.c: sync with similar code from coreutils' remove.c
52061         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52062         Guard also with "#if defined __linux__", since for now at least,
52063         this code is Linux-kernel-specific.
52064
52065 2008-10-02  Jim Meyering  <meyering@redhat.com>
52066
52067         fts: bug fixes
52068         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52069         Include <sys/vfs.h>, not <sys/statfs.h>.
52070
52071         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52072         Include <sys/vfs.h>, not <sys/statfs.h>.
52073
52074 2008-10-01  Bruno Haible  <bruno@clisp.org>
52075
52076         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52078         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52079         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52080         * doc/posix-functions/posix_spawnp.texi: Likewise.
52081         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52082         whether posix_spawn actually works.
52083         * m4/pipe.m4 (gl_PIPE): Likewise.
52084         * modules/execute (Files): Add m4/posix_spawn.m4.
52085         * modules/pipe (Files): Add m4/posix_spawn.m4.
52086         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52087
52088 2008-10-01  Jim Meyering  <meyering@redhat.com>
52089
52090         remove trailing spaces
52091         * NEWS: Likewise.
52092         * lib/poll.c (poll): Likewise.
52093         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52094         * lib/winsock.c (rpl_close): Likewise.
52095         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52096         * modules/yield: Likewise.
52097         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52098         * tests/test-sys_select.c (connect_to_socket): Likewise.
52099
52100         fts.c: adjust a new interface to be more generally useful
52101         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52102         (fts_build): Adjust caller.
52103
52104 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52105
52106         * modules/cond-tests: New file.
52107         * tests/test-cond.c: New file.
52108
52109 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52110             Bruno Haible  <bruno@clisp.org>
52111
52112         * modules/cond (Dependencies): Add errno, time.
52113         * lib/glthread/cond.h: Include <time.h>.
52114         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52115         across platforms.
52116
52117 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52118             Bruno Haible  <bruno@clisp.org>
52119
52120         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52121
52122 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52123             Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/tls-tests (Depends-on): Add thread, yield.
52126         (configure.ac): Remove all checks.
52127         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52128         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52129         gl_thread_self): Remove definitions. Include glthread/thread.h and
52130         glthread/yield.h instead.
52131         (test_tls): Pass an additional NULL argument to gl_thread_join.
52132
52133 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52134             Bruno Haible  <bruno@clisp.org>
52135
52136         * modules/lock-tests (Depends-on): Add thread, yield.
52137         (configure.ac): Remove all checks.
52138         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52139         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52140         gl_thread_self): Remove definitions. Include glthread/thread.h and
52141         glthread/yield.h instead.
52142         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52143         additional NULL argument to gl_thread_join.
52144
52145 2008-09-30  Bruno Haible  <bruno@clisp.org>
52146
52147         Fix the Win32 implementation of the 'thread' module.
52148         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52149         pointer type.
52150         (gl_thread_self): Invoke gl_thread_self_func.
52151         (gl_thread_self_func): New declaration.
52152         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52153         (do_init_self_key, init_self_key): New functions.
52154         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52155         Remove some fields.
52156         (running_threads, running_lock): Remove variables.
52157         (get_current_thread_handle): New function.
52158         (gl_thread_self_func, wrapper_func, glthread_create_func,
52159         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52160         simplified.
52161
52162 2008-09-30  Bruno Haible  <bruno@clisp.org>
52163
52164         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52165         files.
52166
52167 2008-09-30  Jim Meyering  <meyering@redhat.com>
52168
52169         fts.m4: correct the test for statfs.f_type
52170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52171         when checking for statfs.f_type.
52172
52173 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52174
52175         tests: avoid some compiler warnings
52176         * tests/test-memchr.c (main): Pass NULL indirectly.
52177         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52178
52179 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52180
52181         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52182         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52183         exactly specified dayshifts.
52184         (dayshift): New rule.
52185         (rel): Add dayshift.
52186         (relative_time_table) [tomorrow, yesterday, today, now]:
52187         Use tDAY_SHIFT in place of tDAY_UNIT.
52188         * tests/test-getdate.c: Add tests for now-disallowed countable
52189         dayshifts, e.g., "4 yesterday ago".
52190
52191 2008-09-29  Bruno Haible  <bruno@clisp.org>
52192
52193         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52194         * tests/test-posix_spawn1.in.sh: Renamed from
52195         tests/test-posix_spawn.in.sh.
52196         * tests/test-posix_spawn2.c: New file.
52197         * tests/test-posix_spawn2.in.sh: New file.
52198         * modules/posix_spawnp-tests (Files): Update.
52199         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52200
52201 2008-09-29  Bruno Haible  <bruno@clisp.org>
52202
52203         Propagate effects of putenv/setenv/unsetenv to child processes.
52204         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52205         * lib/pipe.c (create_pipe): Likewise.
52206
52207 2008-09-29  Bruno Haible  <bruno@clisp.org>
52208
52209         Enable use of shell scripts as executables in mingw.
52210         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52211         run the program as a shell script.
52212         * lib/pipe.c (create_pipe): Likewise.
52213         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52214         resulting array.
52215
52216 2008-09-29  Eric Blake  <ebb9@byu.net>
52217
52218         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52219
52220 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52221
52222         * doc/posix-functions/accept.texi: Update mingw problems.
52223         * doc/posix-functions/bind.texi: Update mingw problems.
52224         * doc/posix-functions/close.texi: Update mingw problems.
52225         * doc/posix-functions/connect.texi: Update mingw problems.
52226         * doc/posix-functions/getpeername.texi: Update mingw problems.
52227         * doc/posix-functions/getsockname.texi: Update mingw problems.
52228         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52229         * doc/posix-functions/ioctl.texi: Update mingw problems.
52230         * doc/posix-functions/listen.texi: Update mingw problems.
52231         * doc/posix-functions/recv.texi: Update mingw problems.
52232         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52233         * doc/posix-functions/select.texi: Update mingw problems.
52234         * doc/posix-functions/send.texi: Update mingw problems.
52235         * doc/posix-functions/sendto.texi: Update mingw problems.
52236         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52237         * doc/posix-functions/socket.texi: Update mingw problems.
52238
52239 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52240             Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/sys_select.in.h: Include sys/time.h.
52243         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52244         * modules/sys_select: Depend on sys_time.
52245         * tests/test-sys_select.c: Test that sys/select.h defines struct
52246         timeval fully.
52247
52248 2008-09-29  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52251         * lib/sys_select.in.h: Likewise.
52252
52253 2008-09-29  Bruno Haible  <bruno@clisp.org>
52254
52255         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52256
52257 2008-09-29  Bruno Haible  <bruno@clisp.org>
52258
52259         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52260         Set LIBSOCKET instead of augmenting LIBS.
52261         * modules/sockets (Link): New section.
52262         * modules/sockets-tests (test_sockets_LDADD): New variable.
52263         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52264         * modules/poll-tests (test_poll_LDADD): New variable.
52265         * NEWS: Document the change.
52266
52267 2008-09-29  Bruno Haible  <bruno@clisp.org>
52268
52269         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52270         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52271         ARPA_INET_H directly.
52272         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52273
52274 2008-09-28  Bruno Haible  <bruno@clisp.org>
52275
52276         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52277         from gl_HEADER_SYS_SOCKET.
52278         (gl_HEADER_SYS_SOCKET): Invoke it.
52279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52280
52281 2008-09-28  Bruno Haible  <bruno@clisp.org>
52282
52283         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52284         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52285         Needed on OSF/1 4.0.
52286
52287 2008-09-28  Bruno Haible  <bruno@clisp.org>
52288
52289         Override open more carefully.
52290         * lib/open.c (orig_open): New function.
52291         (rpl_open): Use orig_open instead of open.
52292         * lib/fcntl.in.h: Add special invocation convention.
52293         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52294         (gl_FUNC_OPEN): Invoke it.
52295
52296         Override freopen more carefully.
52297         * lib/freopen.c (orig_freopen): New function.
52298         (rpl_freopen): Use orig_freopen instead of freopen.
52299         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52300         (gl_FUNC_FREOPEN): Invoke it.
52301
52302         Override fopen more carefully.
52303         * lib/fopen.c (orig_fopen): New function.
52304         (rpl_fopen): Use orig_fopen instead of fopen.
52305         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52306         (gl_FUNC_FOPEN): Invoke it.
52307         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52308
52309 2008-09-28  Bruno Haible  <bruno@clisp.org>
52310
52311         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52312         SIGPIPE.
52313
52314 2008-09-28  Bruno Haible  <bruno@clisp.org>
52315
52316         * tests/test-sigaction.c (handler, main): Disable the check whether
52317         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52318         glibc systems with LinuxThreads.
52319
52320 2008-09-28  Bruno Haible  <bruno@clisp.org>
52321
52322         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52323
52324         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52325         with AIX xlc.
52326         * lib/fcntl.in.h (open): Likewise.
52327         Reported by Rainer Tammer <tammer@tammer.net>.
52328
52329 2008-09-28  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/posix_spawnp-tests: New file.
52332         * tests/test-posix_spawn.c: New file.
52333         * tests/test-posix_spawn.in.sh: New file.
52334
52335         New module 'posix_spawnp'.
52336         * modules/posix_spawnp: New file.
52337         * lib/spawnp.c: New file, from GNU libc with modifications.
52338         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52339
52340         New module 'posix_spawn'.
52341         * modules/posix_spawn: New file.
52342         * lib/spawn.c: New file, from GNU libc with modifications.
52343         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52344
52345         New module 'posix_spawnattr_destroy'.
52346         * modules/posix_spawnattr_destroy: New file.
52347         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52348         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52349         module.
52350
52351         New module 'posix_spawnattr_setsigmask'.
52352         * modules/posix_spawnattr_setsigmask: New file.
52353         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52354         modifications.
52355         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52356         new module.
52357
52358         New module 'posix_spawnattr_getsigmask'.
52359         * modules/posix_spawnattr_getsigmask: New file.
52360         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52361         modifications.
52362         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52363         new module.
52364
52365         New module 'posix_spawnattr_setsigdefault'.
52366         * modules/posix_spawnattr_setsigdefault: New file.
52367         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52368         modifications.
52369         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52370         new module.
52371
52372         New module 'posix_spawnattr_getsigdefault'.
52373         * modules/posix_spawnattr_getsigdefault: New file.
52374         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52375         modifications.
52376         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52377         new module.
52378
52379         New module 'posix_spawnattr_setschedpolicy'.
52380         * modules/posix_spawnattr_setschedpolicy: New file.
52381         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52382         modifications.
52383         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52384         new module.
52385
52386         New module 'posix_spawnattr_getschedpolicy'.
52387         * modules/posix_spawnattr_getschedpolicy: New file.
52388         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52389         modifications.
52390         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52391         new module.
52392
52393         New module 'posix_spawnattr_setschedparam'.
52394         * modules/posix_spawnattr_setschedparam: New file.
52395         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52396         modifications.
52397         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52398         new module.
52399
52400         New module 'posix_spawnattr_getschedparam'.
52401         * modules/posix_spawnattr_getschedparam: New file.
52402         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52403         modifications.
52404         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52405         new module.
52406
52407         New module 'posix_spawnattr_setpgroup'.
52408         * modules/posix_spawnattr_setpgroup: New file.
52409         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52410         modifications.
52411         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52412         module.
52413
52414         New module 'posix_spawnattr_getpgroup'.
52415         * modules/posix_spawnattr_getpgroup: New file.
52416         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52417         modifications.
52418         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52419         module.
52420
52421         New module 'posix_spawnattr_setflags'.
52422         * modules/posix_spawnattr_setflags: New file.
52423         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52424         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52425         module.
52426
52427         New module 'posix_spawnattr_getflags'.
52428         * modules/posix_spawnattr_getflags: New file.
52429         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52430         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52431         module.
52432
52433         New module 'posix_spawnattr_init'.
52434         * modules/posix_spawnattr_init: New file.
52435         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52436         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52437         module.
52438
52439         New module 'posix_spawn_file_actions_destroy'.
52440         * modules/posix_spawn_file_actions_destroy: New file.
52441         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52442         modifications.
52443         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52444         the new module.
52445
52446         New module 'posix_spawn_file_actions_addopen'.
52447         * modules/posix_spawn_file_actions_addopen: New file.
52448         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52449         modifications.
52450         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52451         the new module.
52452
52453         New module 'posix_spawn_file_actions_adddup2'.
52454         * modules/posix_spawn_file_actions_adddup2: New file.
52455         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52456         modifications.
52457         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52458         the new module.
52459
52460         New module 'posix_spawn_file_actions_addclose'.
52461         * modules/posix_spawn_file_actions_addclose: New file.
52462         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52463         modifications.
52464         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52465         the new module.
52466
52467         New module 'posix_spawn_file_actions_init'.
52468         * modules/posix_spawn_file_actions_init: New file.
52469         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52470         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52471         new module.
52472
52473         New module 'posix_spawn-internal'.
52474         * modules/posix_spawn-internal: New file.
52475         * lib/spawn_int.h: New file, from GNU libc with modifications.
52476         * lib/spawni.c: New file, from GNU libc with modifications.
52477         * m4/posix_spawn.m4: New file.
52478
52479         New module 'spawn'.
52480         * modules/spawn: New file.
52481         * lib/spawn.in.h: New file, from GNU libc with modifications.
52482         * m4/spawn_h.m4: New file.
52483         * doc/posix-headers/spawn.texi: Mention the new module.
52484
52485 2008-09-28  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/sched-tests: New file.
52488         * tests/test-sched.c: New file.
52489
52490         New module 'sched'.
52491         * modules/sched: New file.
52492         * lib/sched.in.h: New file.
52493         * m4/sched_h.m4: New file.
52494         * doc/posix-headers/sched.texi: Mention the new module.
52495
52496 2008-09-27  Eric Blake  <ebb9@byu.net>
52497
52498         Fix previous patch, and tweak references to $0.
52499         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52500         (func_version, func_gnulib_dir): Don't call this program
52501         gnulib-tool.
52502         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52503         with using $0 in function.
52504         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52505         (func_fatal_error): Reuse the name the user invoked us with.
52506
52507 2008-09-27  Bruno Haible  <bruno@clisp.org>
52508
52509         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52510         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52511         (gl_ICONV_H): Not here.
52512         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52513         instead of assigning ICONV_H directly.
52514
52515         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52516         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52517         WCHAR_H directly.
52518
52519 2008-09-27  Bruno Haible  <bruno@clisp.org>
52520
52521         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52522         * modules/arpa_inet (Depends-on): Add link-warning.
52523         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52524         * modules/unistd (Makefile.am): Likewise.
52525
52526 2008-09-26  Bruno Haible  <bruno@clisp.org>
52527
52528         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52529         variables.
52530         (func_version): Essentially copied from gnulib-tool.
52531         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52532         func_readlink): Copied from gnulib-tool.
52533
52534 2008-09-26  Bruno Haible  <bruno@clisp.org>
52535
52536         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52537         invoking git-version-gen.
52538
52539 2008-09-26  Bruno Haible  <bruno@clisp.org>
52540
52541         * posix-modules: Update to directory names changed on 2008-01-19.
52542         Remove commas in output before splitting into words. No more need to
52543         avoid 'ftruncate' since 2007-02-19.
52544
52545 2008-09-26  Bruno Haible  <bruno@clisp.org>
52546
52547         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52548
52549 2008-09-26  Bruno Haible  <bruno@clisp.org>
52550
52551         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52552         * modules/fwriteerror (Depends-on): Add errno.
52553
52554 2008-09-26  Bruno Haible  <bruno@clisp.org>
52555
52556         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52557         * tests/test-vc-list-files-cvs.sh: Likewise.
52558
52559 2008-09-26  Bruno Haible  <bruno@clisp.org>
52560
52561         * doc/posix-headers/sys_resource.texi: Reorder items.
52562
52563 2008-09-26  Jim Meyering  <meyering@redhat.com>
52564
52565         fts: tweak inode comparison function
52566         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52567         inode numbers, as documented.
52568
52569         fts: sort dirent entries on inode number before traversing
52570         This avoids a quadratic, seek-related performance penalty when
52571         operating on a directory containing many entries (measurable at 10k;
52572         3.5 hours at 2 million entries with a cold cache) on certain types
52573         of file systems, including ext3 and ext4, but not tmpfs.
52574         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52575         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52576         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52577         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52578         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52579         (fts_build): Set the stat.st_ino member from D_INO.
52580         If it is likely to be useful, sort dirent entries on inode number.
52581
52582         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52583         and the struct statfs.f_type member.
52584         * modules/fts (Depends-on): Add d-ino.
52585
52586 2008-09-26  Bruno Haible  <bruno@clisp.org>
52587
52588         * modules/sigpipe-die (Depends-on): Add sigpipe.
52589
52590         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52591         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52592         and GNULIB_STDIO_H_SIGPIPE are set.
52593         * lib/stdio-write.c: New file.
52594         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52595         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52596         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52597         REPLACE_STDIO_WRITE_FUNCS.
52598         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52599         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52600         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52601         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52602         * modules/stdio (Files): Add lib/stdio-write.c.
52603         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52604         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52605         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52606         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52607         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52608         REPLACE_FPRINTF_POSIX.
52609         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52610         REPLACE_PRINTF_POSIX.
52611         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52612         REPLACE_VFPRINTF_POSIX.
52613         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52614         REPLACE_VPRINTF_POSIX.
52615         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52616         SIGPIPE issue.
52617         * doc/posix-functions/fputc.texi: Likewise.
52618         * doc/posix-functions/fputs.texi: Likewise.
52619         * doc/posix-functions/fwrite.texi: Likewise.
52620         * doc/posix-functions/printf.texi: Likewise.
52621         * doc/posix-functions/putc.texi: Likewise.
52622         * doc/posix-functions/putchar.texi: Likewise.
52623         * doc/posix-functions/puts.texi: Likewise.
52624         * doc/posix-functions/vfprintf.texi: Likewise.
52625         * doc/posix-functions/vprintf.texi: Likewise.
52626
52627         * modules/safe-write (Depends-on): Add write.
52628
52629         * modules/sigpipe-tests: New file.
52630         * tests/test-sigpipe.c: New file.
52631         * tests/test-sigpipe.sh: New file.
52632
52633         * modules/write: New file.
52634         * lib/unistd.in.h: Include <sys/types.h>.
52635         (write): New declaration.
52636         * lib/write.c: New file.
52637         * m4/write.m4: New file.
52638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52639         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52640         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52641         GNULIB_WRITE, REPLACE_WRITE.
52642         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52643         and the SIGPIPE issue.
52644
52645         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52646         (raise): New declaration.
52647         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52648         (ext_signal): New function.
52649         (rpl_raise): New function.
52650         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52651         GNULIB_SIGNAL_H_SIGPIPE.
52652         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52653         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52654
52655         * modules/sigpipe: New file.
52656         * m4/sigpipe.m4: New file.
52657
52658 2008-09-25  Derek Price  <derek@ximbiot.com>
52659             Bruno Haible  <bruno@clisp.org>
52660
52661         * gnulib-tool (func_import): Report all license incompatibilities, not
52662         just the first one.
52663
52664 2008-09-25  Bruno Haible  <bruno@clisp.org>
52665
52666         * gnulib-tool (func_import): When computing the edits, consider not
52667         only the Makefile.ams that exist but also those that will be generated.
52668
52669 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52670
52671         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52672         fixes gnulib-tool --test warning about duplicate dependency.
52673
52674 2008-09-25  Bruno Haible  <bruno@clisp.org>
52675
52676         * gnulib-tool: Don't ask the user to perform edits in the generated
52677         Makefile.ams.
52678         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52679         apply to the Makefile.am being generated.
52680         (func_emit_tests_Makefile_am): Execute edits that apply to the
52681         Makefile.am being generated.
52682         (func_import): Setup list of Makefile.am edits before emitting the
52683         Makefile.ams, not at the end.
52684         (func_create_testdir): Update.
52685         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52686
52687 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52688
52689         * gnulib-tool (func_import): Store the --tests-base option in the
52690         comment in gnulib-cache.m4.
52691
52692 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52693
52694         * NEWS: Document increased portability that sys_select now provides.
52695
52696         * lib/sys_select.in.h: Install select wrapper.
52697         * lib/sys_socket.in.h: Use more descriptive name when there is no
52698         select wrapper.
52699         * lib/winsock-select.c: New.
52700         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52701         Require gl_HEADER_SYS_SOCKET.
52702         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52703         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52704         * tests/test-sys_select.c: Add functional tests.
52705
52706 2008-09-24  Eric Blake  <ebb9@byu.net>
52707
52708         open, fopen: close fd leak in last patch
52709         * lib/open.c (rpl_open): Close fd before returning error.
52710         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52711         * doc/posix-functions/open.texi (open): Document that Irix also
52712         has the bug.
52713         * doc/posix-functions/fopen.texi (fopen): Likewise.
52714         Reported by Paolo Bonzini.
52715
52716 2008-09-24  Bruno Haible  <bruno@clisp.org>
52717
52718         Ensure that a filename ending in a slash cannot be used to access a
52719         non-directory.
52720         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52721         to check whether it's really a directory.
52722         * lib/fopen.c: Include fcntl.h, unistd.h.
52723         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52724         and fdopen().
52725         * modules/fopen (Depends-on): Add unistd.
52726         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52727         * tests/test-fopen.c (main): Likewise.
52728         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52729         * doc/posix-functions/fopen.texi: Likewise.
52730         Reported by Eric Blake.
52731
52732 2008-09-23  Eric Blake  <ebb9@byu.net>
52733
52734         c-stack: avoid compiler optimizations when provoking overflow
52735         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52736         recursion harder to optimize, to ensure a stack overflow occurs.
52737         * tests/test-c-stack.c (recurse): Likewise.
52738         Borrowed from libsigsegv.
52739
52740         c-stack: work around Irix sigaltstack bug
52741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52742         whether sigaltstack uses wrong end of stack_t (copied in part from
52743         libsigsegv).
52744         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52745         Irix bug, without requiring an over-allocation.
52746         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52747         bug.
52748
52749         fopen: document mingw bug on directories
52750         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52751         not allowing a stream visiting a directory, even though reading
52752         from such a stream is not portable.
52753
52754 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52755
52756         * lib/poll.c: Rewrite.
52757         * modules/poll: Depend on alloca.
52758
52759 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52760
52761         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52762         instead define prototypes for a full set of wrappers.  Ensure
52763         that Cygwin does not use the compatibility code, which is only
52764         for MinGW.
52765         * lib/winsock.c: New.
52766         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52767         * modules/sys_socket: Add lib/winsock.c.
52768
52769         * modules/poll-tests: Add errno and perror.
52770         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52771
52772 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52773
52774         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52775
52776 2008-09-23  Bruno Haible  <bruno@clisp.org>
52777
52778         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52779         * doc/glibc-functions/*: Likewise.
52780
52781 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52782
52783         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52784         success.
52785
52786 2008-09-22  Eric Blake  <ebb9@byu.net>
52787             Bruno Haible  <bruno@clisp.org>
52788
52789         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52790         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52791         supply %A but mishandle pseudo-NaN.
52792         Reported by Simon Josefsson.
52793
52794 2008-09-21  Bruno Haible  <bruno@clisp.org>
52795
52796         * tests/test-lock.c (main): Tweak skip message.
52797         * tests/test-tls.c (main): Likewise.
52798
52799 2008-09-21  Bruno Haible  <bruno@clisp.org>
52800
52801         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52802         whether 'struct sigaction' has sa_sigaction here...
52803         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52804         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52805
52806 2008-09-21  Bruno Haible  <bruno@clisp.org>
52807
52808         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52809         section.
52810         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52811         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52812         the new section.
52813         (Support for obsolete systems lacking POSIX:2001): New section.
52814         (String handling <string.h>): Move strdup to the new section.
52815         Suggested by Simon Josefsson and Paolo Bonzini.
52816
52817 2008-09-21  Bruno Haible  <bruno@clisp.org>
52818
52819         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52820         exponents in %e and %g results on 'long double'. Needed for mingw's
52821         improved *printf functions.
52822         * tests/test-vasprintf-posix.c (test_function): Likewise.
52823         * tests/test-snprintf-posix.h (test_function): Likewise.
52824         * tests/test-sprintf-posix.h (test_function): Likewise.
52825         Reported by Eric Blake.
52826
52827 2008-09-21  Bruno Haible  <bruno@clisp.org>
52828
52829         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52830         * tests/test-sprintf-posix.h (test_function): Likewise.
52831
52832 2008-09-21  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/getpass (Depends-on): Add strdup-posix.
52835
52836         New module 'strdup-posix'.
52837         * modules/strdup-posix: New file.
52838         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52839         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52841         REPLACE_STRDUP.
52842         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52843         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52845         strdup-posix.
52846
52847         * modules/strdup (Depends-on): Remove malloc-posix.
52848
52849 2008-09-20  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52852         Wildenhues.
52853
52854 2008-09-20  Bruno Haible  <bruno@clisp.org>
52855
52856         Ensure that wint_t gets defined on IRIX 5.3.
52857         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52858         * lib/wctype.in.h (wint_t): Likewise.
52859         (__wctype_wint_t): Remove type.
52860         (isw*): Use wint_t instead of __wctype_wint_t.
52861         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52862         * modules/wchar (Files): Add m4/wint_t.m4.
52863         (Makefile.am): Substitute HAVE_WINT_T.
52864         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52865         * tests/test-wctype.c: Check that wint_t is defined.
52866         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52867         * doc/posix-headers/wctype.texi: Likewise.
52868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52869
52870 2008-09-18  Bruno Haible  <bruno@clisp.org>
52871
52872         * gnulib-tool (func_exit): Update comment.
52873
52874 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52875
52876         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52877         assumes strdup exists and does not depend on strdup to return
52878         ENOMEM on out of memory conditions.
52879
52880 2008-09-18  Bruno Haible  <bruno@clisp.org>
52881
52882         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52883         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52884         digits for the exponent.
52885
52886 2008-09-18  Jim Meyering  <meyering@redhat.com>
52887             Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/vasnprintf.c (decimal_point_char): Define also if
52890         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52891
52892 2008-09-16  Bruno Haible  <bruno@clisp.org>
52893         and Eric Blake  <ebb9@byu.net>
52894
52895         vasnprintf: support Irix 5.3
52896         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52897         that mishandle long double infinity.
52898         Reported by Tom G. Christensen.
52899
52900 2008-09-16  Bruno Haible  <bruno@clisp.org>
52901
52902         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52903         Solaris 9.
52904         * doc/glibc-functions/alphasort.texi: Likewise.
52905         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52906
52907 2008-09-16  Jim Meyering  <meyering@redhat.com>
52908
52909         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52910         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52911         a umask modification leak out of a subshell.  Otherwise, the
52912         opensolaris /bin/sh would be accepted and thus cause unwarranted
52913         failures in the coreutils test suite.
52914
52915 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52916
52917         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52918         to succeed.
52919
52920 2008-09-16  Jim Meyering  <meyering@redhat.com>
52921
52922         avoid spurious test failure when library is built without ACL support
52923         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52924         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52925         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52926         * tests/test-copy-acl.sh: Likewise.
52927
52928 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52929
52930         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52931         based on character occurrence counts.
52932
52933 2008-09-15  Eric Blake  <ebb9@byu.net>
52934
52935         tests: avoid some compiler warnings
52936         * tests/test-memchr.c (main): Pass NULL indirectly.
52937         * tests/test-closein.c (main): Avoid unused variable.
52938
52939 2008-09-15  Bruno Haible  <bruno@clisp.org>
52940
52941         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52942         are missing on OpenBSD 4.0 individually.
52943         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52944
52945 2008-09-15  Bruno Haible  <bruno@clisp.org>
52946
52947         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52948         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52949         * doc/posix-functions/perror.texi: Likewise.
52950         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52951         is missing.
52952         Reported by Eric Blake.
52953
52954         * lib/errno.in.h: Use replacement values >= 2000.
52955         Reported by Eric Blake.
52956
52957 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52958
52959         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52960         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52961         limit.
52962         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52963         compareseq was aborted.
52964
52965 2008-09-14  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52968         yvec_edit_count.
52969         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52970         (fstrcmp_bounded): Simplify result computation accordingly.
52971
52972 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52973
52974         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52975         (fstrcmp): Define in terms of fstrcmp_bounded.
52976         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52977         lower_bound argument.
52978         Return quickly if the result is certainly < lower_bound.
52979         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52980
52981 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52982
52983         * lib/diffseq.h (EARLY_ABORT): New macro.
52984         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52985         evaluates to true.
52986
52987 2008-09-14  Bruno Haible  <bruno@clisp.org>
52988
52989         * modules/perror-tests: New file.
52990         * tests/test-perror.sh: New file.
52991         * tests/test-perror.c: New file.
52992
52993         New module 'perror'.
52994         * lib/stdio.in.h (perror): New declaration.
52995         * lib/perror.c: New file.
52996         * m4/perror.m4: New file.
52997         * modules/perror: New file.
52998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52999         * doc/posix-functions/perror.texi: Mention the perror module.
53000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53001         REPLACE_PERROR.
53002         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53003         REPLACE_PERROR.
53004
53005 2008-09-14  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/stdio (Makefile.am): Reorder to match the order in
53008         lib/stdio.in.h.
53009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53010
53011 2008-09-13  Bruno Haible  <bruno@clisp.org>
53012
53013         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53014
53015 2008-09-13  Bruno Haible  <bruno@clisp.org>
53016
53017         Extend strerror to cover the added errno values.
53018         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53019         (rpl_strerror): Provide error messages for the added errno values and
53020         for the WSA* values.
53021         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53022         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53023         strerror.
53024         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53025         * modules/strerror (Depends-on): Add errno.
53026         * doc/posix-functions/strerror.texi: Document the change.
53027         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53028         and EOVERFLOW.
53029
53030 2008-09-13  Bruno Haible  <bruno@clisp.org>
53031
53032         * modules/EOVERFLOW: Remove file.
53033         * m4/eoverflow.m4: Remove file.
53034         * modules/EOVERFLOW-tests: Remove file.
53035         * tests/test-EOVERFLOW.c: Remove file.
53036         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53037         * modules/ftell (Depends-on): Likewise.
53038         * modules/getdelim (Depends-on): Likewise.
53039         * modules/getugroups (Depends-on): Likewise.
53040         * modules/poll (Depends-on): Likewise.
53041         * modules/snprintf (Depends-on): Likewise.
53042         * modules/sprintf-posix (Depends-on): Likewise.
53043         * modules/vasnprintf (Depends-on): Likewise.
53044         * modules/vasprintf (Depends-on): Likewise.
53045         * modules/vfprintf-posix (Depends-on): Likewise.
53046         * modules/vsnprintf (Depends-on): Likewise.
53047         * modules/vsprintf-posix (Depends-on): Likewise.
53048         * modules/xvasprintf (Depends-on): Likewise.
53049         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53050         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53051         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53052         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53053         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53054         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53055         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53056         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53057         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53058         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53059         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53060         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53062         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53063         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53064         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53065         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53066         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53067         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53068         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53070         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53071         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53072         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53073         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53074         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53075         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53076         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53077         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53078         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53079         * MODULES.html.sh: Remove EOVERFLOW.
53080         * NEWS: Mention the change.
53081
53082 2008-09-13  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/errno-tests: New file.
53085         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53086
53087         * lib/errno.in.h: New file.
53088         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53089         * modules/errno: New file.
53090         * doc/posix-headers/errno.texi: Update documentation.
53091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53092
53093 2008-09-13  Bruno Haible  <bruno@clisp.org>
53094
53095         * tests/test-poll.c: Use #if for native Windows, rather than testing
53096         __MSVCRT__.
53097
53098 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53099             Bruno Haible  <bruno@clisp.org>
53100
53101         * lib/glob.c: Don't include <pwd.h> on native Windows.
53102         (WINDOWS32): New macro.
53103         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53104
53105 2008-09-13  Bruno Haible  <bruno@clisp.org>
53106
53107         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53108         (ETIMEDOUT): Remove macro.
53109         (glthread_cond_timedwait_multithreaded): New declaration.
53110         (glthread_cond_timedwait): Use it.
53111         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53112         (glthread_cond_timedwait_multithreaded): New function.
53113
53114 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53115
53116         * modules/poll-tests: Do not check for io.h.
53117         * tests/test-poll.c: Check for __MSVCRT__ instead.
53118
53119 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53120
53121         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53122         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53123         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53124
53125 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53126
53127         * modules/poll-tests: New.
53128         * tests/test-poll.c: New.
53129
53130 2008-09-12  Eric Blake  <ebb9@byu.net>
53131
53132         frexp: test for NetBSD failure on -0.0
53133         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53134         not all, bugs from NetBSD 3.0 have been fixed.
53135         * doc/posix-functions/frexp.texi (frexp): Document bug.
53136         Reported by Thomas Klausner.
53137
53138         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53139         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53140         literal -0.0.
53141         Reported by Jonathan C. Patschke <jp@centtech.com>.
53142
53143 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53144
53145         * lib/glthread/cond.h: Use dummy implementation also if
53146         USE_WIN32_THREADS.
53147
53148 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53149
53150         * modules/fnmatch-posix (License): Change to LGPLv2+.
53151         * modules/fnmatch-gnu (License): Likewise.
53152
53153 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53154
53155         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53156
53157 2008-09-11  Jim Meyering  <meyering@redhat.com>
53158
53159         * users.txt: Add gtk-vnc.
53160
53161 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53162
53163         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53164         rotate amounts.
53165
53166         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53167         required for 16-bit and 8-bit rotates.
53168         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53169         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53170         UINT8_MAX instead of hard-coded constants.
53171         Suggested by Paul Eggert.
53172
53173 2008-09-07  Bruno Haible  <bruno@clisp.org>
53174
53175         * tests/test-striconveh.c (main): Check behaviour when converting from
53176         UTF-7.
53177
53178         Make striconveh work better with stateful encodings.
53179         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53180         that iconv does not increment the inptr when returning -1/EINVAL.
53181
53182 2008-09-07  Bruno Haible  <bruno@clisp.org>
53183
53184         * build-aux/config.rpath: Update according to libtool-2.2.6.
53185         * build-aux/config.libpath: Likewise.
53186
53187 2008-09-06  Bruno Haible  <bruno@clisp.org>
53188
53189         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53190         * lib/freadptr.c (freadptr): Likewise.
53191         * lib/freadseek.c (freadptrinc): Likewise.
53192         Reported by Simon Josefsson.
53193
53194 2008-09-06  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/freadptr (License): Change to LGPLv2+.
53197         * modules/freadseek (License): Likewise.
53198         Suggested by Eric Blake.
53199
53200         * modules/memchr2 (License): Change to LGPLv2+.
53201         Approved by Eric Blake.
53202
53203 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53204             Bruno Haible  <bruno@clisp.org>
53205
53206         Make gnulib-tool work with native 'sed' on AIX.
53207         * gnulib-tool (sed_noop): New variable.
53208         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53209         func_add_or_update, func_create_testdir): Use it to initialize sed
53210         script variables.
53211         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53212
53213 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53214             Bruno Haible  <bruno@clisp.org>
53215
53216         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53217         also works after #include directives.
53218
53219 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53220
53221         getdate.y: reject an out-of-range timezone value
53222         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53223         the range [-24...+24].  When specified with only one or two digits,
53224         * tests/test-getdate.c: Tests for the fix.
53225         * doc/getdate.texi: Document this change.
53226
53227 2008-09-03  Bruno Haible  <bruno@clisp.org>
53228
53229         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53230
53231 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53232
53233         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53234         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53235         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53236         Blake <ebb9@byu.net>.
53237
53238         * tests/test-bitrotate.c: Add more test vectors.
53239
53240 2008-09-02  Eric Blake  <ebb9@byu.net>
53241
53242         vasnprintf-posix: handle large precision via %.*d
53243         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53244         when handling it ourselves.
53245         * tests/test-vasnprintf-posix.c (test_function): Add test.
53246         * tests/test-snprintf-posix.h (test_function): Likewise.
53247         * tests/test-sprintf-posix.h (test_function): Likewise.
53248         * tests/test-vasprintf-posix.c (test_function): Likewise.
53249         Reported by Alain Guibert.
53250
53251 2008-09-01  Eric Blake  <ebb9@byu.net>
53252
53253         c-stack: make configure-time check more robust
53254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53255         successful sigaction call.
53256         Reported by Tom G. Christensen.
53257
53258 2008-09-01  Bruno Haible  <bruno@clisp.org>
53259
53260         New module 'findprog-lgpl'.
53261         * modules/findprog-lgpl: New file.
53262         * lib/findprog-lgpl.c: New file.
53263         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53264         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53265         to decide whether to use strdup or xstrdup, concatenated_filename or
53266         xconcatenated_filename.
53267
53268 2008-09-01  Bruno Haible  <bruno@clisp.org>
53269
53270         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53271         'xconcat-filename' (GPL).
53272         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53273         (License): Change to LGPLv2+.
53274         * modules/xconcat-filename: New file.
53275         * lib/concat-filename.h (concatenated_filename): Change specification.
53276         (xconcatenated_filename): New declaration.
53277         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53278         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53279         memory situations.
53280         * lib/xconcat-filename.c: New file.
53281         * NEWS: Mention the change.
53282         * lib/findprog.c: Include concat-filename.h, not filename.h.
53283         (find_in_path): Use xconcatenated_filename instead of
53284         concatenated_filename.
53285         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53286         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53287         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53288         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53289         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53290         instead of concatenated_filename.
53291         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53292         (execute_java_class): Use xconcatenated_filename instead of
53293         concatenated_filename.
53294         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53295         * modules/javacomp (Depends-on): Likewise.
53296         * modules/javaexec (Depends-on): Likewise.
53297
53298 2008-09-01  Bruno Haible  <bruno@clisp.org>
53299
53300         Split module 'filename' into 'filename' and 'concat-filename'.
53301         * modules/filename: Keep only lib/filename.h.
53302         (License): Change to LGPLv2+.
53303         * modules/concat-filename: New file, extracted from modules/filename.
53304         * lib/filename.h (concatenated_filename): Remove declaration.
53305         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53306         * lib/concat-filename.c: Include concat-filename.h.
53307         * NEWS: Mention the change.
53308
53309 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53310
53311         * lib/bitrotate.h (rotl8, rotr8): Add.
53312
53313         * modules/bitrotate (configure.ac): Need
53314         AC_REQUIRE([AC_C_INLINE]).
53315         (Description): Mention stdint.h.  Reported by Bruno Haible
53316         <bruno@clisp.org>.
53317
53318         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53319         Paolo Bonzini <bonzini@gnu.org>.
53320
53321 2008-08-31  Bruno Haible  <bruno@clisp.org>
53322
53323         Assume Solaris specific bi-arch conventions on Solaris systems.
53324         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53325         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53327         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53328         like acl_libdirstem.
53329         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53330         acl_libdirstem.
53331         * NEWS: Mention the change.
53332         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53333
53334 2008-08-31  Jim Meyering  <meyering@redhat.com>
53335
53336         * lib/strftime.h: Add comments describing the two added arguments.
53337
53338         remove duplicate #include directives
53339         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53340         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53341
53342 2008-08-31  Bruno Haible  <bruno@clisp.org>
53343
53344         New module 'sigpipe-die'.
53345         * modules/sigpipe-die: New file.
53346         * lib/sigpipe-die.h: New file.
53347         * lib/sigpipe-die.c: New file.
53348         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53349
53350 2008-08-31  Bruno Haible  <bruno@clisp.org>
53351
53352         Don't override previously installed signal handlers.
53353         * lib/fatal-signal.c (saved_sigactions): New variable.
53354         (uninstall_handlers): Reset the signal to the saved handler, not
53355         to SIG_DFL (except when ignored).
53356         (install_handlers): Save the previous handlers.
53357
53358 2008-08-30  Bruno Haible  <bruno@clisp.org>
53359
53360         * gnulib-tool (func_reset_sigpipe): New function.
53361         (func_get_automake_snippet, func_modules_transitive_closure,
53362         func_import): Invoke it before a join command that reads from stdin,
53363         to avoid "echo: write error: Broken pipe" error messages on stderr.
53364         Reported by Sam Steingold <sds@gnu.org>.
53365
53366 2008-08-30  Bruno Haible  <bruno@clisp.org>
53367
53368         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53369         Code copied from m4/open.m4.
53370         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53371         access and the filename ends in a slash. Code copied from lib/open.c.
53372         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53373         * tests/test-fopen.c (main): Check against bug with trailing slash.
53374
53375 2008-08-29  Bruno Haible  <bruno@clisp.org>
53376
53377         Avoid some "gcc -pedantic" warnings.
53378         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53379         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53380         * lib/dirent.in.h: Likewise.
53381         * lib/fcntl.in.h: Likewise.
53382         * lib/float.in.h: Likewise.
53383         * lib/iconv.in.h: Likewise.
53384         * lib/inttypes.in.h: Likewise.
53385         * lib/locale.in.h: Likewise.
53386         * lib/math.in.h: Likewise.
53387         * lib/netinet_in.in.h: Likewise.
53388         * lib/search.in.h: Likewise.
53389         * lib/signal.in.h: Likewise.
53390         * lib/stdarg.in.h: Likewise.
53391         * lib/stdint.in.h: Likewise.
53392         * lib/stdio.in.h: Likewise.
53393         * lib/stdlib.in.h: Likewise.
53394         * lib/string.in.h: Likewise.
53395         * lib/strings.in.h: Likewise.
53396         * lib/sys_select.in.h: Likewise.
53397         * lib/sys_socket.in.h: Likewise.
53398         * lib/sys_stat.in.h: Likewise.
53399         * lib/sys_time.in.h: Likewise.
53400         * lib/sysexits.in.h: Likewise.
53401         * lib/time.in.h: Likewise.
53402         * lib/unistd.in.h: Likewise.
53403         * lib/wchar.in.h: Likewise.
53404         * lib/wctype.in.h: Likewise.
53405         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53406         * modules/fchdir (Makefile.am): Likewise.
53407         * modules/fcntl (Makefile.am): Likewise.
53408         * modules/float (Makefile.am): Likewise.
53409         * modules/iconv_open (Makefile.am): Likewise.
53410         * modules/inttypes (Makefile.am): Likewise.
53411         * modules/locale (Makefile.am): Likewise.
53412         * modules/math (Makefile.am): Likewise.
53413         * modules/netinet_in (Makefile.am): Likewise.
53414         * modules/search (Makefile.am): Likewise.
53415         * modules/signal (Makefile.am): Likewise.
53416         * modules/stdarg (Makefile.am): Likewise.
53417         * modules/stdint (Makefile.am): Likewise.
53418         * modules/stdio (Makefile.am): Likewise.
53419         * modules/stdlib (Makefile.am): Likewise.
53420         * modules/string (Makefile.am): Likewise.
53421         * modules/strings (Makefile.am): Likewise.
53422         * modules/sys_select (Makefile.am): Likewise.
53423         * modules/sys_socket (Makefile.am): Likewise.
53424         * modules/sys_stat (Makefile.am): Likewise.
53425         * modules/sys_time (Makefile.am): Likewise.
53426         * modules/sysexits (Makefile.am): Likewise.
53427         * modules/time (Makefile.am): Likewise.
53428         * modules/unistd (Makefile.am): Likewise.
53429         * modules/wchar (Makefile.am): Likewise.
53430         * modules/wctype (Makefile.am): Likewise.
53431         Reported by Reuben Thomas <rrt@sc3d.org>.
53432
53433 2008-08-29  Bruno Haible  <bruno@clisp.org>
53434
53435         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53436         any more.
53437
53438 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53439
53440         * MODULES.html.sh (Misc): Add bitrotate.
53441
53442         * modules/bitrotate: New file.
53443
53444         * lib/bitrotate.h: New file.
53445
53446         * modules/bitrotate-tests: New file.
53447
53448         * tests/test-bitrotate.c: New file.
53449
53450         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53451         on the bitrotate module.
53452
53453         * lib/arctwo.c: Use new bitrotate module.
53454
53455 2008-08-29  Jim Meyering  <meyering@redhat.com>
53456
53457         bootstrap: merge changes from coreutils
53458         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53459         of copied files.  Remove a kludge, now that this is fixed.
53460         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53461         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53462         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53463
53464 2008-08-29  Bruno Haible  <bruno@clisp.org>
53465
53466         * MODULES.html.sh: Remove --cvs-urls option.
53467
53468 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53469
53470         maint.mk: adjust to file name change
53471         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53472
53473 2008-08-28  Jim Meyering  <meyering@redhat.com>
53474
53475         * modules/getndelim2 (License): Relicense to LGPLv2+.
53476         Approved by Richard Stallman for the version of 1995, and by
53477         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53478
53479 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53480
53481         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53482         dummy if one is not available.  Do not touch them if
53483         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53484         (getc_maybe_unlocked): New.
53485         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53486
53487 2008-08-26  Eric Blake  <ebb9@byu.net>
53488
53489         doc/INSTALL: resync from autoconf
53490         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53491         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53492         moving...
53493         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53494         * INSTALL: Regenerate.
53495         * INSTALL.ISO: New file.
53496         * INSTALL.UTF-8: Likewise.
53497
53498 2008-08-26  Jim Meyering  <meyering@redhat.com>
53499
53500         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53501         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53502         these definitions conditional, so that they may be overridden, too.
53503
53504 2008-08-26  Bruno Haible  <bruno@clisp.org>
53505
53506         Generate INSTALL file variants with prettier quotes.
53507         * doc/Makefile (INSTALL_PRELUDE): New macro.
53508         (INSTALL): Use it.
53509         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53510
53511 2008-08-26  Bruno Haible  <bruno@clisp.org>
53512
53513         Run makeinfo in an English locale.
53514         * doc/Makefile (MAKEINFO): New variable.
53515
53516 2008-08-26  Bruno Haible  <bruno@clisp.org>
53517
53518         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53519         Suggested by Eric Blake.
53520
53521 2008-08-25  Bruno Haible  <bruno@clisp.org>
53522
53523         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53524
53525 2008-08-25  Eric Blake  <ebb9@byu.net>
53526
53527         c-stack: test that stack overflow can be caught
53528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53529         that platform allows handling stack overflow; at least OS/2 EMX
53530         has sigaltstack, but crashes before transferring control to
53531         handler on stack overflow.
53532         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53533         check for HAVE_STACK_OVERFLOW_HANDLING.
53534         Reported by Elbert Pol.
53535
53536 2008-08-25  Bruno Haible  <bruno@clisp.org>
53537
53538         * doc/posix-functions/strftime.texi: Fix description of strftime
53539         module.
53540
53541 2008-08-24  Bruno Haible  <bruno@clisp.org>
53542
53543         * tests/uniwidth/test-uc_width2.c: New file.
53544         * tests/uniwidth/test-uc_width2.sh: New file.
53545         * modules/uniwidth/width-tests (Files): Add the new files.
53546         (TESTS): Add uniwidth/test-uc_width2.sh.
53547         (TESTS_ENVIRONMENT): New variable.
53548         (check_PROGRAMS): Add test-uc_width2.
53549         (test_uc_width2_SOURCES): New variable.
53550
53551         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53552         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53553         not 0x00AB.
53554         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53555
53556 2008-08-22  Eric Blake  <ebb9@byu.net>
53557
53558         test-lock, test-tls: mention why a test is skipped
53559         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53560         skipped.
53561         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53562
53563         count-one-bits: relax license
53564         * modules/count-one-bits (License): Relicense to LGPLv2+.
53565         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53566
53567 2008-08-22  Andreas Schwab  <schwab@suse.de>
53568
53569         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53570         Remove spurious space in assignment.
53571
53572 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53573
53574         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53575         Paul Eggert <eggert@CS.UCLA.EDU>.
53576
53577 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53578
53579         * modules/gettext: Add m4/threadlib.m4.
53580
53581 2008-08-19  Eric Blake  <ebb9@byu.net>
53582
53583         test-c-stack: fix compilation failure on FreeBSD 5.0
53584         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53585         headers before <sys/resource.h>.
53586         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53587         the bug.
53588         Reported by Nelson H. F. Beebe.
53589
53590         strverscmp: migrate from "strverscmp.h" to <string.h>
53591         * modules/string (Makefile.am): Add new hooks.
53592         * modules/strverscmp (Files): Remove strverscmp.h.
53593         (Depends-on): Add string.
53594         (configure.ac): Add indicator.
53595         (Include): Mention new header.
53596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53597         defaults.
53598         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53599         results.
53600         * lib/strverscmp.h: Delete.
53601         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53602         * tests/test-strverscmp.c (includes): Adjust client.
53603         * lib/check-version.c (includes): Likewise.
53604         * NEWS: Document the change.
53605
53606         strverscmp: add unit test
53607         * modules/strverscmp-tests: New file.
53608         * tests/test-strverscmp.c: Likewise.
53609
53610 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53611
53612         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53613         regarding Windows crypto stuff, from Mono.
53614
53615 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53616
53617         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53618         if present, for intel RND.  Return error on failures.
53619
53620 2008-08-18  Ben Pfaff  <blp@gnu.org>
53621
53622         gitlog-to-changelog: give better diagnostic for failed pipe-open
53623         * build-aux/gitlog-to-changelog: Improve error message: suggest
53624         that the version of Git may be too old.
53625
53626 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53627
53628         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53629         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53630
53631 2008-08-18  Bruno Haible  <bruno@clisp.org>
53632
53633         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53634         pthread_in_use().
53635
53636 2008-08-18  Bruno Haible  <bruno@clisp.org>
53637
53638         * lib/glthread/threadlib.c: Include <pthread.h>.
53639
53640 2008-08-18  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53643         glthread_recursive_lock_* macros.
53644         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53645         Fix syntax error.
53646
53647 2008-08-18  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/glthread/thread.c: Avoid forcing a context switch right after
53650         thread creation.
53651
53652 2008-08-17  Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53655         * lib/glthread/thread.h: Provide Win32 specific implementation.
53656         * modules/thread (Files): Add lib/glthread/thread.c.
53657         (Depends-on): Add lock.
53658         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53659
53660 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53661
53662         New module 'yield'.
53663         * modules/yield: New file.
53664         * lib/glthread/yield.h: New file.
53665         * m4/yield.m4: New file.
53666         * MODULES.html.sh (Multithreading): Add yield.
53667
53668 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53669
53670         New module 'thread'.
53671         * modules/thread: New file.
53672         * lib/glthread/thread.h: New file.
53673         * m4/thread.m4: New file.
53674         * MODULES.html.sh (Multithreading): Add thread.
53675
53676 2008-08-17  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/glthread/lock.h: Include <stdlib.h> always.
53679         * lib/glthread/tls.h: Likewise.
53680         * lib/glthread/cond.h: Likewise.
53681
53682 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53683
53684         New module 'cond'.
53685         * modules/cond: New file.
53686         * lib/glthread/cond.h: New file.
53687         * lib/glthread/cond.c: New file.
53688         * m4/cond.m4: New file.
53689         * MODULES.html.sh (Multithreading): Add cond.
53690
53691 2008-08-16  Eric Blake  <ebb9@byu.net>
53692
53693         c-stack: fix regression on Irix 5.3 from 2008-06-21
53694         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53695         sa_sigaction...
53696         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53697         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53698         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53699         * modules/signal (Makefile.am): Use the value.
53700         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53701         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53702         * doc/posix-headers/signal.texi (signal.h): Document this
53703         portability issue.
53704         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53705         Reported by Tom G. Christensen.
53706
53707 2008-08-17  Bruno Haible  <bruno@clisp.org>
53708
53709         New module 'threadlib'.
53710         * modules/threadlib: New file.
53711         * lib/glthread/threadlib.c: New file, extracted from
53712         lib/glthread/lock.c.
53713         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53714         functions.
53715         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53716         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53717         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53718         macros.
53719         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53720         (gl_DISABLE_THREADS): Remove macro.
53721         * modules/lock (Files): Remove build-aux/config.rpath.
53722         (Depends-on): Remove havelib. Add threadlib.
53723         (configure.ac-early): Remove section.
53724         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53725         * modules/tls (Depends-on): Remove lock. Add threadlib.
53726         (Link): New section, copied from threadlib.
53727         * MODULES.html.sh (Multithreading): Add threadlib.
53728
53729 2008-08-14  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53732         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53733         glthread_rwlock_unlock, glthread_rwlock_destroy,
53734         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53735         glthread_recursive_lock_destroy): Define as macros always.
53736         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53737         glthread_lock_lock.
53738         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53739         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53740         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53741         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53742         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53743         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53744         (glthread_recursive_lock_lock_func): Renamed from
53745         glthread_recursive_lock_lock.
53746         (glthread_recursive_lock_unlock_func): Renamed from
53747         glthread_recursive_lock_unlock.
53748         (glthread_recursive_lock_destroy_func): Renamed from
53749         glthread_recursive_lock_destroy.
53750
53751 2008-08-14  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/glthread/lock.h: Renamed from lib/lock.h.
53754         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53755         * lib/glthread/tls.h: Renamed from lib/tls.h.
53756         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53757         * lib/fstrcmp.c: Update includes.
53758         * lib/strsignal.c: Update includes.
53759         * modules/lock (Files, Makefile.am): Update.
53760         (Include): Change to "glthread/lock.h".
53761         * modules/tls (Files, Makefile.am): Update.
53762         (Include): Change to "glthread/tls.h".
53763         * tests/test-lock.c: Update includes.
53764         * tests/test-tls.c: Update includes.
53765         * NEWS: Mention the renamed header files.
53766
53767 2008-08-11  Jim Meyering  <meyering@redhat.com>
53768
53769         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53770
53771 2008-08-11  Eric Blake  <ebb9@byu.net>
53772
53773         test-c-stack: avoid C99-ism
53774         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53775         before statement.
53776         Reported by Alain Guibert.
53777
53778 2008-08-10  Jim Meyering  <meyering@redhat.com>
53779
53780         ensure that return value of uinttostr et al are not ignored
53781         * lib/inttostr.h (__GNUC_PREREQ): Define.
53782         (__attribute_warn_unused_result__): Define.
53783         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53784
53785 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53786
53787         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53788         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53789
53790 2008-08-07  Jim Meyering  <meyering@redhat.com>
53791
53792         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53793
53794         * modules/mkstemp (License): Relicense under LGPLv2+.
53795         * modules/tempname (License): Likewise.
53796
53797 2008-08-06  Bruno Haible  <bruno@clisp.org>
53798
53799         * lib/poll.c (poll): Further micro-optimization.
53800
53801 2008-08-06  Jim Meyering  <meyering@redhat.com>
53802
53803         inet_pton.c: use locale-independent tolower
53804         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53805         (inet_pton6): Use c_tolower rather than tolower.
53806         * modules/inet_pton (Depends-on): Add c-ctype.
53807
53808 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53809
53810         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53811         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53812
53813 2008-08-06  Jim Meyering  <meyering@redhat.com>
53814
53815         * modules/inet_pton (License): Relicense under LGPLv2+.
53816
53817 2008-08-03  Bruno Haible  <bruno@clisp.org>
53818
53819         Additional non-aborting API for lock and tls.
53820         * lib/lock.h: Include <errno.h>.
53821         (glthread_lock_init): New macro/function.
53822         (gl_lock_init): Define as wrapper around glthread_lock_init.
53823         (glthread_lock_lock): New macro/function.
53824         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53825         (glthread_lock_unlock): New macro/function.
53826         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53827         (glthread_lock_destroy): New macro/function.
53828         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53829         (glthread_rwlock_init): New macro/function.
53830         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53831         (glthread_rwlock_rdlock): New macro/function.
53832         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53833         (glthread_rwlock_wrlock): New macro/function.
53834         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53835         (glthread_rwlock_unlock): New macro/function.
53836         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53837         (glthread_rwlock_destroy): New macro/function.
53838         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53839         (glthread_recursive_lock_init): New macro/function.
53840         (gl_recursive_lock_init): Define as wrapper around
53841         glthread_recursive_lock_init.
53842         (glthread_recursive_lock_lock): New macro/function.
53843         (gl_recursive_lock_lock): Define as wrapper around
53844         glthread_recursive_lock_lock.
53845         (glthread_recursive_lock_unlock): New macro/function.
53846         (gl_recursive_lock_unlock): Define as wrapper around
53847         glthread_recursive_lock_unlock.
53848         (glthread_recursive_lock_destroy): New macro/function.
53849         (gl_recursive_lock_destroy): Define as wrapper around
53850         glthread_recursive_lock_destroy.
53851         (glthread_once): New macro/function.
53852         (gl_once): Define as wrapper around glthread_once.
53853         Update function declarations.
53854         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53855         glthread_rwlock_init. Return error code.
53856         (glthread_rwlock_rdlock_multithreaded): Renamed from
53857         glthread_rwlock_rdlock. Return error code.
53858         (glthread_rwlock_wrlock_multithreaded): Renamed from
53859         glthread_rwlock_wrlock. Return error code.
53860         (glthread_rwlock_unlock_multithreaded): Renamed from
53861         glthread_rwlock_unlock. Return error code.
53862         (glthread_rwlock_destroy_multithreaded): Renamed from
53863         glthread_rwlock_destroy. Return error code.
53864         (glthread_recursive_lock_init_multithreaded): Renamed from
53865         glthread_recursive_lock_init. Return error code.
53866         (glthread_recursive_lock_lock_multithreaded): Renamed from
53867         glthread_recursive_lock_lock. Return error code.
53868         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53869         glthread_recursive_lock_unlock. Return error code.
53870         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53871         glthread_recursive_lock_destroy. Return error code.
53872         (glthread_once_call): Make static.
53873         (glthread_once_multithreaded): Renamed from glthread_once.
53874         * lib/tls.h: Include <errno.h>.
53875         (glthread_tls_key_init): New macro/function.
53876         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53877         (glthread_tls_set): New macro/function.
53878         (gl_tls_set): Define as wrapper around glthread_tls_set.
53879         (glthread_tls_key_destroy): New macro/function.
53880         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53881         Update function declarations.
53882         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53883         glthread_tls_get.
53884         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53885
53886 2008-08-04  Eric Blake  <ebb9@byu.net>
53887
53888         gnumakefile: use space, not TAB, outside of targets
53889         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53890
53891 2008-08-02  Jim Meyering  <meyering@redhat.com>
53892
53893         getdate.y: avoid locale-dependent date parsing failure
53894         In Turkish locales, getdate would fail to recognize keywords
53895         containing a lowercase "i".  The solution is not to rely on
53896         locale-sensitive case-conversion.
53897         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53898         (lookup_word): Use c_toupper in place of toupper.
53899         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53900         Reported by Vefa Bicakci <bicave@superonline.com> in
53901         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53902         * modules/getdate (Depends-on): Add c-ctype.
53903
53904 2008-08-02  Bruno Haible  <bruno@clisp.org>
53905
53906         * gnulib-tool (func_import): When updating or creating a .gitignore
53907         file, prepend each added line with a slash, and ignore leading slashes
53908         from the existing lines.
53909         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53910
53911 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53912
53913         Portability fix for GNU make 3.79.1.
53914         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53915         versions do not understand.
53916
53917 2008-08-01  Bruno Haible  <bruno@clisp.org>
53918
53919         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53920         * tests/test-isnanf.h (zero): New variable.
53921         (main): Avoid literal -0.0f.
53922         * tests/test-isnand.h (zero): New variable.
53923         (main): Avoid literal -0.0.
53924         * tests/test-isnanl.h (zero): New variable.
53925         (main): Avoid literal -0.0L.
53926         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53927         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53928         -0.0, -0.0L.
53929         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53930         (test_signbitd): Avoid literal -0.0.
53931         (test_signbitl): Avoid literal -0.0L.
53932         * tests/test-ceilf1.c (zero): New variable.
53933         (main): Avoid literal -0.0f.
53934         * tests/test-ceill.c (zero): New variable.
53935         (main): Avoid literal -0.0L.
53936         * tests/test-floorf1.c (zero): New variable.
53937         (main): Avoid literal -0.0f.
53938         * tests/test-floorl.c (zero): New variable.
53939         (main): Avoid literal -0.0L.
53940         * tests/test-roundf1.c (zero): New variable.
53941         (main): Avoid literal -0.0f.
53942         * tests/test-round1.c (zero): New variable.
53943         (main): Avoid literal -0.0.
53944         * tests/test-roundl.c (zero): New variable.
53945         (main): Avoid literal -0.0L.
53946         * tests/test-truncf1.c (zero): New variable.
53947         (main): Avoid literal -0.0f.
53948         * tests/test-trunc1.c (zero): New variable.
53949         (main): Avoid literal -0.0.
53950         * tests/test-truncl.c (zero): New variable.
53951         (main): Avoid literal -0.0L.
53952         * tests/test-frexp.c (zero): New variable.
53953         (main): Avoid literal -0.0.
53954         * tests/test-frexpl.c (zero): New variable.
53955         (main): Avoid literal -0.0L.
53956         * tests/test-ldexpl.c (zero): New variable.
53957         (main): Avoid literal -0.0L.
53958         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53959         (zerod, zerol): New variables.
53960         (test_function): Avoid literals -0.0, -0.0L.
53961         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53962         (zerod, zerol): New variables.
53963         (test_function): Avoid literals -0.0, -0.0L.
53964         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53965         (zerod, zerol): New variables.
53966         (test_function): Avoid literals -0.0, -0.0L.
53967         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53968         (zerod, zerol): New variables.
53969         (test_function): Avoid literals -0.0, -0.0L.
53970         * tests/test-strtod.c (zero): New variable.
53971         (main): Avoid literal -0.0.
53972         Reported by Jonathan C. Patschke <jp@centtech.com>.
53973
53974 2008-07-31  Jim Meyering  <meyering@redhat.com>
53975
53976         sha256.h: correct definition of SHA224_DIGEST_SIZE
53977         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53978         Reported by Paulie Pena IV <paulie4@gmail.com>.
53979         Define as 224 / 8, rather than as a literal.
53980         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53981         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53982         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53983
53984 2008-07-31  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53987         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53988         Reported by Jonathan Patschke <jp@centtech.com>.
53989
53990 2008-07-31  Bruno Haible  <bruno@clisp.org>
53991
53992         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53993         Reported by Paolo Bonzini <bonzini@gnu.org>.
53994
53995 2008-07-30  Eric Blake  <ebb9@byu.net>
53996
53997         test-strtod: allow compilation without -lm
53998         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53999         Reported by Dennis Clarke <blastwave@gmail.com>.
54000
54001 2008-07-28  Jim Meyering  <meyering@redhat.com>
54002
54003         bootstrap: work also when there are no .po files in po/
54004         * build-aux/bootstrap (update_po_files): Complete the change
54005         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54006
54007 2008-07-27  Jim Meyering  <meyering@redhat.com>
54008
54009         * users.txt: Add zile.
54010
54011 2008-07-26  Ben Pfaff  <blp@gnu.org>
54012
54013         Add missing dependencies on new m4/exponent[fdl].m4 files.
54014         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54015         * modules/isnand-nolibm: Add m4/exponentd.m4.
54016         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54017         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54018         m4/isnan[fdl].m4, because the macros actually used moved.
54019         Reported by Jim Meyering.
54020
54021 2008-07-14  Ben Pfaff  <blp@gnu.org>
54022
54023         Add isinf module.
54024         * lib/isinf.c: New file.
54025         * lib/math.in.h: Define isinf macro if we have decided to replace
54026         it.
54027         * m4/isinf.m4: New file.
54028         * m4/math_h.m4: Initialize and substitute variables for isinf
54029         module.
54030         * modules/isinf: New file.
54031         * modules/isinf-tests: New file.
54032         * modules/math: Add substitutions for new module.
54033         * tests/test-isinf.c: New file.
54034         * doc/posix-functions/isinf.texi: Mention new module.
54035         * MODULES.html.sh: Mention new module.
54036
54037 2008-07-14  Ben Pfaff  <blp@gnu.org>
54038
54039         Factor out some macros for use by additional modules.
54040         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54041         exponentf.m4.
54042         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54043         exponentd.m4.
54044         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54045         file exponentl.m4.
54046         * m4/exponentf.m4: New file.
54047         * m4/exponentd.m4: New file.
54048         * m4/exponentl.m4: New file.
54049         * modules/isnanf: Use new file m4/exponentf.m4.
54050         * modules/isnand: Use new file m4/exponentd.m4.
54051         * modules/isnanl: Use new file m4/exponentl.m4.
54052
54053 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54054
54055         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54056         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54057         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54058         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54059
54060         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54061         readlink on platforms without PATH_MAX.
54062
54063 2008-07-21  Eric Blake  <ebb9@byu.net>
54064
54065         Warn, not fail, on stale version.
54066         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54067
54068         Don't allow installation with stale devel version number.
54069         * top/GNUmakefile (_is-install-target): New macro.
54070         (_curr-ver): Forbid installation with stale version number.
54071
54072 2008-07-20  Bruno Haible  <bruno@clisp.org>
54073
54074         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54075         TESTS_ENVIRONMENT.
54076         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54077
54078 2008-07-20  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/c-stack.h (c_stack_action): Add documentation.
54081         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54082
54083 2008-07-20  Bruno Haible  <bruno@clisp.org>
54084
54085         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54086         * modules/readlink (License): Likewise.
54087
54088 2008-07-17  Eric Blake  <ebb9@byu.net>
54089
54090         * modules/c-stack (Link): Fix typo.
54091
54092         Make c-stack use libsigsegv, when available.
54093         * modules/c-stack (Depends-on): Add libsigsegv.
54094         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54095         needed.
54096         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54097         (segv_handler, overflow_handler, c_stack_action)
54098         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54099         implementation when libsigsegv is available, but only when using
54100         the library is necessary.
54101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54102         comment, explaining why XSI check fails on Linux.
54103         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54104         * tests/test-c-stack2.sh: Tweak skip message.
54105         * NEWS: Document new link-time requirements.
54106
54107 2008-07-16  Eric Blake  <ebb9@byu.net>
54108
54109         c-stack: Expose false positives when not using libsigsegv.
54110         * modules/c-stack-tests (Files): Expand test.
54111         * tests/test-c-stack.c (main): Add means to conditionally trigger
54112         non-overflow SIGSEGV.
54113         * tests/test-c-stack2.sh: New file.
54114
54115 2008-07-14  Bruno Haible  <bruno@clisp.org>
54116
54117         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54118         Reported by Eric Blake.
54119
54120 2008-07-14  Sam Steingold  <sds@gnu.org>
54121             Bruno Haible  <bruno@clisp.org>
54122
54123         New module libsigsegv.
54124         * modules/libsigsegv: New file.
54125         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54126         modifications.
54127         * MODULES.html.sh (Signal handling): New section.
54128
54129 2008-07-14  Bruno Haible  <bruno@clisp.org>
54130
54131         * modules/unictype/ctype-* (Description): Add the word "function".
54132         Improves the resulting doc in MODULES.html.
54133
54134 2008-07-12  Ben Pfaff  <blp@gnu.org>
54135
54136         Add longlong module.
54137         * modules/longlong: New file.
54138
54139 2008-07-12  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54142         to empty.
54143
54144 2008-07-10  Ben Pfaff  <blp@gnu.org>
54145
54146         Add isnan module.
54147         * doc/posix-functions/isnan.texi: Mention new module.
54148         * lib/math.in.h: Define isnan macro if we have decided to replace
54149         it.
54150         * m4/isnan.m4: New file.
54151         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54152         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54153         also.
54154         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54155         redundancy.
54156         * m4/math_h.m4: Initialize and substitute variables for isnan
54157         module.
54158         * modules/isnan: New file.
54159         * modules/isnan-tests: New file.
54160         * modules/math: Add substitutions for new module.
54161         * tests/test-isnan.c: New file.
54162         * MODULES.html.sh: Mention new module.
54163
54164 2008-07-10  Ben Pfaff  <blp@gnu.org>
54165
54166         Add isnanf module.
54167         * lib/isnanf.m4: New file.
54168         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54169         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54170         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54171         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54172         * modules/isnanf: New file.
54173         * modules/isnanf-tests: New file.
54174         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54175         files.
54176         * tests/test-isnanf-nolibm.c: factored most of its contents into
54177         new file tests/test-isnanf.h.
54178         * tests/test-isnanf.h: New file.
54179         * tests/test-isnanf.c: New file.
54180         * MODULES.html.sh: Mention new module.
54181         * doc/glibc-functions/isnanf.texi: Mention new module.
54182
54183 2008-07-10  Ben Pfaff  <blp@gnu.org>
54184
54185         Add isnand module.
54186         * lib/isnand.h: New file.
54187         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54188         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54189         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54190         functionality also.
54191         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54192         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54193         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54194         * modules/isnand: New file.
54195         * modules/isnand-tests: New file.
54196         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54197         files.
54198         * tests/test-isnand-nolibm.c: factored most of its contents into
54199         new file tests/test-isnand.h.
54200         * tests/test-isnand.h: New file.
54201         * tests/test-isnand.c: New file.
54202         * MODULES.html.sh: Mention new module.
54203
54204 2008-07-10  Ben Pfaff  <blp@gnu.org>
54205
54206         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54207         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54208         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54209         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54210         * modules/isnanf-nolibm: Update references to renamed files.
54211         * modules/isnand-nolibm: Likewise.
54212         * modules/isnanf-nolibm-tests: Likewise.
54213         * modules/isnand-nolibm-tests: Likewise.
54214         * lib/frexp.c: Likewise.
54215         * lib/isfinite.c: Likewise.
54216         * lib/signbitd.c: Likewise.
54217         * lib/signbitf.c: Likewise.
54218         * lib/vasnprintf.c: Likewise.
54219         * tests/test-ceilf1.c: Likewise.
54220         * tests/test-ceilf2.c: Likewise.
54221         * tests/test-floorf1.c: Likewise.
54222         * tests/test-floorf2.c: Likewise.
54223         * tests/test-frexp.c: Likewise.
54224         * tests/test-round1.c: Likewise.
54225         * tests/test-round2.c: Likewise.
54226         * tests/test-roundf1.c: Likewise.
54227         * tests/test-strtod.c: Likewise.
54228         * tests/test-trunc1.c: Likewise.
54229         * tests/test-trunc2.c: Likewise.
54230         * tests/test-truncf1.c: Likewise.
54231         * tests/test-truncf2.c: Likewise.
54232         * NEWS: Mention the renamed header files.
54233
54234 2008-07-11  Jim Meyering  <meyering@redhat.com>
54235
54236         vc-list-files: make the last-resort awk code more portable
54237         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54238         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54239         does not support it.
54240
54241 2008-07-10  Eric Blake  <ebb9@byu.net>
54242
54243         Work with tar's bootstrap.
54244         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54245         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54246         an m4 comment.
54247
54248 2008-07-09  Jim Meyering  <meyering@redhat.com>
54249
54250         posix-shell.m4: fix typo that made this test malfunction
54251         * m4/posix-shell.m4: Remove capitalization in variable name.
54252
54253 2008-07-08  Bruno Haible  <bruno@clisp.org>
54254
54255         * m4/onceonly.m4: Update comments.
54256         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54257
54258 2008-07-04  Jim Meyering  <meyering@redhat.com>
54259
54260         * users.txt: Add vc-dwim.
54261         (bison, coreutils): Use the gitweb URL.
54262
54263 2008-07-03  Jim Meyering  <meyering@redhat.com>
54264
54265         * users.txt: Add libffcall.  From Sam Steingold.
54266
54267 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54268
54269         getdate.y: do not ignore TZ with relative day, month or year offset
54270         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54271         relative-date-handling, since otherwise, the latter would clobber the
54272         sole output (an updated Start value) of the tz-handling block.
54273         * tests/test-getdate.c: Tests for the fix
54274
54275 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54276
54277         Recognize 'foo_LIBRARIES += libgnu.a'.
54278         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54279         makefile snippet has already specified an installation location,
54280         also using '+='.
54281
54282 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54283
54284         getdate.y: factor out common actions
54285         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54286         Use them in place of open-coded actions.
54287
54288 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54289
54290         Add self-test for getdate module.
54291         * modules/getdate-tests: New file.
54292         * tests/test-getdate.c: New file.
54293
54294 2008-06-29  Bruno Haible  <bruno@clisp.org>
54295
54296         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54297         .gitignore.
54298         Reported by Sylvain Beucler <beuc@beuc.net>.
54299
54300 2008-06-29  Bruno Haible  <bruno@clisp.org>
54301
54302         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54303         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54304
54305 2008-06-29  Bruno Haible  <bruno@clisp.org>
54306
54307         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54308         EXTRA_DIST.
54309         Reported by Sylvain Beucler <beuc@beuc.net>.
54310
54311 2008-06-26  Jim Meyering  <meyering@redhat.com>
54312
54313         make several modules depend on the "open" module
54314         This provides slightly increased consistency when opening-for-write
54315         the name of a non-directory spelled with a trailing slash.
54316         * modules/chdir-safer: Likewise.
54317         * modules/chown: Likewise.
54318         * modules/clean-temp: Likewise.
54319         * modules/copy-file: Likewise.
54320         * modules/fchdir: Likewise.
54321         * modules/fcntl-safer: Likewise.
54322         * modules/pipe: Likewise.
54323         * modules/utime: Likewise.
54324         Prompted by Eric Blake and Bruno Haible.
54325
54326 2008-06-24  Andreas Schwab  <schwab@suse.de>
54327
54328         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54329         literals can be used as initializers for global variables.
54330
54331 2008-06-23  Eric Blake  <ebb9@byu.net>
54332
54333         Make gnulib-cache.m4 easier to diff.
54334         * gnulib-tool (func_import): Allow newlines when reading cached
54335         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54336
54337 2008-06-23  Bruno Haible  <bruno@clisp.org>
54338
54339         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54340         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54341         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54342         m4/signalblocking.m4.
54343         (gl_PREREQ_SIGACTION): Don't invoke it.
54344         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54345         gl_PREREQ_SIG_HANDLER_H.
54346         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54347         Don't check for sigaction here.
54348
54349 2008-06-23  Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54352         (install_handlers): Don't set the SA_RESETHAND flag.
54353
54354 2008-06-23  Bruno Haible  <bruno@clisp.org>
54355
54356         * m4/sigaction.m4: Comment fixes.
54357         * lib/signal.in.h: Likewise.
54358
54359 2008-06-23  Eric Blake  <ebb9@byu.net>
54360
54361         Fix typo.
54362         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54363
54364         Avoid SA_ namespace.
54365         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54366         Reported by Ralf Wildenhues.
54367
54368         Avoid test failure due to SA_RESTORER.
54369         * tests/test-sigaction.c (SA_MASK): New macro.
54370         (main): Avoid failing due to extension flags being set.
54371         Reported by Jim Meyering.
54372
54373         Revert use of sig-handler.h in sigprocmask.c.
54374         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54375         it requires the existence of struct sigaction.
54376         * lib/sigprocmask.c (handler_t): Restore typedef.
54377         (rpl_signal, old_handlers): Use local type.
54378
54379 2008-06-22  Bruno Haible  <bruno@clisp.org>
54380
54381         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54382         conditionally.
54383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54384
54385 2008-06-22  Bruno Haible  <bruno@clisp.org>
54386
54387         * doc/posix-functions/siginterrupt.texi: Move note.
54388
54389         * lib/signal.in.h (SA_RESTART): New macro.
54390         * lib/sigaction.c: Update comment.
54391
54392         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54393
54394         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54395         (gl_PREREQ_SIGPROCMASK): Invoke it.
54396         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54397
54398         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54399
54400         * lib/sigprocmask.c: Update a comment.
54401
54402 2008-06-21  Eric Blake  <ebb9@byu.net>
54403
54404         Use sigaction module rather than signal().
54405         * modules/c-stack (Depends-on): Add sigaction.
54406         * modules/fatal-signal (Depends-on): Likewise.
54407         * modules/nanosleep (Depends-on): Likewise.
54408         * modules/sigprocmask (Files): Add sig-handler.h.
54409         * modules/sigaction (Files): Likewise.
54410         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54411         Eggert.
54412         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54413         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54414         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54415         (init_fatal_signals): Likewise.
54416         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54417         (siginterrupt): Delete fallback.
54418         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54419         instead.
54420         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54421         siginterrupt.
54422
54423         New module sigaction, for mingw.
54424         * modules/sigaction: New module...
54425         * modules/sigaction-tests: ...and its test.
54426         * m4/sigaction.m4: New file.
54427         * lib/sigaction.c: Likewise.
54428         * tests/test-sigaction.c: Likewise.
54429         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54430         * modules/signal (Makefile.am): Likewise.
54431         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54432         needed.
54433         * doc/posix-headers/signal.texi (signal.h): Mention provided
54434         types.
54435         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54436         that sigaction is preferable.
54437         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54438         module.
54439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54440         sigaction.
54441
54442         Improve robustness of sigprocmask by overriding signal.
54443         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54444         is in use.
54445         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54446         (SIGKILL, SIGSTOP): Provide fallbacks.
54447         (rpl_signal): Implement.
54448         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54449         signal can be called inside handlers.
54450
54451         Fix nanosleep module on mingw.
54452         * modules/nanosleep (Depends-on): Add sys_select.
54453         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54454
54455         Fix licensing of sigprocmask.
54456         * modules/raise (License): Relicense as LGPL.
54457
54458 2008-06-21  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54461         result if it contains question marks.
54462         Reported by Michael Geng <linux@michaelgeng.de>.
54463
54464 2008-06-19  Bruno Haible  <bruno@clisp.org>
54465
54466         Fix CVS-ism.
54467         * doc/gnulib.texi: Include updated-stamp.texi.
54468         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54469         (updated-stamp.texi): New rule.
54470         (gnulib.info): Depend on it.
54471         * doc/.gitignore: Add updated-stamp.texi.
54472         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54473
54474 2008-06-19  Bruno Haible  <bruno@clisp.org>
54475
54476         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54477         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54478
54479 2008-06-19  Eric Blake  <ebb9@byu.net>
54480
54481         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54482         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54483         Reported by Stepan Kasal.
54484
54485 2008-06-18  Bruno Haible  <bruno@clisp.org>
54486
54487         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54488         Reported by Eric Blake.
54489
54490 2008-06-18  Eric Blake  <ebb9@byu.net>
54491
54492         Work around cygwin 1.5.25 strsignal bug.
54493         * tests/test-strsignal.c: Allow for const char *.
54494         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54495
54496 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54497
54498         * users.txt: Update URL to article and add author/date
54499         information.
54500
54501 2008-06-17  Bruno Haible  <bruno@clisp.org>
54502
54503         New macro gl_DISABLE_THREADS.
54504         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54505         if the user did not pass --enable-threads or --disable-threads option.
54506         (gl_DISABLE_THREADS): New macro.
54507         Reported by Eric Blake <ebb9@byu.net>.
54508
54509 2008-06-17  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54512         when the macro ignores it.
54513         Based on a patch by Eric Blake <ebb9@byu.net>.
54514
54515 2008-06-17  Bruno Haible  <bruno@clisp.org>
54516
54517         * modules/tls (License): Change to LGPLv2+.
54518         Reported by Eric Blake.
54519
54520 2008-06-17  Eric Blake  <ebb9@byu.net>
54521
54522         Simplify c-stack prerequisites.
54523         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54525         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54526         check.
54527         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54528         <sys/resource.h>.
54529
54530         Move c-stack test into testsuite.
54531         * modules/c-stack-tests: New file.
54532         * lib/c-stack.c [DEBUG]: Move test program...
54533         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54534         fail test if sigaltstack is lacking.
54535         * tests/test-c-stack.sh: New driver file.
54536
54537 2008-06-16  Eric Blake  <ebb9@byu.net>
54538
54539         Use raise module consistently.
54540         * modules/fatal-signal (Depends-on): Add raise.
54541         * modules/sigprocmask (Depends-on): Likewise.
54542         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54543         * lib/sigprocmask.c (sigprocmask): Likewise.
54544         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54545         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54546
54547         Fix compliance bug in sigpending.
54548         * lib/sigprocmask.c (sigpending): Return pending array via
54549         parameter, not return value.
54550
54551 2008-06-14  Eric Blake  <ebb9@byu.net>
54552
54553         Improve obstack-printf test code.
54554         * tests/test-obstack-printf.c (test_function): Fix comment, and
54555         simplify usage of obstack_* in macros.  Add a test for coverage.
54556         Reported by Bruno Haible.
54557
54558 2008-06-14  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54561         array size as a constant, not as a const variable.
54562         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54563         AC_USE_SYSTEM_EXTENSIONS.
54564         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54565         Test whether the obstack_printf function actually exists.
54566         * modules/obstack-printf (Depends-on): Add extensions.
54567         (Include): Remove obstack.h.
54568         * modules/obstack-printf-posix (Depends-on): Add extensions.
54569         (Include): Remove obstack.h.
54570
54571 2008-06-13  Eric Blake  <ebb9@byu.net>
54572
54573         Add obstack-printf and obstack-printf-posix modules.
54574         * modules/obstack-printf: New file.
54575         * modules/obstack-printf-posix: Likewise.
54576         * MODULES.html.sh (Misc): Mention them.
54577         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54578         Likewise.
54579         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54580         Likewise.
54581         * modules/stdio (Makefile.am): Accomodate new modules.
54582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54583         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54584         Declare.
54585         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54586         functions.
54587         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54588         (gl_REPLACE_OBSTACK_PRINTF): New macros
54589         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54590         * tests/test-obstack-printf.c: New file.
54591         * modules/obstack-printf-tests: Likewise.
54592         * modules/obstack-printf-posix-tests: Likewise.
54593
54594 2008-06-11  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54597         * lib/open.c: Include errno.h.
54598         (open): Fail when attempting to write to a file that has a trailing
54599         slash.
54600         * tests/test-open.c (main): Test against trailing slash bug.
54601         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54602
54603 2008-06-10  Bruno Haible  <bruno@clisp.org>
54604
54605         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54606         for $? to work inside the trap command, with various /bin/sh-s.
54607         * tests/test-vc-list-files-cvs.sh: Likewise.
54608
54609 2008-06-10  Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/acl-internal.h: Don't include gettext.h here.
54612         * lib/set-mode-acl.c: Include gettext.h here.
54613         * lib/copy-acl.c: Likewise.
54614
54615 2008-06-10  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54618         * lib/wait-process.c (wait_subprocess): Likewise.
54619         * lib/execute.h (execute): Add termsigp argument.
54620         * lib/execute.c (execute): Likewise.
54621         * lib/csharpcomp.c (compile_csharp_using_pnet,
54622         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54623         * lib/csharpexec.c (execute_csharp_using_pnet,
54624         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54625         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54626         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54627         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54628         is_jikes_present): Update.
54629         * lib/javaexec.c (execute_java_class): Update.
54630         * lib/javaversion.c (execute_and_read_line): Update.
54631         * NEWS: Document the changes.
54632         Reported by Eric Blake.
54633
54634 2008-06-10  Eric Blake  <ebb9@byu.net>
54635
54636         Add missing include.
54637         * tests/test-strstr.c (includes): Add <signal.h>.
54638         * tests/test-strcasestr.c (includes): Likewise.
54639         * tests/test-memmem.c (includes): Likewise.
54640
54641 2008-06-10  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/wait-process.c (wait_subprocess): Add an assertion.
54644
54645 2008-06-10  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54648
54649 2008-06-10  Bruno Haible  <bruno@clisp.org>
54650
54651         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54652         using alarm().
54653         * tests/test-strcasestr.c (main): Likewise.
54654         * tests/test-strstr.c (main): Likewise.
54655
54656 2008-06-09  Bruno Haible  <bruno@clisp.org>
54657
54658         Work around the Solaris 10 ACE ACLs ABI change.
54659         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54660         declare if ACL_NO_TRIVIAL is present.
54661         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54662         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54663         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54664         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54665         define if ACL_NO_TRIVIAL is present.
54666         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54667         and use the current ABI.
54668         (file_has_acl): Use same #if condition as elsewhere.
54669         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54670         in use, and use the current ABI.
54671         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54672         Reported by Jim Meyering.
54673
54674 2008-06-09  Eric Blake  <ebb9@byu.net>
54675
54676         Work around environments that (stupidly) ignore SIGALRM.
54677         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54678         before using alarm().
54679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54680         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54681         Reported by Ian Beckwith <ianb@erislabs.net>.
54682
54683         Produce autobuild blurb earlier in log.
54684         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54685
54686 2008-06-09  Jim Meyering  <meyering@redhat.com>
54687         and OndÅ™ej Vašík  <ovasik@redhat.com>
54688
54689         utimens.c: correct kernel bug work-around
54690         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54691         failure, not success, and the kernel bug we're trying to work
54692         around affects not just the utimensat call, but also the fallback
54693         futimens call.
54694         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54695         not success.
54696         [HAVE_FUTIMENS]: Use the same work-around, here.
54697
54698 2008-06-09  Jim Meyering  <meyering@redhat.com>
54699
54700         add more guards around definition of ACE_-related code
54701         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54702         ALLOW and ACE_OWNER are also defined.
54703
54704 2008-06-08  Bruno Haible  <bruno@clisp.org>
54705
54706         * lib/acl-internal.h: Add me as co-author.
54707         * lib/file-has-acl.c: Likewise.
54708         * lib/set-mode-acl.c: Likewise.
54709         * lib/copy-acl.c: Likewise.
54710
54711 2008-06-08  Bruno Haible  <bruno@clisp.org>
54712
54713         Add support for AIX ACLs.
54714         * lib/acl-internal.h (acl_nontrivial): New declaration.
54715         * lib/file-has-acl.c (acl_nontrivial): New function.
54716         (file_has_acl): Add implementation using AIX 4 ACL API.
54717         * lib/set-mode-acl.c (qset_acl): Likewise.
54718         * lib/copy-acl.c (qcopy_acl): Likewise.
54719
54720 2008-06-08  Bruno Haible  <bruno@clisp.org>
54721
54722         Add support for HP-UX ACLs.
54723         * lib/acl-internal.h (acl_nontrivial): New declaration.
54724         * lib/file-has-acl.c (acl_nontrivial): New function.
54725         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54726         * lib/set-mode-acl.c (qset_acl): Likewise.
54727         * lib/copy-acl.c (qcopy_acl): Likewise.
54728
54729 2008-06-08  Bruno Haible  <bruno@clisp.org>
54730
54731         Add support for Cygwin ACLs.
54732         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54733         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54734         the chmod_or_fchmod call.
54735         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54736
54737 2008-06-08  Bruno Haible  <bruno@clisp.org>
54738
54739         Fix bug with setuid modes in Solaris 10+ code.
54740         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54741         succeeded, when the mode contains some special bits.
54742
54743 2008-06-08  Bruno Haible  <bruno@clisp.org>
54744
54745         Add support for Solaris 7..10 ACLs.
54746         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54747         declarations.
54748         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54749         functions.
54750         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54751         * lib/set-mode-acl.c (qset_acl): Likewise.
54752         * lib/copy-acl.c (qcopy_acl): Likewise.
54753
54754 2008-06-08  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54757         declaration.
54758         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54759         (acl_access_nontrivial): Remove MacOS X case.
54760         (file_has_acl): Use acl_extended_nontrivial.
54761         * lib/copy-acl.c (qcopy_acl): Likewise.
54762
54763 2008-06-08  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54766
54767 2008-06-08  Jim Meyering  <meyering@redhat.com>
54768
54769         * modules/acl (Maintainer): Add Bruno Haible.
54770
54771 2008-06-07  Bruno Haible  <bruno@clisp.org>
54772
54773         Improve support for Tru64 ACLs.
54774         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54775         ACL on OSF/1.
54776
54777 2008-06-07  Bruno Haible  <bruno@clisp.org>
54778
54779         Add support for MacOS X ACLs.
54780         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54781         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54782         * lib/set-mode-acl.c (qset_acl): Likewise.
54783         * lib/copy-acl.c (qcopy_acl): Likewise.
54784
54785 2008-06-07  Bruno Haible  <bruno@clisp.org>
54786
54787         Fix memory leak introduced on 2008-05-22.
54788         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54789         use.
54790
54791 2008-06-07  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54794         to construct an empty ACL.
54795
54796 2008-06-07  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54799         precisely.
54800         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54801
54802 2008-06-07  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54805         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54806
54807 2008-06-07  Bruno Haible  <bruno@clisp.org>
54808
54809         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54810         regardless of POSIX.
54811         * doc/posix-functions/_longjmp.texi: Likewise.
54812         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54813         SystemV platform in this case.
54814
54815 2008-06-06  Eric Blake  <ebb9@byu.net>
54816
54817         Document abort() bugs.
54818         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54819
54820         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54821         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54822         sigsetjmp.
54823         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54824         siglongjmp, but only as a macro.
54825         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54826         is obsolete.
54827         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54828
54829         Tweak documentation to cover cygwin argz bugs.
54830         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54831         argz bug fix; no code change needed since no cygwin releases
54832         occurred between the last fix and the bug being tested.
54833         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54834         module and recently fixed cygwin bugs.
54835         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54836         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54837         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54838         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54839         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54840         Likewise.
54841         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54842         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54843         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54844         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54845         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54846         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54847         Likewise.
54848
54849         Avoid gcc warning on cygwin.
54850         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54851         !ACL_NO_TRIVIAL]: Avoid unused variable.
54852
54853 2008-06-05  Eric Blake  <ebb9@byu.net>
54854
54855         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54856         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54857         git-version-gen fails to come up with a version.
54858         Reported by Simon Josefsson.
54859
54860 2008-06-05  Jim Meyering  <meyering@redhat.com>
54861             Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         utimens.c: work around a probable Linux kernel bug
54864         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54865         appears to be a kernel bug that causes utimensat to return 280
54866         instead of 0, indicating success.
54867
54868 2008-06-04  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54871         2008-06-01 commit.
54872
54873 2008-06-04  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54876         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54877         (file_has_acl): Use it. Save errno afterwards.
54878         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54879
54880 2008-06-03  Bruno Haible  <bruno@clisp.org>
54881
54882         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54883         draft code. Simplify #ifs.
54884         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54885         Put Solaris code after POSIX-draft code. Fix comments regarding
54886         Solaris 10, HP-UX. Mention Cygwin.
54887         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54888
54889 2008-06-03  Eric Blake  <ebb9@byu.net>
54890
54891         Provide fallback for older kernels.
54892         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54893         Provide runtime fallback if kernel lacks support.
54894         Reported by Mike Frysinger.
54895
54896 2008-06-02  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54899         it exists.
54900
54901 2008-06-02  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54904         * lib/copy-acl.c (qcopy_acl): Update comment.
54905
54906 2008-06-02  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54909         like ACL APIs.
54910
54911 2008-06-02  Bruno Haible  <bruno@clisp.org>
54912
54913         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54914         * tests/test-set-mode-acl.sh: Likewise.
54915         * tests/test-copy-acl.sh: Likewise.
54916         * tests/test-copy-file.sh: Likewise.
54917
54918 2008-06-02  Bruno Haible  <bruno@clisp.org>
54919
54920         * tests/test-file-has-acl.sh: Remove unused code.
54921
54922 2008-06-01  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54925         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54926         messages.
54927         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54928
54929 2008-06-01  Bruno Haible  <bruno@clisp.org>
54930
54931         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54932         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54933         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54934         APIs.
54935         * modules/acl-tests (configure.ac): Remove tests now contained in
54936         m4/acl.m4.
54937
54938 2008-06-02  Jim Meyering  <meyering@redhat.com>
54939
54940         announce-gen: use a better key-server host name
54941         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54942         it may be more consistently reliable.  Suggested by Werner Koch
54943         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54944
54945 2008-06-01  Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54948         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54949
54950 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54951
54952         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54953
54954 2008-06-01  Bruno Haible  <bruno@clisp.org>
54955
54956         New ACL tests.
54957         * tests/test-file-has-acl.sh: New file.
54958         * tests/test-file-has-acl.c: New file.
54959         * tests/test-set-mode-acl.sh: New file.
54960         * tests/test-set-mode-acl.c: New file.
54961         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54962         * tests/test-copy-acl.c: New file.
54963         * modules/acl-tests: New file, based on modules/copy-file-tests.
54964         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54965         (Depends-on): Add acl-tests.
54966         (configure.ac): Remove checks.
54967         (Makefile.am): Don't create test-sameacls program here any more.
54968
54969 2008-06-01  Bruno Haible  <bruno@clisp.org>
54970
54971         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54972         * tests/test-sameacls.c: Include progname.h.
54973         (main): Invoke set_program_name. Portability fixes for MacOS X,
54974         Solaris, HP-UX.
54975
54976 2008-06-01  Bruno Haible  <bruno@clisp.org>
54977
54978         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54979         function.
54980         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54981
54982 2008-06-01  Bruno Haible  <bruno@clisp.org>
54983
54984         * modules/rpmatch (Depends-on): Add strdup.
54985
54986 2008-06-01  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/pipe.c: Include unistd-safer.h.
54989         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54990         * modules/pipe (Depends-on): Add unistd-safer.
54991
54992 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54993
54994         * modules/autobuild (configure.ac): Call AB_INIT.
54995
54996 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54997
54998         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54999         Suggested by Bruno Haible <bruno@clisp.org>.
55000
55001 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55002
55003         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55004         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55005         <bruno@clisp.org>.
55006
55007 2008-05-29  Eric Blake  <ebb9@byu.net>
55008
55009         Prefer new POSIX 200x interfaces over futimesat.
55010         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55011         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55012         when available.
55013         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55014
55015 2008-05-28  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/stpcpy (License): Change to LGPLv2+.
55018         Requested by David Lutterkort <dlutter@redhat.com>.
55019
55020 2008-05-27  Bruno Haible  <bruno@clisp.org>
55021
55022         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55023         current mingw.
55024         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55025
55026 2008-05-27  Bruno Haible  <bruno@clisp.org>
55027
55028         * modules/iconv_open (Link): New section, from module 'iconv'.
55029         * modules/striconv (Link): Likewise.
55030         * modules/striconveh (Link): Likewise.
55031         * modules/xstriconv (Link): Likewise.
55032         * modules/unicodeio (Link): Likewise.
55033         * modules/propername (Link): Likewise.
55034         Reported by Jim Meyering.
55035
55036 2008-05-26  Jim Meyering  <meyering@redhat.com>
55037
55038         sha256: do not artificially restrict buffer length to be < 2^32
55039         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55040         uint32_t to size_t.
55041         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55042         to match.
55043
55044         avoid unaligned access errors, e.g., on sparc
55045         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55046         direct access through a possibly-unaligned uint64* pointer.
55047         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55048         direct access through a possibly-unaligned uint32* pointer.
55049         Prompted by this patch from Tom "spot" Callaway:
55050         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55051
55052         sha512.c: fix typo in comment
55053         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55054
55055 2008-05-25  Bruno Haible  <bruno@clisp.org>
55056
55057         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55058         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55059         (Makefile.am): Update lib_SOURCES.
55060
55061 2008-05-25  Bruno Haible  <bruno@clisp.org>
55062
55063         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55064
55065 2008-05-25  Jim Meyering  <meyering@redhat.com>
55066
55067         useless-if-before-free: freed expr may have white-space differences
55068         * build-aux/useless-if-before-free: Recognize cases in which the
55069         freed expression differs from the tested one in embedded white
55070         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55071         $1 was used, so we can't make any regexp shy.  Improved tests now
55072         detect this.
55073
55074         useless-if-before-free: accept white space in the expression.
55075         * build-aux/useless-if-before-free: For now, any white space
55076         in the expression must be identical in the free argument.
55077
55078         useless-if-before-free: efficiency tweak
55079         * build-aux/useless-if-before-free: Make the expression-matching
55080         regexp "shy".
55081         Make the *outer* regexp shy, not the expr-matching one.
55082
55083         update code-in-comment to accept cast of free arg
55084         * build-aux/useless-if-before-free: Update regexp.
55085
55086 2008-05-25  Bruno Haible  <bruno@clisp.org>
55087
55088         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55089         * modules/copy-file-tests (Files, Makefile.am): Update.
55090         * tests/test-copy-file.c (func_test_copy): Update.
55091
55092 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55093
55094         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55095
55096 2008-05-23  Bruno Haible  <bruno@clisp.org>
55097
55098         Improve support for ACLs on OSF/1.
55099         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55100         Remove fallback for unknown flavors of ACLs.
55101
55102 2008-05-22  Bruno Haible  <bruno@clisp.org>
55103
55104         Add support for ACLs on OSF/1.
55105         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55106         replacements.
55107         (acl_free_text): New macro fallback.
55108         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55109         acl_free.
55110         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55111         acl_free_text function. Require AC_C_INLINE.
55112
55113 2008-05-22  Bruno Haible  <bruno@clisp.org>
55114
55115         Make copy_acl work on MacOS X 10.5.
55116         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55117         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55118         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55119         If MODE_INSIDE_ACL, don't assume that every system has the same text
55120         representation for ACLs as FreeBSD.
55121         * lib/copy-acl.c (copy_acl): Add support for platforms with
55122         !MODE_INSIDE_ACL.
55123         * lib/file-has-acl.c (file_has_acl): Likewise.
55124         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55125         FreeBSD, MacOS X, or IRIX, respectively.
55126
55127 2008-05-22  Bruno Haible  <bruno@clisp.org>
55128
55129         * lib/acl.h: Don't include <sys/acl.h>.
55130         (GETACLCNT): Move fallback to lib/acl-internal.h.
55131         * lib/acl-internal.h: Include <sys/acl.h> here.
55132         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55133
55134 2008-05-22  Bruno Haible  <bruno@clisp.org>
55135
55136         Split off copy_acl function to separate file.
55137         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55138         * lib/acl.c (copy_acl): Moved function to separate file.
55139         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55140         * modules/acl (Files): Add lib/copy-acl.c.
55141         (Makefiles.am): Augment lib_SOURCES.
55142
55143 2008-05-22  Bruno Haible  <bruno@clisp.org>
55144
55145         * modules/copy-file-tests: New file.
55146         * tests/test-copy-file.sh: New file.
55147         * tests/test-copy-file.c: New file.
55148         * tests/test-copy-file-sameacls.c: New file.
55149
55150 2008-05-22  Eric Blake  <ebb9@byu.net>
55151
55152         Avoid gcc warning.
55153         * tests/test-memcmp.c (main): Pass NULL indirectly.
55154
55155 2008-05-21  Bruno Haible  <bruno@clisp.org>
55156
55157         Add reference doc about ACLs.
55158         * doc/acl-resources.txt: New file.
55159         * doc/acl-cygwin.txt: New file.
55160
55161 2008-05-21  Bruno Haible  <bruno@clisp.org>
55162
55163         Avoid one more warning from gcc.
55164         * lib/vasnprintf.c (IF_LINT): Update comments.
55165         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55166
55167 2008-05-21  Jim Meyering  <meyering@redhat.com>
55168
55169         avoid a warning from gcc
55170         * lib/vasnprintf.c (IF_LINT): Define.
55171         (scale10_round_decimal_long_double):
55172         Use it to avoid a "may be used uninitialized" warning.
55173         (scale10_round_decimal_double): Likewise.
55174
55175 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55176
55177         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55178         declared.
55179
55180 2008-05-20  Bruno Haible  <bruno@clisp.org>
55181
55182         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55183         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55184
55185 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55186
55187         * modules/memcmp-tests: New file.
55188         * tests/test-memcmp.c: New file.
55189
55190 2008-05-19  Bruno Haible  <bruno@clisp.org>
55191
55192         * modules/propername (Notice, configure.ac): Put quoted "..." into
55193         --keyword option.
55194         * lib/propername.h: Update comments accordingly.
55195         Reported by Eric Blake.
55196
55197 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55198
55199         * modules/getpass-gnu (Depends-on): Add fseeko.
55200
55201 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55202
55203         * modules/base64-tests: New file.
55204
55205 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55206
55207         * lib/base64.c (base64_decode_ctx): If a decode context structure
55208         was passed in use it to ignore newlines.  If a context structure
55209         was _not_ passed in, continue to treat newlines as garbage (this
55210         is the historical behavior).  Formerly base64_decode.
55211         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55212         takes a decode context structure.
55213         * lib/base64.h (base64_decode): Macro for four-argument calls.
55214         (base64_decode_alloc): Likewise.
55215         * lib/base64.c (base64_decode_ctx): If a decode context structure
55216         was passed in use it to ignore newlines.  If a context structure
55217         was _not_ passed in, continue to treat newlines as garbage (this
55218         is the historical behavior).  Formerly base64_decode.
55219         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55220         takes a decode context structure.
55221         * lib/base64.h (base64_decode): Macro for four-argument calls.
55222         (base64_decode_alloc): Likewise.
55223
55224 2008-05-19  Jim Meyering  <meyering@redhat.com>
55225
55226         avoid a warning from gcc
55227         * lib/trim.c (IF_LINT): Define.
55228         (trim2): Use it to avoid a "may be used uninitialized" warning.
55229
55230         Fix doc typo.
55231         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55232
55233 2008-05-19  Bruno Haible  <bruno@clisp.org>
55234
55235         * doc/glibc-functions/getpass.texi: Document limits of other
55236         implementations.
55237
55238 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55239             Bruno Haible <bruno@clisp.org>
55240
55241         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55242
55243 2008-05-18  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/propername: New file, from GNU gettext.
55246         * lib/propername.h: New file, from GNU gettext.
55247         * lib/propername.c: New file, from GNU gettext.
55248         * MODULES.html.sh (Internationalization functions): Add propername.
55249
55250 2008-05-16  Jim Meyering  <meyering@redhat.com>
55251             Bruno Haible  <bruno@clisp.org>
55252
55253         Avoid some warnings from "gcc -Wshadow".
55254         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55255
55256 2008-05-15  Eric Blake  <ebb9@byu.net>
55257
55258         Extend previous patch to cygwin 1.7.0.
55259         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55260         fast implementation in cygwin >= 1.7.0.
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         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55267         implementation in glibc >= 2.9.
55268         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55270
55271 2008-05-15  Bruno Haible  <bruno@clisp.org>
55272
55273         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55274         (Unicode string functions): Add unilbrk/*.
55275         Reported by Karl Berry.
55276
55277 2008-05-15  Eric Blake  <ebb9@byu.net>
55278
55279         Fix violation of <stdbool.h> replacement in regex.
55280         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55281         * lib/regexec.c (re_search_internal): Likewise.
55282         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55283
55284 2008-05-15  Jim Meyering  <meyering@redhat.com>
55285
55286         avoid distracting test output when git or cvs is not found
55287         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55288         * tests/test-vc-list-files-git.sh: Likewise.
55289
55290 2008-05-15  Eric Blake  <ebb9@byu.net>
55291
55292         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55293         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55294         glibc version.
55295         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55296         * doc/posix-functions/strstr.texi (strstr): Likewise.
55297         * lib/str-two-way.h (MAX): Sychronize with glibc.
55298
55299 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55300
55301         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55302         opr.ctx_type.
55303         (calc_first): Initialize constraint field.
55304         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55305         Fix grammar.
55306         (duplicate_node): Merge constraint field for all node types.
55307         (calc_eclosure_iter): Look at constraint field for all node types.
55308         * lib/regex_internal.c (create_cd_newstate): Don't look at
55309         opr.ctx_type.
55310
55311 2008-05-14  Bruno Haible  <bruno@clisp.org>
55312
55313         Help GCC to do better code generation.
55314         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55315         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55316         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55317         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55318         Declare with attribute 'malloc' if supported.
55319
55320 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55321
55322         use "echo STR|wc -c" rather than unportable "expr length STR"
55323         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55324         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55325
55326 2008-05-14  Jim Meyering  <meyering@redhat.com>
55327
55328         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55329         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55330         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55331         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55332         via Collin Lasse.
55333
55334 2008-05-14  Eric Blake  <ebb9@byu.net>
55335
55336         Avoid quadratic growth in gl_LIBSOURCES.
55337         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55338         Suggested by Bruno Haible.
55339
55340         Test xmemdup0.
55341         * modules/xmemdup0-tests: New file.
55342         * tests/test-xmemdup0.c: Likewise.
55343
55344 2008-05-13  Eric Blake  <ebb9@byu.net>
55345
55346         Split xmemdup0 into its own module.
55347         * modules/xmemdup0: New file.
55348         * lib/xmemdup0.h: Likewise.
55349         * lib/xmemdup0.c: Likewise.
55350         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55351         * lib/xalloc.h (xmemdup0): Remove.
55352         * lib/xmalloc.c (xmemdup0): Likewise.
55353
55354 2008-05-13  Eric Blake  <ebb9@byu.net>
55355             Bruno Haible  <bruno@clisp.org>
55356
55357         Reduce number of forks required during autoconf.
55358         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55359         and gl_LIBSOURCES_DIR.
55360         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55361         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55362         m4_syscmd per file.
55363         <m4_foreach_w>: Move...
55364         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55365
55366 2008-05-13  Eric Blake  <ebb9@byu.net>
55367
55368         * gnulib-tool: Fix various comment typos.
55369
55370 2008-05-12  Bruno Haible  <bruno@clisp.org>
55371
55372         Tailor the linebreaking algorithm.
55373         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55374
55375 2008-05-12  Bruno Haible  <bruno@clisp.org>
55376
55377         Update to Unicode 5.0.0.
55378         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55379         LBP_JV, LBP_JT. Redistribute values.
55380         (unilbrk_table): Change size.
55381         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55382         Unicode TR#14 rev. 22.
55383         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55384         LBP_JV, LBP_JT. Redistribute values.
55385         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55386         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55387         Update.
55388         * lib/unilbrk/lbrkprop1.h: Regenerated.
55389         * lib/unilbrk/lbrkprop2.h: Regenerated.
55390         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55391         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55392         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55393         Likewise.
55394         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55395         Likewise.
55396         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55397         result.
55398         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55399         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55400         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55401         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55402         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55403         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55404
55405 2008-05-11  Bruno Haible  <bruno@clisp.org>
55406
55407         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55408
55409 2008-05-11  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55412         * modules/unilbrk/gen-lbrk: New file.
55413
55414 2008-05-11  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55417         * m4/sha512.m4 (gl_SHA512): Likewise.
55418
55419 2008-05-11  Jim Meyering  <meyering@redhat.com>
55420
55421         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55422         * modules/crypto/sha256: New file.
55423         * modules/crypto/sha512: Likewise.
55424         * lib/sha256.c: Likewise.
55425         * lib/sha256.h: Likewise.
55426         * lib/sha512.c: Likewise.
55427         * lib/sha512.h: Likewise.
55428         * lib/u64.h: Likewise.
55429         * m4/sha256.m4: Likewise.
55430         * m4/sha512.m4: Likewise.
55431         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55432
55433 2008-05-10  Bruno Haible  <bruno@clisp.org>
55434
55435         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55436         (Input/Output <stdio.h>): Add xprintf.
55437         (Signal handling <signal.h>): Add strsignal.
55438         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55439         (Core language properties): Add func.
55440         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55441         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55442         strings.
55443         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55444         (Input/output): New section.
55445         (File system functions): Add openat-die, stat-macros.
55446         (Networking functions): Add sockets.
55447         (Unicode string functions): Add unictype/*.
55448         (Support for building libraries and executables): Add gperf.
55449         (Support for building documentation): Add agpl-3.0.
55450         (Misc): Add nocrash.
55451
55452 2008-05-10  Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/unictype/gen-ctype: New file.
55455
55456 2008-05-10  Jim Meyering  <meyering@redhat.com>
55457
55458         Make chdir-safer.c more efficient on a system with no symlinks.
55459         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55460         also if ELOOP is zero.  Suggested by Bruno Haible.
55461
55462         Make chdir-safer.c slightly safer.
55463         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55464         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55465
55466         Avoid compile failure on systems without ELOOP (like mingw).
55467         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55468         Reported by Bruno Haible.
55469
55470 2008-05-10  Bruno Haible  <bruno@clisp.org>
55471
55472         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55473         (is_utf8_encoding): Use a case-insensitive comparison.
55474         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55475         streq.
55476
55477 2008-05-10  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55480         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55481         * lib/unilbrk/ulc-common.h (iconv_string_length,
55482         iconv_string_keeping_offsets): Remove declarations.
55483         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55484         Don't include <iconv.h>, streq.h, xsize.h.
55485         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55486         conversion.
55487         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55488         <iconv.h>, streq.h, xsize.h.
55489         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55490         conversion.
55491         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55492         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55493         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55494         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55495
55496 2008-05-10  Bruno Haible  <bruno@clisp.org>
55497
55498         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55499         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55500
55501         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55502         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55503
55504         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55505         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55506
55507         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55508         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55509
55510         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55511         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55512
55513         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55514         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55515
55516         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55517         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55518
55519         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55520         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55521
55522 2008-05-10  Bruno Haible  <bruno@clisp.org>
55523
55524         Split up 'linebreak' module.
55525         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55526         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55527         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55528         modifications.
55529         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55530         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55531         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55532         lib/linebreak.c.
55533         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55534         lib/linebreak.c.
55535         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55536         lib/linebreak.c.
55537         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55538         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55539         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55540         lib/linebreak.c.
55541         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55542         lib/linebreak.c.
55543         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55544         lib/linebreak.c.
55545         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55546         lib/linebreak.c.
55547         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55548         lib/linebreak.c.
55549         * modules/unilbrk/base: New file.
55550         * modules/unilbrk/tables: New file.
55551         * modules/unilbrk/u8-possible-linebreaks: New file.
55552         * modules/unilbrk/u16-possible-linebreaks: New file.
55553         * modules/unilbrk/u32-possible-linebreaks: New file.
55554         * modules/unilbrk/ulc-common: New file.
55555         * modules/unilbrk/ulc-possible-linebreaks: New file.
55556         * modules/unilbrk/u8-width-linebreaks: New file.
55557         * modules/unilbrk/u16-width-linebreaks: New file.
55558         * modules/unilbrk/u32-width-linebreaks: New file.
55559         * modules/unilbrk/ulc-width-linebreaks: New file.
55560         * lib/linebreak.h: Remove file.
55561         * lib/linebreak.c: Remove file.
55562         * m4/linebreak.m4: Remove file.
55563         * modules/linebreak: Remove file.
55564         * NEWS: Mention the changes.
55565
55566 2008-05-09  Eric Blake  <ebb9@byu.net>
55567
55568         Add xmemdup0.
55569         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55570         implementation.
55571         * lib/xmalloc.c (xmemdup0): New C implementation.
55572
55573 2008-05-08  Bruno Haible  <bruno@clisp.org>
55574
55575         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55576
55577 2008-05-07  Eric Blake  <ebb9@byu.net>
55578
55579         Support cross-compilation of <wctype.h>.
55580         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55581         AC_CACHE_CHECK.
55582
55583 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55584
55585         * build-aux/vc-list-files: Add support for bzr.
55586
55587 2008-05-03  Jim Meyering  <meyering@redhat.com>
55588
55589         avoid failed assertion with tight malloc
55590         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55591
55592 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55593
55594         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55595         are needed from arpa/inet.h.
55596         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55597         Reported by Bruno Haible.
55598
55599 2008-05-02  Jim Meyering  <meyering@redhat.com>
55600
55601         avoid compilation error on FreeBSD 6
55602         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55603
55604 2008-05-01  Jim Meyering  <meyering@redhat.com>
55605
55606         useless-if-before-free: correct --help's exit status description
55607         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55608         for one or more matches, etc.  Reported by Bruno Haible.
55609
55610         vc-list-files: make the stand-alone gnulib test work
55611         * modules/vc-list-files-tests (configure.ac):
55612         Define and AC_SUBST abs_aux_dir.
55613         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55614         $(abs_top_srcdir) to each script and having each of them
55615         duplicate the work of setting PATH, set PATH here, using
55616         the new variable, abs_aux_dir instead.
55617         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55618         * tests/test-vc-list-files-git.sh: Likewise.
55619         Reported by Bruno Haible.
55620
55621 2008-05-01  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55624         reallocation. Rename 'done' to 'found_delimiter'.
55625
55626 2008-05-01  Jim Meyering  <meyering@redhat.com>
55627
55628         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55629         * build-aux/vc-list-files: Use `...`, not $(...).
55630
55631 2008-04-30  Jim Meyering  <meyering@redhat.com>
55632
55633         add tests for vc-list-files
55634         * modules/vc-list-files-tests: New module.
55635         * tests/test-vc-list-files-cvs.sh: New file.
55636         * tests/test-vc-list-files-git.sh: New file.
55637
55638         avoid a warning from gcc
55639         * lib/getndelim2.c (IF_LINT): Define.
55640         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55641
55642         vc-list-files: work properly with build-aux/cvsu, too
55643         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55644         to all cvs-based clauses.
55645
55646         vc-list-files: work properly in the CVS+awk case, too
55647         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55648
55649         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55650         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55651         take more than one file argument, so .  Add quotes, just in case $dir
55652         ever contains a shell meta-character.  Prompted by Soren Hansen in
55653         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55654
55655 2008-04-29  Eric Blake  <ebb9@byu.net>
55656
55657         Optimize getndelim2 to use block operations when possible.
55658         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55659         freadseek, and memchr2.
55660         * lib/getndelim2.c (getndelim2): Use them for block reads.
55661
55662 2008-04-29  Bruno Haible  <bruno@clisp.org>
55663
55664         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55665         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55666         * modules/inet_ntop (Depends-on): Add extensions.
55667         * modules/inet_pton (Depends-on): Likewise.
55668         Reported by Simon Josefsson.
55669
55670 2008-04-29  Jim Meyering  <meyering@redhat.com>
55671
55672         When the is more than one match in a block, match all of them.
55673         * build-aux/useless-if-before-free: Iterate through each block
55674         until there are no more matches.
55675
55676         Fix broken useless-if-before-free script.
55677         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55678         the expression to match cast of argument to free-like function.
55679
55680 2008-04-29  Eric Blake  <ebb9@byu.net>
55681
55682         Use new header.
55683         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55684
55685 2008-04-29  Jim Meyering  <meyering@redhat.com>
55686
55687         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55688         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55689         by gnulib to exist and to declare e.g., inet_ntop.
55690         Don't include "inet_ntop.h", now removed.
55691
55692         * m4/arpa_inet_h.m4: Remove trailing blanks.
55693
55694 2008-04-29  Eric Blake  <ebb9@byu.net>
55695
55696         Silence valgrind on safe reads beyond potential array bounds.
55697         * lib/rawmemchr.valgrind: New file.
55698         * lib/strchrnul.valgrind: Likewise.
55699         * modules/rawmemchr (Files): Distribute new file.
55700         * modules/strchrnul (Files): Likewise.
55701         Suggested by Bruno Haible.
55702
55703 2008-04-29  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55706         (inet_ntop, inet_pton): Change portability warning's wording.
55707         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55708         Invoke gl_CHECK_NEXT_HEADERS.
55709         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55710         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55711         set ARPA_INET_H.
55712         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55713         * modules/arpa_inet (Description): No longer only for systems that
55714         lack it.
55715         (Depends-on): Add include_next.
55716         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55717         HAVE_ARPA_INET_H.
55718
55719 2008-04-29  Jim Meyering  <meyering@redhat.com>
55720
55721         * modules/mkdir (License): Re-license as LGPLv2+.
55722
55723 2008-04-29  Bruno Haible  <bruno@clisp.org>
55724
55725         * modules/rawmemchr (Maintainer): Set to Eric.
55726         * modules/strchrnul (Maintainer): Likewise.
55727
55728 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55729
55730         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55731         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55732
55733         * modules/arpa_inet (arpa/inet.h): Use them.
55734
55735 2008-04-28  Eric Blake  <ebb9@byu.net>
55736
55737         Test getndelim2.
55738         * modules/getndelim2-tests: New file.
55739         * tests/test-getndelim2.c: Likewise.
55740         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55741         stream.
55742         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55743
55744         * MODULES.html.sh: Document new module.
55745
55746 2008-04-20  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/c-stack.c (die): Use raise.
55749         * modules/c-stack (Depends-on): Add raise.
55750
55751 2008-04-28  Bruno Haible  <bruno@clisp.org>
55752
55753         Expect rpmatch to be declared.
55754         * lib/yesno.c (rpmatch): Remove declaration.
55755
55756         Declare rpmatch.
55757         * lib/stdlib.in.h (rpmatch): New declaration.
55758         * lib/rpmatch.c: Include <stdlib.h> first.
55759         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55760         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55762         HAVE_RPMATCH.
55763         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55765         (Include): Set to <stdlib.h>.
55766         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55767         HAVE_RPMATCH.
55768         * NEWS: Document the change.
55769
55770 2008-04-28  Bruno Haible  <bruno@clisp.org>
55771
55772         Change rpmatch to use nl_langinfo when appropriate.
55773         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55774         (N_): New macro.
55775         (localized_pattern): New function/macro.
55776         (try): Remove match, nomatch arguments. Copy the pattern into safe
55777         memory before caching it.
55778         (rpmatch): Use localized_pattern. Add translator comments.
55779         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55780         Suggested by Eric Blake.
55781         * modules/rpmatch (Depends-on): Add stdbool.
55782
55783 2008-04-28  Eric Blake  <ebb9@byu.net>
55784
55785         Add rawmemchr module, matching glibc.
55786         * modules/string (Makefile.am): New indicator.
55787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55788         * lib/string.in.h (rawmemchr): Declare when appropriate.
55789         * modules/rawmemchr: New file.
55790         * m4/rawmemchr.m4: Likewise.
55791         * lib/rawmemchr.c: Likewise.
55792         * modules/rawmemchr-tests: Likewise.
55793         * tests/test-rawmemchr.c: Likewise.
55794         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55795         module.
55796         * modules/strchrnul (Depends-on): Add rawmemchr.
55797         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55798
55799         Whitespace cleanup.
55800         * tests/test-strchrnul.c: Reindent.
55801         * lib/strchrnul.c: Likewise.
55802
55803         Optimize and test strchrnul.
55804         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55805         * modules/strchrnul-tests: New file.
55806         * tests/test-strchrnul.c: Likewise.
55807
55808         Remove intprops dependency.
55809         * modules/memchr (Depends-on): Remove intprops.
55810         * modules/memrchr (Depends-on): Likewise.
55811         * modules/memchr2 (Depends-on): Likewise.
55812         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55813         * lib/memrchr.c (__memrchr): Likewise.
55814         * lib/memrchr2.c (memchr2): Likewise.
55815         Reported by Simon Josefsson.
55816
55817 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55818
55819         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55820         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55821
55822 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55823
55824         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55825
55826         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55827
55828         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55829
55830         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55831         declarations.
55832         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55833
55834         * m4/inet_pton.m4: Don't check for header files.
55835
55836         * m4/inet_ntop.m4: Don't check for header files.
55837
55838 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55839
55840         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55841         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55842         trigger for cygwin).
55843         Reported by Bruno Haible  <bruno@clisp.org>.
55844
55845 2008-04-28  Bruno Haible  <bruno@clisp.org>
55846
55847         * doc/posix-functions/strdup.texi: Mention mingw problem.
55848
55849 2008-04-27  Bruno Haible  <bruno@clisp.org>
55850
55851         * modules/stat-time-tests (Depends-on): Add sleep.
55852         * tests/test-stat-time.c (force_unlink): New function.
55853         (cleanup): Use it.
55854         (test_mtime): Remove the ctime related tests.
55855         (test_ctime): New function, containing the ctime related tests.
55856         (main): Call test_ctime, except on native Windows platforms.
55857
55858 2008-04-27  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/rpmatch.c (rpmatch): Add some comments.
55861         Reported by James Youngman <jay@gnu.org>.
55862
55863 2008-04-27  Bruno Haible  <bruno@clisp.org>
55864
55865         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55866         quiet NaNs.
55867
55868 2008-04-27  Bruno Haible  <bruno@clisp.org>
55869
55870         Make test-yesno.sh work on mingw.
55871         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55872         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55873         (main): Set stdin to binary mode.
55874         * modules/yesno-tests (Depends-on): Add binary-io.
55875
55876 2008-04-27  Bruno Haible  <bruno@clisp.org>
55877
55878         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55879         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55880         argument that lie outside the IEEE 854 domain.
55881         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55882         (gl_ISFINITE): Use it.
55883         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55884
55885 2008-04-27  Bruno Haible  <bruno@clisp.org>
55886
55887         Allow local renaming in config.h.
55888         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55889
55890 2008-04-27  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/memchr.c (__memchr): Change type of 'i'.
55893         * lib/memchr2.c (memchr2): Likewise.
55894
55895 2008-04-26  Eric Blake  <ebb9@byu.net>
55896         and Bruno Haible  <bruno@clisp.org>
55897
55898         Optimize and test memrchr.
55899         * modules/memrchr (Depends-on): Add intprops.
55900         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55901         * modules/memrchr-tests: New file.
55902         * tests/test-memrchr.c: New file.
55903
55904 2008-04-26  Bruno Haible  <bruno@clisp.org>
55905
55906         Add tentative support for DragonFly BSD.
55907         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55908         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55909         fp.
55910         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55911         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55912         * lib/fpurge.c (fpurge): Likewise.
55913         * lib/freadable.c (freaadable): Likewise.
55914         * lib/freadahead.c (freadahead): Likewise.
55915         * lib/freading.c (freading): Likewise.
55916         * lib/freadptr.c (freadptr): Likewise.
55917         * lib/freadseek.c (freadptrinc): Likewise.
55918         * lib/fseeko.c (fseeko): Likewise.
55919         * lib/fseterr.c (fseterr): Likewise.
55920         * lib/fwritable.c (fwritable): Likewise.
55921         * lib/fwriting.c (fwriting): Likewise.
55922
55923 2008-04-26  Bruno Haible  <bruno@clisp.org>
55924
55925         * lib/stdio-impl.h: New file.
55926         * lib/fbufmode.c: Include stdio-impl.h.
55927         (fbufmode): Use fp_, remove redundant #defines.
55928         * lib/fflush.c: Include stdio-impl.h.
55929         (clear_ungetc_buffer): Remove redundant #defines.
55930         * lib/fpurge.c: Include stdio-impl.h.
55931         (fpurge): Remove redundant #defines.
55932         * lib/freadable.c: Include stdio-impl.h.
55933         (freadable): Remove redundant #defines.
55934         * lib/freadahead.c: Include stdio-impl.h.
55935         (freadahead): Remove redundant #defines.
55936         * lib/freading.c: Include stdio-impl.h.
55937         (freading): Remove redundant #defines.
55938         * lib/freadptr.c: Include stdio-impl.h.
55939         (freadptr): Remove redundant #defines.
55940         * lib/freadseek.c: Include stdio-impl.h.
55941         (freadptrinc): Remove redundant #defines.
55942         * lib/fseeko.c: Include stdio-impl.h.
55943         (rpl_fseeko): Remove redundant #defines.
55944         * lib/fseterr.c: Include stdio-impl.h.
55945         (fseterr): Remove redundant #defines.
55946         * lib/fwritable.c: Include stdio-impl.h.
55947         (fwritable: Remove redundant #defines.
55948         * lib/fwriting.c: Include stdio-impl.h.
55949         (fwriting): Remove redundant #defines.
55950         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55951         * modules/fflush (Files): Likewise.
55952         * modules/fpurge (Files): Likewise.
55953         * modules/freadable (Files): Likewise.
55954         * modules/freadahead (Files): Likewise.
55955         * modules/freading (Files): Likewise.
55956         * modules/freadptr (Files): Likewise.
55957         * modules/freadseek (Files): Likewise.
55958         * modules/fseeko (Files): Likewise.
55959         * modules/fseterr (Files): Likewise.
55960         * modules/fwritable (Files): Likewise.
55961         * modules/fwriting (Files): Likewise.
55962
55963 2008-04-26  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55966         restore_seek_optimization, update_fpos_cache): New functions, extracted
55967         from rpl_fflush.
55968         (rpl_fflush): Use them.
55969         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55970         (gl_REPLACE_FFLUSH): Use it.
55971
55972 2008-04-26  Bruno Haible  <bruno@clisp.org>
55973
55974         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55975         on Solaris.
55976         * tests/test-xstrtoimax.sh: Likewise.
55977         * tests/test-xstrtoumax.sh: Likewise.
55978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55979
55980 2008-04-26  Bruno Haible  <bruno@clisp.org>
55981
55982         * modules/memchr-tests: New file.
55983         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55984
55985 2008-04-26  Eric Blake  <ebb9@byu.net>
55986             Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/memchr.c: Include intprops.h.
55989         (__memchr): Optimize parallel detection of matching bytes. Rename local
55990         variables. Add explanatory comments.
55991
55992 2008-04-26  Bruno Haible  <bruno@clisp.org>
55993
55994         Fix module 'memchr', broken since 2000-10-28.
55995         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55996
55997 2008-04-26  Bruno Haible  <bruno@clisp.org>
55998
55999         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56000         comments.
56001
56002 2008-04-25  Eric Blake  <ebb9@byu.net>
56003
56004         Use native fstatat on cygwin 1.7.0.
56005         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56006         first.
56007
56008 2008-04-23  Eric Blake  <ebb9@byu.net>
56009
56010         Improve memchr2 performance.
56011         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56012         NUL bytes.
56013         * modules/memchr2 (Depends-on): Use intprops.h.
56014
56015 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56016
56017         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56018         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56019         <blp@cs.stanford.edu>.
56020
56021 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56022
56023         * lib/arpa_inet.in.h: New file.
56024
56025         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56026         (Makefile.am): Sed in substitute header file.
56027
56028         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56029         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56030
56031         * modules/inet_ntop (configure.ac): Use
56032         gl_ARPA_INET_MODULE_INDICATOR.
56033
56034         * modules/inet_pton (configure.ac): Use
56035         gl_ARPA_INET_MODULE_INDICATOR.
56036
56037 2008-04-22  Jim Meyering  <meyering@redhat.com>
56038
56039         * modules/verify (License): Re-license as LGPLv2+.
56040
56041 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56042
56043         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56044         parameter to void* as per POSIX standard (MinGW uses char*).
56045
56046 2008-04-21  Bruno Haible  <bruno@clisp.org>
56047
56048         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56049         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56050         Define to replacements if REPLACE_ISWCNTRL is 1.
56051         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56052         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56053         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56054         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56055         what it fixes.
56056         * doc/posix-functions/iswalpha.texi: Likewise.
56057         * doc/posix-functions/iswblank.texi: Likewise.
56058         * doc/posix-functions/iswcntrl.texi: Likewise.
56059         * doc/posix-functions/iswdigit.texi: Likewise.
56060         * doc/posix-functions/iswgraph.texi: Likewise.
56061         * doc/posix-functions/iswlower.texi: Likewise.
56062         * doc/posix-functions/iswprint.texi: Likewise.
56063         * doc/posix-functions/iswpunct.texi: Likewise.
56064         * doc/posix-functions/iswspace.texi: Likewise.
56065         * doc/posix-functions/iswupper.texi: Likewise.
56066         * doc/posix-functions/iswxdigit.texi: Likewise.
56067         Reported by Alain Guibert.
56068
56069 2008-04-21  Bruno Haible  <bruno@clisp.org>
56070
56071         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56072         Patch by Alain Guibert.
56073
56074 2008-04-21  Bruno Haible  <bruno@clisp.org>
56075
56076         Fix test failures on mingw.
56077         * tests/test-xstrtol.c (print_no_progname): New function.
56078         (main): Install it in error_print_progname hook.
56079         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56080         * tests/test-xstrtoimax.sh: Likewise.
56081         * tests/test-xstrtoumax.sh: Likewise.
56082
56083 2008-04-21  Bruno Haible  <bruno@clisp.org>
56084
56085         Fix test failure on mingw.
56086         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56087
56088 2008-04-21  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56091         Actually assign a value.
56092
56093 2008-04-20  Bruno Haible  <bruno@clisp.org>
56094
56095         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56096         take 2.
56097         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56098         'canonicalize-lgpl' module is also used.
56099         * lib/canonicalize-lgpl.c: Undo last change.
56100         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56101
56102 2008-04-20  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56105         config.h. Provide _mkdir based fallback for mingw.
56106         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56107         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56109         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56110         rather than defining mkdir in config.h.
56111         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56112         (gl_SYS_STAT_H_DEFAULTS): New macro.
56113         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56114         HAVE_IO_H any more.
56115         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56116         HAVE_DECL_MKDIR and HAVE_IO_H.
56117
56118 2008-04-20  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/isapipe.c: Port to native Windows platforms.
56121
56122 2008-04-20  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56125
56126 2008-04-21  Eric Blake  <ebb9@byu.net>
56127
56128         Work around preprocessors that don't handle UINTMAX_MAX.
56129         * lib/memchr2.c (memchr2): Avoid embedded #if.
56130         Reported by Alain Guibert, fix suggested by Bruno Haible.
56131
56132 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56133
56134         * doc/posix-functions/strftime.texi (strftime): Explain better
56135         Windows incompatibility.  Suggested by Micah Cowan
56136         <micah@cowan.name>.
56137
56138 2008-04-20  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56141         unistr/u8-mblen.
56142
56143 2008-04-20  Bruno Haible  <bruno@clisp.org>
56144
56145         Fix test failure on platforms with non-GNU iconv.
56146         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56147         (U_TO_U8): Use it, rather than u16_to_u8.
56148         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56149         units at the end of the input string.
56150         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56151
56152 2008-04-20  Bruno Haible  <bruno@clisp.org>
56153
56154         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56155         when the resulting length is 0.
56156         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56157
56158 2008-04-20  Bruno Haible  <bruno@clisp.org>
56159
56160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56161         works.
56162         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56163
56164 2008-04-20  Bruno Haible  <bruno@clisp.org>
56165
56166         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56167         * modules/tsearch-tests (configure.ac): Test for initstate function.
56168
56169 2008-04-20  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56172         for nlink_t if missing.
56173         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56174
56175 2008-04-19  Bruno Haible  <bruno@clisp.org>
56176
56177         Work around snprintf bug on Linux libc5.
56178         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56180         gl_SNPRINTF_SIZE1.
56181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56182         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56183         that test failed.
56184         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56185         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56186         * modules/snprintf (Files): Add m4/printf.m4.
56187         * modules/vsnprintf (Files): Likewise.
56188         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56189         * doc/posix-functions/vsnprintf.texi: Likewise.
56190
56191 2008-04-19  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56194         from 0.0058 to less than 10^-7.
56195
56196 2008-04-19  Bruno Haible  <bruno@clisp.org>
56197
56198         Fix rounding when a precision is given.
56199         * lib/vasnprintf.c (is_borderline): New function.
56200         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56201         9...9x.
56202         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56203         %e, %g.
56204         * tests/test-vasprintf-posix.c (test_function): Likewise.
56205         * tests/test-snprintf-posix.h (test_function): Likewise.
56206         * tests/test-sprintf-posix.h (test_function): Likewise.
56207         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56208         * tests/test-printf-posix.h (test_function): Likewise.
56209         * tests/test-printf-posix.output: Update.
56210         Reported by John Darrington <john@darrington.wattle.id.au> via
56211         Ben Pfaff <blp@cs.stanford.edu>.
56212
56213 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56214
56215         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56216         Suggested by Bruno Haible <bruno@clisp.org>.
56217
56218 2008-04-17  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56221         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56222         implementation.
56223         Patch by Bruce Merry <bmerry@gmail.com>.
56224
56225 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56226
56227         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56228         doesn't work under Windows.
56229
56230 2008-04-16  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56233         New macros.
56234         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56235         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56236         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56237         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56238         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56239         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56240         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56241         macros.
56242         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56243         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56244         Northern Sotho, Uighur.
56245
56246 2008-04-16  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56249         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56250         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56251         Reported by Daniel Bergström <daniel@octocode.com>.
56252
56253 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56254             Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56257         function.
56258         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56259         New functions, mostly extracted from gl_locale_name_default.
56260         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56261
56262 2008-04-16  Eric Blake  <ebb9@byu.net>
56263
56264         Adjust strtod detection to catch glibc 2.7 bug.
56265         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56266         Reported by John Gatewood Ham.
56267
56268 2008-04-16  Bruno Haible  <bruno@clisp.org>
56269
56270         Add tentative support for Linux libc5.
56271         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56272         * lib/fpurge.c (fpurge): Likewise.
56273         * lib/freadable.c (freadable): Likewise.
56274         * lib/freadahead.c (freadahead): Likewise.
56275         * lib/freading.c (freading): Likewise.
56276         * lib/freadptr.c (freadptr): Likewise.
56277         * lib/freadseek.c (freadptrinc): Likewise.
56278         * lib/fseeko.c (rpl_fseeko): Likewise.
56279         * lib/fseterr.c (fseterr): Likewise.
56280         * lib/fwritable.c (fwritable): Likewise.
56281         * lib/fwriting.c (fwriting): Likewise.
56282         Reported by Alain Guibert <alguibert+bts@free.fr>.
56283
56284 2008-04-15  Bruno Haible  <bruno@clisp.org>
56285
56286         * modules/mathl (configure.ac): Define module indicator.
56287
56288 2008-04-15  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/logl.c (logl): Remove unused variables.
56291
56292 2008-04-15  Bruno Haible  <bruno@clisp.org>
56293
56294         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56295         fails.
56296
56297 2008-04-15  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/trim.c (trim2): Fix argument of isspace() macro.
56300
56301 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56302
56303         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56304         to 0.
56305         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56306
56307 2008-04-14  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56310         AC_LANG_PROGRAM argument.
56311         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56312         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56314         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56315         * m4/math_h.m4 (gl_MATH_H): Likewise.
56316         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56317         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56318         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56319         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56320         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56321         * m4/regex.m4 (gl_REGEX): Likewise.
56322         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56323         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56325         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56327         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56329         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56330
56331 2008-04-14  Jim Meyering  <meyering@redhat.com>
56332
56333         test-strtod: fix typos: s/abs/fabs/
56334         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56335
56336 2008-04-13  Bruno Haible  <bruno@clisp.org>
56337
56338         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56339         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56340         module is also used and while not building the reloc-wrapper.
56341
56342 2008-04-13  Bruno Haible  <bruno@clisp.org>
56343
56344         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56345
56346 2008-04-13  Bruno Haible  <bruno@clisp.org>
56347
56348         Fix AIX compilation failure introduced on 2008-04-02.
56349         * tests/test-frexp.c (exp): Undefine before redefining.
56350         * tests/test-frexpl.c (exp): Likewise.
56351
56352 2008-04-13  Bruno Haible  <bruno@clisp.org>
56353
56354         Work around a HP-UX stdio bug.
56355         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56356         * tests/test-ftello.c (main): Likewise.
56357         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56358         * doc/posix-functions/ftello.texi: Likewise.
56359
56360 2008-04-13  Bruno Haible  <bruno@clisp.org>
56361
56362         Make test-signbit pass on HP-UX/hppa.
56363         * tests/test-signbit.c (minus_zerol): New variable.
56364         (test_signbitl): Use it.
56365
56366 2008-04-13  Bruno Haible  <bruno@clisp.org>
56367
56368         Make truncl work on OSF/1 4.0.
56369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56370         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56371         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56373         HAVE_DECL_TRUNCL.
56374         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56375         HAVE_DECL_TRUNCL.
56376         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56377
56378 2008-04-13  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56381
56382 2008-04-13  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56385         expression, so as to avoid HP-UX 11 cc compiler bug.
56386
56387 2008-04-13  Bruno Haible  <bruno@clisp.org>
56388
56389         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56390
56391 2008-04-13  Bruno Haible  <bruno@clisp.org>
56392
56393         * lib/git-merge-changelog.c: Remove empty declaration outside of
56394         functions.
56395
56396 2008-04-13  Bruno Haible  <bruno@clisp.org>
56397
56398         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56399
56400 2008-04-13  Bruno Haible  <bruno@clisp.org>
56401
56402         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56403         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56404         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56405         also if it exists but lacks definitions of the SHUT_* macros.
56406         * modules/sys_socket (Description): Update.
56407         Reported by Elbert Pol <e.pol@chello.nl>.
56408
56409 2008-04-13  Bruno Haible  <bruno@clisp.org>
56410
56411         * lib/localcharset.c (OS2): Don't redefine if already defined.
56412         Reported by Elbert Pol <e.pol@chello.nl>.
56413
56414 2008-04-13  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/binary-io.h [__EMX__]: Include <io.h>.
56417         Reported by Elbert Pol <e.pol@chello.nl>.
56418
56419 2008-04-12  Bruno Haible  <bruno@clisp.org>
56420
56421         * lib/fpucw.h: Enable the definitions also for x86_64.
56422         Needed for NetBSD/x86_64.
56423         Reported by Thomas Klausner <tk@giga.or.at>.
56424
56425 2008-04-12  Bruno Haible  <bruno@clisp.org>
56426
56427         * tests/test-strtod.c: Include isnand.h.
56428         (main): Use isnand instead of isnan.
56429         Reported by Jim Meyering.
56430
56431 2008-04-12  Bruno Haible  <bruno@clisp.org>
56432
56433         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56434         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56435
56436 2008-04-12  Jim Meyering  <meyering@redhat.com>
56437
56438         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56439
56440 2008-04-12  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56443         Reported by Elbert Pol <e.pol@chello.nl>.
56444
56445 2008-04-12  Eric Blake  <ebb9@byu.net>
56446
56447         Work around Solaris 10 math.h bug.
56448         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56449         (gl_MATH_H_DEFAULTS): Set up default.
56450         * modules/math (Makefile.am): Replace new indicators.
56451         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56452         * tests/test-math.c (main): Test this.
56453         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56454         * doc/posix-headers/math.texi (math.h): Mention bug.
56455         Reported by Nelson H. F. Beebe and Jim Meyering.
56456
56457 2008-04-11  Bruno Haible  <bruno@clisp.org>
56458
56459         Adapt to future versions of Apple GCC.
56460         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56461         Reported by Peter O'Gorman <peter@pogma.com>.
56462
56463 2008-04-11  Bruno Haible  <bruno@clisp.org>
56464
56465         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56466
56467 2008-04-11  Bruno Haible  <bruno@clisp.org>
56468
56469         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56470
56471         * modules/getaddrinfo-tests (Makefile.am): Define
56472         test_getaddrinfo_LDADD.
56473
56474 2008-04-11  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56477         (init): Fix syntax error.
56478         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56479         is declared.
56480
56481 2008-04-11  Bruno Haible  <bruno@clisp.org>
56482
56483         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56484         * modules/glob (Depends-on): Add stdbool.
56485
56486 2008-04-11  Bruno Haible  <bruno@clisp.org>
56487
56488         * lib/trim.c: Include <string.h>.
56489
56490 2008-04-11  Eric Blake  <ebb9@byu.net>
56491
56492         Avoid compile failure on OS/2.
56493         * lib/regex_internal.h (internal_function): Disable optimization
56494         on OS/2 (__EMX__), where it caused compiler error.
56495         Reported by Elbert Pol.
56496
56497 2008-04-11  Bruno Haible  <bruno@clisp.org>
56498
56499         Flush the standard error stream before aborting. Needed on mingw.
56500         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56501         * tests/test-array_list.c (ASSERT): Likewise.
56502         * tests/test-array_oset.c (ASSERT): Likewise.
56503         * tests/test-avltree_list.c (ASSERT): Likewise.
56504         * tests/test-avltree_oset.c (ASSERT): Likewise.
56505         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56506         * tests/test-binary-io.c (ASSERT): Likewise.
56507         * tests/test-byteswap.c (ASSERT): Likewise.
56508         * tests/test-c-ctype.c (ASSERT): Likewise.
56509         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56510         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56511         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56512         * tests/test-c-strstr.c (ASSERT): Likewise.
56513         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56514         * tests/test-canonicalize.c (ASSERT): Likewise.
56515         * tests/test-carray_list.c (ASSERT): Likewise.
56516         * tests/test-ceilf1.c (ASSERT): Likewise.
56517         * tests/test-ceilf2.c (ASSERT): Likewise.
56518         * tests/test-ceill.c (ASSERT): Likewise.
56519         * tests/test-count-one-bits.c (ASSERT): Likewise.
56520         * tests/test-fbufmode.c (ASSERT): Likewise.
56521         * tests/test-fflush2.c (ASSERT): Likewise.
56522         * tests/test-floorf1.c (ASSERT): Likewise.
56523         * tests/test-floorf2.c (ASSERT): Likewise.
56524         * tests/test-floorl.c (ASSERT): Likewise.
56525         * tests/test-fopen.c (ASSERT): Likewise.
56526         * tests/test-fpending.c (ASSERT): Likewise.
56527         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56528         * tests/test-fpurge.c (ASSERT): Likewise.
56529         * tests/test-freadable.c (ASSERT): Likewise.
56530         * tests/test-freadahead.c (ASSERT): Likewise.
56531         * tests/test-freading.c (ASSERT): Likewise.
56532         * tests/test-freadptr.c (ASSERT): Likewise.
56533         * tests/test-freadptr2.c (ASSERT): Likewise.
56534         * tests/test-freadseek.c (ASSERT): Likewise.
56535         * tests/test-freopen.c (ASSERT): Likewise.
56536         * tests/test-frexp.c (ASSERT): Likewise.
56537         * tests/test-frexpl.c (ASSERT): Likewise.
56538         * tests/test-fseek.c (ASSERT): Likewise.
56539         * tests/test-fseeko.c (ASSERT): Likewise.
56540         * tests/test-fstrcmp.c (ASSERT): Likewise.
56541         * tests/test-ftell.c (ASSERT): Likewise.
56542         * tests/test-ftello.c (ASSERT): Likewise.
56543         * tests/test-func.c (ASSERT): Likewise.
56544         * tests/test-fwritable.c (ASSERT): Likewise.
56545         * tests/test-fwriting.c (ASSERT): Likewise.
56546         * tests/test-getdelim.c (ASSERT): Likewise.
56547         * tests/test-getline.c (ASSERT): Likewise.
56548         * tests/test-i-ring.c (ASSERT): Likewise.
56549         * tests/test-iconv-utf.c (ASSERT): Likewise.
56550         * tests/test-iconv.c (ASSERT): Likewise.
56551         * tests/test-isfinite.c (ASSERT): Likewise.
56552         * tests/test-isnand.c (ASSERT): Likewise.
56553         * tests/test-isnanf.c (ASSERT): Likewise.
56554         * tests/test-isnanl.h (ASSERT): Likewise.
56555         * tests/test-ldexpl.c (ASSERT): Likewise.
56556         * tests/test-linked_list.c (ASSERT): Likewise.
56557         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56558         * tests/test-localename.c (ASSERT): Likewise.
56559         * tests/test-lseek.c (ASSERT): Likewise.
56560         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56561         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56562         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56563         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56564         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56565         * tests/test-mbschr.c (ASSERT): Likewise.
56566         * tests/test-mbscspn.c (ASSERT): Likewise.
56567         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56568         * tests/test-mbspbrk.c (ASSERT): Likewise.
56569         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56570         * tests/test-mbsrchr.c (ASSERT): Likewise.
56571         * tests/test-mbsspn.c (ASSERT): Likewise.
56572         * tests/test-mbsstr1.c (ASSERT): Likewise.
56573         * tests/test-mbsstr2.c (ASSERT): Likewise.
56574         * tests/test-mbsstr3.c (ASSERT): Likewise.
56575         * tests/test-memchr2.c (ASSERT): Likewise.
56576         * tests/test-memmem.c (ASSERT): Likewise.
56577         * tests/test-open.c (ASSERT): Likewise.
56578         * tests/test-printf-frexp.c (ASSERT): Likewise.
56579         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56580         * tests/test-printf-posix.c (ASSERT): Likewise.
56581         * tests/test-quotearg.c (ASSERT): Likewise.
56582         * tests/test-rbtree_list.c (ASSERT): Likewise.
56583         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56584         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56585         * tests/test-round1.c (ASSERT): Likewise.
56586         * tests/test-roundf1.c (ASSERT): Likewise.
56587         * tests/test-roundl.c (ASSERT): Likewise.
56588         * tests/test-signbit.c (ASSERT): Likewise.
56589         * tests/test-sleep.c (ASSERT): Likewise.
56590         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56591         * tests/test-snprintf.c (ASSERT): Likewise.
56592         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56593         * tests/test-stat-time.c (ASSERT): Likewise.
56594         * tests/test-strcasestr.c (ASSERT): Likewise.
56595         * tests/test-strerror.c (ASSERT): Likewise.
56596         * tests/test-striconv.c (ASSERT): Likewise.
56597         * tests/test-striconveh.c (ASSERT): Likewise.
56598         * tests/test-striconveha.c (ASSERT): Likewise.
56599         * tests/test-strsignal.c (ASSERT): Likewise.
56600         * tests/test-strstr.c (ASSERT): Likewise.
56601         * tests/test-strtod.c (ASSERT): Likewise.
56602         * tests/test-trunc1.c (ASSERT): Likewise.
56603         * tests/test-trunc2.c (ASSERT): Likewise.
56604         * tests/test-truncf1.c (ASSERT): Likewise.
56605         * tests/test-truncf2.c (ASSERT): Likewise.
56606         * tests/test-truncl.c (ASSERT): Likewise.
56607         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56608         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56609         * tests/test-vasnprintf.c (ASSERT): Likewise.
56610         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56611         * tests/test-vasprintf.c (ASSERT): Likewise.
56612         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56613         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56614         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56615         * tests/test-vsnprintf.c (ASSERT): Likewise.
56616         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56617         * tests/test-wcwidth.c (ASSERT): Likewise.
56618         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56619         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56620         * tests/test-xvasprintf.c (ASSERT): Likewise.
56621         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56622         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56623         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56624         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56625         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56626         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56627         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56628         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56629         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56630         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56631         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56632         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56633         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56634         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56635         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56636         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56637         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56638         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56639         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56640         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56641         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56642         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56643         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56644         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56645         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56646         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56647         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56648         * tests/unictype/test-combining.c (ASSERT): Likewise.
56649         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56650         * tests/unictype/test-digit.c (ASSERT): Likewise.
56651         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56652         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56653         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56654         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56655         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56656         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56657         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56658         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56659         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56660         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56661         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56662         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56663         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56664         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56665         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56666         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56667         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56668         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56669         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56670         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56671         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56672         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56673         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56674         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56675         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56676         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56677         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56678         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56679         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56680         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56681         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56682         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56683         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56684         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56685         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56686         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56687         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56688         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56689         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56690         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56691         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56692         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56693         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56694         Reported by Eric Blake.
56695
56696 2008-04-11  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/wchar.in.h: Tweak comment.
56699
56700 2008-04-11  Bruno Haible  <bruno@clisp.org>
56701
56702         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56703         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56704         gl_COMMON.
56705         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56706
56707 2008-04-11  Bruno Haible  <bruno@clisp.org>
56708
56709         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56710
56711 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56712
56713         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56714         of attempting to use non-existing /dev/*random.  Based on patch
56715         from Adam Strzelecki <ono@java.pl> in
56716         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56717
56718 2008-04-08  Bruno Haible  <bruno@clisp.org>
56719
56720         Add tentative support for emx+gcc.
56721         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56722         * lib/fpurge.c (fpurge): Likewise.
56723         * lib/freadable.c (freadable): Likewise.
56724         * lib/freadahead.c (freadahead): Likewise.
56725         * lib/freading.c (freading): Likewise.
56726         * lib/freadptr.c (freadptr): Likewise.
56727         * lib/freadseek.c (freadptrinc): Likewise.
56728         * lib/fseeko.c (rpl_fseeko): Likewise.
56729         * lib/fseterr.c (fseterr): Likewise.
56730         * lib/fwritable.c (fwritable): Likewise.
56731         * lib/fwriting.c (fwriting): Likewise.
56732         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56733
56734 2008-04-09  Eric Blake  <ebb9@byu.net>
56735
56736         Avoid some autoconf warnings.
56737         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56738         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56739         * m4/afs.m4 (gl_AFS): Likewise.
56740         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56741         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56743         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56744         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56745         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56746         (AC_CHECK_DECLS_ONCE): Likewise.
56747         Rename file...
56748         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56749         gnulib-tool requires autoconf 2.59 or better.
56750         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56751
56752 2008-04-08  Eric Blake  <ebb9@byu.net>
56753
56754         Use 'git describe --match' if present (added in git 1.5.5).
56755         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56756         if possible.
56757
56758 2008-04-08  Bruno Haible  <bruno@clisp.org>
56759
56760         Add tentative support for OpenServer.
56761         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56762         _ptr, _cnt.
56763         * lib/fpurge.c (fpurge): Likewise.
56764         * lib/freadable.c (freadable): Likewise.
56765         * lib/freadahead.c (freadahead): Likewise.
56766         * lib/freading.c (freading): Likewise.
56767         * lib/freadptr.c (freadptr): Likewise.
56768         * lib/freadseek.c (freadptrinc): Likewise.
56769         * lib/fseeko.c (rpl_fseeko): Likewise.
56770         * lib/fseterr.c (fseterr): Likewise.
56771         * lib/fwritable.c (fwritable): Likewise.
56772         * lib/fwriting.c (fwriting): Likewise.
56773         Reported by Roger Cornelius <rac@tenzing.org> and
56774         Brian K. White <brian@aljex.com>.
56775
56776 2008-04-06  Jim Meyering  <meyering@redhat.com>
56777
56778         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56779
56780 2008-04-06  Bruno Haible  <bruno@clisp.org>
56781
56782         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56783         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56784         * tests/test-printf-posix.sh: Likewise.
56785         * tests/test-vfprintf-posix.sh: Likewise.
56786         * tests/test-vprintf-posix.sh: Likewise.
56787         * tests/test-xprintf-posix.sh: Likewise.
56788
56789 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56790
56791         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56792         hide error from 'ls', needed on OS/2.
56793         Report by Elbert Pol <elbert.pol@gmail.com>.
56794
56795 2008-04-04  Eric Blake  <ebb9@byu.net>
56796
56797         Make test-fseeko.c failures meaningful.
56798         * tests/test-fseeko.c: Print line number on failure.
56799         * tests/test-fseek.c: Likewise.
56800         Reported by Nelson H. F. Beebe.
56801
56802         Improve strtod bug detection check.
56803         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56804         required for Solaris 10.
56805         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56806
56807 2008-04-04  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56810         by m4/setenv.m4.
56811
56812 2008-04-03  Eric Blake  <ebb9@byu.net>
56813
56814         Ensure sane .version contents.
56815         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56816         version string.
56817         * build-aux/git-version-gen: Improve documentation.
56818
56819         Make GNU make output nicer.
56820         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56821         MAKECMDGOALS to enforce message for all command line targets.  Set
56822         srcdir for use in maint.mk.
56823
56824         Another maintainer tweak.
56825         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56826         a target that regenerates version.
56827
56828 2008-04-03  Jim Meyering  <meyering@redhat.com>
56829
56830         vc-list-files: don't cause coreutils "make po-check" failure
56831         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56832
56833 2008-04-03  Eric Blake  <ebb9@byu.net>
56834
56835         Allow VPATH usage of vc-list-files.
56836         * build-aux/vc-list-files (scriptversion): Add timestamp.
56837         (options): Add --help, --version, -C.
56838         (CVS): Support installed cvsu.
56839
56840 2008-04-02  Bruno Haible  <bruno@clisp.org>
56841
56842         Avoid some "statement with no effect" warnings from gcc.
56843         * tests/test-wctype.c (main): Explicitly ignore unused values.
56844         Reported by Jim Meyering.
56845
56846 2008-04-02  Jim Meyering  <meyering@redhat.com>
56847
56848         Avoid some warnings from "gcc -Wshadow".
56849         * tests/test-frexp.c (exp): Define to a different identifier.
56850         * tests/test-frexpl.c (exp): Likewise.
56851
56852 2008-04-03  Jim Meyering  <meyering@redhat.com>
56853
56854         bootstrap: remove dangling *.[ch] symlinks from lib
56855         * build-aux/bootstrap [dangling symlink removal]: Move find's
56856         -depth option to precede all others, to avoid a warning.
56857         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56858
56859 2008-04-02  Bruno Haible  <bruno@clisp.org>
56860
56861         Avoid some warnings from "gcc -Wshadow".
56862         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56863         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56864         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56865         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56866         Reported by Jim Meyering.
56867
56868 2008-04-01  Bruno Haible  <bruno@clisp.org>
56869
56870         Fix test to work on IRIX 6.5 with cc.
56871         * tests/test-math.c (numeric_equal): New function.
56872         (main): Use it.
56873
56874 2008-04-01  Bruno Haible  <bruno@clisp.org>
56875
56876         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56877
56878 2008-04-01  Bruno Haible  <bruno@clisp.org>
56879
56880         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56881         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56882         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56883         (Depends-on): Remove math.
56884
56885         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56886         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56887         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56888         (Depends-on): Remove math.
56889
56890         * tests/test-snprintf-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/snprintf-posix-tests (Files): Add tests/nan.h.
56893         (Depends-on): Remove math.
56894         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56895         (Depends-on): Remove math.
56896
56897         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56898         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56899         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56900         (Depends-on): Remove math.
56901         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56902         (Depends-on): Remove math.
56903
56904         * tests/test-round1.c: Include nan.h.
56905         (main): Use NaNd instead of NAN.
56906         * modules/round-tests (Files): Add tests/nan.h.
56907
56908         * tests/test-trunc1.c: Include nan.h.
56909         (main): Use NaNd instead of NAN.
56910         * modules/trunc-tests (Files): Add tests/nan.h.
56911
56912         * tests/test-roundf1.c: Include nan.h.
56913         (main): Use NaNf instead of NAN.
56914         * modules/roundf-tests (Files): Add tests/nan.h.
56915
56916         * tests/test-truncf1.c: Include nan.h.
56917         (main): Use NaNf instead of NAN.
56918         * modules/truncf-tests (Files): Add tests/nan.h.
56919
56920         * tests/test-ceilf1.c: Include nan.h.
56921         (main): Use NaNf instead of NAN.
56922         * modules/ceilf-tests (Files): Add tests/nan.h.
56923
56924         * tests/test-floorf1.c: Include nan.h.
56925         (main): Use NaNf instead of NAN.
56926         * modules/floorf-tests (Files): Add tests/nan.h.
56927
56928         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56929         (main): Use NaNf instead of NAN.
56930         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56931
56932         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56933         (main): Use NaNd instead of NAN.
56934         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56935
56936         * tests/test-frexp.c: Include nan.h.
56937         (main): Use NaNd instead of NAN.
56938         * modules/frexp-tests (Files): Add tests/nan.h.
56939
56940         * lib/isnan.c: Don't include <math.h>.
56941         (FUNC): Don't use NAN macro.
56942         * modules/isnand-nolibm (Depends-on): Remove math.
56943         * modules/isnanf-nolibm (Depends-on): Remove math.
56944         * modules/isnanl (Depends-on): Remove math.
56945         * modules/isnanl-nolibm (Depends-on): Remove math.
56946
56947         * tests/nan.h: New file.
56948
56949 2008-04-01  Eric Blake  <ebb9@byu.net>
56950
56951         Fix typos.
56952         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56953         values to be the right type.
56954
56955         For now, cater to gnulib strtod inaccuracies.
56956         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56957         fractional results.  While not as nice from a QoI perspective, it
56958         is a quicker patch than correctly implementing decimal to binary
56959         rounding.
56960
56961 2008-03-31  Eric Blake  <ebb9@byu.net>
56962
56963         Guarantee a definition of NAN.
56964         * lib/math.in.h (NAN): Define if missing.
56965         * tests/test-math.c (main): Test it.
56966         * doc/posix-headers/math.texi (math.h): Document this.
56967         * lib/isnan.c (rpl_isnand): Use it.
56968         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56969         * tests/test-floorf1.c (NaN): Likewise.
56970         * tests/test-frexp.c (NaN): Likewise.
56971         * tests/test-isnand.c (NaN): Likewise.
56972         * tests/test-isnanf.c (NaN): Likewise.
56973         * tests/test-round1.c (NaN): Likewise.
56974         * tests/test-roundf1.c (NaN): Likewise.
56975         * tests/test-snprintf-posix.h (NaN): Likewise.
56976         * tests/test-sprintf-posix.h (NaN): Likewise.
56977         * tests/test-trunc1.c (NaN): Likewise.
56978         * tests/test-truncf1.c (NaN): Likewise.
56979         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56980         * tests/test-vasprintf-posix.c (NaN): Likewise.
56981         * modules/isnand-nolibm (Depends-on): Add math.
56982         * modules/isnanf-nolibm (Depends-on): Likewise.
56983         * modules/isnanl (Depends-on): Likewise.
56984         * modules/isnanl-nolibm (Depends-on): Likewise.
56985         * modules/snprintf-posix-tests (Depends-on): Likewise.
56986         * modules/sprintf-posix-tests (Depends-on): Likewise.
56987         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56988         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56989         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56990         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56991
56992 2008-03-31  Bruno Haible  <bruno@clisp.org>
56993
56994         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56995         * doc/posix-functions/strtod.texi: Likewise.
56996
56997 2008-03-31  Bruno Haible  <bruno@clisp.org>
56998
56999         * tests/test-strtod.c (main): Don't use C99 syntax.
57000
57001 2008-03-31  Bruno Haible  <bruno@clisp.org>
57002
57003         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57004         Reported by Eric Blake.
57005
57006 2008-03-31  Jim Meyering  <meyering@redhat.com>
57007
57008         Don't compare actual signbit return values.
57009         * tests/test-strtod.c (main): Rather, compare only their
57010         zero/non-zero nature.
57011
57012 2008-03-31  Eric Blake  <ebb9@byu.net>
57013
57014         More strtod documentation.
57015         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57016         failures as distinct bugs.
57017
57018 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57019
57020         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57021         Problem reported by Erik Benada in
57022         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57023
57024 2008-03-30  Bruno Haible  <bruno@clisp.org>
57025
57026         * tests/test-strtod.c: Add comments about which assertion fails on which
57027         platform.
57028         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57029
57030 2008-03-30  Eric Blake  <ebb9@byu.net>
57031
57032         Test signbit behavior on zeros.
57033         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57034         (test_signbitd, test_signbitl): Likewise.
57035
57036         More strtod touchups.
57037         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57038         sign of negative underflow, for now.  Use .5, not .1.
57039         * doc/posix-functions/strtod.texi (strtod): Mention these
57040         limitations.
57041         Reported by Jim Meyering.
57042
57043 2008-03-30  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57046         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57047
57048 2008-03-30  Bruno Haible  <bruno@clisp.org>
57049
57050         Avoid failure when attempting to return empty iconv results on some
57051         platforms.
57052         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57053         allocation, don't report ENOMEM when the resulting string is empty.
57054
57055 2008-03-30  Bruno Haible  <bruno@clisp.org>
57056
57057         Fix buffer overrun.
57058         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57059         Don't consider the width for tmp_length. Check count against tmp_length
57060         before doing the padding. Ensure enough allocation during padding.
57061
57062 2008-03-30  Eric Blake  <ebb9@byu.net>
57063
57064         strtod touchups.
57065         * lib/strtod.c (strtod): Avoid compiler warnings.
57066         Reported by Jim Meyering.
57067
57068 2008-03-30  Bruno Haible  <bruno@clisp.org>
57069
57070         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57071         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57072         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57073         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57074         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57075         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57076         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57077         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57078
57079         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57080         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57081         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57082         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57083         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57084         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57085         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57086         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57087
57088         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57089         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57090         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57091         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57092         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57093         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57094         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57095         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57096
57097         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57098         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57099
57100         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57101         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57102
57103         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57104         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57105
57106         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57108         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57109
57110         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57112         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57113
57114         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57115         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57116         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57117
57118         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57120         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57121
57122         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57123         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57125         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57126         (Depends-on): Add EOVERFLOW.
57127         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57128         (Depends-on): Add EOVERFLOW.
57129         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57130         (Depends-on): Add EOVERFLOW.
57131         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57132         (Depends-on): Add EOVERFLOW.
57133         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57134         (Depends-on): Add EOVERFLOW.
57135         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57136         (Depends-on): Add EOVERFLOW.
57137         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57138         (Depends-on): Add EOVERFLOW.
57139         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57140         (Depends-on): Add EOVERFLOW.
57141
57142         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57144         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57145
57146         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57148         * modules/snprintf (Depends-on): Add EOVERFLOW.
57149
57150         * lib/poll.c (EOVERFLOW): Remove fallback.
57151         * modules/poll (Depends-on): Add EOVERFLOW.
57152
57153         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57154         * modules/getugroups (Depends-on): Add EOVERFLOW.
57155
57156         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57157         * modules/getdelim (Depends-on): Add EOVERFLOW.
57158
57159         * lib/ftell.c (EOVERFLOW): Remove fallback.
57160         * modules/ftell (Depends-on): Add EOVERFLOW.
57161
57162         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57164         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57165
57166         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57167
57168         * modules/EOVERFLOW-tests: New file.
57169         * tests/test-EOVERFLOW.c: New file.
57170
57171         * modules/EOVERFLOW: New file.
57172         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57173
57174 2008-03-30  Bruno Haible  <bruno@clisp.org>
57175
57176         Fix bug introduced on 2007-06-10.
57177         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57178         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57179
57180 2008-03-30  Bruno Haible  <bruno@clisp.org>
57181
57182         Improve freadseek's efficiency after ungetc.
57183         * lib/freadseek.c: Include freadahead.h.
57184         (freadptrinc): New function, extracted from freadseek.
57185         (freadseek): Use it in a loop. Use freadahead to determine the number
57186         of loop iterations.
57187         * modules/freadseek (Depends-on): Add freadahead.
57188         (configure.ac): Require AC_C_INLINE.
57189
57190 2008-03-30  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/freadseek.c (freadseek): Don't ignore the return value of
57193         freadptr.
57194
57195 2008-03-29  Eric Blake  <ebb9@byu.net>
57196
57197         Add hex float support.
57198         * modules/strtod (Depends-on): Add c-ctype.
57199         (Link): Mention POW_LIB.
57200         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57201         whitespace between 'e' and exponent.
57202         * tests/test-strtod.c (main): Enable hex float tests.
57203         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57204         now provides.
57205
57206         Document various strtod bugs, with some fixes.
57207         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57208         "-0x", "inf", "nan", and hex constants.
57209         * doc/posix-functions/atof.texi (atof): Likewise.
57210         * modules/stdlib (Makefile.am): Support strtod.
57211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57212         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57213         detect additional strtod bugs.
57214         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57215         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57216         bool where appropriate.  Parse 'inf' and 'nan'.
57217         * tests/test-strtod.c: New file.
57218         * modules/strtod (Depends-on): Add stdbool, stdlib.
57219         (configure.ac): Turn on module indicator.
57220         * modules/strtod-tests: New module.
57221
57222 2008-03-29  Eric Blake  <ebb9@byu.net>
57223
57224         Fix ftell on mingw.
57225         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57226         * modules/ftell-tests (Depends-on): Add binary-io.
57227         * modules/ftello-tests (Depends-on): Likewise.
57228         * tests/test-ftell.c (main): Enhance test to cover behavior after
57229         ungetc.  Enforce binary mode.
57230         * tests/test-ftello.c (main): Likewise.
57231
57232         Pass test-freadseek on cygwin.
57233         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57234         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57235         ungetc buffer.
57236
57237         * tests/test-fflush2.c (main): Fix typo.
57238
57239 2008-03-29  Bruno Haible  <bruno@clisp.org>
57240
57241         * tests/test-fflush2.c (main): Temporarily disable the contents of
57242         this test.
57243         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57244         Reported by Eric Blake.
57245
57246 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57247
57248         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57249         (GC_SHA224_DIGEST_SIZE): Add.
57250
57251         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57252         (gc_hash_digest_length): Likewise.
57253         (gc_hash_buffer): Likewise.
57254
57255 2008-03-25  Bruno Haible  <bruno@clisp.org>
57256
57257         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57258         detail which gettext release to use.
57259         Reported by Simon Josefsson.
57260
57261 2008-03-26  Jim Meyering  <meyering@redhat.com>
57262
57263         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57264         * modules/gnumakefile (clean-GNUmakefile): Also, use
57265         test ... && ... || : syntax rather than if-then ... fi.
57266
57267         gnumakefile: Don't double-quote-expand $(VPATH) value.
57268         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57269
57270 2008-03-24  Eric Blake  <ebb9@byu.net>
57271
57272         Alter GNUmakefile to install into top directory.
57273         * modules/maintainer-makefile: Split, and add dependency...
57274         * modules/gnumakefile: to this new module.
57275         * build-aux/GNUmakefile: Move...
57276         * top/GNUmakefile: ...here.
57277         * build-aux/maint.mk: Move...
57278         * top/maint.mk: ...here.
57279         * MODULES.html.sh (Support for maintaining...): Document new
57280         module.
57281
57282 2008-03-23  Bruno Haible  <bruno@clisp.org>
57283
57284         * gnulib-tool: New options --vc-files, --no-vc-files.
57285         (func_usage): Document them.
57286         (vc_files): New variable.
57287         (func_import): Consider vc_files.
57288         (func_create_testdir): Set vc_files to empty.
57289         Suggested by Jim Meyering and Karl Berry.
57290
57291 2008-03-23  Bruno Haible  <bruno@clisp.org>
57292
57293         Fix regex compilation error on HP-UX 11.
57294         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57295         * modules/regex (Files): Add m4/mbstate_t.m4.
57296         Reported by Ton Voon <ton.voon@altinity.com>.
57297
57298 2008-03-23  Bruno Haible  <bruno@clisp.org>
57299
57300         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57301
57302 2008-03-23  Eric Blake  <ebb9@byu.net>
57303             Bruno Haible  <bruno@clisp.org>
57304
57305         Install files from top/ in the destination directory.
57306         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57307         augmentation also for the files from top/.
57308         (func_import, func_create_testdir): Rewrite file names:
57309         top/filename -> filename.
57310
57311 2008-03-23  Bruno Haible  <bruno@clisp.org>
57312
57313         Tweak "gnulib --version" output.
57314         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57315
57316 2008-03-23  Bruno Haible  <bruno@clisp.org>
57317
57318         Tweak "gnulib --version" output.
57319         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57320         rather than contents of ChangeLog, when possible.
57321
57322 2008-03-21  Eric Blake  <ebb9@byu.net>
57323
57324         More --version tweaks.
57325         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57326         date of last ChangeLog entry.
57327
57328 2008-03-21  Jim Meyering  <meyering@redhat.com>
57329
57330         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57331
57332 2008-03-20  Eric Blake  <ebb9@byu.net>
57333
57334         VPATH fix.
57335         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57336
57337 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57338
57339         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57340         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57341
57342 2008-03-20  Eric Blake  <ebb9@byu.net>
57343
57344         Sync GNUmakefile with coreutils.
57345         * build-aux/GNUmakefile (have-Makefile): Rename...
57346         (_have-Makefile): ...to this, for namespace consideration.
57347         (GNUmakefile.cfg): Include, if present.
57348         (_autoreconf): Define a default.
57349         (_is-dist-target): New rule for rebuilds to pick up intra-release
57350         version.
57351         (maint-cfg.mk): Rename...
57352         (cfg.mk): ...to this.
57353
57354 2008-03-18  Jim Meyering  <meyering@redhat.com>
57355
57356         New script and module: mktempd
57357         * MODULES.html.sh (maint+release support): Add mktempd.
57358         * build-aux/mktempd: New file.
57359         * modules/mktempd: New file.
57360
57361 2008-03-15  Jim Meyering  <meyering@redhat.com>
57362
57363         Undo last change.
57364         * lib/sha1.c, lib/md5.c: 63 != ~63.
57365         Reported by Andreas Schwab.
57366
57367         sha1.c, md5.c: Hoist a redundant expression.
57368         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57369         "ctx->buflen" only once, before calling *_process_block.
57370         * lib/md5.c (md5_process_bytes): Likewise.
57371
57372 2008-03-14  Eric Blake  <ebb9@byu.net>
57373
57374         Bump copyright year in files generated by gnulib-tool.
57375         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57376         gnulib-tool, rather than hard-coding it.
57377
57378         Fix 'gnulib-tool --version' output to work with git.
57379         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57380         (startup): ...here.
57381         (func_version): Use it to invoke git-version-gen, rather than
57382         relying on CVS keyword expansion.  Modernize wording.
57383         (cvsdatestamp, last_checkin_date, version): Kill unused
57384         variables.
57385
57386 2008-03-12  Jim Meyering  <meyering@redhat.com>
57387
57388         Recognize optional cast of the argument to free.
57389         * build-aux/useless-if-before-free: Update regexps.
57390
57391         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57392
57393 2008-03-11  Bruno Haible  <bruno@clisp.org>
57394
57395         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57396         by a single package.
57397         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57398         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57399         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57400         Reported by Sam Steingold <sds@gnu.org>.
57401
57402 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57403
57404         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57405         repositories.
57406
57407 2008-03-11  Bruno Haible  <bruno@clisp.org>
57408
57409         Avoid conflicts between local macro definitions.
57410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57411         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57412
57413 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57414             Bruno Haible  <bruno@clisp.org>
57415
57416         Make va_copy work with some version of xlc on AIX 5.1.
57417         * lib/stdarg.in.h: New file.
57418         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57419         On AIX, use a <stdarg.h> file substitute.
57420         * modules/stdarg (Files): Add lib/stdarg.in.h.
57421         (Depends-on): Add include_next.
57422         (Makefile.am): Build a stdarg.h substitute if requested.
57423         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57424
57425 2008-03-10  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57429         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57430
57431 2008-03-10  Bruno Haible  <bruno@clisp.org>
57432
57433         * modules/stdlib (Depends-on): Add include_next, remove
57434         absolute-header.
57435
57436 2008-03-09  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/freadahead.h (freadahead): Document more precisely.
57439         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57440         the sum of both buffer sizes.
57441         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57442         * NEWS: Document the change.
57443
57444 2008-03-09  Bruno Haible  <bruno@clisp.org>
57445
57446         Extend freadptr to return also the buffer size.
57447         * lib/freadptr.h (freadptr): Add sizep argument.
57448         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57449         (freadptr): Add sizep argument. Determine buffer size like freadahead
57450         does.
57451         * tests/test-freadptr.c: Don't include freadahead.h.
57452         (main): Adapt for new calling convention of freadptr.
57453         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57454         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57455         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57456         tests/test-freadptr2.sh.
57457         (Depends): Remove freadahead.
57458         (TESTS): Add test-freadptr2.sh.
57459         (check_PROGRAMS): Add test-freadptr2.
57460
57461 2008-03-09  Bruno Haible  <bruno@clisp.org>
57462
57463         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57464         Report and solution by Simon Josefsson.
57465
57466 2008-03-06  Bruno Haible  <bruno@clisp.org>
57467
57468         Make fflush after ungetc work on BSD platforms.
57469         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57470         * tests/test-fflush2.c: New file.
57471         * tests/test-fflush2.sh: New file.
57472         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57473         tests/test-fflush2.c.
57474         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57475         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57476
57477 2008-03-06  Eric Blake  <ebb9@byu.net>
57478
57479         Likewise for ftello.
57480         * modules/ftello (Dependencies): Add extensions.
57481         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57482
57483 2008-03-06  Bruno Haible  <bruno@clisp.org>
57484
57485         * modules/fseeko (Dependencies): Add extensions.
57486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57487         Needed on glibc systems.
57488
57489 2008-03-06  Bruno Haible  <bruno@clisp.org>
57490
57491         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57492         email address.
57493         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57494
57495 2008-03-06  Bruno Haible  <bruno@clisp.org>
57496
57497         * users.txt: Add libgnupdf.
57498
57499 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57500
57501         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57502         (Header File Substitutes, Function Substitutes,
57503         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57504         (Build robot for gnulib): Fix typo.
57505
57506 2008-03-06  Bruno Haible  <bruno@clisp.org>
57507
57508         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57509         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57510
57511 2008-03-06  Bruno Haible  <bruno@clisp.org>
57512
57513         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57514         * doc/gnulib.texi: Include it.
57515
57516 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57517
57518         * modules/func (License): Change license to unlimited; there was
57519         no LGPL parts in the module anyway.
57520
57521 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57522
57523         * modules/__func__: Renamed to modules/func.
57524         * modules/__func__-tests: Renamed to modules/func-tests.
57525         * tests/test-__func__.c: Renamed to tests/test-func.c.
57526         * m4/__func__.m4: Renamed to m4/func.m4.
57527         * doc/gnulib.texi (__func__): Section renamed to func.
57528         Suggested by Eric Blake <ebb9@byu.net>.
57529
57530 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57531
57532         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57533         about __func__.  Make example self-contained.  Suggested by Eric
57534         Blake <ebb9@byu.net>.
57535
57536         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57537         Suggested by Eric Blake <ebb9@byu.net>.
57538
57539 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57540
57541         * modules/__func__: New file.
57542         * modules/__func__-tests: New file.
57543         * tests/test-__func__.c: New file.
57544         * m4/__func__.m4: New file.
57545         * doc/gnulib.texi (__func__): Document __func__ module.
57546
57547 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57548
57549         * modules/byteswap (License): Re-license as LGPLv2+.
57550
57551 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57552
57553         * doc/Makefile: Add pdf target.
57554
57555 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57556
57557         * modules/inline (License): Use 'unlimited', since there are only
57558         *.m4 files in this module.
57559
57560 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57561             Bruno Haible  <bruno@clisp.org>
57562
57563         Add support for HP C 7.1 on OpenVMS 8.3.
57564         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57565
57566 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57567
57568         Update VMS specifics.
57569         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57570
57571 2008-03-02  Jim Meyering  <meyering@redhat.com>
57572
57573         Remove the last dependency on the "free" module.
57574         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57575         Reported by Bob Proulx.
57576
57577         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57578
57579         Remove useless "if" tests before free.  Deprecate "free" module.
57580         * doc/posix-functions/free.texi: Mention that this
57581         module is no longer useful.
57582         * modules/free (Notice): Say this module is obsolete.
57583         * modules/readutmp (Depends-on): Remove free.
57584         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57585         * lib/putenv.c (putenv): Likewise.
57586         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57587         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57588         * tests/test-c-strcasestr.c (main): Likewise.
57589         * tests/test-c-strstr.c (main): Likewise.
57590         * tests/test-mbscasestr1.c (main): Likewise.
57591         * tests/test-mbscasestr2.c (main): Likewise.
57592         * tests/test-mbsstr1.c (main): Likewise.
57593         * tests/test-mbsstr2.c (main): Likewise.
57594         * tests/test-memmem.c (main): Likewise.
57595         * tests/test-strcasestr.c (main): Likewise.
57596         * tests/test-striconv.c (main): Likewise.
57597         * tests/test-striconveh.c (main): Likewise.
57598         * tests/test-striconveha.c (main): Likewise.
57599         * tests/test-strstr.c (main): Likewise.
57600
57601         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57602
57603         bootstrap: sync from coreutils again
57604         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57605
57606 2008-03-01  Jim Meyering  <meyering@redhat.com>
57607
57608         bootstrap: sync from coreutils
57609         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57610         also when the target doesn't exist.
57611
57612 2008-03-01  Eric Blake  <ebb9@byu.net>
57613
57614         Fix bugs in last patch.
57615         * lib/memchr2.c (memchr2): Fix typo.
57616         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57617         extension.
57618         Reported by Bruce Korb.
57619
57620         New module 'memchr2'.
57621         * modules/memchr2: New file.
57622         * modules/memchr2-tests: Likewise.
57623         * lib/memchr2.h: Likewise.
57624         * lib/memchr2.c: Likewise, based on memchr.c.
57625         * tests/test-memchr2.c: New test.
57626         * MODULES.html.sh (String handling): Add memchr2.
57627
57628 2008-02-29  Bruno Haible  <bruno@clisp.org>
57629
57630         * modules/freadseek-tests: New file.
57631         * tests/test-freadseek.sh: New file.
57632         * tests/test-freadseek.c: New file.
57633
57634         New module 'freadseek'.
57635         * modules/freadseek: New file.
57636         * lib/freadseek.h: New file.
57637         * lib/freadseek.c: New file.
57638         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57639
57640 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57641
57642         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57643         wydawca.
57644
57645         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57646         program_invocation_name and program_invocation_short_name are
57647         present.
57648
57649 2008-02-28  Bruno Haible  <bruno@clisp.org>
57650
57651         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57652         * tests/test-freadptr.sh: Also test non-seekable stdin.
57653
57654 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57655
57656         * build-aux/bootstrap (source_base, m4_base)
57657         (doc_base, tests_base): New variables.
57658         (gnulib_tool_options): Do not hardcode base directories, use
57659         the above variables instead.
57660
57661 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57662
57663         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57664
57665 2008-02-28  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/freadptr-tests: New file.
57668         * tests/test-freadptr.sh: New file.
57669         * tests/test-freadptr.c: New file.
57670
57671         New module 'freadptr'.
57672         * modules/freadptr: New file.
57673         * lib/freadptr.h: New file.
57674         * lib/freadptr.c: New file.
57675         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57676
57677 2008-02-26  Karl Berry  <karl@freefriends.org>
57678
57679         Sync from Libtool:
57680         * libltdl/argz.c (argz_add, argz_count): New functions.
57681         * libltdl/argz.in.h: Declare them.
57682         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57683
57684 2008-02-22  Bruno Haible  <bruno@clisp.org>
57685
57686         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57687         is a pointer type.  Needed for HP-UX 10.
57688         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57689         * doc/posix-functions/gmtime_r.texi: Likewise.
57690         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57691
57692 2008-02-24  Bruno Haible  <bruno@clisp.org>
57693
57694         * modules/environ-tests: New file.
57695         * tests/test-environ.c: New file.
57696
57697         New module 'environ'.
57698         * modules/environ: New file.
57699         * lib/unistd.in.h (environ): New declaration.
57700         * m4/environ.m4: New file.
57701         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57702         after use.
57703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57704         HAVE_DECL_ENVIRON.
57705         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57706         HAVE_DECL_ENVIRON.
57707         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57708         wrong claim that 'environ' is missing on some systems.
57709         * modules/execute (Depends-on): Add environ.
57710         * lib/execute.c (environ): Remove fallback declaration.
57711         * modules/pipe (Depends-on): Add environ.
57712         * lib/pipe.c (environ): Remove fallback declaration.
57713         * modules/setenv (Depends-on): Add environ.
57714         * lib/setenv.c (environ): Remove fallback declaration.
57715         * modules/unsetenv (Depends-on): Add environ.
57716         * lib/unsetenv.c (environ): Remove fallback declaration.
57717         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57718         m4/environ.m4.
57719         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57720         (gl_PREREQ_UNSETENV): Likewise.
57721
57722 2008-02-24  Bruno Haible  <bruno@clisp.org>
57723
57724         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57725
57726 2008-02-20  Bob Proulx  <bob@proulx.com>
57727
57728         Enable use of older two part flavor 'git describe'.
57729         * build-aux/git-version-gen: If using the older two part flavor of
57730         git version then recreate the third part now present in the
57731         newer three part flavor of git describe.
57732
57733 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57734
57735         * lib/fts.c (fts_build): Typo correction to comment.
57736
57737 2008-02-17  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57740         generating no-op conflicts.
57741
57742 2008-02-17  Bruno Haible  <bruno@clisp.org>
57743
57744         Speed up by 10%.
57745         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57746         result_entries, rather than an index-based loop.
57747
57748 2008-02-17  Bruno Haible  <bruno@clisp.org>
57749
57750         Speed up by 25%.
57751         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57752         'hashcode_cached'.
57753         (entry_create): New function.
57754         (entry_hashcode): Use the cached hashcode if possible.
57755         (read_changelog_file, try_split_merged_entry): Use entry_create.
57756
57757 2008-02-17  Bruno Haible  <bruno@clisp.org>
57758
57759         Speed up from O(n^2) to O(n) for long ChangeLog files.
57760         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57761         (read_changelog_file): Change implementation of entries_reversed list
57762         to rbtreehash.
57763         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57764
57765 2008-02-17  Bruno Haible  <bruno@clisp.org>
57766
57767         New option --split-merged-entry.
57768         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57769         (find_paragraph_end, try_split_merged_entry): New functions.
57770         (long_options): Add option --split-merged-entry.
57771         (usage): Document option --split-merged-entry.
57772         (main): Implement option --split-merged-entry.
57773         Reported by Eric Blake.
57774
57775 2008-02-17  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/git-merge-changelog.c: Include c-strstr.h.
57778         (main): Support the "git pull --rebase" situation.
57779         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57780         Reported by Eric Blake.
57781
57782 2008-02-16  Eric Blake  <ebb9@byu.net>
57783
57784         Avoid doubling \ in common case of "c-maybe" quoting style.
57785         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57786         eliding outer quotes.
57787         * lib/quotearg.h: Document this.
57788         * tests/test-quotearg.c (result_strings, inputs, results_g)
57789         (flag_results, locale_results): Test it by adding a new string to
57790         each test group.
57791         (compare_strings): Test new string.
57792
57793 2008-02-13  Eric Blake  <ebb9@byu.net>
57794
57795         Avoid trigraph quoting in default output.
57796         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57797         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57798         unless explicitly requested.
57799         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57800
57801 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57802
57803         Don't rely on signed integer overflowing to negative value.
57804         * lib/getugroups.c (getugroups): Include <limits.h>.
57805         Instead, compare against INT_MAX, and increment only if the test passes.
57806
57807 2008-02-13  Jim Meyering  <meyering@redhat.com>
57808         and Eric Blake  <ebb9@byu.net>
57809
57810         Avoid shadowing warning and compile errors on Linux.
57811         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57812         forwarding macros on Linux.
57813         (dcgettext): Define a stub, for Linux.
57814         (results_g, main): Avoid warnings.
57815
57816 2008-02-12  Eric Blake  <ebb9@byu.net>
57817
57818         Silence warning in last patch.
57819         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57820
57821         Quotearg part 4: add tests, fix c-maybe colon quoting.
57822         * lib/quotearg.h: Improve documentation.
57823         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57824         escapes when adding outer quotes.  When quoting trigraphs, use
57825         valid C notation.  When quoting NUL, omit extra characters if next
57826         character is not digit.  Alter prototype.
57827         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57828         callers.
57829         * modules/quotearg-tests: New module.
57830         * tests/test-quotearg.c: New test.
57831
57832 2008-02-07  Eric Blake  <ebb9@byu.net>
57833
57834         Quotearg part 3: add flag to control outer quote elision.
57835         * lib/quotearg.h (c_maybe_quoting_style): New style.
57836         (enum quoting_flags): Better documentation of flags.
57837         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57838         c-maybe style.
57839         (quotearg_buffer_restyled): Handle new flag to elide outer
57840         quotes.
57841
57842         Quotearg part 2: add flag that can control NUL elision.
57843         * lib/quotearg.h (set_quoting_flags): New prototype.
57844         * lib/quotearg.c (struct quoting_options): Add flag field.
57845         (set_quoting_flags): New function.
57846         (quotearg_buffer_restyled): Add flags parameter.
57847         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57848         (quotearg_n_options): Set the flag, since length cannot be
57849         returned.
57850         (quoting_options_from_style): Default flags correctly.
57851
57852         Quotearg part 1: more wrappers, restore quotearg_char state.
57853         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57854         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57855         (quotearg_colon_mem): New wrappers.
57856         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57857         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57858         functions.
57859         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57860         (quotearg_colon_mem): New functions.
57861
57862 2008-02-11  Bruno Haible  <bruno@clisp.org>
57863
57864         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57865         library in the current directory: it does not work with parallel make.
57866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57867
57868 2008-02-11  Bruno Haible  <bruno@clisp.org>
57869
57870         * .gitattributes: New file.
57871
57872 2008-02-11  Jim Meyering  <meyering@redhat.com>
57873
57874         useless-if-before-free: Fix reversed exit values.
57875         * build-aux/useless-if-before-free: Use correct values
57876         for EXIT_MATCH and EXIT_NO_MATCH.
57877
57878         * build-aux/useless-if-before-free: Close stdout carefully.
57879
57880 2008-02-10  Bruno Haible  <bruno@clisp.org>
57881
57882         New module 'git-merge-changelog'.
57883         * modules/git-merge-changelog: New file.
57884         * lib/git-merge-changelog.c: New file.
57885
57886 2008-02-10  Jim Meyering  <meyering@redhat.com>
57887
57888         useless-if-before-free: New option: --list (-l).
57889
57890         useless-if-before-free: Don't exit immediately upon open failure.
57891         * build-aux/useless-if-before-free: Exit 2 for errors.
57892         Upon failure to open a file, don't exit immediately.
57893         Rather, just warn and continue with any remaining files.
57894
57895 2008-02-10  Bruno Haible  <bruno@clisp.org>
57896
57897         New abstract list operation 'node_set_value'.
57898         * lib/gl_list.h (gl_list_node_set_value): New function.
57899         (struct gl_list_implementation): New field node_set_value.
57900         * lib/gl_list.c (gl_list_node_set_value): New function.
57901         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57902         (gl_array_list_implementation): Update.
57903         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57904         (gl_carray_list_implementation): Update.
57905         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57906         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57907         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57908         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57909         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57910         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57911         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57912         Update.
57913         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57914         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57915         (gl_sublist_list_implementation): Update.
57916
57917 2008-02-10  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57920         Needed when ELEMENT is #defined to 'some_type *'.
57921
57922 2008-02-10  Jim Meyering  <meyering@redhat.com>
57923
57924         New script and module: useless-if-before-free
57925         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57926         * build-aux/useless-if-before-free: New file.
57927         * modules/useless-if-before-free: New file.
57928
57929         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57930
57931         xstrtol_error: Fix typo.
57932         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57933         s/exit_failure/exit_status/.
57934
57935 2008-02-09  Jim Meyering  <meyering@redhat.com>
57936
57937         New script and module: gitlog-to-changelog
57938         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57939         * modules/gitlog-to-changelog: New file.
57940         * build-aux/gitlog-to-changelog: New file.
57941
57942 2008-02-08  Jim Meyering  <meyering@redhat.com>
57943
57944         Avoid two "parameter unused" warnings.
57945         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57946         Mark "st" as used.
57947
57948         Use "git COMMAND", not "git-COMMAND".
57949         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57950         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57951         * build-aux/git-version-gen: Use "git status", not "git-status".
57952
57953 2008-02-07  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57956         Avoids a crash on Windows Vista.
57957         Reported by Adam Strzelecki <ono@java.pl> via
57958         Simon Josefsson <simon@josefsson.org>.
57959
57960 2008-02-06  Bruno Haible  <bruno@clisp.org>
57961
57962         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57963         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57964         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57966         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57968         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57969         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57977         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57978         left-adjust flag.
57979         * tests/test-snprintf-posix.h (test_function): Likewise.
57980         * tests/test-sprintf-posix.h (test_function): Likewise.
57981         * tests/test-vasprintf-posix.c (test_function): Likewise.
57982         * doc/posix-functions/fprintf.texi: Update.
57983         * doc/posix-functions/printf.texi: Update.
57984         * doc/posix-functions/snprintf.texi: Update.
57985         * doc/posix-functions/sprintf.texi: Update.
57986         * doc/posix-functions/vfprintf.texi: Update.
57987         * doc/posix-functions/vprintf.texi: Update.
57988         * doc/posix-functions/vsnprintf.texi: Update.
57989         * doc/posix-functions/vsprintf.texi: Update.
57990         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57991
57992 2008-02-06  Bruno Haible  <bruno@clisp.org>
57993
57994         Fix bug introduced on 2008-01-26.
57995         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57996
57997 2008-02-06  Bruno Haible  <bruno@clisp.org>
57998
57999         Fix bug introduced on 2007-06-10.
58000         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58001         !NEED_PRINTF_FLAG_ZERO.
58002
58003 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58004
58005         getloadavg: use libperfstat on AIX5
58006         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58007
58008 2008-02-03  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/diffseq.h: Add comments about required #includes.
58011         Reported by Michael Biggs <gnulib@doubleplum.net>.
58012
58013 2008-02-01  Bruno Haible  <bruno@clisp.org>
58014
58015         * users.txt: Add gnuit.
58016
58017 2008-01-31  Bruno Haible  <bruno@clisp.org>
58018
58019         * lib/md4.c (set_uint32): Mark as inline.
58020         * lib/md5.c (set_uint32): Likewise.
58021         * lib/sha1.c (set_uint32): Likewise.
58022         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58023         * m4/md5.m4 (gl_MD5): Likewise.
58024         * m4/sha1.m4 (gl_SHA1): Likewise.
58025
58026 2008-01-31  Jim Meyering  <meyering@redhat.com>
58027
58028         Use "sizeof VAR", rather than a literal "4".
58029         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58030         * lib/md4.c (md4_read_ctx): Likewise.
58031         * lib/sha1.c (sha1_read_ctx): Likewise.
58032
58033 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58034
58035         * tests/test-sha1.c: New file, based on test-md5.c.
58036
58037         * modules/crypto/sha1-tests: New file.
58038
58039 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58040
58041         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58042
58043 2008-01-31  Jim Meyering  <meyering@redhat.com>
58044
58045         Prefer "sizeof v" over the equivalent "4".
58046         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58047         * lib/md5.c (set_uint32): Likewise.
58048         * lib/sha1.c (set_uint32): Likewise.
58049
58050 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58051
58052         * lib/sha1.c (set_uint32): Mark function as static.
58053
58054 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58055
58056         md2: clarify comments to say that alignment is not required.
58057         * lib/md2.h: Remove warning about alignment in comment.
58058         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58059         never been required.
58060
58061 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58062
58063         md4: adapt alignment constraint fix from sha1.
58064         * lib/md4.c (set_uint32): New function, from sha1.c
58065         (md4_read_ctx): Use it.
58066         (md4_finish_ctx): Doc fix.
58067         * lib/md4.h: Doc fix.
58068
58069 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58070
58071         md5: adapt alignment constraint fix from sha1.
58072         * lib/md5.c (set_uint32): New function, from sha1.c
58073         (md5_read_ctx): Use it.
58074         (md5_finish_ctx): Doc fix.
58075         * lib/md5.h: Doc fix.
58076
58077 2008-01-30  Peter Palfrader  <weasel@debian.org>
58078
58079         sha1: remove the result buffer alignment constraint
58080         * lib/sha1.c (set_uint32): New function.
58081         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58082         constraint.
58083         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58084         * lib/sha1.h: Likewise.
58085
58086 2008-01-30  Andreas Schwab  <schwab@suse.de>
58087             Bruno Haible  <bruno@clisp.org>
58088
58089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58090         correct definition of LDBL_MIN_EXP.
58091
58092 2008-01-30  Karl Berry  <karl@gnu.org>
58093
58094         * config/srclist-update: try to preserve x bit on updates.
58095         * config/srclistvars.sh: update for karl.
58096
58097 2008-01-29  Jim Meyering  <meyering@redhat.com>
58098
58099         vasnprintf.c: Avoid warning about unused label
58100         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58101         "overflow" label definition and associated code with the
58102         same cpp condition that guards the sole use of that label.
58103
58104 2008-01-26  Bruno Haible  <bruno@clisp.org>
58105
58106         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58107         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58108         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58109         * lib/isnanl-nolibm.h (isnanl): Likewise.
58110         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58111
58112 2008-01-26  Bruno Haible  <bruno@clisp.org>
58113
58114         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58115         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58116
58117 2008-01-26  Bruno Haible  <bruno@clisp.org>
58118
58119         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58120         GCC >= 4.0 built-in.
58121         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58122
58123 2008-01-26  Bruno Haible  <bruno@clisp.org>
58124
58125         Rename isnan, applicable to 'double' only, to isnand.
58126         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58127         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58128         (configure.ac): Update.
58129         (Include): Replace "isnan.h" with "isnand.h".
58130         * m4/isnand.m4: Renamed from m4/isnan.m4.
58131         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58132         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58133         instead of isnan.c.
58134         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58135         instead of HAVE_ISNAN_IN_LIBC.
58136         (isnand): Renamed from isnan.
58137         * lib/isnand.c: New file.
58138         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58139         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58140         (Makefile.am): Update.
58141         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58142         Include isnand.h instead of isnan.h.
58143         (main): Test isnand instead of isnan.
58144         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58145         isnan-nolibm.
58146         * modules/frexp (Depends-on): Likewise.
58147         * modules/frexp-tests (Depends-on): Likewise.
58148         * modules/frexp-nolibm (Depends-on): Likewise.
58149         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58150         * modules/isfinite (Depends-on): Likewise.
58151         * modules/round-tests (Depends-on): Likewise.
58152         * modules/signbit (Depends-on): Likewise.
58153         * modules/signbit-tests (Depends-on): Likewise.
58154         * modules/snprintf-posix (Depends-on): Likewise.
58155         * modules/sprintf-posix (Depends-on): Likewise.
58156         * modules/trunc-tests (Depends-on): Likewise.
58157         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58158         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58159         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58160         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58161         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58162         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58163         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58164         * modules/vasnprintf-posix (Depends-on): Likewise.
58165         * modules/vasprintf-posix (Depends-on): Likewise.
58166         * modules/vfprintf-posix (Depends-on): Likewise.
58167         * modules/vsnprintf-posix (Depends-on): Likewise.
58168         * modules/vsprintf-posix (Depends-on): Likewise.
58169         * lib/frexp.c: Include isnand.h instead of isnan.h.
58170         (ISNAN): Set to isnand instead of isnan.
58171         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58172         (gl_isfinited): Use isnand instead of isnan.
58173         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58174         (gl_signbitd): Use isnand instead of isnan.
58175         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58176         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58177         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58178         (main): Use isnand instead of isnan.
58179         * tests/test-round1.c: Include isnand.h.
58180         (main): Use isnand instead of isnan.
58181         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58182         (ISNAN): Set to isnand instead of isnan.
58183         * tests/test-trunc1.c: Include isnand.h.
58184         (main): Use isnand instead of isnan.
58185         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58186         (equal): Use isnand instead of isnan.
58187         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58188         isnand-nolibm.
58189         * NEWS: Mention the change.
58190
58191 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58192             Bruno Haible  <bruno@clisp.org>
58193
58194         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58195         the GCC builtins for signbits are present and set
58196         REPLACE_SIGNBIT_USING_GCC if so.
58197         * lib/math.in.h (signbit): Define using GCC builtins if
58198         REPLACE_SIGNBIT_USING_GCC is set.
58199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58200         REPLACE_SIGNBIT_USING_GCC.
58201         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58202
58203 2008-01-25  Jim Meyering  <meyering@redhat.com>
58204
58205         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58206         * lib/poll.c: Include <config.h>, not "config.h".
58207         * tests/test-getaddrinfo.c: Likewise.
58208
58209 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58210
58211         * modules/sockets-tests: New file.
58212
58213 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58214
58215         * modules/sockets: New module, can be used to call WSA_Startup and
58216         WSA_Cleanup when needed.
58217
58218         * lib/sockets.h, lib/sockets.c: New files.
58219
58220         * m4/sockets.m4: New file.
58221
58222         * tests/test-sockets.c: New file.
58223
58224 2008-01-19  Bruno Haible  <bruno@clisp.org>
58225
58226         * doc/posix-headers: Renamed from doc/headers.
58227         * doc/posix-functions: Renamed from doc/functions.
58228         * doc/gnulib.texi: Update.
58229
58230 2008-01-19  Bruno Haible  <bruno@clisp.org>
58231
58232         * doc/glibc-functions/strcasestr.texi: Include contents of
58233         doc/functions/strcasestr.texi, fixing the list of platforms.
58234         * doc/functions/strcasestr.texi: Remove file.
58235
58236 2008-01-19  Bruno Haible  <bruno@clisp.org>
58237
58238         * doc/glibc-functions/memmem.texi: Include contents of
58239         doc/functions/memmem.texi.
58240         * doc/functions/memmem.texi: Remove file.
58241
58242 2008-01-18  Bruno Haible  <bruno@clisp.org>
58243
58244         * doc/glibc-functions/*.texi: New files.
58245         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58246         to use the new files.
58247
58248 2008-01-17  Bruno Haible  <bruno@clisp.org>
58249
58250         * tests/test-gethostname.c (main): Fix printf statement.
58251
58252 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58253
58254         * modules/gethostname-tests: New file.
58255
58256         * tests/test-gethostname.c: New file.
58257
58258 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58259
58260         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58261         used by the UNAME case.  Reported by Bruno Haible
58262         <bruno@clisp.org>.
58263
58264 2008-01-17  Eric Blake  <ebb9@byu.net>
58265
58266         Convert c-strcasestr to be more efficient.
58267         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58268         (Depends-on): Add c-strcase, remove malloca, strnlen.
58269         * tests/test-c-strcasestr.c (main): Enhance test.
58270         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58271
58272 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58273
58274         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58275         Use it in creating po/Makevars.
58276
58277 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58278
58279         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58280         Applications that requires it should initialize libgcrypt
58281         manually.
58282
58283 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58284
58285         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58286
58287 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         Fix problem with getdate on mingw32 reported by Simon Josefsson
58290         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58291         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58292         tzname", when deciding whether to declare tzname.
58293         * lib/strftime.c (tzname): Likewise.
58294
58295 2008-01-15  Bruno Haible  <bruno@clisp.org>
58296
58297         Work around a MacOS X 10.5 bug in frexpl().
58298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58299         * doc/functions/frexpl.texi: Document the bug.
58300         Reported by Elias Pipping <pipping@gentoo.org>.
58301
58302 2008-01-14  Eric Blake  <ebb9@byu.net>
58303
58304         Touch up previous patch.
58305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58306         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58307
58308         Convert strcasestr module to use Two-Way algorithm.
58309         * modules/strcasestr-simple: New module, based on the old
58310         strcasestr, but with Two-Way rather than KMP.
58311         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58312         * lib/string.in.h (rpl_strcasestr): Declare.
58313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58314         performance.
58315         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58316         * modules/string (Makefile.am): Support strcasestr.
58317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58318         * modules/strcasestr-tests (Depends-on): Check for alarm.
58319         * tests/test-strcasestr.c: Augment test.
58320         * lib/str-two-way.h: Clean up stray macro.
58321         * NEWS: Document new module.
58322         * MODULES.html.sh (string handling): Likewise.
58323         * doc/functions/strcasestr.texi: New file.
58324         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58325         here, since it is not a POSIX function.
58326
58327 2008-01-14  Colin Watson  <cjwatson@debian.org>
58328             Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58331         works fine; if not, set REPLACE_STRSIGNAL.
58332         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58334         REPLACE_STRSIGNAL.
58335         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58336         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58337         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58338
58339 2008-01-14  Bruno Haible  <bruno@clisp.org>
58340
58341         * modules/strsignal (Include): Change to <string.h>.
58342
58343 2008-01-14  Colin Watson  <cjwatson@debian.org>
58344
58345         * modules/argp (Notice): Add a notice recommending to change
58346         XGETTEXT_OPTIONS.
58347         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58348
58349 2008-01-13  Colin Watson  <cjwatson@debian.org>
58350
58351         * modules/strsignal-tests: New file.
58352         * tests/test-strsignal.c: New file.
58353
58354         * lib/strsignal.c: New file, from glibc with modifications.
58355         * lib/siglist.h: New file, from glibc with modifications.
58356         * lib/string.in.h (strsignal): New declaration.
58357         * m4/strsignal.m4: New file.
58358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58359         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58360         * modules/strsignal: New file.
58361         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58362         HAVE_DECL_STRSIGNAL.
58363
58364 2008-01-13  Bruno Haible  <bruno@clisp.org>
58365
58366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58367         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58368         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58369         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58370
58371 2008-01-13  Bruno Haible  <bruno@clisp.org>
58372
58373         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58374         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58375         * lib/argp.h (__attribute__): Likewise.
58376         * lib/c-stack.c (__attribute__): Likewise.
58377         * lib/error.h (__attribute__): Likewise.
58378         * lib/fts.c (__attribute__): Likewise.
58379         * lib/openat.h (__attribute__): Likewise.
58380         * lib/stdio.in.h (__attribute__): Likewise.
58381         * lib/string.in.h (__attribute__): Likewise.
58382         * lib/utimens.c (__attribute__): Likewise.
58383         * lib/vasnprintf.h (__attribute__): Likewise.
58384         * lib/xalloc.h (__attribute__): Likewise.
58385         * lib/xprintf.h (__attribute__): Likewise.
58386         * lib/xstrtol.h (__attribute__): Likewise.
58387         * lib/xvasprintf.h (__attribute__): Likewise.
58388
58389 2008-01-12  Bruno Haible  <bruno@clisp.org>
58390
58391         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58392         * doc/glibc-headers/a.out.texi: New file.
58393         * doc/glibc-headers/aliases.texi: New file.
58394         * doc/glibc-headers/alloca.texi: New file.
58395         * doc/glibc-headers/ar.texi: New file.
58396         * doc/glibc-headers/argp.texi: New file.
58397         * doc/glibc-headers/argz.texi: New file.
58398         * doc/glibc-headers/byteswap.texi: New file.
58399         * doc/glibc-headers/crypt.texi: New file.
58400         * doc/glibc-headers/endian.texi: New file.
58401         * doc/glibc-headers/envz.texi: New file.
58402         * doc/glibc-headers/err.texi: New file.
58403         * doc/glibc-headers/error.texi: New file.
58404         * doc/glibc-headers/execinfo.texi: New file.
58405         * doc/glibc-headers/fpu_control.texi: New file.
58406         * doc/glibc-headers/fstab.texi: New file.
58407         * doc/glibc-headers/fts.texi: New file.
58408         * doc/glibc-headers/getopt.texi: New file.
58409         * doc/glibc-headers/ieee754.texi: New file.
58410         * doc/glibc-headers/ifaddrs.texi: New file.
58411         * doc/glibc-headers/libintl.texi: New file.
58412         * doc/glibc-headers/mcheck.texi: New file.
58413         * doc/glibc-headers/mntent.texi: New file.
58414         * doc/glibc-headers/obstack.texi: New file.
58415         * doc/glibc-headers/paths.texi: New file.
58416         * doc/glibc-headers/printf.texi: New file.
58417         * doc/glibc-headers/pty.texi: New file.
58418         * doc/glibc-headers/resolv.texi: New file.
58419         * doc/glibc-headers/shadow.texi: New file.
58420         * doc/glibc-headers/sysexits.texi: New file.
58421         * doc/glibc-headers/ttyent.texi: New file.
58422
58423 2008-01-12  Jim Meyering  <meyering@redhat.com>
58424
58425         announce-gen: emit Gnulib's git-based version string.
58426         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58427         New option --gnulib-version=V, where V is expected to be
58428         the output of running git describe in the gnulib directory.
58429         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58430         not useful, and plan to stop publishing an xdelta file with each
58431         coreutils release.
58432
58433         * build-aux/announce-gen: Also check for lzma-compressed files.
58434
58435 2008-01-11  Bruno Haible  <bruno@clisp.org>
58436
58437         * tests/test-memmem.c (main): Increase maximum allowed time.
58438         * tests/test-strstr.c (main): Likewise.
58439
58440 2008-01-11  Bruno Haible  <bruno@clisp.org>
58441
58442         * doc/functions/memmem.texi: Add more precisions about platforms.
58443         * doc/functions/strstr.texi: Likewise.
58444
58445 2008-01-10  Eric Blake  <ebb9@byu.net>
58446
58447         * m4/strstr.m4: Delete cruft from copy-n-paste.
58448         Reported by Bruno Haible.
58449
58450 2008-01-10  Bruno Haible  <bruno@clisp.org>
58451
58452         Make c-strstr rely on strstr.
58453         * lib/c-strstr.c: Don't include str-kmp.h.
58454         (c_strstr): Define in terms of strstr.
58455         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58456         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58457
58458 2008-01-10  Bruno Haible  <bruno@clisp.org>
58459
58460         * doc/gnulib.texi (String Functions in C Locale): New section.
58461         * doc/c-ctype.texi: New file.
58462         * doc/c-strcase.texi: New file.
58463         * doc/c-strcaseeq.texi: New file.
58464         * doc/c-strcasestr.texi: New file.
58465         * doc/c-strstr.texi: New file.
58466         * doc/c-strtod.texi: New file.
58467         * doc/c-strtold.texi: New file.
58468
58469 2008-01-10  Eric Blake  <ebb9@byu.net>
58470
58471         * lib/relocatable.h: Fix a comment.
58472
58473 2008-01-10  Eric Blake  <ebb9@byu.net>
58474
58475         Share two-way algorithm.
58476         * lib/str-two-way.h: New file, merged from...
58477         * lib/memmem.c: ...here...
58478         * lib/strstr.c: ...and here.
58479         * modules/memmem (Files): Use it.
58480         * modules/strstr (Files): Likewise.
58481
58482         Avoid quadratic strstr implementations.
58483         * lib/strstr.c: New file.
58484         * m4/strstr.m4: Likewise.
58485         * modules/strstr: Likewise.
58486         * modules/strstr-tests: Likewise.
58487         * tests/test-strstr.c: Likewise.
58488         * lib/string.in.h (rpl_strstr): Declare.
58489         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58491         * modules/string (Makefile.am): Likewise.
58492         * MODULES.html.sh (string handling): Mention new module.
58493         * doc/functions/strstr.texi (strstr): Document the bug.
58494
58495 2008-01-10  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/relocatable.h (relocate): State whether result is freshly
58498         allocated or not.
58499         * lib/relocatable.c (relocate): Return a freshly allocated string
58500         instead of a pointer to a privately held string.
58501         Reported by Sylvain Beucler <beuc@gnu.org>.
58502
58503 2008-01-10  Colin Watson  <cjwatson@debian.org>
58504
58505         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58506         s/S_ISNLK/S_ISLNK/.
58507
58508 2008-01-09  Bruno Haible  <bruno@clisp.org>
58509
58510         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58511         and other files.
58512         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58513         if it's only a guess.
58514         * modules/memmem: Simplify by depending on memmem-simple.
58515
58516 2008-01-09  Bruno Haible  <bruno@clisp.org>
58517
58518         Work around OpenBSD 4.0 tdelete() bug.
58519         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58520         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58521         macros and don't redefine the enum values.
58522         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58523         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58524         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58525
58526 2008-01-09  Bruno Haible  <bruno@clisp.org>
58527
58528         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58529         (main): Don't perform the tests if setlocale did not install a UTF-8
58530         locale. Needed on OpenBSD 4.0.
58531         * modules/wcwidth-tests (Depends-on): Add localcharset.
58532
58533 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58536         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58537         * NEWS: announce this.
58538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58539
58540 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58541         and Eric Blake  <ebb9@byu.net>
58542
58543         Add memmem-simple module.
58544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58545         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58546         * modules/memmem-simple: New file.
58547         * modules/memmem (Description): Tweak.
58548         * MODULES.html.sh (string handling): Mention new module.
58549         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58550         addressed by memmem-simple.
58551         * NEWS: Document the difference.
58552
58553 2008-01-09  Eric Blake  <ebb9@byu.net>
58554
58555         Give gcc some memmem optimization hints.
58556         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58557         (strcasestr): Declare as pure.
58558         * modules/memmem (Maintainer): Claim my implementation.
58559
58560 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58561
58562         Support AIX 6.1 and higher.
58563         * build-aux/config.libpath: Likewise.
58564         * build-aux/config.rpath: Likewise.
58565
58566 2008-01-08  Jim Meyering  <meyering@redhat.com>
58567             Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58570         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58571         Reported by Peter Fales in
58572         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58573
58574 2008-01-08  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/unictype/category-of (Depends-on): Add
58577         unictype/category-none.
58578         * modules/unictype/category-and-tests (Depends-on): Add
58579         unictype/category-{L,N,Lu,Nd}.
58580         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58581         * modules/unictype/category-or-tests (Depends-on): Add
58582         unictype/category-{L,N}.
58583         * modules/unictype/category-name-tests (Depends-on): Add
58584         unictype/category-{Z,Nl}.
58585         Reported by Simon Josefsson.
58586
58587 2008-01-08  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58590         convention better.
58591         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58592         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58593         Reported by Peter Miller <millerp@canb.auug.org.au>.
58594
58595 2008-01-08  Eric Blake  <ebb9@byu.net>
58596
58597         Rewrite memmem to guarantee linear complexity without malloc.
58598         * lib/memmem.c (memmem): Use Two-Way rather than
58599         Knuth-Morris-Pratt, to allow O(1) space usage.
58600         (critical_factorization, two_way_short_needle)
58601         (two_way_long_needle): New functions.
58602         (knuth_morris_pratt): Delete.
58603         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58604         Add stdint.
58605         * tests/test-memmem.c (main): Add tests for periodic needle and
58606         sublinear performance.
58607         * doc/functions/memmem.texi (memmem): Document other deficiencies
58608         in cygwin and older glibc.
58609
58610 2008-01-08  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58613         augmentation.
58614
58615 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58616
58617         Add a configure time option: --disable-acl.
58618         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58619         AC_ARG_ENABLE(acl).
58620
58621 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58622
58623         * tests/test-localename.c: Don't include obsolete "setenv.h".
58624
58625         * modules/localename-tests (Depends-on): Need unsetenv.
58626
58627 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58628
58629         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58630
58631 2008-01-06  Colin Watson  <cjwatson@debian.org>
58632
58633         * users.txt: Add man-db.
58634
58635 2008-01-07  Bruno Haible  <bruno@clisp.org>
58636
58637         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58638         previous section name.
58639
58640 2008-01-07  Bruno Haible  <bruno@clisp.org>
58641
58642         * lib/progname.c (set_program_name): Don't strip off a leading
58643         "lt-" prefix outside a .libs directory.
58644         Suggested by Paul Eggert.
58645
58646 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58647             Bruno Haible  <bruno@clisp.org>
58648
58649         Improve memory cleanup in 'relocatable' module.
58650         * lib/relocatable.h (compute_curr_prefix): Change return type to
58651         'char *'.
58652         * lib/relocatable.c (compute_curr_prefix): Change return type to
58653         'char *'. Free curr_installdir after use.
58654         (relocate): Free curr_prefix_better after use.
58655         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58656
58657 2008-01-01  Bruno Haible  <bruno@clisp.org>
58658
58659         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58660         failure on older glibc systems.
58661         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58662
58663 2008-01-05  Eric Blake  <ebb9@byu.net>
58664
58665         Avoid quadratic system memmem.
58666         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58667         Reported by Ralf Wildenhues.
58668
58669         Fix memmem test for mingw.
58670         * modules/memmem-tests (configure.ac): Check for alarm.
58671         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58672         it.
58673         * doc/functions/memmem.texi: New file.
58674         * doc/gnulib.texi (Function Substitutes): Add memmem.
58675         Reported by Bruno Haible.
58676
58677 2008-01-04  Bruno Haible  <bruno@clisp.org>
58678
58679         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58680         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58681         gl_HEADER_STRING_H_DEFAULTS.
58682
58683 2008-01-04  Eric Blake  <ebb9@byu.net>
58684
58685         Shorten duration of memmem test.
58686         * tests/test-memmem.c (main): Use alarm to declare failure if test
58687         is taking too long.
58688         Reported by Ralf Wildenhues.
58689
58690 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58691
58692         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58693         string, needed by strerror.
58694
58695 2008-01-03  Colin Watson  <cjwatson@debian.org>
58696             Bruno Haible  <bruno@clisp.org>
58697
58698         * doc/gnulib-tool.texi (Localization): New section.
58699
58700 2008-01-02  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58703         variables to 'unsigned char *' type.
58704         Reported by Paul Eggert.
58705
58706 2008-01-02  Jim Meyering  <jim@meyering.net>
58707
58708         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58709
58710 2007-12-31  Jim Meyering  <jim@meyering.net>
58711
58712         Avoid use of private FTS type name.
58713         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58714
58715 2007-12-30  Karl Berry  <karl@gnu.org>
58716
58717         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58718         work around defect in Texinfo and/or the standalone Info browser.
58719
58720 2007-12-30  Bruno Haible  <bruno@clisp.org>
58721
58722         Unify 5 copies of the KMP code.
58723         * lib/str-kmp.h: New file.
58724         * lib/c-strcasestr.c: Include str-kmp.h.
58725         (knuth_morris_pratt): Remove function.
58726         (c_strcasestr): Update.
58727         * lib/c-strstr.c: Include str-kmp.h.
58728         (knuth_morris_pratt): Remove function.
58729         (c_strcasestr): Update.
58730         * lib/mbscasestr.c: Include str-kmp.h.
58731         (knuth_morris_pratt_unibyte): Remove function.
58732         * lib/mbsstr.c: Include str-kmp.h.
58733         (knuth_morris_pratt_unibyte): Remove function.
58734         * lib/strcasestr.c: Include str-kmp.h.
58735         (knuth_morris_pratt): Remove function.
58736         (strcasestr): Update.
58737         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58738         * modules/c-strstr (Files): Likewise.
58739         * modules/mbscasestr (Files): Likewise.
58740         * modules/mbsstr (Files): Likewise.
58741         * modules/strcasestr (Files): Likewise.
58742         Suggested by Paul Eggert.
58743
58744 2007-12-30  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58747         defined.
58748
58749 2007-12-30  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/xmalloca.h: Include xalloc.h.
58752         (xnmalloca): New macro.
58753
58754 2007-12-30  Bruno Haible  <bruno@clisp.org>
58755
58756         * lib/malloca.h (nmalloca): New macro.
58757         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58758         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58759         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58760         knuth_morris_pratt_multibyte): Likewise.
58761         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58762         knuth_morris_pratt_multibyte): Likewise.
58763         * lib/memmem.c (knuth_morris_pratt): Likewise.
58764         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58765
58766 2007-12-25  Bruno Haible  <bruno@clisp.org>
58767
58768         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58769         * lib/glob.c: Don't include openat.h.
58770         (link_exists2_p): Add back the code that deals with the
58771         !GLOB_ALTDIRFUNC case.
58772         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58773         let it do the filename concatenation.
58774         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58775         * modules/glob (Depends-on): Remove openat.
58776
58777 2007-12-31  Bruno Haible  <bruno@clisp.org>
58778
58779         * modules/dirfd (License): Change to LGPLv2+.
58780         Approved by Jim Meyering.
58781
58782 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58785         when multiplying M by sizeof (size_t).
58786
58787 2007-12-10  Martin Lambers  <marlam@marlam.de>
58788
58789         Override getpagesize on mingw.
58790         * lib/getpagesize.c: New file.
58791         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58792         * modules/getpagesize (Files): Add lib/getpagesize.c.
58793         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58795         REPLACE_GETPAGESIZE.
58796         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58797
58798 2007-12-25  Bruno Haible  <bruno@clisp.org>
58799
58800         * modules/localcharset (Notice): New field.
58801         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58802         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58803
58804 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58805             Bruno Haible  <bruno@clisp.org>
58806
58807         Avoid using the syntax symbol() in formatted documentation.
58808         * MODULES.html.sh (func_module): When replacing symbol() with a
58809         hyperlink, remove the parentheses. Show an error if some remain.
58810         Recognize and render the '...' syntax.
58811         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58812         Rework. Add paragraph about GCC's inlining.
58813         * doc/alloca.texi: Likewise.
58814         * doc/error.texi: Remove parentheses from symbol reference.
58815         * doc/gnulib-intro.texi: Likewise.
58816         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58817         * modules/fnmatch (Description): Reword to say "the ... function".
58818         * modules/full-read (Description): Likewise.
58819         * modules/full-write (Description): Likewise.
58820         * modules/safe-read (Description): Likewise.
58821         * modules/safe-write (Description): Likewise.
58822         * modules/strchrnul (Description): Likewise.
58823         * modules/trim (Description): Likewise.
58824         * modules/error (Description): Remove parentheses from symbol
58825         references.
58826         * modules/verror (Description): Likewise.
58827         Reported by Karl Berry.
58828
58829 2007-12-25  Bruno Haible  <bruno@clisp.org>
58830
58831         Fixup after 2007-10-16 commit.
58832         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58833
58834 2007-12-24  Bruno Haible  <bruno@clisp.org>
58835
58836         Make --enable-relocatable work with DESTDIR.
58837         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58838         to compute installdir from destprog.
58839         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58840         also set the RELOC_DESTDIR variable.
58841         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58842
58843 2007-12-24  Bruno Haible  <bruno@clisp.org>
58844
58845         Fix link error due to xalloc_die().
58846         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58847         of xreadlink.
58848         * lib/relocwrapper.c: Update comments.
58849         * build-aux/install-reloc: Remove xreadlink.c from file list.
58850         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58851         xreadlink.c.
58852         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58853
58854 2007-12-24  Bruno Haible  <bruno@clisp.org>
58855
58856         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58857         * lib/setenv.h: Remove file.
58858         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58859         lib/setenv.h.
58860         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58861         (Depends-on): Add stdlib.
58862         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58863         gl_FUNC_UNSETENV.
58864         (Include): Replace setenv.h with <stdlib.h>.
58865         * modules/unsetenv: New file.
58866         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58867         * lib/unsetenv.c: Include <stdlib.h> first.
58868         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58869         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58870         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58871         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58872         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58873         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58875         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58876         * doc/functions/unsetenv.texi: Update.
58877         * modules/xsetenv (Depends-on): Add unsetenv.
58878         * modules/getdate (Depends-on): Likewise.
58879         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58880         * lib/xsetenv.c: Don't include setenv.h.
58881         * lib/getdate.y: Likewise.
58882         * lib/relocwrapper.c: Likewise.
58883         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58884         (Depends-on): Add stdlib.
58885         * NEWS: Mention the changes.
58886         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58887
58888 2007-12-23  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58891         indentation.
58892
58893 2007-12-23  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/c-strcasestr.c: Add more comments.
58896         * lib/c-strstr.c: Likewise.
58897         * lib/mbscasestr.c: Likewise.
58898         * lib/mbsstr.c: Likewise.
58899         * lib/strcasestr.c: Likewise.
58900         * lib/memmem.c: Likewise.
58901
58902 2007-12-23  Bruno Haible  <bruno@clisp.org>
58903
58904         * tests/test-memmem.c: Include <string.h> first.
58905
58906 2007-12-22  Bruno Haible  <bruno@clisp.org>
58907
58908         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58909         the contents of $testsbase.
58910         Reported by Ralf Wildenhues.
58911
58912 2007-12-22  Bruno Haible  <bruno@clisp.org>
58913
58914         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58915         two variables local_ldadd_before, local_ldadd_last.
58916
58917 2007-12-20  Eric Blake  <ebb9@byu.net>
58918
58919         Work around circular library issue when cross-compiling.
58920         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58921         that progname.o does not need to pull in rpl_memcmp.
58922
58923 2007-12-19  Eric Blake  <ebb9@byu.net>
58924
58925         Fix memmem to avoid O(n^2) worst-case complexity.
58926         * lib/memmem.c (knuth_morris_pratt): New function.
58927         (memmem): Use it if first few naive iterations fail.
58928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58929         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58930         * modules/memchr (License): Likewise.
58931         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58932         malloca.
58933         * tests/test-memmem.c: Rewrite, borrowing ideas from
58934         test-mbsstr1.c; the old version wouldn't even compile!
58935         * modules/memmem-tests: New file.
58936         * lib/string.in.h (rpl_memmem): Add declaration.
58937         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58939         REPLACE_MEMMEM.
58940
58941 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58944         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58945         before any system include files, and undef after them all.  This
58946         should fix a problem on VMS reported by John E. Malmberg in
58947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58948
58949 2007-12-17  Eric Blake  <ebb9@byu.net>
58950
58951         Revert addition of verify, for BSD/OS.
58952         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58953         can't handle large files, for the sake of obsolete platforms.
58954         * modules/fseeko (Depends-on): Remove verify.
58955         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58956         * doc/functions/ftello.texi (ftello): Likewise.
58957         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58958         Reported by Larry Jones.
58959
58960 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58961
58962         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58963         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58964
58965 2007-12-17  Jim Meyering  <meyering@redhat.com>
58966
58967         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58968         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58969         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58970         * modules/getcwd (Depends-on): Add openat.
58971         Reported by Petr Salinger.
58972
58973 2007-12-17  Bruno Haible  <bruno@clisp.org>
58974
58975         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58976         avoid a segmentation fault of the configure test on x86_64 systems.
58977
58978 2007-12-15  Jim Meyering  <meyering@redhat.com>
58979
58980         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58981
58982 2007-12-13  Eric Blake  <ebb9@byu.net>
58983
58984         Another fseek test.
58985         * tests/test-fseek.c (main): Also test ungetc handling.
58986         * tests/test-fseeko.c (main): Likewise.
58987         * modules/fseeko (Depends-on): Add verify.
58988         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58989         large.
58990         Reported by Larry Jones.
58991
58992         Fix fseeko on mingw.
58993         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58994         seek.
58995
58996         Beef up fseek tests.
58997         * tests/test-fseek.c (main): Also test eof handling.
58998         * tests/test-fseeko.c (main): Likewise.
58999         Reported by Larry Jones.
59000
59001 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59002
59003         Fix fseeko on BSD-based platforms.
59004         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59005         successful seek.
59006
59007 2007-12-12  Eric Blake  <ebb9@byu.net>
59008
59009         Allow circular dependency of separate libtests.a
59010         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59011         when use_libtests.
59012
59013 2007-12-11  Eric Blake  <ebb9@byu.net>
59014
59015         Fix bug with -0.0L in previous patch.
59016         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59017         * tests/test-isnan.c (main): Also test on zeroes.
59018         * tests/test-isnanf.c (main): Likewise.
59019         * tests/test-isnanl.h (main): Likewise.
59020
59021         Detect pseudo-denormals on x86 even when cross-compiling.
59022         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59023         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59024         invalid bit patterns that happen to satisfy ==.
59025
59026         Avoid link failures with separate libtests.a.
59027         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59028         last, to satisfy circular dependencies.
59029
59030 2007-12-11  Eric Blake  <ebb9@byu.net>
59031         and Bruno Haible  <bruno@clisp.org>
59032
59033         Fix OpenBSD 4.0 <float.h> handling of long double.
59034         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59035         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59036         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59037
59038 2007-12-11  Jim Meyering  <meyering@redhat.com>
59039
59040         * users.txt: Add libvirt.
59041
59042         Support versions of autoconf prior to 2.59c.
59043         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59044         if it is not already defined.
59045
59046 2007-12-09  Bruno Haible  <bruno@clisp.org>
59047
59048         Let 'gnulib-tool --import' collect sources needed for the tests in
59049         tests/ rather than in lib/.
59050         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59051         argument. If true, add rules to generate libtests.a, and put libtests.a
59052         into $(LDADD). Consider source files in subdirectories and set
59053         uses_subdirs.
59054         (func_emit_initmacro_start, func_emit_initmacro_end,
59055         func_emit_initmacro_done): Pass all arguments explicitly.
59056         (func_import): Determine two module lists main_modules,
59057         testsrelated_modules. Determine use_libtests. Determine two variables
59058         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59059         instead of just sed_transform_lib_file. Determine two variables
59060         main_files and testsrelated_files. Compute 'files' as the union of
59061         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59062         func_add_or_update. In the generated gnulib-comp.m4, collect the
59063         object files for tests/ in different variables than those for lib/.
59064         Substitute LIBTESTS_LIBDEPS.
59065         (func_create_testdir): Combine the uses_subdirs results from
59066         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59067
59068 2007-12-09  Bruno Haible  <bruno@clisp.org>
59069
59070         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59071         the build-aux directory.
59072
59073 2007-12-09  Bruno Haible  <bruno@clisp.org>
59074
59075         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59076         introduced on 2006-09-09.
59077
59078 2007-12-07  Jim Meyering  <meyering@redhat.com>
59079
59080         Let these macros work also with autoconf-2.59.
59081         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59082         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59083         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59084
59085 2007-12-06  Jim Meyering  <meyering@redhat.com>
59086
59087         Avoid a configure-time syntax error in gl_FUNC_ACL.
59088         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59089         function in each branch, before testing the cache variable.
59090
59091 2007-12-04  Eric Blake  <ebb9@byu.net>
59092
59093         Make scripts executable.
59094         * build-aux/config.guess: Add execute permissions.
59095         * build-aux/config.sub: Likewise.
59096         * build-aux/gendocs.sh: Likewise.
59097
59098         Fix frexp on mingw.
59099         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59100         cross-compiling.
59101         * doc/functions/frexp.texi (frexp): Document the bug.
59102
59103         Make cygwin fseeko check more reliable.
59104         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59105         version numbers, rather than unrelated feature check.
59106         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59107         * doc/functions/ftello.texi (ftello): Likewise.
59108         Reported by Bruno Haible.
59109
59110         * m4/strerror.m4: Bump version number.
59111
59112 2007-12-03  Bruno Haible  <bruno@clisp.org>
59113
59114         * doc/functions/mprotect.texi: Mention the mingw problem.
59115
59116 2007-12-03  Eric Blake  <ebb9@byu.net>
59117
59118         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59119         REPLACE_STRERROR is initialized before this macro.
59120
59121 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59124         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59125         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59126         put -lsec in even for programs other than 'ls'.  This fixes a problem
59127         for gettext reported by Bruno Haible in
59128         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59129         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59130         Add support for Solaris 10.  This isn't efficient, but should get the
59131         job done for now.
59132
59133 2007-12-03  James Youngman  <jay@gnu.org>
59134
59135         * doc/regexprops-generic.texi: change "an close-group" to "a
59136         close-group" and "illegal" to "not allowed".
59137
59138 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59139
59140         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59141         pr_byname.h. Needed for the rare case when the maintainer has done
59142         "make maintainer-clean" in the source directory and then attempts a
59143         build outside the source directory.
59144         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59145         scripts_byname.h.
59146
59147 2007-12-02  Martin Lambers <marlam@marlam.de>
59148             Bruno Haible  <bruno@clisp.org>
59149
59150         * lib/getpagesize.h: Remove file.
59151         * lib/unistd.in.h: Include declaration of getpagesize here.
59152         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59153         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59154         HAVE_SYS_PARAM_H.
59155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59156         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59157         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59158         (Depends-on): Add unistd.
59159         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59160         (Include): Use <unistd.h> instead of getpagesize.h.
59161         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59162         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59163         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59164         gl_GETPAGESIZE invocation, already handled by module dependency.
59165         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59166
59167 2007-12-02  Bruno Haible  <bruno@clisp.org>
59168
59169         * modules/strings-tests: New file.
59170         * tests/test-strings.c: New file.
59171
59172         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59173         * lib/strings.in.h: New file.
59174         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59175         * m4/strings_h.m4: New file.
59176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59177         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59178         * modules/strings: New file.
59179         * modules/string (Makefile.am): Update.
59180         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59181         Reported by Karl Berry.
59182
59183 2007-12-01  Eric Blake  <ebb9@byu.net>
59184
59185         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59186         accomodate fix in cygwin 1.5.25.
59187
59188 2007-12-01  Jim Meyering  <meyering@redhat.com>
59189
59190         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59191         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59192         that would inhibit utf8-optimization of a regexp containing line-
59193         or buffer-anchors, e.g., `^', `$'.
59194
59195 2007-11-30  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59198         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59199         glthread_recursive_lock_init.
59200         * lib/lock.c (glthread_recursive_lock_init)
59201         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59202         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59203
59204 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         New function qset_acl, like set_acl but with syscall semantics.
59207         * lib/acl.h (qset_acl): New decl.
59208         * lib/acl.c (qset_acl): New function.
59209         (set_acl): Use new function.  Use more-consistent diagnostics.
59210
59211 2007-11-28  Jim Meyering  <meyering@redhat.com>
59212
59213         * modules/physmem (License): Change from GPL to LGPLv2+.
59214
59215 2007-11-26  Bruno Haible  <bruno@clisp.org>
59216
59217         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59218         'long double' type has excess precision.
59219         Reported by Jim Meyering in
59220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59221
59222 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59223
59224         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59225         Sync from <http://gnu.org/licenses>.
59226         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59227         with license text from same location.
59228         * doc/maintain.texi, doc/standards.texi:  Sync from
59229         <http://savannah.gnu.org/projects/gnustandards>.
59230
59231 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59232         and Jim Meyering  <meyering@redhat.com>
59233
59234         Adjust getdate' grammar to accept a slightly more regular language.
59235         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59236         Before, the former was rejected.
59237         * lib/getdate.y (digits_to_date_time): New function, factored
59238         out of ...
59239         (number): ...here.  Just call digits_to_date_time.
59240         (hybrid): New non-terminal to handle an <unsigned number,
59241         signed relative offset> sequence consistently.
59242
59243 2007-11-18  Jim Meyering  <meyering@redhat.com>
59244
59245         Pull my changes from coreutils:
59246         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59247         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59248         use of $gnulib_tool_option_extras, so that it's separated from the
59249         preceding argument.
59250
59251         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59252         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59253         parent destination directories before copying a file into place.
59254
59255 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59256
59257         bootstrap: work also with 4-argument variant of AC_INIT
59258         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59259
59260 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59261
59262         Port test-getaddrinfo to Solaris.
59263         Problem reported by Bruno Haible in
59264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59265         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59266         explanation of setting 'hints'.
59267         Don't reject an implementation merely because it returns EAI_SERVICE.
59268         (EAI_SERVICE): Define to 0 if not defined.
59269
59270 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59271
59272         The license of gnu-make and posix-shell is now "GPLed build tool".
59273         * modules/gnu-make (License): Likewise.
59274         * modules/posix-shell (License): Likewise.
59275
59276         New module posix-shell, for determining a POSIX shell
59277         or perhaps something that is close enough to a POSIX shell.
59278         * m4/posix-shell.m4: New file.
59279         * modules/posix-shell: New file.
59280
59281         * MODULES.html.sh: Mention new module.
59282
59283         New module gnu-make, for determining whether we're using GNU Make.
59284         * m4/gnu-make.m4: New file.
59285         * modules/gnu-make: New file.
59286         * MODULES.html.sh: Mention new module.
59287
59288 2007-11-14  Jim Meyering  <meyering@redhat.com>
59289
59290         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59291         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59292         use this macro to create a function _definition_.
59293         Remove useless "#undef ARGMATCH_DIE".
59294
59295 2007-11-14  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/config.charset: Update for OpenBSD 4.1.
59298         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59299
59300 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         Document 64-bit #if problems in stdint.texi.
59303         * doc/headers/stdint.texi (stdint.h): Mention problems with
59304         64-bit-#if, and how to work around them.
59305
59306         Don't insist on 'long long int' support in the preprocessor.  It
59307         breaks too many things.  For example, PRIdMAX still uses a 'long
59308         long int' format with the latest Sun compiler, even though
59309         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59310         preprocessor problem.  This causes the latest coreutils to dump
59311         core on Solaris 10 sparc with the Sun C compiler.
59312         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59313         the troublesome expressions at configure-time, not at #if-time.
59314         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59315         preprocessor.
59316         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59317         compile-time C checks, done at 'configure'-time.
59318         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59319         * modules/inttypes (Makefile): Substitute the new symbols that
59320         gl_INTTYPES_H now generates.
59321         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59322
59323 2007-11-12  Bruno Haible  <bruno@clisp.org>
59324
59325         Tests for Unicode character classification functions.
59326
59327         * modules/unictype/bidicategory-byname-tests: New file.
59328         * modules/unictype/bidicategory-name-tests: New file.
59329         * modules/unictype/bidicategory-of-tests: New file.
59330         * modules/unictype/bidicategory-test-tests: New file.
59331         * modules/unictype/block-list-tests: New file.
59332         * modules/unictype/block-of-tests: New file.
59333         * modules/unictype/block-test-tests: New file.
59334         * modules/unictype/category-C-tests: New file.
59335         * modules/unictype/category-Cc-tests: New file.
59336         * modules/unictype/category-Cf-tests: New file.
59337         * modules/unictype/category-Cn-tests: New file.
59338         * modules/unictype/category-Co-tests: New file.
59339         * modules/unictype/category-Cs-tests: New file.
59340         * modules/unictype/category-L-tests: New file.
59341         * modules/unictype/category-Ll-tests: New file.
59342         * modules/unictype/category-Lm-tests: New file.
59343         * modules/unictype/category-Lo-tests: New file.
59344         * modules/unictype/category-Lt-tests: New file.
59345         * modules/unictype/category-Lu-tests: New file.
59346         * modules/unictype/category-M-tests: New file.
59347         * modules/unictype/category-Mc-tests: New file.
59348         * modules/unictype/category-Me-tests: New file.
59349         * modules/unictype/category-Mn-tests: New file.
59350         * modules/unictype/category-N-tests: New file.
59351         * modules/unictype/category-Nd-tests: New file.
59352         * modules/unictype/category-Nl-tests: New file.
59353         * modules/unictype/category-No-tests: New file.
59354         * modules/unictype/category-P-tests: New file.
59355         * modules/unictype/category-Pc-tests: New file.
59356         * modules/unictype/category-Pd-tests: New file.
59357         * modules/unictype/category-Pe-tests: New file.
59358         * modules/unictype/category-Pf-tests: New file.
59359         * modules/unictype/category-Pi-tests: New file.
59360         * modules/unictype/category-Po-tests: New file.
59361         * modules/unictype/category-Ps-tests: New file.
59362         * modules/unictype/category-S-tests: New file.
59363         * modules/unictype/category-Sc-tests: New file.
59364         * modules/unictype/category-Sk-tests: New file.
59365         * modules/unictype/category-Sm-tests: New file.
59366         * modules/unictype/category-So-tests: New file.
59367         * modules/unictype/category-Z-tests: New file.
59368         * modules/unictype/category-Zl-tests: New file.
59369         * modules/unictype/category-Zp-tests: New file.
59370         * modules/unictype/category-Zs-tests: New file.
59371         * modules/unictype/category-and-not-tests: New file.
59372         * modules/unictype/category-and-tests: New file.
59373         * modules/unictype/category-byname-tests: New file.
59374         * modules/unictype/category-name-tests: New file.
59375         * modules/unictype/category-none-tests: New file.
59376         * modules/unictype/category-of-tests: New file.
59377         * modules/unictype/category-or-tests: New file.
59378         * modules/unictype/category-test-withtable-tests: New file.
59379         * modules/unictype/combining-class-tests: New file.
59380         * modules/unictype/ctype-alnum-tests: New file.
59381         * modules/unictype/ctype-alpha-tests: New file.
59382         * modules/unictype/ctype-blank-tests: New file.
59383         * modules/unictype/ctype-cntrl-tests: New file.
59384         * modules/unictype/ctype-digit-tests: New file.
59385         * modules/unictype/ctype-graph-tests: New file.
59386         * modules/unictype/ctype-lower-tests: New file.
59387         * modules/unictype/ctype-print-tests: New file.
59388         * modules/unictype/ctype-punct-tests: New file.
59389         * modules/unictype/ctype-space-tests: New file.
59390         * modules/unictype/ctype-upper-tests: New file.
59391         * modules/unictype/ctype-xdigit-tests: New file.
59392         * modules/unictype/decimal-digit-tests: New file.
59393         * modules/unictype/digit-tests: New file.
59394         * modules/unictype/mirror-tests: New file.
59395         * modules/unictype/numeric-tests: New file.
59396         * modules/unictype/property-alphabetic-tests: New file.
59397         * modules/unictype/property-ascii-hex-digit-tests: New file.
59398         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59399         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59400         * modules/unictype/property-bidi-block-separator-tests: New file.
59401         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59402         * modules/unictype/property-bidi-common-separator-tests: New file.
59403         * modules/unictype/property-bidi-control-tests: New file.
59404         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59405         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59406         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59407         * modules/unictype/property-bidi-european-digit-tests: New file.
59408         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59409         * modules/unictype/property-bidi-left-to-right-tests: New file.
59410         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59411         * modules/unictype/property-bidi-other-neutral-tests: New file.
59412         * modules/unictype/property-bidi-pdf-tests: New file.
59413         * modules/unictype/property-bidi-segment-separator-tests: New file.
59414         * modules/unictype/property-bidi-whitespace-tests: New file.
59415         * modules/unictype/property-byname-tests: New file.
59416         * modules/unictype/property-combining-tests: New file.
59417         * modules/unictype/property-composite-tests: New file.
59418         * modules/unictype/property-currency-symbol-tests: New file.
59419         * modules/unictype/property-dash-tests: New file.
59420         * modules/unictype/property-decimal-digit-tests: New file.
59421         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59422         * modules/unictype/property-deprecated-tests: New file.
59423         * modules/unictype/property-diacritic-tests: New file.
59424         * modules/unictype/property-extender-tests: New file.
59425         * modules/unictype/property-format-control-tests: New file.
59426         * modules/unictype/property-grapheme-base-tests: New file.
59427         * modules/unictype/property-grapheme-extend-tests: New file.
59428         * modules/unictype/property-grapheme-link-tests: New file.
59429         * modules/unictype/property-hex-digit-tests: New file.
59430         * modules/unictype/property-hyphen-tests: New file.
59431         * modules/unictype/property-id-continue-tests: New file.
59432         * modules/unictype/property-id-start-tests: New file.
59433         * modules/unictype/property-ideographic-tests: New file.
59434         * modules/unictype/property-ids-binary-operator-tests: New file.
59435         * modules/unictype/property-ids-trinary-operator-tests: New file.
59436         * modules/unictype/property-ignorable-control-tests: New file.
59437         * modules/unictype/property-iso-control-tests: New file.
59438         * modules/unictype/property-join-control-tests: New file.
59439         * modules/unictype/property-left-of-pair-tests: New file.
59440         * modules/unictype/property-line-separator-tests: New file.
59441         * modules/unictype/property-logical-order-exception-tests: New file.
59442         * modules/unictype/property-lowercase-tests: New file.
59443         * modules/unictype/property-math-tests: New file.
59444         * modules/unictype/property-non-break-tests: New file.
59445         * modules/unictype/property-not-a-character-tests: New file.
59446         * modules/unictype/property-numeric-tests: New file.
59447         * modules/unictype/property-other-alphabetic-tests: New file.
59448         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59449         * modules/unictype/property-other-grapheme-extend-tests: New file.
59450         * modules/unictype/property-other-id-continue-tests: New file.
59451         * modules/unictype/property-other-id-start-tests: New file.
59452         * modules/unictype/property-other-lowercase-tests: New file.
59453         * modules/unictype/property-other-math-tests: New file.
59454         * modules/unictype/property-other-uppercase-tests: New file.
59455         * modules/unictype/property-paired-punctuation-tests: New file.
59456         * modules/unictype/property-paragraph-separator-tests: New file.
59457         * modules/unictype/property-pattern-syntax-tests: New file.
59458         * modules/unictype/property-pattern-white-space-tests: New file.
59459         * modules/unictype/property-private-use-tests: New file.
59460         * modules/unictype/property-punctuation-tests: New file.
59461         * modules/unictype/property-quotation-mark-tests: New file.
59462         * modules/unictype/property-radical-tests: New file.
59463         * modules/unictype/property-sentence-terminal-tests: New file.
59464         * modules/unictype/property-soft-dotted-tests: New file.
59465         * modules/unictype/property-space-tests: New file.
59466         * modules/unictype/property-terminal-punctuation-tests: New file.
59467         * modules/unictype/property-test-tests: New file.
59468         * modules/unictype/property-titlecase-tests: New file.
59469         * modules/unictype/property-unassigned-code-value-tests: New file.
59470         * modules/unictype/property-unified-ideograph-tests: New file.
59471         * modules/unictype/property-uppercase-tests: New file.
59472         * modules/unictype/property-variation-selector-tests: New file.
59473         * modules/unictype/property-white-space-tests: New file.
59474         * modules/unictype/property-xid-continue-tests: New file.
59475         * modules/unictype/property-xid-start-tests: New file.
59476         * modules/unictype/property-zero-width-tests: New file.
59477         * modules/unictype/scripts-tests: New file.
59478         * modules/unictype/syntax-c-ident-tests: New file.
59479         * modules/unictype/syntax-c-whitespace-tests: New file.
59480         * modules/unictype/syntax-java-ident-tests: New file.
59481         * modules/unictype/syntax-java-whitespace-tests: New file.
59482         * tests/unictype/test-bidi_byname.c: New file.
59483         * tests/unictype/test-bidi_name.c: New file.
59484         * tests/unictype/test-bidi_of.c: New file.
59485         * tests/unictype/test-bidi_test.c: New file.
59486         * tests/unictype/test-block_list.c: New file.
59487         * tests/unictype/test-block_of.c: New file.
59488         * tests/unictype/test-block_test.c: New file.
59489         * tests/unictype/test-categ_and.c: New file.
59490         * tests/unictype/test-categ_and_not.c: New file.
59491         * tests/unictype/test-categ_byname.c: New file.
59492         * tests/unictype/test-categ_name.c: New file.
59493         * tests/unictype/test-categ_none.c: New file.
59494         * tests/unictype/test-categ_of.c: New file.
59495         * tests/unictype/test-categ_or.c: New file.
59496         * tests/unictype/test-categ_test_withtable.c: New file.
59497         * tests/unictype/test-combining.c: New file.
59498         * tests/unictype/test-decdigit.c: New file.
59499         * tests/unictype/test-digit.c: New file.
59500         * tests/unictype/test-mirror.c: New file.
59501         * tests/unictype/test-numeric.c: New file.
59502         * tests/unictype/test-pr_byname.c: New file.
59503         * tests/unictype/test-pr_test.c: New file.
59504         * tests/unictype/test-predicate-part1.h: New file.
59505         * tests/unictype/test-predicate-part2.h: New file.
59506         * tests/unictype/test-scripts.c: New file.
59507         * tests/unictype/test-sy_c_ident.c: New file.
59508         * tests/unictype/test-sy_java_ident.c: New file.
59509
59510         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59511         for Unicode 5.0.0.
59512         * tests/unictype/test-categ_Cc.c: Likewise.
59513         * tests/unictype/test-categ_Cf.c: Likewise.
59514         * tests/unictype/test-categ_Cn.c: Likewise.
59515         * tests/unictype/test-categ_Co.c: Likewise.
59516         * tests/unictype/test-categ_Cs.c: Likewise.
59517         * tests/unictype/test-categ_L.c: Likewise.
59518         * tests/unictype/test-categ_Ll.c: Likewise.
59519         * tests/unictype/test-categ_Lm.c: Likewise.
59520         * tests/unictype/test-categ_Lo.c: Likewise.
59521         * tests/unictype/test-categ_Lt.c: Likewise.
59522         * tests/unictype/test-categ_Lu.c: Likewise.
59523         * tests/unictype/test-categ_M.c: Likewise.
59524         * tests/unictype/test-categ_Mc.c: Likewise.
59525         * tests/unictype/test-categ_Me.c: Likewise.
59526         * tests/unictype/test-categ_Mn.c: Likewise.
59527         * tests/unictype/test-categ_N.c: Likewise.
59528         * tests/unictype/test-categ_Nd.c: Likewise.
59529         * tests/unictype/test-categ_Nl.c: Likewise.
59530         * tests/unictype/test-categ_No.c: Likewise.
59531         * tests/unictype/test-categ_P.c: Likewise.
59532         * tests/unictype/test-categ_Pc.c: Likewise.
59533         * tests/unictype/test-categ_Pd.c: Likewise.
59534         * tests/unictype/test-categ_Pe.c: Likewise.
59535         * tests/unictype/test-categ_Pf.c: Likewise.
59536         * tests/unictype/test-categ_Pi.c: Likewise.
59537         * tests/unictype/test-categ_Po.c: Likewise.
59538         * tests/unictype/test-categ_Ps.c: Likewise.
59539         * tests/unictype/test-categ_S.c: Likewise.
59540         * tests/unictype/test-categ_Sc.c: Likewise.
59541         * tests/unictype/test-categ_Sk.c: Likewise.
59542         * tests/unictype/test-categ_Sm.c: Likewise.
59543         * tests/unictype/test-categ_So.c: Likewise.
59544         * tests/unictype/test-categ_Z.c: Likewise.
59545         * tests/unictype/test-categ_Zl.c: Likewise.
59546         * tests/unictype/test-categ_Zp.c: Likewise.
59547         * tests/unictype/test-categ_Zs.c: Likewise.
59548         * tests/unictype/test-ctype_alnum.c: Likewise.
59549         * tests/unictype/test-ctype_alpha.c: Likewise.
59550         * tests/unictype/test-ctype_blank.c: Likewise.
59551         * tests/unictype/test-ctype_cntrl.c: Likewise.
59552         * tests/unictype/test-ctype_digit.c: Likewise.
59553         * tests/unictype/test-ctype_graph.c: Likewise.
59554         * tests/unictype/test-ctype_lower.c: Likewise.
59555         * tests/unictype/test-ctype_print.c: Likewise.
59556         * tests/unictype/test-ctype_punct.c: Likewise.
59557         * tests/unictype/test-ctype_space.c: Likewise.
59558         * tests/unictype/test-ctype_upper.c: Likewise.
59559         * tests/unictype/test-ctype_xdigit.c: Likewise.
59560         * tests/unictype/test-decdigit.h: Likewise.
59561         * tests/unictype/test-digit.h: Likewise.
59562         * tests/unictype/test-numeric.h: Likewise.
59563         * tests/unictype/test-pr_alphabetic.c: Likewise.
59564         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59565         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59566         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59567         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59568         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59569         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59570         * tests/unictype/test-pr_bidi_control.c: Likewise.
59571         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59572         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59573         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59574         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59575         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59576         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59577         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59578         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59579         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59580         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59581         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59582         * tests/unictype/test-pr_combining.c: Likewise.
59583         * tests/unictype/test-pr_composite.c: Likewise.
59584         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59585         * tests/unictype/test-pr_dash.c: Likewise.
59586         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59587         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59588         * tests/unictype/test-pr_deprecated.c: Likewise.
59589         * tests/unictype/test-pr_diacritic.c: Likewise.
59590         * tests/unictype/test-pr_extender.c: Likewise.
59591         * tests/unictype/test-pr_format_control.c: Likewise.
59592         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59593         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59594         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59595         * tests/unictype/test-pr_hex_digit.c: Likewise.
59596         * tests/unictype/test-pr_hyphen.c: Likewise.
59597         * tests/unictype/test-pr_id_continue.c: Likewise.
59598         * tests/unictype/test-pr_id_start.c: Likewise.
59599         * tests/unictype/test-pr_ideographic.c: Likewise.
59600         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59601         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59602         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59603         * tests/unictype/test-pr_iso_control.c: Likewise.
59604         * tests/unictype/test-pr_join_control.c: Likewise.
59605         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59606         * tests/unictype/test-pr_line_separator.c: Likewise.
59607         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59608         * tests/unictype/test-pr_lowercase.c: Likewise.
59609         * tests/unictype/test-pr_math.c: Likewise.
59610         * tests/unictype/test-pr_non_break.c: Likewise.
59611         * tests/unictype/test-pr_not_a_character.c: Likewise.
59612         * tests/unictype/test-pr_numeric.c: Likewise.
59613         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59614         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59615         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59616         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59617         * tests/unictype/test-pr_other_id_start.c: Likewise.
59618         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59619         * tests/unictype/test-pr_other_math.c: Likewise.
59620         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59621         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59622         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59623         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59624         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59625         * tests/unictype/test-pr_private_use.c: Likewise.
59626         * tests/unictype/test-pr_punctuation.c: Likewise.
59627         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59628         * tests/unictype/test-pr_radical.c: Likewise.
59629         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59630         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59631         * tests/unictype/test-pr_space.c: Likewise.
59632         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59633         * tests/unictype/test-pr_titlecase.c: Likewise.
59634         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59635         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59636         * tests/unictype/test-pr_uppercase.c: Likewise.
59637         * tests/unictype/test-pr_variation_selector.c: Likewise.
59638         * tests/unictype/test-pr_white_space.c: Likewise.
59639         * tests/unictype/test-pr_xid_continue.c: Likewise.
59640         * tests/unictype/test-pr_xid_start.c: Likewise.
59641         * tests/unictype/test-pr_zero_width.c: Likewise.
59642         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59643         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59644
59645 2007-11-12  Bruno Haible  <bruno@clisp.org>
59646
59647         Unicode character classification functions.
59648         * lib/unictype.h: New file.
59649         * modules/unictype/base: New file.
59650         * modules/unictype/category-L: New file.
59651         * modules/unictype/category-Lu: New file.
59652         * modules/unictype/category-Ll: New file.
59653         * modules/unictype/category-Lt: New file.
59654         * modules/unictype/category-Lm: New file.
59655         * modules/unictype/category-Lo: New file.
59656         * modules/unictype/category-M: New file.
59657         * modules/unictype/category-Mn: New file.
59658         * modules/unictype/category-Mc: New file.
59659         * modules/unictype/category-Me: New file.
59660         * modules/unictype/category-N: New file.
59661         * modules/unictype/category-Nd: New file.
59662         * modules/unictype/category-Nl: New file.
59663         * modules/unictype/category-No: New file.
59664         * modules/unictype/category-P: New file.
59665         * modules/unictype/category-Pc: New file.
59666         * modules/unictype/category-Pd: New file.
59667         * modules/unictype/category-Ps: New file.
59668         * modules/unictype/category-Pe: New file.
59669         * modules/unictype/category-Pi: New file.
59670         * modules/unictype/category-Pf: New file.
59671         * modules/unictype/category-Po: New file.
59672         * modules/unictype/category-S: New file.
59673         * modules/unictype/category-Sm: New file.
59674         * modules/unictype/category-Sc: New file.
59675         * modules/unictype/category-Sk: New file.
59676         * modules/unictype/category-So: New file.
59677         * modules/unictype/category-Z: New file.
59678         * modules/unictype/category-Zs: New file.
59679         * modules/unictype/category-Zl: New file.
59680         * modules/unictype/category-Zp: New file.
59681         * modules/unictype/category-C: New file.
59682         * modules/unictype/category-Cc: New file.
59683         * modules/unictype/category-Cf: New file.
59684         * modules/unictype/category-Cs: New file.
59685         * modules/unictype/category-Co: New file.
59686         * modules/unictype/category-Cn: New file.
59687         * modules/unictype/category-or: New file.
59688         * modules/unictype/category-of: New file.
59689         * modules/unictype/category-test: New file.
59690         * modules/unictype/category-test-withtable: New file.
59691         * modules/unictype/category-byname: New file.
59692         * modules/unictype/category-none: New file.
59693         * modules/unictype/category-and: New file.
59694         * modules/unictype/category-and-not: New file.
59695         * modules/unictype/category-name: New file.
59696         * modules/unictype/combining-class: New file.
59697         * modules/unictype/category-all: New file.
59698         * modules/unictype/bidicategory-all: New file.
59699         * modules/unictype/bidicategory-byname: New file.
59700         * modules/unictype/bidicategory-name: New file.
59701         * modules/unictype/bidicategory-of: New file.
59702         * modules/unictype/bidicategory-test: New file.
59703         * modules/unictype/decimal-digit: New file.
59704         * modules/unictype/digit: New file.
59705         * modules/unictype/numeric: New file.
59706         * modules/unictype/mirror: New file.
59707         * modules/unictype/property-white-space: New file.
59708         * modules/unictype/property-alphabetic: New file.
59709         * modules/unictype/property-other-alphabetic: New file.
59710         * modules/unictype/property-not-a-character: New file.
59711         * modules/unictype/property-default-ignorable-code-point: New file.
59712         * modules/unictype/property-other-default-ignorable-code-point: New
59713         file.
59714         * modules/unictype/property-deprecated: New file.
59715         * modules/unictype/property-logical-order-exception: New file.
59716         * modules/unictype/property-variation-selector: New file.
59717         * modules/unictype/property-private-use: New file.
59718         * modules/unictype/property-unassigned-code-value: New file.
59719         * modules/unictype/property-uppercase: New file.
59720         * modules/unictype/property-other-uppercase: New file.
59721         * modules/unictype/property-lowercase: New file.
59722         * modules/unictype/property-other-lowercase: New file.
59723         * modules/unictype/property-titlecase: New file.
59724         * modules/unictype/property-soft-dotted: New file.
59725         * modules/unictype/property-id-start: New file.
59726         * modules/unictype/property-other-id-start: New file.
59727         * modules/unictype/property-id-continue: New file.
59728         * modules/unictype/property-other-id-continue: New file.
59729         * modules/unictype/property-xid-start: New file.
59730         * modules/unictype/property-xid-continue: New file.
59731         * modules/unictype/property-pattern-white-space: New file.
59732         * modules/unictype/property-pattern-syntax: New file.
59733         * modules/unictype/property-join-control: New file.
59734         * modules/unictype/property-grapheme-base: New file.
59735         * modules/unictype/property-grapheme-extend: New file.
59736         * modules/unictype/property-other-grapheme-extend: New file.
59737         * modules/unictype/property-grapheme-link: New file.
59738         * modules/unictype/property-bidi-control: New file.
59739         * modules/unictype/property-bidi-left-to-right: New file.
59740         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59741         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59742         * modules/unictype/property-bidi-european-digit: New file.
59743         * modules/unictype/property-bidi-eur-num-separator: New file.
59744         * modules/unictype/property-bidi-eur-num-terminator: New file.
59745         * modules/unictype/property-bidi-arabic-digit: New file.
59746         * modules/unictype/property-bidi-common-separator: New file.
59747         * modules/unictype/property-bidi-block-separator: New file.
59748         * modules/unictype/property-bidi-segment-separator: New file.
59749         * modules/unictype/property-bidi-whitespace: New file.
59750         * modules/unictype/property-bidi-non-spacing-mark: New file.
59751         * modules/unictype/property-bidi-boundary-neutral: New file.
59752         * modules/unictype/property-bidi-pdf: New file.
59753         * modules/unictype/property-bidi-embedding-or-override: New file.
59754         * modules/unictype/property-bidi-other-neutral: New file.
59755         * modules/unictype/property-hex-digit: New file.
59756         * modules/unictype/property-ascii-hex-digit: New file.
59757         * modules/unictype/property-ideographic: New file.
59758         * modules/unictype/property-unified-ideograph: New file.
59759         * modules/unictype/property-radical: New file.
59760         * modules/unictype/property-ids-binary-operator: New file.
59761         * modules/unictype/property-ids-trinary-operator: New file.
59762         * modules/unictype/property-zero-width: New file.
59763         * modules/unictype/property-space: New file.
59764         * modules/unictype/property-non-break: New file.
59765         * modules/unictype/property-iso-control: New file.
59766         * modules/unictype/property-format-control: New file.
59767         * modules/unictype/property-dash: New file.
59768         * modules/unictype/property-hyphen: New file.
59769         * modules/unictype/property-punctuation: New file.
59770         * modules/unictype/property-line-separator: New file.
59771         * modules/unictype/property-paragraph-separator: New file.
59772         * modules/unictype/property-quotation-mark: New file.
59773         * modules/unictype/property-sentence-terminal: New file.
59774         * modules/unictype/property-terminal-punctuation: New file.
59775         * modules/unictype/property-currency-symbol: New file.
59776         * modules/unictype/property-math: New file.
59777         * modules/unictype/property-other-math: New file.
59778         * modules/unictype/property-paired-punctuation: New file.
59779         * modules/unictype/property-left-of-pair: New file.
59780         * modules/unictype/property-combining: New file.
59781         * modules/unictype/property-composite: New file.
59782         * modules/unictype/property-decimal-digit: New file.
59783         * modules/unictype/property-numeric: New file.
59784         * modules/unictype/property-diacritic: New file.
59785         * modules/unictype/property-extender: New file.
59786         * modules/unictype/property-ignorable-control: New file.
59787         * modules/unictype/property-test: New file.
59788         * modules/unictype/property-byname: New file.
59789         * modules/unictype/property-all: New file.
59790         * modules/unictype/scripts: New file.
59791         * modules/unictype/scripts-all: New file.
59792         * modules/unictype/block-of: New file.
59793         * modules/unictype/block-test: New file.
59794         * modules/unictype/block-list: New file.
59795         * modules/unictype/block-all: New file.
59796         * modules/unictype/syntax-c-whitespace: New file.
59797         * modules/unictype/syntax-java-whitespace: New file.
59798         * modules/unictype/syntax-c-ident: New file.
59799         * modules/unictype/syntax-java-ident: New file.
59800         * modules/unictype/ctype-alnum: New file.
59801         * modules/unictype/ctype-alpha: New file.
59802         * modules/unictype/ctype-cntrl: New file.
59803         * modules/unictype/ctype-digit: New file.
59804         * modules/unictype/ctype-graph: New file.
59805         * modules/unictype/ctype-lower: New file.
59806         * modules/unictype/ctype-print: New file.
59807         * modules/unictype/ctype-punct: New file.
59808         * modules/unictype/ctype-space: New file.
59809         * modules/unictype/ctype-upper: New file.
59810         * modules/unictype/ctype-xdigit: New file.
59811         * modules/unictype/ctype-blank: New file.
59812         * lib/unictype/bidi_byname.c: New file.
59813         * lib/unictype/bidi_name.c: New file.
59814         * lib/unictype/bidi_of.c: New file.
59815         * lib/unictype/bidi_test.c: New file.
59816         * lib/unictype/bitmap.h: New file.
59817         * lib/unictype/block_test.c: New file.
59818         * lib/unictype/blocks.c: New file.
59819         * lib/unictype/categ_C.c: New file.
59820         * lib/unictype/categ_Cc.c: New file.
59821         * lib/unictype/categ_Cf.c: New file.
59822         * lib/unictype/categ_Cn.c: New file.
59823         * lib/unictype/categ_Co.c: New file.
59824         * lib/unictype/categ_Cs.c: New file.
59825         * lib/unictype/categ_L.c: New file.
59826         * lib/unictype/categ_Ll.c: New file.
59827         * lib/unictype/categ_Lm.c: New file.
59828         * lib/unictype/categ_Lo.c: New file.
59829         * lib/unictype/categ_Lt.c: New file.
59830         * lib/unictype/categ_Lu.c: New file.
59831         * lib/unictype/categ_M.c: New file.
59832         * lib/unictype/categ_Mc.c: New file.
59833         * lib/unictype/categ_Me.c: New file.
59834         * lib/unictype/categ_Mn.c: New file.
59835         * lib/unictype/categ_N.c: New file.
59836         * lib/unictype/categ_Nd.c: New file.
59837         * lib/unictype/categ_Nl.c: New file.
59838         * lib/unictype/categ_No.c: New file.
59839         * lib/unictype/categ_P.c: New file.
59840         * lib/unictype/categ_Pc.c: New file.
59841         * lib/unictype/categ_Pd.c: New file.
59842         * lib/unictype/categ_Pe.c: New file.
59843         * lib/unictype/categ_Pf.c: New file.
59844         * lib/unictype/categ_Pi.c: New file.
59845         * lib/unictype/categ_Po.c: New file.
59846         * lib/unictype/categ_Ps.c: New file.
59847         * lib/unictype/categ_S.c: New file.
59848         * lib/unictype/categ_Sc.c: New file.
59849         * lib/unictype/categ_Sk.c: New file.
59850         * lib/unictype/categ_Sm.c: New file.
59851         * lib/unictype/categ_So.c: New file.
59852         * lib/unictype/categ_Z.c: New file.
59853         * lib/unictype/categ_Zl.c: New file.
59854         * lib/unictype/categ_Zp.c: New file.
59855         * lib/unictype/categ_Zs.c: New file.
59856         * lib/unictype/categ_and.c: New file.
59857         * lib/unictype/categ_and_not.c: New file.
59858         * lib/unictype/categ_byname.c: New file.
59859         * lib/unictype/categ_name.c: New file.
59860         * lib/unictype/categ_none.c: New file.
59861         * lib/unictype/categ_of.c: New file.
59862         * lib/unictype/categ_or.c: New file.
59863         * lib/unictype/categ_test.c: New file.
59864         * lib/unictype/combining.c: New file.
59865         * lib/unictype/ctype_alnum.c: New file.
59866         * lib/unictype/ctype_alpha.c: New file.
59867         * lib/unictype/ctype_blank.c: New file.
59868         * lib/unictype/ctype_cntrl.c: New file.
59869         * lib/unictype/ctype_digit.c: New file.
59870         * lib/unictype/ctype_graph.c: New file.
59871         * lib/unictype/ctype_lower.c: New file.
59872         * lib/unictype/ctype_print.c: New file.
59873         * lib/unictype/ctype_punct.c: New file.
59874         * lib/unictype/ctype_space.c: New file.
59875         * lib/unictype/ctype_upper.c: New file.
59876         * lib/unictype/ctype_xdigit.c: New file.
59877         * lib/unictype/decdigit.c: New file.
59878         * lib/unictype/digit.c: New file.
59879         * lib/unictype/identsyntaxmap.h: New file.
59880         * lib/unictype/mirror.c: New file.
59881         * lib/unictype/numeric.c: New file.
59882         * lib/unictype/pr_alphabetic.c: New file.
59883         * lib/unictype/pr_ascii_hex_digit.c: New file.
59884         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59885         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59886         * lib/unictype/pr_bidi_block_separator.c: New file.
59887         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59888         * lib/unictype/pr_bidi_common_separator.c: New file.
59889         * lib/unictype/pr_bidi_control.c: New file.
59890         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59891         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59892         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59893         * lib/unictype/pr_bidi_european_digit.c: New file.
59894         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59895         * lib/unictype/pr_bidi_left_to_right.c: New file.
59896         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59897         * lib/unictype/pr_bidi_other_neutral.c: New file.
59898         * lib/unictype/pr_bidi_pdf.c: New file.
59899         * lib/unictype/pr_bidi_segment_separator.c: New file.
59900         * lib/unictype/pr_bidi_whitespace.c: New file.
59901         * lib/unictype/pr_byname.c: New file.
59902         * lib/unictype/pr_byname.gperf: New file.
59903         * lib/unictype/pr_combining.c: New file.
59904         * lib/unictype/pr_composite.c: New file.
59905         * lib/unictype/pr_currency_symbol.c: New file.
59906         * lib/unictype/pr_dash.c: New file.
59907         * lib/unictype/pr_decimal_digit.c: New file.
59908         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59909         * lib/unictype/pr_deprecated.c: New file.
59910         * lib/unictype/pr_diacritic.c: New file.
59911         * lib/unictype/pr_extender.c: New file.
59912         * lib/unictype/pr_format_control.c: New file.
59913         * lib/unictype/pr_grapheme_base.c: New file.
59914         * lib/unictype/pr_grapheme_extend.c: New file.
59915         * lib/unictype/pr_grapheme_link.c: New file.
59916         * lib/unictype/pr_hex_digit.c: New file.
59917         * lib/unictype/pr_hyphen.c: New file.
59918         * lib/unictype/pr_id_continue.c: New file.
59919         * lib/unictype/pr_id_start.c: New file.
59920         * lib/unictype/pr_ideographic.c: New file.
59921         * lib/unictype/pr_ids_binary_operator.c: New file.
59922         * lib/unictype/pr_ids_trinary_operator.c: New file.
59923         * lib/unictype/pr_ignorable_control.c: New file.
59924         * lib/unictype/pr_iso_control.c: New file.
59925         * lib/unictype/pr_join_control.c: New file.
59926         * lib/unictype/pr_left_of_pair.c: New file.
59927         * lib/unictype/pr_line_separator.c: New file.
59928         * lib/unictype/pr_logical_order_exception.c: New file.
59929         * lib/unictype/pr_lowercase.c: New file.
59930         * lib/unictype/pr_math.c: New file.
59931         * lib/unictype/pr_non_break.c: New file.
59932         * lib/unictype/pr_not_a_character.c: New file.
59933         * lib/unictype/pr_numeric.c: New file.
59934         * lib/unictype/pr_other_alphabetic.c: New file.
59935         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59936         * lib/unictype/pr_other_grapheme_extend.c: New file.
59937         * lib/unictype/pr_other_id_continue.c: New file.
59938         * lib/unictype/pr_other_id_start.c: New file.
59939         * lib/unictype/pr_other_lowercase.c: New file.
59940         * lib/unictype/pr_other_math.c: New file.
59941         * lib/unictype/pr_other_uppercase.c: New file.
59942         * lib/unictype/pr_paired_punctuation.c: New file.
59943         * lib/unictype/pr_paragraph_separator.c: New file.
59944         * lib/unictype/pr_pattern_syntax.c: New file.
59945         * lib/unictype/pr_pattern_white_space.c: New file.
59946         * lib/unictype/pr_private_use.c: New file.
59947         * lib/unictype/pr_punctuation.c: New file.
59948         * lib/unictype/pr_quotation_mark.c: New file.
59949         * lib/unictype/pr_radical.c: New file.
59950         * lib/unictype/pr_sentence_terminal.c: New file.
59951         * lib/unictype/pr_soft_dotted.c: New file.
59952         * lib/unictype/pr_space.c: New file.
59953         * lib/unictype/pr_terminal_punctuation.c: New file.
59954         * lib/unictype/pr_test.c: New file.
59955         * lib/unictype/pr_titlecase.c: New file.
59956         * lib/unictype/pr_unassigned_code_value.c: New file.
59957         * lib/unictype/pr_unified_ideograph.c: New file.
59958         * lib/unictype/pr_uppercase.c: New file.
59959         * lib/unictype/pr_variation_selector.c: New file.
59960         * lib/unictype/pr_white_space.c: New file.
59961         * lib/unictype/pr_xid_continue.c: New file.
59962         * lib/unictype/pr_xid_start.c: New file.
59963         * lib/unictype/pr_zero_width.c: New file.
59964         * lib/unictype/scripts.c: New file.
59965         * lib/unictype/sy_c_ident.c: New file.
59966         * lib/unictype/sy_c_whitespace.c: New file.
59967         * lib/unictype/sy_java_ident.c: New file.
59968         * lib/unictype/sy_java_whitespace.c: New file.
59969
59970         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59971         Unicode 5.0.0.
59972         * lib/unictype/blocks.h: Likewise.
59973         * lib/unictype/categ_C.h: Likewise.
59974         * lib/unictype/categ_Cc.h: Likewise.
59975         * lib/unictype/categ_Cf.h: Likewise.
59976         * lib/unictype/categ_Cn.h: Likewise.
59977         * lib/unictype/categ_Co.h: Likewise.
59978         * lib/unictype/categ_Cs.h: Likewise.
59979         * lib/unictype/categ_L.h: Likewise.
59980         * lib/unictype/categ_Ll.h: Likewise.
59981         * lib/unictype/categ_Lm.h: Likewise.
59982         * lib/unictype/categ_Lo.h: Likewise.
59983         * lib/unictype/categ_Lt.h: Likewise.
59984         * lib/unictype/categ_Lu.h: Likewise.
59985         * lib/unictype/categ_M.h: Likewise.
59986         * lib/unictype/categ_Mc.h: Likewise.
59987         * lib/unictype/categ_Me.h: Likewise.
59988         * lib/unictype/categ_Mn.h: Likewise.
59989         * lib/unictype/categ_N.h: Likewise.
59990         * lib/unictype/categ_Nd.h: Likewise.
59991         * lib/unictype/categ_Nl.h: Likewise.
59992         * lib/unictype/categ_No.h: Likewise.
59993         * lib/unictype/categ_P.h: Likewise.
59994         * lib/unictype/categ_Pc.h: Likewise.
59995         * lib/unictype/categ_Pd.h: Likewise.
59996         * lib/unictype/categ_Pe.h: Likewise.
59997         * lib/unictype/categ_Pf.h: Likewise.
59998         * lib/unictype/categ_Pi.h: Likewise.
59999         * lib/unictype/categ_Po.h: Likewise.
60000         * lib/unictype/categ_Ps.h: Likewise.
60001         * lib/unictype/categ_S.h: Likewise.
60002         * lib/unictype/categ_Sc.h: Likewise.
60003         * lib/unictype/categ_Sk.h: Likewise.
60004         * lib/unictype/categ_Sm.h: Likewise.
60005         * lib/unictype/categ_So.h: Likewise.
60006         * lib/unictype/categ_Z.h: Likewise.
60007         * lib/unictype/categ_Zl.h: Likewise.
60008         * lib/unictype/categ_Zp.h: Likewise.
60009         * lib/unictype/categ_Zs.h: Likewise.
60010         * lib/unictype/categ_of.h: Likewise.
60011         * lib/unictype/combining.h: Likewise.
60012         * lib/unictype/ctype_alnum.h: Likewise.
60013         * lib/unictype/ctype_alpha.h: Likewise.
60014         * lib/unictype/ctype_blank.h: Likewise.
60015         * lib/unictype/ctype_cntrl.h: Likewise.
60016         * lib/unictype/ctype_digit.h: Likewise.
60017         * lib/unictype/ctype_graph.h: Likewise.
60018         * lib/unictype/ctype_lower.h: Likewise.
60019         * lib/unictype/ctype_print.h: Likewise.
60020         * lib/unictype/ctype_punct.h: Likewise.
60021         * lib/unictype/ctype_space.h: Likewise.
60022         * lib/unictype/ctype_upper.h: Likewise.
60023         * lib/unictype/ctype_xdigit.h: Likewise.
60024         * lib/unictype/decdigit.h: Likewise.
60025         * lib/unictype/digit.h: Likewise.
60026         * lib/unictype/mirror.h: Likewise.
60027         * lib/unictype/numeric.h: Likewise.
60028         * lib/unictype/pr_alphabetic.h: Likewise.
60029         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60030         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60031         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60032         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60033         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60034         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60035         * lib/unictype/pr_bidi_control.h: Likewise.
60036         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60037         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60038         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60039         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60040         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60041         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60042         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60043         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60044         * lib/unictype/pr_bidi_pdf.h: Likewise.
60045         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60046         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60047         * lib/unictype/pr_combining.h: Likewise.
60048         * lib/unictype/pr_composite.h: Likewise.
60049         * lib/unictype/pr_currency_symbol.h: Likewise.
60050         * lib/unictype/pr_dash.h: Likewise.
60051         * lib/unictype/pr_decimal_digit.h: Likewise.
60052         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60053         * lib/unictype/pr_deprecated.h: Likewise.
60054         * lib/unictype/pr_diacritic.h: Likewise.
60055         * lib/unictype/pr_extender.h: Likewise.
60056         * lib/unictype/pr_format_control.h: Likewise.
60057         * lib/unictype/pr_grapheme_base.h: Likewise.
60058         * lib/unictype/pr_grapheme_extend.h: Likewise.
60059         * lib/unictype/pr_grapheme_link.h: Likewise.
60060         * lib/unictype/pr_hex_digit.h: Likewise.
60061         * lib/unictype/pr_hyphen.h: Likewise.
60062         * lib/unictype/pr_id_continue.h: Likewise.
60063         * lib/unictype/pr_id_start.h: Likewise.
60064         * lib/unictype/pr_ideographic.h: Likewise.
60065         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60066         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60067         * lib/unictype/pr_ignorable_control.h: Likewise.
60068         * lib/unictype/pr_iso_control.h: Likewise.
60069         * lib/unictype/pr_join_control.h: Likewise.
60070         * lib/unictype/pr_left_of_pair.h: Likewise.
60071         * lib/unictype/pr_line_separator.h: Likewise.
60072         * lib/unictype/pr_logical_order_exception.h: Likewise.
60073         * lib/unictype/pr_lowercase.h: Likewise.
60074         * lib/unictype/pr_math.h: Likewise.
60075         * lib/unictype/pr_non_break.h: Likewise.
60076         * lib/unictype/pr_not_a_character.h: Likewise.
60077         * lib/unictype/pr_numeric.h: Likewise.
60078         * lib/unictype/pr_other_alphabetic.h: Likewise.
60079         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60080         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60081         * lib/unictype/pr_other_id_continue.h: Likewise.
60082         * lib/unictype/pr_other_id_start.h: Likewise.
60083         * lib/unictype/pr_other_lowercase.h: Likewise.
60084         * lib/unictype/pr_other_math.h: Likewise.
60085         * lib/unictype/pr_other_uppercase.h: Likewise.
60086         * lib/unictype/pr_paired_punctuation.h: Likewise.
60087         * lib/unictype/pr_paragraph_separator.h: Likewise.
60088         * lib/unictype/pr_pattern_syntax.h: Likewise.
60089         * lib/unictype/pr_pattern_white_space.h: Likewise.
60090         * lib/unictype/pr_private_use.h: Likewise.
60091         * lib/unictype/pr_punctuation.h: Likewise.
60092         * lib/unictype/pr_quotation_mark.h: Likewise.
60093         * lib/unictype/pr_radical.h: Likewise.
60094         * lib/unictype/pr_sentence_terminal.h: Likewise.
60095         * lib/unictype/pr_soft_dotted.h: Likewise.
60096         * lib/unictype/pr_space.h: Likewise.
60097         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60098         * lib/unictype/pr_titlecase.h: Likewise.
60099         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60100         * lib/unictype/pr_unified_ideograph.h: Likewise.
60101         * lib/unictype/pr_uppercase.h: Likewise.
60102         * lib/unictype/pr_variation_selector.h: Likewise.
60103         * lib/unictype/pr_white_space.h: Likewise.
60104         * lib/unictype/pr_xid_continue.h: Likewise.
60105         * lib/unictype/pr_xid_start.h: Likewise.
60106         * lib/unictype/pr_zero_width.h: Likewise.
60107         * lib/unictype/scripts.h: Likewise.
60108         * lib/unictype/scripts_byname.gperf: Likewise.
60109         * lib/unictype/sy_c_ident.h: Likewise.
60110         * lib/unictype/sy_c_whitespace.h: Likewise.
60111         * lib/unictype/sy_java_ident.h: Likewise.
60112         * lib/unictype/sy_java_whitespace.h: Likewise.
60113
60114         * lib/unictype/Makefile: New file.
60115         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60116         glibc.
60117         * lib/unictype/3level.h: New file, copied from glibc.
60118         * lib/unictype/3levelbit.h: New file.
60119
60120 2007-11-11  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/gperf: New file.
60123         * modules/iconv_open (Depends-on): Add it.
60124         (Makefile.am): Remove the GPERF definition.
60125
60126 2007-11-11  Bruno Haible  <bruno@clisp.org>
60127
60128         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60129         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60130
60131 2007-11-11  Bruno Haible  <bruno@clisp.org>
60132
60133         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60134         (usage): Remove function.
60135
60136 2007-11-11  Bruno Haible  <bruno@clisp.org>
60137
60138         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60139         gl_FUNC_CEILF_LIBS.
60140         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60141         gl_FUNC_CEIL_LIBS.
60142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60143         gl_FUNC_CEILL_LIBS.
60144         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60145         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60146         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60147
60148 2007-11-11  Bruno Haible  <bruno@clisp.org>
60149
60150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60151         roundf were declared but do not exist on functions.
60152         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60153         roundl were declared but do not exist on functions.
60154         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60155         HAVE_FLOORL_AND_CEILL, respectively.
60156         Needed for Sun C on Solaris 10.
60157
60158 2007-11-11  Bruno Haible  <bruno@clisp.org>
60159
60160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60161         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60162         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60163         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60164         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60165         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60166         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60167         HAVE_DECL_ROUNDF.
60168         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60169         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60171         of HAVE_DECL_ROUND*.
60172         * modules/math (Makefile.am): Update.
60173
60174 2007-11-10  Bruno Haible  <bruno@clisp.org>
60175
60176         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60177         ptrdiff_t as m4/intl.m4.
60178
60179 2007-11-10  Jim Meyering  <meyering@redhat.com>
60180
60181         Avoid link failure for the argmatch test.
60182         * tests/test-argmatch.c (usage): Define function to avoid a link
60183         failure: argmatch_die requires a usage function.
60184
60185 2007-11-09  Bruno Haible  <bruno@clisp.org>
60186
60187         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60188         * doc/functions/vsnprintf.texi: Likewise.
60189         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60190         with a size argument < 2.
60191
60192 2007-11-09  Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60195         buffer. Fixes an inefficiency introduced on 2007-11-03.
60196
60197 2007-11-09  Bruno Haible  <bruno@clisp.org>
60198
60199         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60200         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60201
60202 2007-11-08  Jim Meyering  <meyering@redhat.com>
60203
60204         Change cache variable name prefix "jm_" to "gl_" everywhere.
60205         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60206         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60207         * m4/uptime.m4: s/gl_/jm_/
60208
60209 2007-11-07  Bruno Haible  <bruno@clisp.org>
60210
60211         Update to GNU gettext 0.17.
60212         * m4/intl.m4: Update to GNU gettext 0.17.
60213         * m4/po.m4: Likewise.
60214         * modules/gettext (Files): Remove m4/ulonglong.m4.
60215         (configure.ac): Require gettext infrastructure from version 0.17.
60216
60217 2007-11-06  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60220         symbolic values are not defined in a public header.
60221         * lib/freadable.c (freadable) [QNX]: Likewise.
60222         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60223         * lib/freading.c (freading) [QNX]: Likewise.
60224         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60225         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60226         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60227         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60228         Reported by Alain Magloire.
60229
60230         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60231
60232 2007-11-05  Bruno Haible  <bruno@clisp.org>
60233
60234         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60235         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60236         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60237         Reported by Eric Blake.
60238
60239 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60240             Bruno Haible  <bruno@clisp.org>
60241
60242         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60243         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60244         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60245         (malloc): Undefine also before including <stdlib.h>.
60246         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60247         Needed on OSF/1 4.0.
60248
60249 2007-11-05  Jim Meyering  <meyering@redhat.com>
60250
60251         git-version-gen: sync from coreutils.
60252         * build-aux/git-version-gen: Add comments.
60253         Change the first '-' to '.' in the snapshot version string,
60254         e.g., 6.9-377-08144 -> 6.9.377-08144
60255         Remove first parameter.
60256         Don't declare a version "-dirty" merely because a time
60257         stamp has changed.
60258
60259 2007-11-04  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/lock.h: Protect all macro definitions containing an 'if'
60262         statement through a "do { ... } while (0)".
60263         * lib/tls.h: Likewise.
60264
60265 2007-11-04  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60268
60269 2007-11-04  Bruno Haible  <bruno@clisp.org>
60270
60271         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60272         * modules/fprintf-posix (Depends-on): Add nocrash.
60273         * modules/snprintf-posix (Depends-on): Likewise.
60274         * modules/sprintf-posix (Depends-on): Likewise.
60275         * modules/vasnprintf-posix (Depends-on): Likewise.
60276         * modules/vasprintf-posix (Depends-on): Likewise.
60277         * modules/vfprintf-posix (Depends-on): Likewise.
60278         * modules/vsnprintf-posix (Depends-on): Likewise.
60279         * modules/vsprintf-posix (Depends-on): Likewise.
60280         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60281         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60282         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60283         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60284         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60285         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60286         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60287
60288 2007-11-04  Bruno Haible  <bruno@clisp.org>
60289
60290         * modules/nocrash: New file.
60291         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60292         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60293
60294 2007-11-04  Bruno Haible  <bruno@clisp.org>
60295
60296         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60297         precision handling.
60298         * tests/test-vasprintf-posix.c (test_function): Likewise.
60299         * tests/test-snprintf-posix.h (test_function): Likewise.
60300         * tests/test-sprintf-posix.h (test_function): Likewise.
60301
60302         Fix *printf behaviour for large precisions on mingw and BeOS.
60303         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60304         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60306         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60308         gl_PRINTF_PRECISION and test its result. Invoke
60309         gl_PREREQ_VASNPRINTF_PRECISION.
60310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60317         * doc/functions/fprintf.texi: Update.
60318         * doc/functions/printf.texi: Update.
60319         * doc/functions/snprintf.texi: Update.
60320         * doc/functions/sprintf.texi: Update.
60321         * doc/functions/vfprintf.texi: Update.
60322         * doc/functions/vprintf.texi: Update.
60323         * doc/functions/vsnprintf.texi: Update.
60324         * doc/functions/vsprintf.texi: Update.
60325
60326 2007-11-04  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60329
60330 2007-11-04  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60333         Reported by Sylvain Beucler <beuc@gnu.org>.
60334
60335 2007-11-03  Bruno Haible  <bruno@clisp.org>
60336
60337         * tests/test-fprintf-posix2.sh: New file.
60338         * tests/test-fprintf-posix2.c: New file.
60339         * modules/fprintf-posix-tests (Files): Add them.
60340         (TESTS): Add test-fprintf-posix2.sh.
60341         (configure.ac): Check for getrlimit and setrlimit.
60342         (check_PROGRAMS): Add test-fprintf-posix2.
60343
60344         * tests/test-printf-posix2.sh: New file.
60345         * tests/test-printf-posix2.c: New file.
60346         * modules/printf-posix-tests (Files): Add them.
60347         (TESTS): Add test-printf-posix2.sh.
60348         (configure.ac): Check for getrlimit and setrlimit.
60349         (check_PROGRAMS): Add test-printf-posix2.
60350
60351         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60352         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60353         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60354         (decode_double): New function, copied from decode_long_double.
60355         (scale10_round_decimal_decoded): New function, extracted from
60356         scale10_round_decimal_long_double.
60357         (scale10_round_decimal_long_double): Use it.
60358         (scale10_round_decimal_double): New function.
60359         (floorlog10): New function.
60360         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60362         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60363         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60364         gl_PRINTF_ENOMEM and test its result. Invoke
60365         gl_PREREQ_VASNPRINTF_ENOMEM.
60366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60373         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60374         * modules/snprintf-posix (Depends-on): Likewise.
60375         * modules/sprintf-posix (Depends-on): Likewise.
60376         * modules/vasnprintf-posix (Depends-on): Likewise.
60377         * modules/vasprintf-posix (Depends-on): Likewise.
60378         * modules/vfprintf-posix (Depends-on): Likewise.
60379         * modules/vsnprintf-posix (Depends-on): Likewise.
60380         * modules/vsprintf-posix (Depends-on): Likewise.
60381         * doc/functions/fprintf.texi: Update.
60382         * doc/functions/printf.texi: Update.
60383         * doc/functions/snprintf.texi: Update.
60384         * doc/functions/sprintf.texi: Update.
60385         * doc/functions/vfprintf.texi: Update.
60386         * doc/functions/vprintf.texi: Update.
60387         * doc/functions/vsnprintf.texi: Update.
60388         * doc/functions/vsprintf.texi: Update.
60389
60390 2007-11-03  Bruno Haible  <bruno@clisp.org>
60391
60392         * modules/frexp-nolibm-tests: New file.
60393
60394         * modules/frexp-nolibm: New file.
60395         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60396
60397 2007-11-03  Bruno Haible  <bruno@clisp.org>
60398
60399         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60400         value is C99 compliant.
60401         Needed for OSF/1 5.1.
60402
60403 2007-11-03  Bruno Haible  <bruno@clisp.org>
60404
60405         Fix out-of-memory handling of vasnprintf.
60406         * lib/printf-parse.c: Include <errno.h>.
60407         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60408         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60409         is already set.
60410
60411 2007-11-02  Eric Blake  <ebb9@byu.net>
60412
60413         Fix tests on cygwin.
60414         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60415
60416 2007-11-01  Bruno Haible  <bruno@clisp.org>
60417
60418         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60419         warning.
60420         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60421         needed for POSIX compatibility.
60422
60423 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60424
60425         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60426         for compatibility with GNU.
60427
60428 2007-11-01  Bruno Haible  <bruno@clisp.org>
60429
60430         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60431         (putenv): Renamed from rpl_putenv. Change argument type from
60432         'const char *' to 'char *'.
60433         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60434         of defining putenv in config.h, just set REPLACE_PUTENV.
60435         * modules/putenv (Depends-on): Add stdlib.
60436         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60437         (Include): Use <stdlib.h>.
60438         * lib/stdlib.in.h (putenv): New declaration.
60439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60440         REPLACE_PUTENV.
60441         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60442         REPLACE_PUTENV.
60443         Needed for MacOS X 10.5.0.
60444         Reported by Peter O'Gorman <peter@pogma.com>.
60445
60446 2007-11-01  Jim Meyering  <meyering@redhat.com>
60447
60448         Treat an empty date string exactly like "0".
60449         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60450         if the remaining date string (to be parsed) is empty, use "0".
60451         Reported by Mischa Molhoek and discussed in this thread:
60452         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60453
60454 2007-10-31  Bruno Haible  <bruno@clisp.org>
60455
60456         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60457         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60458         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60459         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60460         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60461         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60462
60463 2007-10-31  Bruno Haible  <bruno@clisp.org>
60464
60465         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60466         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60467         (AC_TYPE_LONG_LONG_INT): Use it.
60468         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60469         it as well.
60470         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60471         to m4/longlong.m4.
60472         * modules/stdint (Files): Remove m4/ulonglong.m4.
60473         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60474         m4/ulonglong.m4.
60475         * modules/strtoumax (Files): Likewise.
60476
60477 2007-10-30  Bruno Haible  <bruno@clisp.org>
60478
60479         * modules/xvasprintf-posix: New file.
60480         Suggested by Eric Blake.
60481
60482 2007-10-30  Bruno Haible  <bruno@clisp.org>
60483
60484         * modules/xprintf-posix-tests: New file.
60485         * tests/test-xprintf-posix.sh: New file.
60486         * tests/test-xprintf-posix.c: New file.
60487         * tests/test-xfprintf-posix.c: New file.
60488
60489         * modules/xprintf-posix: New file.
60490
60491 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60492
60493         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60494         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60495         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60496
60497 2007-10-29  Bruno Haible  <bruno@clisp.org>
60498
60499         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60500         contain the special marker '_cv_'.
60501         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60502         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60503         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60504         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60505         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60506         Reported by Ralf Wildenhues.
60507
60508 2007-10-29  Bruno Haible  <bruno@clisp.org>
60509
60510         * gnulib-tool (func_import): When --lgpl is not specified, set
60511         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60512         GPLv3.
60513         Reported by Simon Josefsson.
60514
60515 2007-10-28  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60518         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60519         HAVE_DECL_ISFINITE.
60520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60521         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60522         HAVE_DECL_ISFINITE.
60523
60524 2007-10-28  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60527         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60528
60529 2007-10-28  Bruno Haible  <bruno@clisp.org>
60530
60531         Fix link errors with Sun C 5.0 on Solaris 10.
60532         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60533         function is declared but not present in the compiler's libm.
60534         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60535         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60536         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60537         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60538         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60539         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60540         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60542         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60543         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60544         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60545         HAVE_DECL_FLOORL.
60546
60547 2007-10-28  Bruno Haible  <bruno@clisp.org>
60548
60549         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60550         gl_FUNC_FLOORL. Cache the result.
60551         (gl_FUNC_FLOORL): Use it.
60552         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60553         gl_FUNC_CEILL. Cache the result.
60554         (gl_FUNC_CEILL): Use it.
60555
60556         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60557         gl_FUNC_FLOOR. Cache the result.
60558         (gl_FUNC_FLOOR): Use it.
60559         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60560         gl_FUNC_CEIL. Cache the result.
60561         (gl_FUNC_CEIL): Use it.
60562
60563         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60564         gl_FUNC_FLOORF. Cache the result.
60565         (gl_FUNC_FLOORF): Use it.
60566         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60567         gl_FUNC_CEILF. Cache the result.
60568         (gl_FUNC_CEILF): Use it.
60569
60570 2007-10-28  Bruno Haible  <bruno@clisp.org>
60571
60572         * gnulib-tool: Allow specifying the LGPL version number through
60573         --lgpl=2 or --lgpl=3.
60574         (func_usage): Document --lgpl with argument.
60575         Handle --lgpl=... arguments.
60576         (func_import): Recognize also gl_LGPL calls with an argument. When
60577         --lgpl=2 is used and the module's license is just LGPL, report an
60578         error. Set sed_transform_lib_file according to the lgpl variable. In
60579         the generated files, use --lgpl or gl_LGPL invocations with argument,
60580         if necessary.
60581         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60582         an LGPv2+ license.
60583         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60584         gl_LGPL macro.
60585
60586 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60587             Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60590         (u16_uctomb_aux): Likewise.
60591         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60592         !HAVE_INLINE.
60593         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60594
60595 2007-10-28  Bruno Haible  <bruno@clisp.org>
60596
60597         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60598         Invoke AM_GETTEXT_OPTION if it exists.
60599         * modules/vasprintf: Likewise.
60600         * modules/verror: Likewise.
60601         * modules/xprintf: Likewise.
60602         * modules/xvasprintf: Likewise.
60603
60604 2007-10-27  Ben Pfaff  <blp@gnu.org>
60605
60606         * lib/math.in.h: Define isfinite macro and prototypes for
60607         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60608         implementations.
60609         * m4/math_h.m4: New substitutions for isfinite module.
60610         * lib/isfinite.c: New file.
60611         * m4/isfinite.m4: New file.
60612         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60613         * modules/isfinite: New file.
60614         * modules/isfinite-tests: New file.
60615         * tests/tests-isfinite.c: New file.
60616         * doc/functions/isfinite.texi: Mention isfinite module.
60617         * MODULES.html.sh: Mention new module.
60618
60619 2007-10-27  Ben Pfaff  <blp@gnu.org>
60620
60621         Ralf Wildenhues reported that Tru64 4.0D declares the round
60622         functions but does not have definitions.
60623         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60624         cannot be found in any library, set the output variable to
60625         "missing" instead of "".
60626         * m4/round.m4: Also use our substitute if we cannot find round in
60627         any library, even if it is declared.
60628         * m4/roundf.m4: Likewise for roundf.
60629         * m4/roundl.m4: Likewise for roundl.
60630         * lib/math.in.h: Undefine roundf, round, roundl before defining
60631         their replacements, to allow for hypothetical systems where these
60632         may be defined as macros but not available in libraries.
60633
60634 2007-10-27  Bruno Haible  <bruno@clisp.org>
60635
60636         * doc/gnulib.texi: Invoke @firstparagraphindent.
60637         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60638         changes in gnulib.
60639         (Source changes): New section.
60640
60641 2007-10-26  Bruno Haible  <bruno@clisp.org>
60642
60643         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60644         borrowed from autoconf.
60645
60646 2007-10-26  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60649         strerror returned the empty string. Needed on HP-UX 11.00.
60650
60651 2007-10-24  Micah Cowan  <micah@cowan.name>
60652
60653         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60654         * build-aux/bootstrap: Remove support for now-unnecessary option,
60655         --cvs-user, and envvars CVS_USER, CVS_RSH.
60656
60657 2007-10-24  Jim Meyering  <meyering@redhat.com>
60658
60659         Avoid diagnostics from sha1sum when there is no cached checksum.
60660         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60661         if the po.s1 file hasn't been created yet.
60662
60663         * build-aux/bootstrap: Sync from coreutils:
60664         2007-10-24  Jim Meyering  <meyering@redhat.com>
60665         Get gnulib from the git repository, not from an obsolete cvs one.
60666         * build-aux/bootstrap: Suggestion from Micah Cowan.
60667         2007-10-04  Jim Meyering  <jim@meyering.net>
60668         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60669         (update_po_files): Work also when there are no .po files in po/.
60670
60671 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         * README: Append ".git" to git and cg examples.
60674         Problem reported by Benoit Sigoure.
60675
60676 2007-10-23  Micah Cowan  <micah@cowan.name>
60677
60678         * users.txt: Add wget.
60679
60680 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60681
60682         Fix linking of some unistdio tests on FreeBSD.
60683         * modules/unistdio/u16-vsnprintf-tests
60684         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60685         * modules/unistdio/u16-vsprintf-tests
60686         (test_u16_vsnprintf1_LDADD): Likewise.
60687         * modules/unistdio/u32-vsnprintf-tests
60688         (test_u32_vsnprintf1_LDADD): Likewise.
60689         * modules/unistdio/u32-vsprintf-tests
60690         (test_u32_vsprintf1_LDADD): Likewise.
60691         * modules/unistdio/u8-vsnprintf-tests
60692         (test_u8_vsnprintf1_LDADD): Likewise.
60693         * modules/unistdio/u8-vsprintf-tests
60694         (test_u8_vsprintf1_LDADD): Likewise.
60695         * modules/unistdio/ulc-vsnprintf-tests
60696         (test_ulc_vsnprintf1_LDADD): Likewise.
60697         * modules/unistdio/ulc-vsprintf-tests
60698         (test_ulc_vsprintf1_LDADD): Likewise.
60699
60700         Fix linking of some uniconv tests on FreeBSD.
60701         * modules/uniconv/u16-conv-from-enc-tests
60702         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60703         * modules/uniconv/u16-conv-to-enc-tests
60704         (test_u16_conv_to_enc_LDADD): Likewise.
60705         * modules/uniconv/u16-strconv-from-enc-tests
60706         (test_u16_strconv_from_enc_LDADD): Likewise.
60707         * modules/uniconv/u16-strconv-to-enc-tests
60708         (test_u16_strconv_to_enc_LDADD): Likewise.
60709         * modules/uniconv/u32-conv-from-enc-tests
60710         (test_u32_conv_from_enc_LDADD): Likewise.
60711         * modules/uniconv/u32-conv-to-enc-tests
60712         (test_u32_conv_to_enc_LDADD): Likewise.
60713         * modules/uniconv/u32-strconv-from-enc-tests
60714         (test_u32_strconv_from_enc_LDADD): Likewise.
60715         * modules/uniconv/u32-strconv-to-enc-tests
60716         (test_u32_strconv_to_enc_LDADD): Likewise.
60717         * modules/uniconv/u8-conv-from-enc-tests
60718         (test_u8_conv_from_enc_LDADD): Likewise.
60719         * modules/uniconv/u8-conv-to-enc-tests
60720         (test_u8_conv_to_enc_LDADD): Likewise.
60721         * modules/uniconv/u8-strconv-from-enc-tests
60722         (test_u8_strconv_from_enc_LDADD): Likewise.
60723         * modules/uniconv/u8-strconv-to-enc-tests
60724         (test_u8_strconv_to_enc_LDADD): Likewise.
60725
60726 2007-10-22  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60729         size.
60730
60731 2007-10-22  Eric Blake  <ebb9@byu.net>
60732
60733         Tweak x*printf documentation.
60734         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60735         variable name and comments.
60736         Suggested by Bruno Haible.
60737
60738 2007-10-22  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/acl.c (copy_acl): Fix file name in comment.
60741
60742 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60743
60744         Fix Tru64 problem with stdbool.h.
60745         * lib/stdbool.in.h (false, true):
60746         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60747         Don't declare as an enum in this situation; it runs afoul of Tru64.
60748         Problem reported by Steven M. Schweda in
60749         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60750
60751 2007-10-22  Eric Blake  <ebb9@byu.net>
60752
60753         Also wrap vf?printf.
60754         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60755         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60756         (xvprintf, xvfprintf): New functions.
60757
60758 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60759
60760         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60761         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60762
60763         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60764         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60765
60766 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60769         by Bruno Haible.
60770
60771 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60772
60773         * lib/getloadavg.c
60774         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60775         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60776
60777         * tests/test-i-ring.c: Work for C89.
60778
60779 2007-10-22  Bruno Haible  <bruno@clisp.org>
60780
60781         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60782         -1u, in preprocessor expression, so that we don't test for the bug
60783         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60785
60786 2007-10-22  Eric Blake  <ebb9@byu.net>
60787
60788         * tests/test-yesno.sh: Silence stderr during test.
60789
60790 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60791
60792         * modules/crypto/gc-camellia: New file.
60793
60794         * m4/gc-camellia.m4: New file.
60795
60796         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60797
60798         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60799
60800 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60801
60802         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60803         --help to stdout.  Reported by sms@antinode.org (Steven
60804         M. Schweda).
60805
60806 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60807
60808         * users.txt: Fix link to libksba.
60809
60810 2007-10-21  Ben Pfaff  <blp@gnu.org>
60811
60812         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60813         round.c roundf implementation that depends on floorf and ceilf to
60814         be tested unconditionally.
60815
60816 2007-10-21  Ben Pfaff  <blp@gnu.org>
60817
60818         * m4/check-libm-func.m4: Removed.
60819         * m4/check-math-lib.m4: New file.
60820         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60821         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60822         definition and lack of AC_LIBOBJ([roundf]).
60823         * m4/roundl.m4: Ditto, and similarly for roundl.
60824         * modules/round: Reference new m4 file.
60825         * modules/roundf: Ditto.
60826         * modules/roundl: Ditto.
60827         * tests/test-round2.c (main): Use ROUND instead of round.
60828         Bug report from Bruno Haible.
60829
60830 2007-10-21  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60833         context.
60834
60835 2007-10-21  Bruno Haible  <bruno@clisp.org>
60836
60837         * tests/test-wcwidth.c (main): Allow negative result for some control
60838         characters.
60839
60840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60841         Needed on OSF/1 5.1.
60842
60843 2007-10-21  Bruno Haible  <bruno@clisp.org>
60844
60845         * tests/test-floorf1.c: Include isnanf.h.
60846         (main): Use isnanf() instead of isnan().
60847         * tests/test-ceilf1.c: Include isnanf.h.
60848         (main): Use isnanf() instead of isnan().
60849         * tests/test-truncf1.c: Include isnanf.h.
60850         (main): Use isnanf() instead of isnan().
60851         * tests/test-roundf1.c: Include isnanf.h.
60852         (main): Use isnanf() instead of isnan().
60853
60854 2007-10-21  Eric Blake  <ebb9@byu.net>
60855
60856         * users.txt: Update URL for m4.
60857
60858 2007-10-21  Bruno Haible  <bruno@clisp.org>
60859
60860         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60861
60862 2007-10-21  Bruno Haible  <bruno@clisp.org>
60863
60864         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60865         Git's management files if the CVS files are not present.
60866
60867 2007-10-20  Bruno Haible  <bruno@clisp.org>
60868
60869         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60870         gcc-3.4.x.
60871
60872 2007-10-20  Ben Pfaff  <blp@gnu.org>
60873
60874         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60875         implementations.
60876         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60877         * lib/round.c: New file.
60878         * lib/roundf.c: New file.
60879         * lib/roundl.c: New file.
60880         * m4/round.m4: New file.
60881         * m4/roundf.m4: New file.
60882         * m4/roundl.m4: New file.
60883         * m4/check-libm-func-m4: New file.
60884         * modules/math: Replace round, roundf, roundl related @VARS@ in
60885         math.in.h.
60886         * modules/round: New file.
60887         * modules/round-tests: New file.
60888         * modules/roundf: New file.
60889         * modules/roundf-tests: New file.
60890         * modules/roundl: New file.
60891         * modules/roundl-tests: New file.
60892         * tests/test-round1.c: New file.
60893         * tests/test-round2.c: New file.
60894         * tests/test-roundf1.c: New file.
60895         * tests/test-roundf2.c: New file.
60896         * tests/test-roundl.c: New file.
60897         * doc/functions/round.texi: Mention round module.
60898         * doc/functions/roundf.texi: Mention roundf module.
60899         * doc/functions/roundl.texi: Mention roundl module.
60900         * MODULES.html.sh: Mention new modules.
60901         Thanks to Bruno Haible for suggestions.
60902
60903 2007-10-20  Jim Meyering  <meyering@redhat.com>
60904
60905         * lib/xprintf.c: Include <config.h> unconditionally.
60906
60907         Change xprintf's license to GPL.
60908         * modules/xprintf (License): s/LGPL/GPL/, since this module
60909         depends on modules (exit and exitfail) which are GPL.
60910         Suggestion from Bruno Haible.
60911
60912         xprintf fixes.
60913         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60914         Use a clearer diagnostic.
60915         Patch from Bruno Haible.
60916
60917 2007-10-20  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60920         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60921         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60922
60923 2007-10-20  Bruno Haible  <bruno@clisp.org>
60924
60925         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60926         precision in the comparison result > x - 1 or similar.
60927         * tests/test-ceilf2.c (correct_result_p): Likewise.
60928         * tests/test-truncf2.c (correct_result_p): Likewise.
60929         * tests/test-trunc2.c (correct_result_p): Likewise.
60930         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60931
60932 2007-10-20  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/ceil: New file.
60935         * m4/ceil.m4: New file.
60936         * doc/functions/ceil.texi: Mention the 'ceil' module.
60937
60938 2007-10-20  Bruno Haible  <bruno@clisp.org>
60939
60940         * modules/floor: New file.
60941         * m4/floor.m4: New file.
60942         * doc/functions/floor.texi: Mention the 'floor' module.
60943
60944 2007-10-20  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60947         of %a.
60948         * modules/floorf-tests (Depends-on): Likewise.
60949         * modules/truncf-tests (Depends-on): Likewise.
60950         * modules/trunc-tests (Depends-on): Likewise.
60951         Reported by Ben Pfaff.
60952
60953 2007-10-19  Jim Meyering  <meyering@redhat.com>
60954
60955         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60956         Don't bother testing specific errno values.  Just test ferror.
60957
60958         New module: xprintf
60959         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60960
60961 2007-10-19  Bruno Haible  <bruno@clisp.org>
60962
60963         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60964         syntax.
60965         * modules/javaexec (Makefile.am): Likewise.
60966         * modules/relocatable-prog (Makefile.am): Likewise.
60967         Suggested by Jim Meyering.
60968
60969 2007-10-18  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60972         Reported by Jim Meyering.
60973
60974 2007-10-18  Eric Blake  <ebb9@byu.net>
60975
60976         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60977
60978 2007-10-18  Bruno Haible  <bruno@clisp.org>
60979
60980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60981         the format string into writable memory. Needed in Fortify conditions.
60982
60983 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60984             Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60987         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60988         * modules/trim (Depends-on): Add mbchar.
60989         (configure.ac): Add gl_FUNC_MBRTOWC.
60990         (Makefile.am): Augment lib_SOURCES.
60991
60992 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         Modify glob.c to use fstatat and dirfd, to simplify it.
60995         Suggested by Eric Blake.
60996         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60997         Don't include <stdbool.h>; not used.
60998         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60999         (link_exists_p): Simplify implementation, since we can now assume
61000         dirfd and fstatat.
61001         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61002
61003 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61004
61005         * gnulib-tool (func_get_dependencies): Fix sed script to
61006         match only tests.
61007
61008 2007-10-17  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61011         allow locale names without encoding suffix.
61012         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61013         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61014
61015 2007-10-16  Bruno Haible  <bruno@clisp.org>
61016
61017         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61018         * lib/getgroups.c (getgroups): Likewise.
61019         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61020
61021 2007-10-16  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61024         * modules/malloc-posix (License): Likewise.
61025         * modules/realloc-posix (License): Likewise.
61026         * modules/calloc-posix (License): Likewise.
61027         * modules/intprops (License): Change from GPL to LGPL, with
61028         Paul Eggert's approval.
61029
61030 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         Merge glibc changes into lib/glob.c.
61033
61034         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61035         2007-10-15 04:59:03 UTC.  Here are the changes:
61036
61037         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61038
61039         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61040
61041         * lib/glob.c: Add some branch prediction throughout.
61042
61043         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61044
61045         [BZ #5103]
61046         * lib/glob.c (glob): Recognize patterns starting \/.
61047
61048         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61049
61050         [BZ #3996]
61051         * lib/glob.c (attribute_hidden): Define if not defined.
61052         (glob): Unescape dirname, filename or username when needed and not
61053         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61054         is NULL.  Handle unescaped [ in pattern without closing ].
61055         Don't pass GLOB_CHECK down to recursive glob for directories.
61056         (__glob_pattern_type): New function.
61057         (__glob_pattern_p): Implement using __glob_pattern_type.
61058         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61059         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61060         Remove unreachable code.
61061
61062         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61063
61064         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61065         explain why there are no leaks.
61066
61067         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61068
61069         [BZ #3253]
61070         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61071         time, rather allocate increasingly bigger arrays of pointers, if
61072         possible with alloca, if too large with malloc.
61073
61074 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61077         Problem reported by H.Merijn Brand in
61078         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61079         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61080         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61081
61082 2007-10-15  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61085         with explicit rpl_ prefix.
61086         * lib/fopen.c (fopen): Likewise.
61087         * lib/freopen.c (freopen): Likewise.
61088         * lib/iconv.c (iconv): Likewise.
61089         * lib/iconv_close.c (iconv_close): Likewise.
61090
61091 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61092
61093         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61094
61095 2007-10-15  Bruno Haible  <bruno@clisp.org>
61096
61097         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61098         <stddef.h> instead of <stdlib.h> since we only need NULL.
61099         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61100
61101 2007-10-15  Bruno Haible  <bruno@clisp.org>
61102
61103         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61104         Replace paragraph talking about LIBOBJS.
61105         Reported by Colin Watson <cjwatson@debian.org>.
61106
61107 2007-10-15  Bruno Haible  <bruno@clisp.org>
61108
61109         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61110         <stdlib.h> before using NULL.
61111
61112 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61113
61114         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61115         Reported by Albert Chin <china@thewrittenword.com>.
61116
61117 2007-10-14  Bruno Haible  <bruno@clisp.org>
61118
61119         * modules/iconv_open-utf-tests: New file.
61120         * tests/test-iconv-utf.c: New file.
61121
61122         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61123         * modules/iconv_open-utf: New file.
61124         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61125         (iconv, iconv_close): New declarations.
61126         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61127         be defined.
61128         (iconv_open): Add special handling of conversion between UTF-8 and
61129         UTF-{16,32}{BE,LE}.
61130         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61131         * lib/iconv_close.c: New file.
61132         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61133         gl_FUNC_ICONV_OPEN.
61134         (gl_FUNC_ICONV_OPEN): Use it.
61135         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61136         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61137         and REPLACE_ICONV_UTF.
61138         * modules/iconv_open (Depends-on): Add c-strcase.
61139         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61140         ICONV_CONST.
61141         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61142
61143 2007-10-13  Albert Chin  <china@thewrittenword.com>
61144             Bruno Haible  <bruno@clisp.org>
61145
61146         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61147         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61148
61149 2007-10-13  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61152         defined, use the ISO C99 inline semantics.
61153         * lib/argp.h (ARGP_EI): Likewise.
61154
61155 2007-10-13  Bruno Haible  <bruno@clisp.org>
61156
61157         Handle 'inline' change in gcc 4.3.0.
61158         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61159         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61160         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61161         argp_fmtstream_point): Disable 'extern' declaration if the function
61162         definition is going to be provided inline.
61163         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61164         semantics, not the ISO C99 inline semantics.
61165         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61166         'extern' declaration if the function definition is going to be provided
61167         inline.
61168         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61169         the GNU C inline semantics, not the ISO C99 inline semantics. With
61170         GCC 4.2, avoid a warning.
61171
61172 2007-10-13  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/freading.h (freading): Enable the use of __freading for
61175         glibc >= 2.7.
61176         * lib/freading.c (freading): Likewise.
61177
61178 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61179
61180         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61181         "warning: C99 inline functions are not supported; using GNU89".
61182
61183 2007-10-12  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61186         of 2.
61187         * tests/test-ceilf2.c: New file.
61188         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61189
61190         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61191         * modules/ceilf-tests: Update.
61192
61193 2007-10-12  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61196         of 2.
61197         * tests/test-floorf2.c: New file.
61198         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61199
61200         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61201         * modules/floorf-tests: Update.
61202
61203 2007-10-12  Bruno Haible  <bruno@clisp.org>
61204
61205         * tests/test-trunc2.c: New file.
61206         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61207
61208         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61209         * modules/trunc-tests: Update.
61210
61211 2007-10-12  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61214         of 2.
61215         * tests/test-truncf2.c: New file.
61216         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61217
61218         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61219         * modules/truncf-tests: Update.
61220
61221 2007-10-11  Eric Blake  <ebb9@byu.net>
61222
61223         Don't claim strerror is broken on Interix.
61224         * doc/functions/strerror.texi (strerror): Known broken systems are
61225         now Solaris 8, and not Interix.
61226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61227         Interix on cross-compile.
61228         Reported by Martin Koeppe in
61229         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61230
61231 2007-10-11  Bruno Haible  <bruno@clisp.org>
61232
61233         * modules/i-ring-tests: New file.
61234         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61235         instead of assert.
61236
61237 2007-10-11  Bruno Haible  <bruno@clisp.org>
61238
61239         * modules/filenamecat-tests: New file.
61240         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61241         * lib/filenamecat.c: Remove test code.
61242
61243 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61246
61247         * lib/strerror.c: Include <string.h> always, to test interface,
61248         and to remove the need for the dummy.
61249         Include intprops.h to compute width instead of doing it ourselves
61250         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61251         (strerror): Define it to return NULL if there's no system strerror.
61252         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61253         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61254         ancient pre-strerror Unix systems well any more.  Saying "unknown
61255         system error" is enough.
61256         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61257         simpler strerror.c implementation.
61258         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61259         Simplify the tests to reflect the simpler strerror implementation.
61260         * modules/strerror (Depends-on): Add intprops.
61261
61262 2007-10-09  Eric Blake  <ebb9@byu.net>
61263
61264         Silence test-fpending.
61265         * modules/fpending-tests (Files): Add wrapper script.
61266         * tests/test-fpending.sh: New file.
61267
61268 2007-10-09  Bruno Haible  <bruno@clisp.org>
61269
61270         * MODULES.html.sh (func_module): Don't create a hyperlink for
61271         function names like 'printf_frexp'.
61272         (Misc): Add crc, memxor.
61273         (Characteristics of floating types): New section.
61274         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61275         isnanf-nolibm, signbit, trunc, truncf, truncl.
61276         (Enhancements for ISO C 99 functions): New subsection Input/output.
61277         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61278         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61279         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61280         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61281         (Enhancements for POSIX:2001 functions): Add chdir-long.
61282         (File system functions): Add areadlink, chdir-safer, read-file.
61283         Remove cycle-check.
61284         (File system as inode set): New section.
61285         (Date and time): Add gethrxtime.
61286         (Multithreading): Add openmp.
61287         (Internationalization functions): Add localename.
61288         (Unicode string functions): Add unistr/u*-mbsnlen.
61289         (Support for maintaining and releasing projects): Add git-version-gen.
61290         (Lone files): Remove directories.
61291
61292 2007-10-08  Ben Pfaff  <blp@gnu.org>
61293
61294         * lib/xmalloca.h: Fix typo in comment.
61295
61296 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61297
61298         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61299         when avoiding problems with integer overflow.  Use a portable test
61300         instead.
61301
61302 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61303
61304         * modules/dummy (License): Change to LGPLv2+.
61305         * modules/float (License): Likewise
61306         * modules/realloc (License): Likewise
61307         * modules/stdlib (License): Likewise
61308
61309 2007-10-07  Bruno Haible  <bruno@clisp.org>
61310
61311         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61312         * floor.c (TWO_MANT_DIG): Likewise.
61313         * ceil.c (TWO_MANT_DIG): Likewise.
61314         Reported by Ben Pfaff.
61315
61316 2007-10-07  Bruno Haible  <bruno@clisp.org>
61317
61318         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61319         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61320         * lib/frexp.c (FUNC): Likewise.
61321         * lib/printf-frexp.h (printf_frexp): Likewise.
61322         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61323         * lib/printf-frexp.c (FUNC): Likewise.
61324         Suggested by Jim Meyering.
61325
61326 2007-10-07  Jim Meyering  <meyering@redhat.com>
61327
61328         Make xnanosleep's integer overflow test more robust.
61329         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61330         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61331
61332 2007-10-07  Bruno Haible  <bruno@clisp.org>
61333
61334         * NEWS: Mention the license change.
61335
61336         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61337         abbreviations in the modules files.
61338
61339         Change copyright notice from GPLv2+ to GPLv3+.
61340         * README: Change copyright notice.
61341         * MODULES.html.sh: Likewise.
61342         * build-aux/bootstrap.conf: Likewise.
61343         * build-aux/config.libpath: Likewise.
61344         * build-aux/csharpcomp.sh.in: Likewise.
61345         * build-aux/csharpexec.sh.in: Likewise.
61346         * build-aux/install-reloc: Likewise.
61347         * build-aux/javacomp.sh.in: Likewise.
61348         * build-aux/javaexec.sh.in: Likewise.
61349         * build-aux/ldd.sh.in: Likewise.
61350         * build-aux/reloc-ldflags: Likewise.
61351         * build-aux/relocatable.sh.in: Likewise.
61352         * build-aux/x-to-1.in: Likewise.
61353         * check-module: Likewise.
61354         * config/srclistvars.sh: Likewise.
61355         * gnulib-tool: Likewise.
61356         * lib/acl-internal.h: Likewise.
61357         * lib/acl.c: Likewise.
61358         * lib/acl.h: Likewise.
61359         * lib/acl_entries.c: Likewise.
61360         * lib/areadlink-with-size.c: Likewise.
61361         * lib/areadlink.c: Likewise.
61362         * lib/areadlink.h: Likewise.
61363         * lib/argmatch.c: Likewise.
61364         * lib/argmatch.h: Likewise.
61365         * lib/argp-ba.c: Likewise.
61366         * lib/argp-eexst.c: Likewise.
61367         * lib/argp-fmtstream.c: Likewise.
61368         * lib/argp-fmtstream.h: Likewise.
61369         * lib/argp-fs-xinl.c: Likewise.
61370         * lib/argp-help.c: Likewise.
61371         * lib/argp-namefrob.h: Likewise.
61372         * lib/argp-parse.c: Likewise.
61373         * lib/argp-pin.c: Likewise.
61374         * lib/argp-pv.c: Likewise.
61375         * lib/argp-pvh.c: Likewise.
61376         * lib/argp-xinl.c: Likewise.
61377         * lib/argp.h: Likewise.
61378         * lib/at-func.c: Likewise.
61379         * lib/atanl.c: Likewise.
61380         * lib/backupfile.c: Likewise.
61381         * lib/backupfile.h: Likewise.
61382         * lib/basename.c: Likewise.
61383         * lib/binary-io.h: Likewise.
61384         * lib/byteswap.in.h: Likewise.
61385         * lib/c-stack.c: Likewise.
61386         * lib/c-stack.h: Likewise.
61387         * lib/c-strcasestr.c: Likewise.
61388         * lib/c-strcasestr.h: Likewise.
61389         * lib/c-strstr.c: Likewise.
61390         * lib/c-strstr.h: Likewise.
61391         * lib/c-strtod.c: Likewise.
61392         * lib/calloc.c: Likewise.
61393         * lib/canon-host.c: Likewise.
61394         * lib/canon-host.h: Likewise.
61395         * lib/canonicalize-lgpl.c: Likewise.
61396         * lib/canonicalize.c: Likewise.
61397         * lib/canonicalize.h: Likewise.
61398         * lib/ceil.c: Likewise.
61399         * lib/ceilf.c: Likewise.
61400         * lib/ceill.c: Likewise.
61401         * lib/chdir-long.c: Likewise.
61402         * lib/chdir-long.h: Likewise.
61403         * lib/chdir-safer.c: Likewise.
61404         * lib/chdir-safer.h: Likewise.
61405         * lib/chown.c: Likewise.
61406         * lib/classpath.c: Likewise.
61407         * lib/classpath.h: Likewise.
61408         * lib/clean-temp.c: Likewise.
61409         * lib/clean-temp.h: Likewise.
61410         * lib/cloexec.c: Likewise.
61411         * lib/close-stream.c: Likewise.
61412         * lib/closein.c: Likewise.
61413         * lib/closein.h: Likewise.
61414         * lib/closeout.c: Likewise.
61415         * lib/closeout.h: Likewise.
61416         * lib/concat-filename.c: Likewise.
61417         * lib/copy-file.c: Likewise.
61418         * lib/copy-file.h: Likewise.
61419         * lib/count-one-bits.h: Likewise.
61420         * lib/crc.c: Likewise.
61421         * lib/crc.h: Likewise.
61422         * lib/creat-safer.c: Likewise.
61423         * lib/csharpcomp.c: Likewise.
61424         * lib/csharpcomp.h: Likewise.
61425         * lib/csharpexec.c: Likewise.
61426         * lib/csharpexec.h: Likewise.
61427         * lib/cycle-check.c: Likewise.
61428         * lib/cycle-check.h: Likewise.
61429         * lib/diacrit.c: Likewise.
61430         * lib/diacrit.h: Likewise.
61431         * lib/diffseq.h: Likewise.
61432         * lib/dirchownmod.c: Likewise.
61433         * lib/dirent.in.h: Likewise.
61434         * lib/dirfd.c: Likewise.
61435         * lib/dirfd.h: Likewise.
61436         * lib/dirname.c: Likewise.
61437         * lib/dirname.h: Likewise.
61438         * lib/dummy.c: Likewise.
61439         * lib/dup-safer.c: Likewise.
61440         * lib/dup2.c: Likewise.
61441         * lib/eealloc.h: Likewise.
61442         * lib/error.c: Likewise.
61443         * lib/error.h: Likewise.
61444         * lib/euidaccess.c: Likewise.
61445         * lib/exclude.c: Likewise.
61446         * lib/exclude.h: Likewise.
61447         * lib/execute.c: Likewise.
61448         * lib/execute.h: Likewise.
61449         * lib/exitfail.c: Likewise.
61450         * lib/exitfail.h: Likewise.
61451         * lib/expl.c: Likewise.
61452         * lib/fatal-signal.c: Likewise.
61453         * lib/fatal-signal.h: Likewise.
61454         * lib/fbufmode.c: Likewise.
61455         * lib/fbufmode.h: Likewise.
61456         * lib/fchdir.c: Likewise.
61457         * lib/fchmodat.c: Likewise.
61458         * lib/fchownat.c: Likewise.
61459         * lib/fcntl--.h: Likewise.
61460         * lib/fcntl-safer.h: Likewise.
61461         * lib/fcntl.in.h: Likewise.
61462         * lib/fd-safer.c: Likewise.
61463         * lib/fflush.c: Likewise.
61464         * lib/file-has-acl.c: Likewise.
61465         * lib/file-set.c: Likewise.
61466         * lib/file-type.c: Likewise.
61467         * lib/file-type.h: Likewise.
61468         * lib/fileblocks.c: Likewise.
61469         * lib/filemode.c: Likewise.
61470         * lib/filemode.h: Likewise.
61471         * lib/filename.h: Likewise.
61472         * lib/filenamecat.c: Likewise.
61473         * lib/filenamecat.h: Likewise.
61474         * lib/findprog.c: Likewise.
61475         * lib/findprog.h: Likewise.
61476         * lib/float.in.h: Likewise.
61477         * lib/floor.c: Likewise.
61478         * lib/floorf.c: Likewise.
61479         * lib/floorl.c: Likewise.
61480         * lib/fopen-safer.c: Likewise.
61481         * lib/fopen.c: Likewise.
61482         * lib/fpending.c: Likewise.
61483         * lib/fpending.h: Likewise.
61484         * lib/fprintf.c: Likewise.
61485         * lib/fprintftime.h: Likewise.
61486         * lib/fpucw.h: Likewise.
61487         * lib/fpurge.c: Likewise.
61488         * lib/fpurge.h: Likewise.
61489         * lib/freadable.c: Likewise.
61490         * lib/freadable.h: Likewise.
61491         * lib/freadahead.c: Likewise.
61492         * lib/freadahead.h: Likewise.
61493         * lib/freading.c: Likewise.
61494         * lib/freading.h: Likewise.
61495         * lib/free.c: Likewise.
61496         * lib/freopen.c: Likewise.
61497         * lib/frexp.c: Likewise.
61498         * lib/frexpl.c: Likewise.
61499         * lib/fseek.c: Likewise.
61500         * lib/fseterr.c: Likewise.
61501         * lib/fseterr.h: Likewise.
61502         * lib/fstatat.c: Likewise.
61503         * lib/fstrcmp.c: Likewise.
61504         * lib/fstrcmp.h: Likewise.
61505         * lib/fsusage.c: Likewise.
61506         * lib/fsusage.h: Likewise.
61507         * lib/ftell.c: Likewise.
61508         * lib/ftello.c: Likewise.
61509         * lib/fts-cycle.c: Likewise.
61510         * lib/fts.c: Likewise.
61511         * lib/fts_.h: Likewise.
61512         * lib/full-read.c: Likewise.
61513         * lib/full-read.h: Likewise.
61514         * lib/full-write.c: Likewise.
61515         * lib/full-write.h: Likewise.
61516         * lib/fwritable.c: Likewise.
61517         * lib/fwritable.h: Likewise.
61518         * lib/fwriteerror.c: Likewise.
61519         * lib/fwriteerror.h: Likewise.
61520         * lib/fwriting.c: Likewise.
61521         * lib/fwriting.h: Likewise.
61522         * lib/gcd.c: Likewise.
61523         * lib/gcd.h: Likewise.
61524         * lib/getcwd.c: Likewise.
61525         * lib/getdate.h: Likewise.
61526         * lib/getdate.y: Likewise.
61527         * lib/getdomainname.c: Likewise.
61528         * lib/getdomainname.h: Likewise.
61529         * lib/getgroups.c: Likewise.
61530         * lib/gethostname.c: Likewise.
61531         * lib/gethrxtime.c: Likewise.
61532         * lib/gethrxtime.h: Likewise.
61533         * lib/getloadavg.c: Likewise.
61534         * lib/getndelim2.c: Likewise.
61535         * lib/getndelim2.h: Likewise.
61536         * lib/getnline.c: Likewise.
61537         * lib/getnline.h: Likewise.
61538         * lib/getopt.c: Likewise.
61539         * lib/getopt.in.h: Likewise.
61540         * lib/getopt1.c: Likewise.
61541         * lib/getopt_int.h: Likewise.
61542         * lib/getpagesize.h: Likewise.
61543         * lib/getsubopt.c: Likewise.
61544         * lib/gettime.c: Likewise.
61545         * lib/getugroups.c: Likewise.
61546         * lib/getugroups.h: Likewise.
61547         * lib/getusershell.c: Likewise.
61548         * lib/gl_anyavltree_list1.h: Likewise.
61549         * lib/gl_anyavltree_list2.h: Likewise.
61550         * lib/gl_anyhash_list1.h: Likewise.
61551         * lib/gl_anyhash_list2.h: Likewise.
61552         * lib/gl_anylinked_list1.h: Likewise.
61553         * lib/gl_anylinked_list2.h: Likewise.
61554         * lib/gl_anyrbtree_list1.h: Likewise.
61555         * lib/gl_anyrbtree_list2.h: Likewise.
61556         * lib/gl_anytree_list1.h: Likewise.
61557         * lib/gl_anytree_list2.h: Likewise.
61558         * lib/gl_anytree_oset.h: Likewise.
61559         * lib/gl_anytreehash_list1.h: Likewise.
61560         * lib/gl_anytreehash_list2.h: Likewise.
61561         * lib/gl_array_list.c: Likewise.
61562         * lib/gl_array_list.h: Likewise.
61563         * lib/gl_array_oset.c: Likewise.
61564         * lib/gl_array_oset.h: Likewise.
61565         * lib/gl_avltree_list.c: Likewise.
61566         * lib/gl_avltree_list.h: Likewise.
61567         * lib/gl_avltree_oset.c: Likewise.
61568         * lib/gl_avltree_oset.h: Likewise.
61569         * lib/gl_avltreehash_list.c: Likewise.
61570         * lib/gl_avltreehash_list.h: Likewise.
61571         * lib/gl_carray_list.c: Likewise.
61572         * lib/gl_carray_list.h: Likewise.
61573         * lib/gl_linked_list.c: Likewise.
61574         * lib/gl_linked_list.h: Likewise.
61575         * lib/gl_linkedhash_list.c: Likewise.
61576         * lib/gl_linkedhash_list.h: Likewise.
61577         * lib/gl_list.c: Likewise.
61578         * lib/gl_list.h: Likewise.
61579         * lib/gl_oset.c: Likewise.
61580         * lib/gl_oset.h: Likewise.
61581         * lib/gl_rbtree_list.c: Likewise.
61582         * lib/gl_rbtree_list.h: Likewise.
61583         * lib/gl_rbtree_oset.c: Likewise.
61584         * lib/gl_rbtree_oset.h: Likewise.
61585         * lib/gl_rbtreehash_list.c: Likewise.
61586         * lib/gl_rbtreehash_list.h: Likewise.
61587         * lib/gl_sublist.c: Likewise.
61588         * lib/gl_sublist.h: Likewise.
61589         * lib/group-member.c: Likewise.
61590         * lib/group-member.h: Likewise.
61591         * lib/hard-locale.c: Likewise.
61592         * lib/hard-locale.h: Likewise.
61593         * lib/hash-pjw.c: Likewise.
61594         * lib/hash-pjw.h: Likewise.
61595         * lib/hash-triple.c: Likewise.
61596         * lib/hash.c: Likewise.
61597         * lib/hash.h: Likewise.
61598         * lib/human.c: Likewise.
61599         * lib/human.h: Likewise.
61600         * lib/i-ring.c: Likewise.
61601         * lib/i-ring.h: Likewise.
61602         * lib/idcache.c: Likewise.
61603         * lib/imaxabs.c: Likewise.
61604         * lib/imaxdiv.c: Likewise.
61605         * lib/inet_pton.c: Likewise.
61606         * lib/inet_pton.h: Likewise.
61607         * lib/intprops.h: Likewise.
61608         * lib/inttostr.c: Likewise.
61609         * lib/inttostr.h: Likewise.
61610         * lib/inttypes.in.h: Likewise.
61611         * lib/isapipe.c: Likewise.
61612         * lib/isdir.c: Likewise.
61613         * lib/isnan.c: Likewise.
61614         * lib/isnan.h: Likewise.
61615         * lib/isnanf.c: Likewise.
61616         * lib/isnanf.h: Likewise.
61617         * lib/isnanl-nolibm.h: Likewise.
61618         * lib/isnanl.c: Likewise.
61619         * lib/isnanl.h: Likewise.
61620         * lib/javacomp.c: Likewise.
61621         * lib/javacomp.h: Likewise.
61622         * lib/javaexec.c: Likewise.
61623         * lib/javaexec.h: Likewise.
61624         * lib/javaversion.c: Likewise.
61625         * lib/javaversion.h: Likewise.
61626         * lib/javaversion.java: Likewise.
61627         * lib/lbrkprop.h: Likewise.
61628         * lib/lchmod.h: Likewise.
61629         * lib/lchown.c: Likewise.
61630         * lib/ldexpl.c: Likewise.
61631         * lib/linebreak.c: Likewise.
61632         * lib/linebreak.h: Likewise.
61633         * lib/linebuffer.c: Likewise.
61634         * lib/linebuffer.h: Likewise.
61635         * lib/locale.in.h: Likewise.
61636         * lib/logl.c: Likewise.
61637         * lib/long-options.c: Likewise.
61638         * lib/long-options.h: Likewise.
61639         * lib/lstat.c: Likewise.
61640         * lib/lstat.h: Likewise.
61641         * lib/math.in.h: Likewise.
61642         * lib/mbchar.c: Likewise.
61643         * lib/mbchar.h: Likewise.
61644         * lib/mbfile.h: Likewise.
61645         * lib/mbiter.h: Likewise.
61646         * lib/mbscasecmp.c: Likewise.
61647         * lib/mbscasestr.c: Likewise.
61648         * lib/mbschr.c: Likewise.
61649         * lib/mbscspn.c: Likewise.
61650         * lib/mbslen.c: Likewise.
61651         * lib/mbsncasecmp.c: Likewise.
61652         * lib/mbsnlen.c: Likewise.
61653         * lib/mbspbrk.c: Likewise.
61654         * lib/mbspcasecmp.c: Likewise.
61655         * lib/mbsrchr.c: Likewise.
61656         * lib/mbssep.c: Likewise.
61657         * lib/mbsspn.c: Likewise.
61658         * lib/mbsstr.c: Likewise.
61659         * lib/mbstok_r.c: Likewise.
61660         * lib/mbswidth.c: Likewise.
61661         * lib/mbswidth.h: Likewise.
61662         * lib/mbuiter.h: Likewise.
61663         * lib/memcasecmp.c: Likewise.
61664         * lib/memcasecmp.h: Likewise.
61665         * lib/memchr.c: Likewise.
61666         * lib/memcmp.c: Likewise.
61667         * lib/memcoll.c: Likewise.
61668         * lib/memcoll.h: Likewise.
61669         * lib/memcpy.c: Likewise.
61670         * lib/memrchr.c: Likewise.
61671         * lib/mkancesdirs.c: Likewise.
61672         * lib/mkdir-p.c: Likewise.
61673         * lib/mkdir-p.h: Likewise.
61674         * lib/mkdir.c: Likewise.
61675         * lib/mkdirat.c: Likewise.
61676         * lib/mkdtemp.c: Likewise.
61677         * lib/mkstemp-safer.c: Likewise.
61678         * lib/mkstemp.c: Likewise.
61679         * lib/modechange.c: Likewise.
61680         * lib/modechange.h: Likewise.
61681         * lib/mountlist.c: Likewise.
61682         * lib/mountlist.h: Likewise.
61683         * lib/mpsort.c: Likewise.
61684         * lib/nanosleep.c: Likewise.
61685         * lib/obstack.c: Likewise.
61686         * lib/obstack.h: Likewise.
61687         * lib/open-safer.c: Likewise.
61688         * lib/open.c: Likewise.
61689         * lib/openat-die.c: Likewise.
61690         * lib/openat-priv.h: Likewise.
61691         * lib/openat-proc.c: Likewise.
61692         * lib/openat.c: Likewise.
61693         * lib/openat.h: Likewise.
61694         * lib/pagealign_alloc.c: Likewise.
61695         * lib/pagealign_alloc.h: Likewise.
61696         * lib/physmem.c: Likewise.
61697         * lib/physmem.h: Likewise.
61698         * lib/pipe-safer.c: Likewise.
61699         * lib/pipe.c: Likewise.
61700         * lib/pipe.h: Likewise.
61701         * lib/posixtm.c: Likewise.
61702         * lib/posixtm.h: Likewise.
61703         * lib/posixver.c: Likewise.
61704         * lib/printf-frexp.c: Likewise.
61705         * lib/printf-frexp.h: Likewise.
61706         * lib/printf-frexpl.c: Likewise.
61707         * lib/printf-frexpl.h: Likewise.
61708         * lib/printf.c: Likewise.
61709         * lib/progname.c: Likewise.
61710         * lib/progname.h: Likewise.
61711         * lib/progreloc.c: Likewise.
61712         * lib/putenv.c: Likewise.
61713         * lib/quote.c: Likewise.
61714         * lib/quote.h: Likewise.
61715         * lib/quotearg.c: Likewise.
61716         * lib/quotearg.h: Likewise.
61717         * lib/raise.c: Likewise.
61718         * lib/readline.c: Likewise.
61719         * lib/readline.h: Likewise.
61720         * lib/readlink.c: Likewise.
61721         * lib/readtokens.c: Likewise.
61722         * lib/readtokens.h: Likewise.
61723         * lib/readtokens0.c: Likewise.
61724         * lib/readtokens0.h: Likewise.
61725         * lib/readutmp.c: Likewise.
61726         * lib/readutmp.h: Likewise.
61727         * lib/realloc.c: Likewise.
61728         * lib/relocwrapper.c: Likewise.
61729         * lib/rename-dest-slash.c: Likewise.
61730         * lib/rename.c: Likewise.
61731         * lib/rmdir.c: Likewise.
61732         * lib/rpmatch.c: Likewise.
61733         * lib/safe-read.c: Likewise.
61734         * lib/safe-read.h: Likewise.
61735         * lib/safe-write.c: Likewise.
61736         * lib/safe-write.h: Likewise.
61737         * lib/same-inode.h: Likewise.
61738         * lib/same.c: Likewise.
61739         * lib/same.h: Likewise.
61740         * lib/save-cwd.c: Likewise.
61741         * lib/save-cwd.h: Likewise.
61742         * lib/savedir.c: Likewise.
61743         * lib/savedir.h: Likewise.
61744         * lib/savewd.c: Likewise.
61745         * lib/savewd.h: Likewise.
61746         * lib/search.in.h: Likewise.
61747         * lib/setenv.c: Likewise.
61748         * lib/setenv.h: Likewise.
61749         * lib/settime.c: Likewise.
61750         * lib/sh-quote.c: Likewise.
61751         * lib/sh-quote.h: Likewise.
61752         * lib/sig2str.c: Likewise.
61753         * lib/sig2str.h: Likewise.
61754         * lib/signal.in.h: Likewise.
61755         * lib/signbitd.c: Likewise.
61756         * lib/signbitf.c: Likewise.
61757         * lib/signbitl.c: Likewise.
61758         * lib/sigprocmask.c: Likewise.
61759         * lib/sincosl.c: Likewise.
61760         * lib/sleep.c: Likewise.
61761         * lib/sprintf.c: Likewise.
61762         * lib/sqrtl.c: Likewise.
61763         * lib/stat-time.h: Likewise.
61764         * lib/stdio--.h: Likewise.
61765         * lib/stdio-safer.h: Likewise.
61766         * lib/stdlib--.h: Likewise.
61767         * lib/stdlib-safer.h: Likewise.
61768         * lib/stdlib.in.h: Likewise.
61769         * lib/stpcpy.c: Likewise.
61770         * lib/stpncpy.c: Likewise.
61771         * lib/strchrnul.c: Likewise.
61772         * lib/strcspn.c: Likewise.
61773         * lib/strerror.c: Likewise.
61774         * lib/strftime.c: Likewise.
61775         * lib/strftime.h: Likewise.
61776         * lib/striconveh.c: Likewise.
61777         * lib/striconveh.h: Likewise.
61778         * lib/striconveha.c: Likewise.
61779         * lib/striconveha.h: Likewise.
61780         * lib/stripslash.c: Likewise.
61781         * lib/strnlen1.c: Likewise.
61782         * lib/strnlen1.h: Likewise.
61783         * lib/strtod.c: Likewise.
61784         * lib/strtoimax.c: Likewise.
61785         * lib/strtok_r.c: Likewise.
61786         * lib/strtol.c: Likewise.
61787         * lib/strtoll.c: Likewise.
61788         * lib/strtoul.c: Likewise.
61789         * lib/strtoull.c: Likewise.
61790         * lib/sysexits.in.h: Likewise.
61791         * lib/tempname.c: Likewise.
61792         * lib/tempname.h: Likewise.
61793         * lib/timespec.h: Likewise.
61794         * lib/tls.c: Likewise.
61795         * lib/tls.h: Likewise.
61796         * lib/tmpdir.c: Likewise.
61797         * lib/tmpdir.h: Likewise.
61798         * lib/tmpfile-safer.c: Likewise.
61799         * lib/tmpfile.c: Likewise.
61800         * lib/trigl.c: Likewise.
61801         * lib/trigl.h: Likewise.
61802         * lib/trim.c: Likewise.
61803         * lib/trim.h: Likewise.
61804         * lib/trunc.c: Likewise.
61805         * lib/truncf.c: Likewise.
61806         * lib/truncl.c: Likewise.
61807         * lib/tsearch.c: Likewise.
61808         * lib/unicodeio.c: Likewise.
61809         * lib/unicodeio.h: Likewise.
61810         * lib/unistd--.h: Likewise.
61811         * lib/unistd-safer.h: Likewise.
61812         * lib/unistdio/ulc-fprintf.c: Likewise.
61813         * lib/unistdio/ulc-vfprintf.c: Likewise.
61814         * lib/unlinkdir.c: Likewise.
61815         * lib/unlinkdir.h: Likewise.
61816         * lib/unlocked-io.h: Likewise.
61817         * lib/unsetenv.c: Likewise.
61818         * lib/userspec.c: Likewise.
61819         * lib/utime.c: Likewise.
61820         * lib/utimecmp.c: Likewise.
61821         * lib/utimecmp.h: Likewise.
61822         * lib/utimens.c: Likewise.
61823         * lib/verify.h: Likewise.
61824         * lib/verror.c: Likewise.
61825         * lib/verror.h: Likewise.
61826         * lib/version-etc-fsf.c: Likewise.
61827         * lib/version-etc.c: Likewise.
61828         * lib/version-etc.h: Likewise.
61829         * lib/vfprintf.c: Likewise.
61830         * lib/vprintf.c: Likewise.
61831         * lib/vsprintf.c: Likewise.
61832         * lib/w32spawn.h: Likewise.
61833         * lib/wait-process.c: Likewise.
61834         * lib/wait-process.h: Likewise.
61835         * lib/wcwidth.c: Likewise.
61836         * lib/write-any-file.c: Likewise.
61837         * lib/xalloc-die.c: Likewise.
61838         * lib/xalloc.h: Likewise.
61839         * lib/xasprintf.c: Likewise.
61840         * lib/xgetcwd.c: Likewise.
61841         * lib/xgetcwd.h: Likewise.
61842         * lib/xgetdomainname.c: Likewise.
61843         * lib/xgetdomainname.h: Likewise.
61844         * lib/xgethostname.c: Likewise.
61845         * lib/xmalloc.c: Likewise.
61846         * lib/xmalloca.c: Likewise.
61847         * lib/xmalloca.h: Likewise.
61848         * lib/xmemcoll.c: Likewise.
61849         * lib/xnanosleep.c: Likewise.
61850         * lib/xreadlink.c: Likewise.
61851         * lib/xreadlink.h: Likewise.
61852         * lib/xsetenv.c: Likewise.
61853         * lib/xsetenv.h: Likewise.
61854         * lib/xstriconv.c: Likewise.
61855         * lib/xstriconv.h: Likewise.
61856         * lib/xstrndup.c: Likewise.
61857         * lib/xstrndup.h: Likewise.
61858         * lib/xstrtod.c: Likewise.
61859         * lib/xstrtod.h: Likewise.
61860         * lib/xstrtol-error.c: Likewise.
61861         * lib/xstrtol.c: Likewise.
61862         * lib/xstrtol.h: Likewise.
61863         * lib/xtime.h: Likewise.
61864         * lib/xvasprintf.c: Likewise.
61865         * lib/xvasprintf.h: Likewise.
61866         * lib/yesno.c: Likewise.
61867         * lib/yesno.h: Likewise.
61868         * posix-modules: Likewise.
61869         * tests/test-alloca-opt.c: Likewise.
61870         * tests/test-arcfour.c: Likewise.
61871         * tests/test-arctwo.c: Likewise.
61872         * tests/test-argmatch.c: Likewise.
61873         * tests/test-argp-2.sh: Likewise.
61874         * tests/test-argp.c: Likewise.
61875         * tests/test-arpa_inet.c: Likewise.
61876         * tests/test-array_list.c: Likewise.
61877         * tests/test-array_oset.c: Likewise.
61878         * tests/test-atexit.c: Likewise.
61879         * tests/test-avltree_list.c: Likewise.
61880         * tests/test-avltree_oset.c: Likewise.
61881         * tests/test-avltreehash_list.c: Likewise.
61882         * tests/test-base64.c: Likewise.
61883         * tests/test-binary-io.c: Likewise.
61884         * tests/test-byteswap.c: Likewise.
61885         * tests/test-c-ctype.c: Likewise.
61886         * tests/test-c-strcasecmp.c: Likewise.
61887         * tests/test-c-strcasestr.c: Likewise.
61888         * tests/test-c-strncasecmp.c: Likewise.
61889         * tests/test-c-strstr.c: Likewise.
61890         * tests/test-canonicalize-lgpl.c: Likewise.
61891         * tests/test-canonicalize.c: Likewise.
61892         * tests/test-carray_list.c: Likewise.
61893         * tests/test-ceilf.c: Likewise.
61894         * tests/test-ceill.c: Likewise.
61895         * tests/test-count-one-bits.c: Likewise.
61896         * tests/test-crc.c: Likewise.
61897         * tests/test-dirname.c: Likewise.
61898         * tests/test-fbufmode.c: Likewise.
61899         * tests/test-fcntl.c: Likewise.
61900         * tests/test-fflush.c: Likewise.
61901         * tests/test-floorf.c: Likewise.
61902         * tests/test-floorl.c: Likewise.
61903         * tests/test-fopen.c: Likewise.
61904         * tests/test-fprintf-posix.c: Likewise.
61905         * tests/test-fprintf-posix.h: Likewise.
61906         * tests/test-fpurge.c: Likewise.
61907         * tests/test-freadable.c: Likewise.
61908         * tests/test-freadahead.c: Likewise.
61909         * tests/test-freading.c: Likewise.
61910         * tests/test-freopen.c: Likewise.
61911         * tests/test-frexp.c: Likewise.
61912         * tests/test-frexpl.c: Likewise.
61913         * tests/test-fseek.c: Likewise.
61914         * tests/test-fseeko.c: Likewise.
61915         * tests/test-fseterr.c: Likewise.
61916         * tests/test-fstrcmp.c: Likewise.
61917         * tests/test-ftell.c: Likewise.
61918         * tests/test-ftello.c: Likewise.
61919         * tests/test-fwritable.c: Likewise.
61920         * tests/test-fwriting.c: Likewise.
61921         * tests/test-getaddrinfo.c: Likewise.
61922         * tests/test-getpass.c: Likewise.
61923         * tests/test-gettimeofday.c: Likewise.
61924         * tests/test-hmac-md5.c: Likewise.
61925         * tests/test-hmac-sha1.c: Likewise.
61926         * tests/test-iconv.c: Likewise.
61927         * tests/test-iconvme.c: Likewise.
61928         * tests/test-inttypes.c: Likewise.
61929         * tests/test-isnan.c: Likewise.
61930         * tests/test-isnanf.c: Likewise.
61931         * tests/test-isnanl-nolibm.c: Likewise.
61932         * tests/test-isnanl.c: Likewise.
61933         * tests/test-isnanl.h: Likewise.
61934         * tests/test-ldexpl.c: Likewise.
61935         * tests/test-linked_list.c: Likewise.
61936         * tests/test-linkedhash_list.c: Likewise.
61937         * tests/test-locale.c: Likewise.
61938         * tests/test-localename.c: Likewise.
61939         * tests/test-lock.c: Likewise.
61940         * tests/test-lseek.c: Likewise.
61941         * tests/test-malloca.c: Likewise.
61942         * tests/test-math.c: Likewise.
61943         * tests/test-mbscasecmp.c: Likewise.
61944         * tests/test-mbscasestr1.c: Likewise.
61945         * tests/test-mbscasestr2.c: Likewise.
61946         * tests/test-mbscasestr3.c: Likewise.
61947         * tests/test-mbscasestr4.c: Likewise.
61948         * tests/test-mbschr.c: Likewise.
61949         * tests/test-mbscspn.c: Likewise.
61950         * tests/test-mbsncasecmp.c: Likewise.
61951         * tests/test-mbspbrk.c: Likewise.
61952         * tests/test-mbspcasecmp.c: Likewise.
61953         * tests/test-mbsrchr.c: Likewise.
61954         * tests/test-mbsspn.c: Likewise.
61955         * tests/test-mbsstr1.c: Likewise.
61956         * tests/test-mbsstr2.c: Likewise.
61957         * tests/test-mbsstr3.c: Likewise.
61958         * tests/test-md5.c: Likewise.
61959         * tests/test-memmem.c: Likewise.
61960         * tests/test-netinet_in.c: Likewise.
61961         * tests/test-open.c: Likewise.
61962         * tests/test-printf-frexp.c: Likewise.
61963         * tests/test-printf-frexpl.c: Likewise.
61964         * tests/test-printf-posix.c: Likewise.
61965         * tests/test-printf-posix.h: Likewise.
61966         * tests/test-rbtree_list.c: Likewise.
61967         * tests/test-rbtree_oset.c: Likewise.
61968         * tests/test-rbtreehash_list.c: Likewise.
61969         * tests/test-read-file.c: Likewise.
61970         * tests/test-rijndael.c: Likewise.
61971         * tests/test-search.c: Likewise.
61972         * tests/test-signbit.c: Likewise.
61973         * tests/test-sleep.c: Likewise.
61974         * tests/test-snprintf-posix.c: Likewise.
61975         * tests/test-snprintf-posix.h: Likewise.
61976         * tests/test-snprintf.c: Likewise.
61977         * tests/test-sprintf-posix.c: Likewise.
61978         * tests/test-sprintf-posix.h: Likewise.
61979         * tests/test-stat-time.c: Likewise.
61980         * tests/test-stdbool.c: Likewise.
61981         * tests/test-stdint.c: Likewise.
61982         * tests/test-stdio.c: Likewise.
61983         * tests/test-stdlib.c: Likewise.
61984         * tests/test-stpncpy.c: Likewise.
61985         * tests/test-strcasestr.c: Likewise.
61986         * tests/test-striconv.c: Likewise.
61987         * tests/test-striconveh.c: Likewise.
61988         * tests/test-striconveha.c: Likewise.
61989         * tests/test-string.c: Likewise.
61990         * tests/test-sys_select.c: Likewise.
61991         * tests/test-sys_socket.c: Likewise.
61992         * tests/test-sys_stat.c: Likewise.
61993         * tests/test-sys_time.c: Likewise.
61994         * tests/test-sysexits.c: Likewise.
61995         * tests/test-time.c: Likewise.
61996         * tests/test-tls.c: Likewise.
61997         * tests/test-trunc.c: Likewise.
61998         * tests/test-truncf.c: Likewise.
61999         * tests/test-truncl.c: Likewise.
62000         * tests/test-unistd.c: Likewise.
62001         * tests/test-vasnprintf-posix.c: Likewise.
62002         * tests/test-vasnprintf-posix2.c: Likewise.
62003         * tests/test-vasnprintf.c: Likewise.
62004         * tests/test-vasprintf-posix.c: Likewise.
62005         * tests/test-vasprintf.c: Likewise.
62006         * tests/test-verify.c: Likewise.
62007         * tests/test-vfprintf-posix.c: Likewise.
62008         * tests/test-vprintf-posix.c: Likewise.
62009         * tests/test-vsnprintf-posix.c: Likewise.
62010         * tests/test-vsnprintf.c: Likewise.
62011         * tests/test-vsprintf-posix.c: Likewise.
62012         * tests/test-wchar.c: Likewise.
62013         * tests/test-wctype.c: Likewise.
62014         * tests/test-wcwidth.c: Likewise.
62015         * tests/test-xstrtol.c: Likewise.
62016         * tests/test-xvasprintf.c: Likewise.
62017         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62018         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62019         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62020         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62021         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62022         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62023         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62024         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62025         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62026         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62027         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62028         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62029         * tests/uniname/test-uninames.c: Likewise.
62030         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62031         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62032         * tests/unistdio/test-u16-printf1.h: Likewise.
62033         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62034         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62035         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62036         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62037         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62038         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62039         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62040         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62041         * tests/unistdio/test-u32-printf1.h: Likewise.
62042         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62043         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62044         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62045         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62046         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62047         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62048         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62049         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62050         * tests/unistdio/test-u8-printf1.h: Likewise.
62051         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62052         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62053         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62054         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62055         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62056         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62057         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62058         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62059         * tests/unistdio/test-ulc-printf1.h: Likewise.
62060         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62061         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62062         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62063         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62064         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62065         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62066         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62067         * tests/uniwidth/test-u16-width.c: Likewise.
62068         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62069         * tests/uniwidth/test-u32-width.c: Likewise.
62070         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62071         * tests/uniwidth/test-u8-width.c: Likewise.
62072         * tests/uniwidth/test-uc_width.c: Likewise.
62073         * config/srclist-update: Likewise.
62074         (fixlicense): Update to GPLv3+.
62075
62076         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62077         * tests/test-tsearch.c: Change copyright notice.
62078
62079         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62080         * lib/c-strcaseeq.h: Change copyright notice.
62081         * lib/streq.h: Likewise.
62082         * lib/uniconv.h: Likewise.
62083         * lib/uniconv/u-conv-from-enc.h: Likewise.
62084         * lib/uniconv/u-conv-to-enc.h: Likewise.
62085         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62086         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62087         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62088         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62089         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62090         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62091         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62092         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62093         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62094         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62095         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62096         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62097         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62098         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62099         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62100         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62101         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62102         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62103         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62104         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62105         * lib/uniname.h: Likewise.
62106         * lib/uniname/uniname.c: Likewise.
62107         * lib/unistdio.h: Likewise.
62108         * lib/unistdio/u-asnprintf.h: Likewise.
62109         * lib/unistdio/u-asprintf.h: Likewise.
62110         * lib/unistdio/u-printf-args.c: Likewise.
62111         * lib/unistdio/u-printf-args.h: Likewise.
62112         * lib/unistdio/u-printf-parse.h: Likewise.
62113         * lib/unistdio/u-snprintf.h: Likewise.
62114         * lib/unistdio/u-sprintf.h: Likewise.
62115         * lib/unistdio/u-vasprintf.h: Likewise.
62116         * lib/unistdio/u-vsnprintf.h: Likewise.
62117         * lib/unistdio/u-vsprintf.h: Likewise.
62118         * lib/unistdio/u16-asnprintf.c: Likewise.
62119         * lib/unistdio/u16-asprintf.c: Likewise.
62120         * lib/unistdio/u16-printf-parse.c: Likewise.
62121         * lib/unistdio/u16-snprintf.c: Likewise.
62122         * lib/unistdio/u16-sprintf.c: Likewise.
62123         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62124         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62125         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62126         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62127         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62128         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62129         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62130         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62131         * lib/unistdio/u16-vasnprintf.c: Likewise.
62132         * lib/unistdio/u16-vasprintf.c: Likewise.
62133         * lib/unistdio/u16-vsnprintf.c: Likewise.
62134         * lib/unistdio/u16-vsprintf.c: Likewise.
62135         * lib/unistdio/u32-asnprintf.c: Likewise.
62136         * lib/unistdio/u32-asprintf.c: Likewise.
62137         * lib/unistdio/u32-printf-parse.c: Likewise.
62138         * lib/unistdio/u32-snprintf.c: Likewise.
62139         * lib/unistdio/u32-sprintf.c: Likewise.
62140         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62141         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62142         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62143         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62144         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62145         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62146         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62147         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62148         * lib/unistdio/u32-vasnprintf.c: Likewise.
62149         * lib/unistdio/u32-vasprintf.c: Likewise.
62150         * lib/unistdio/u32-vsnprintf.c: Likewise.
62151         * lib/unistdio/u32-vsprintf.c: Likewise.
62152         * lib/unistdio/u8-asnprintf.c: Likewise.
62153         * lib/unistdio/u8-asprintf.c: Likewise.
62154         * lib/unistdio/u8-printf-parse.c: Likewise.
62155         * lib/unistdio/u8-snprintf.c: Likewise.
62156         * lib/unistdio/u8-sprintf.c: Likewise.
62157         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62158         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62159         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62160         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62161         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62162         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62163         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62164         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62165         * lib/unistdio/u8-vasnprintf.c: Likewise.
62166         * lib/unistdio/u8-vasprintf.c: Likewise.
62167         * lib/unistdio/u8-vsnprintf.c: Likewise.
62168         * lib/unistdio/u8-vsprintf.c: Likewise.
62169         * lib/unistdio/ulc-asnprintf.c: Likewise.
62170         * lib/unistdio/ulc-asprintf.c: Likewise.
62171         * lib/unistdio/ulc-printf-parse.c: Likewise.
62172         * lib/unistdio/ulc-snprintf.c: Likewise.
62173         * lib/unistdio/ulc-sprintf.c: Likewise.
62174         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62175         * lib/unistdio/ulc-vasprintf.c: Likewise.
62176         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62177         * lib/unistdio/ulc-vsprintf.c: Likewise.
62178         * lib/unistr.h: Likewise.
62179         * lib/unistr/u-cpy-alloc.h: Likewise.
62180         * lib/unistr/u-cpy.h: Likewise.
62181         * lib/unistr/u-endswith.h: Likewise.
62182         * lib/unistr/u-move.h: Likewise.
62183         * lib/unistr/u-set.h: Likewise.
62184         * lib/unistr/u-startswith.h: Likewise.
62185         * lib/unistr/u-stpcpy.h: Likewise.
62186         * lib/unistr/u-stpncpy.h: Likewise.
62187         * lib/unistr/u-strcat.h: Likewise.
62188         * lib/unistr/u-strcpy.h: Likewise.
62189         * lib/unistr/u-strcspn.h: Likewise.
62190         * lib/unistr/u-strdup.h: Likewise.
62191         * lib/unistr/u-strlen.h: Likewise.
62192         * lib/unistr/u-strncat.h: Likewise.
62193         * lib/unistr/u-strncpy.h: Likewise.
62194         * lib/unistr/u-strnlen.h: Likewise.
62195         * lib/unistr/u-strpbrk.h: Likewise.
62196         * lib/unistr/u-strspn.h: Likewise.
62197         * lib/unistr/u-strstr.h: Likewise.
62198         * lib/unistr/u-strtok.h: Likewise.
62199         * lib/unistr/u16-check.c: Likewise.
62200         * lib/unistr/u16-chr.c: Likewise.
62201         * lib/unistr/u16-cmp.c: Likewise.
62202         * lib/unistr/u16-cpy-alloc.c: Likewise.
62203         * lib/unistr/u16-cpy.c: Likewise.
62204         * lib/unistr/u16-endswith.c: Likewise.
62205         * lib/unistr/u16-mblen.c: Likewise.
62206         * lib/unistr/u16-mbsnlen.c: Likewise.
62207         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62208         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62209         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62210         * lib/unistr/u16-mbtouc.c: Likewise.
62211         * lib/unistr/u16-mbtoucr.c: Likewise.
62212         * lib/unistr/u16-move.c: Likewise.
62213         * lib/unistr/u16-next.c: Likewise.
62214         * lib/unistr/u16-prev.c: Likewise.
62215         * lib/unistr/u16-set.c: Likewise.
62216         * lib/unistr/u16-startswith.c: Likewise.
62217         * lib/unistr/u16-stpcpy.c: Likewise.
62218         * lib/unistr/u16-stpncpy.c: Likewise.
62219         * lib/unistr/u16-strcat.c: Likewise.
62220         * lib/unistr/u16-strchr.c: Likewise.
62221         * lib/unistr/u16-strcmp.c: Likewise.
62222         * lib/unistr/u16-strcpy.c: Likewise.
62223         * lib/unistr/u16-strcspn.c: Likewise.
62224         * lib/unistr/u16-strdup.c: Likewise.
62225         * lib/unistr/u16-strlen.c: Likewise.
62226         * lib/unistr/u16-strmblen.c: Likewise.
62227         * lib/unistr/u16-strmbtouc.c: Likewise.
62228         * lib/unistr/u16-strncat.c: Likewise.
62229         * lib/unistr/u16-strncmp.c: Likewise.
62230         * lib/unistr/u16-strncpy.c: Likewise.
62231         * lib/unistr/u16-strnlen.c: Likewise.
62232         * lib/unistr/u16-strpbrk.c: Likewise.
62233         * lib/unistr/u16-strrchr.c: Likewise.
62234         * lib/unistr/u16-strspn.c: Likewise.
62235         * lib/unistr/u16-strstr.c: Likewise.
62236         * lib/unistr/u16-strtok.c: Likewise.
62237         * lib/unistr/u16-to-u32.c: Likewise.
62238         * lib/unistr/u16-to-u8.c: Likewise.
62239         * lib/unistr/u16-uctomb-aux.c: Likewise.
62240         * lib/unistr/u16-uctomb.c: Likewise.
62241         * lib/unistr/u32-check.c: Likewise.
62242         * lib/unistr/u32-chr.c: Likewise.
62243         * lib/unistr/u32-cmp.c: Likewise.
62244         * lib/unistr/u32-cpy-alloc.c: Likewise.
62245         * lib/unistr/u32-cpy.c: Likewise.
62246         * lib/unistr/u32-endswith.c: Likewise.
62247         * lib/unistr/u32-mblen.c: Likewise.
62248         * lib/unistr/u32-mbsnlen.c: Likewise.
62249         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62250         * lib/unistr/u32-mbtouc.c: Likewise.
62251         * lib/unistr/u32-mbtoucr.c: Likewise.
62252         * lib/unistr/u32-move.c: Likewise.
62253         * lib/unistr/u32-next.c: Likewise.
62254         * lib/unistr/u32-prev.c: Likewise.
62255         * lib/unistr/u32-set.c: Likewise.
62256         * lib/unistr/u32-startswith.c: Likewise.
62257         * lib/unistr/u32-stpcpy.c: Likewise.
62258         * lib/unistr/u32-stpncpy.c: Likewise.
62259         * lib/unistr/u32-strcat.c: Likewise.
62260         * lib/unistr/u32-strchr.c: Likewise.
62261         * lib/unistr/u32-strcmp.c: Likewise.
62262         * lib/unistr/u32-strcpy.c: Likewise.
62263         * lib/unistr/u32-strcspn.c: Likewise.
62264         * lib/unistr/u32-strdup.c: Likewise.
62265         * lib/unistr/u32-strlen.c: Likewise.
62266         * lib/unistr/u32-strmblen.c: Likewise.
62267         * lib/unistr/u32-strmbtouc.c: Likewise.
62268         * lib/unistr/u32-strncat.c: Likewise.
62269         * lib/unistr/u32-strncmp.c: Likewise.
62270         * lib/unistr/u32-strncpy.c: Likewise.
62271         * lib/unistr/u32-strnlen.c: Likewise.
62272         * lib/unistr/u32-strpbrk.c: Likewise.
62273         * lib/unistr/u32-strrchr.c: Likewise.
62274         * lib/unistr/u32-strspn.c: Likewise.
62275         * lib/unistr/u32-strstr.c: Likewise.
62276         * lib/unistr/u32-strtok.c: Likewise.
62277         * lib/unistr/u32-to-u16.c: Likewise.
62278         * lib/unistr/u32-to-u8.c: Likewise.
62279         * lib/unistr/u32-uctomb.c: Likewise.
62280         * lib/unistr/u8-check.c: Likewise.
62281         * lib/unistr/u8-chr.c: Likewise.
62282         * lib/unistr/u8-cmp.c: Likewise.
62283         * lib/unistr/u8-cpy-alloc.c: Likewise.
62284         * lib/unistr/u8-cpy.c: Likewise.
62285         * lib/unistr/u8-endswith.c: Likewise.
62286         * lib/unistr/u8-mblen.c: Likewise.
62287         * lib/unistr/u8-mbsnlen.c: Likewise.
62288         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62289         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62290         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62291         * lib/unistr/u8-mbtouc.c: Likewise.
62292         * lib/unistr/u8-mbtoucr.c: Likewise.
62293         * lib/unistr/u8-move.c: Likewise.
62294         * lib/unistr/u8-next.c: Likewise.
62295         * lib/unistr/u8-prev.c: Likewise.
62296         * lib/unistr/u8-set.c: Likewise.
62297         * lib/unistr/u8-startswith.c: Likewise.
62298         * lib/unistr/u8-stpcpy.c: Likewise.
62299         * lib/unistr/u8-stpncpy.c: Likewise.
62300         * lib/unistr/u8-strcat.c: Likewise.
62301         * lib/unistr/u8-strchr.c: Likewise.
62302         * lib/unistr/u8-strcmp.c: Likewise.
62303         * lib/unistr/u8-strcpy.c: Likewise.
62304         * lib/unistr/u8-strcspn.c: Likewise.
62305         * lib/unistr/u8-strdup.c: Likewise.
62306         * lib/unistr/u8-strlen.c: Likewise.
62307         * lib/unistr/u8-strmblen.c: Likewise.
62308         * lib/unistr/u8-strmbtouc.c: Likewise.
62309         * lib/unistr/u8-strncat.c: Likewise.
62310         * lib/unistr/u8-strncmp.c: Likewise.
62311         * lib/unistr/u8-strncpy.c: Likewise.
62312         * lib/unistr/u8-strnlen.c: Likewise.
62313         * lib/unistr/u8-strpbrk.c: Likewise.
62314         * lib/unistr/u8-strrchr.c: Likewise.
62315         * lib/unistr/u8-strspn.c: Likewise.
62316         * lib/unistr/u8-strstr.c: Likewise.
62317         * lib/unistr/u8-strtok.c: Likewise.
62318         * lib/unistr/u8-to-u16.c: Likewise.
62319         * lib/unistr/u8-to-u32.c: Likewise.
62320         * lib/unistr/u8-uctomb-aux.c: Likewise.
62321         * lib/unistr/u8-uctomb.c: Likewise.
62322         * lib/unitypes.h: Likewise.
62323         * lib/uniwidth.h: Likewise.
62324         * lib/uniwidth/cjk.h: Likewise.
62325         * lib/uniwidth/u16-strwidth.c: Likewise.
62326         * lib/uniwidth/u16-width.c: Likewise.
62327         * lib/uniwidth/u32-strwidth.c: Likewise.
62328         * lib/uniwidth/u32-width.c: Likewise.
62329         * lib/uniwidth/u8-strwidth.c: Likewise.
62330         * lib/uniwidth/u8-width.c: Likewise.
62331         * lib/uniwidth/width.c: Likewise.
62332
62333 2007-10-07  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62336         The file is still under LGPL (see modules/inttypes).
62337
62338 2007-10-06  Bruno Haible  <bruno@clisp.org>
62339
62340         * modules/trunc (Dependencies): Add 'extensions'.
62341         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62342         Reported by Ben Pfaff <blp@gnu.org>.
62343
62344 2007-10-06  Bruno Haible  <bruno@clisp.org>
62345
62346         * modules/freopen-tests: New file.
62347         * tests/test-freopen.c: New file.
62348
62349         * modules/fopen-tests: New file.
62350         * tests/test-fopen.c: New file.
62351
62352         * modules/fopen: New file.
62353         * lib/fopen.c: New file.
62354         * m4/fopen.m4: New file.
62355         * modules/freopen: New file.
62356         * lib/freopen.c: New file.
62357         * m4/freopen.m4: New file.
62358         * lib/stdio.in.h (fopen, freopen): New declarations.
62359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62360         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62361         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62362         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62363         * doc/functions/fopen.texi: Mention the 'fopen' module.
62364         * doc/functions/freopen.texi: Mention the 'freopen' module.
62365
62366 2007-10-06  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/open-tests: New file.
62369         * tests/test-open.c: New file.
62370
62371         * modules/open: New file.
62372         * lib/open.c: New file.
62373         * m4/open.m4: New file.
62374         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62375         lib/open.c does.
62376         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62377         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62378         macros.
62379         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62380         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62381         REPLACE_OPEN.
62382         * doc/functions/open.texi: Mention the 'open' module.
62383
62384 2007-10-04  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/ceill-tests: New file.
62387         * tests/test-ceill.c: New file.
62388
62389         * modules/ceill: New file.
62390         * lib/ceill.c: Replace entire file.
62391         * m4/ceill.m4: New file.
62392         * lib/math.in.h (ceill): Replace declaration.
62393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62394         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62395         * doc/functions/ceill.texi: Mention the 'ceill' module.
62396         * modules/mathl (Files): Remove lib/ceill.c.
62397         (Depends-on): Add ceill.
62398
62399 2007-10-04  Bruno Haible  <bruno@clisp.org>
62400
62401         * modules/ceilf-tests: New file.
62402         * tests/test-ceilf.c: New file.
62403
62404         * modules/ceilf: New file.
62405         * lib/ceil.c: New file.
62406         * lib/ceilf.c: New file.
62407         * m4/ceilf.m4: New file.
62408         * lib/math.in.h (ceilf): New declaration.
62409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62410         HAVE_DECL_CEILF.
62411         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62412         HAVE_DECL_CEILF.
62413         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62414
62415 2007-10-04  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/floorl-tests: New file.
62418         * tests/test-floorl.c: New file.
62419
62420         * modules/floorl: New file.
62421         * lib/floorl.c: Replace entire file.
62422         * m4/floorl.m4: New file.
62423         * lib/math.in.h (floorl): Replace declaration.
62424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62425         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62426         * doc/functions/floorl.texi: Mention the 'floorl' module.
62427         * modules/mathl (Files): Remove lib/floorl.c.
62428         (Depends-on): Add floorl.
62429
62430 2007-10-04  Bruno Haible  <bruno@clisp.org>
62431
62432         * modules/floorf-tests: New file.
62433         * tests/test-floorf.c: New file.
62434
62435         * modules/floorf: New file.
62436         * lib/floor.c: New file.
62437         * lib/floorf.c: New file.
62438         * m4/floorf.m4: New file.
62439         * lib/math.in.h (floorf): New declaration.
62440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62441         HAVE_DECL_FLOORF.
62442         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62443         HAVE_DECL_FLOORF.
62444         * doc/functions/floorf.texi: Mention the 'floorf' module.
62445
62446 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62447             Bruno Haible  <bruno@clisp.org>
62448
62449         Advertise for the Git server instead of the CVS server.
62450         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62451         repository instead of the CVS one.
62452         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62453         about all VCS systems generically.
62454         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62455
62456 2007-10-04  Bruno Haible  <bruno@clisp.org>
62457
62458         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62459         means.
62460         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62461
62462 2007-10-04  Bruno Haible  <bruno@clisp.org>
62463
62464         * modules/truncl-tests: New file.
62465         * tests/test-truncl.c: New file.
62466
62467         * modules/truncl: New file.
62468         * lib/truncl.c: New file.
62469         * m4/truncl.m4: New file.
62470         * lib/math.in.h (truncl): New declaration.
62471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62472         HAVE_DECL_TRUNCL.
62473         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62474         HAVE_DECL_TRUNCL.
62475         * doc/functions/truncl.texi: Mention the 'truncl' module.
62476
62477 2007-10-04  Bruno Haible  <bruno@clisp.org>
62478
62479         * modules/truncf-tests: New file.
62480         * tests/test-truncf.c: New file.
62481
62482         * modules/truncf: New file.
62483         * lib/trunc.c: Make paramerizable through USE_* macros.
62484         * lib/truncf.c: New file.
62485         * m4/truncf.m4: New file.
62486         * lib/math.in.h (truncf): New declaration.
62487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62488         HAVE_DECL_TRUNCF.
62489         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62490         HAVE_DECL_TRUNCF.
62491         * doc/functions/truncf.texi: Mention the 'truncf' module.
62492
62493 2007-10-03  Bruno Haible  <bruno@clisp.org>
62494
62495         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62496         augmentation also for tests modules.
62497         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62498         * modules/atexit-tests (Makefile.am): Likewise.
62499         * modules/binary-io-tests (Makefile.am): Likewise.
62500         * modules/c-strcase-tests (Makefile.am): Likewise.
62501         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62502         * modules/canonicalize-tests (Makefile.am): Likewise.
62503         * modules/closein-tests (Makefile.am): Likewise.
62504         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62505         * modules/freadahead-tests (Makefile.am): Likewise.
62506         * modules/fseek-tests (Makefile.am): Likewise.
62507         * modules/fseeko-tests (Makefile.am): Likewise.
62508         * modules/ftell-tests (Makefile.am): Likewise.
62509         * modules/ftello-tests (Makefile.am): Likewise.
62510         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62511         * modules/isnanl-tests (Makefile.am): Likewise.
62512         * modules/lseek-tests (Makefile.am): Likewise.
62513         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62514         * modules/mbscasestr-tests (Makefile.am): Likewise.
62515         * modules/mbschr-tests (Makefile.am): Likewise.
62516         * modules/mbscspn-tests (Makefile.am): Likewise.
62517         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62518         * modules/mbspbrk-tests (Makefile.am): Likewise.
62519         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62520         * modules/mbsrchr-tests (Makefile.am): Likewise.
62521         * modules/mbsspn-tests (Makefile.am): Likewise.
62522         * modules/mbsstr-tests (Makefile.am): Likewise.
62523         * modules/printf-posix-tests (Makefile.am): Likewise.
62524         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62525         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62526         * modules/tsearch-tests (Makefile.am): Likewise.
62527         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62528         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62529         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62530         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62531         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62532         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62533         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62534         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62535         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62536         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62537         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62538         * modules/xstrtol-tests (Makefile.am): Likewise.
62539         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62540         * modules/yesno-tests (Makefile.am): Likewise.
62541
62542 2007-10-03  Bruno Haible  <bruno@clisp.org>
62543
62544         * modules/trunc-tests: New file.
62545         * tests/test-trunc.c: New file.
62546
62547         * modules/trunc: New file.
62548         * lib/trunc.c: New file.
62549         * m4/trunc.m4: New file.
62550         * lib/math.in.h (trunc): New declaration.
62551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62552         HAVE_DECL_TRUNC.
62553         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62554         HAVE_DECL_TRUNC.
62555         * doc/functions/trunc.texi: Mention the 'trunc' module.
62556
62557 2007-10-03  Bruno Haible  <bruno@clisp.org>
62558
62559         * tests/test-fpending.c: New file, mostly copied
62560         from coreutils/lib/t-fpending.c.
62561         * modules/fpending-tests: New file.
62562
62563 2007-10-03  Bruno Haible  <bruno@clisp.org>
62564
62565         Port the stdio extensions to QNX (untested).
62566         * lib/fseterr.c (fseterr): Add support for QNX.
62567         * lib/fbufmode.c (fbufmode): Likewise.
62568         * lib/freadable.c (freadable): Likewise.
62569         * lib/fwritable.c (fwritable): Likewise.
62570         * lib/freading.c (freading): Likewise.
62571         * lib/fwriting.c (fwriting): Likewise.
62572         * lib/freadahead.c (freadahed): Likewise.
62573         * lib/fpurge.c (fpurge): Likewise.
62574         * lib/fseeko.c (rpl_fseeko): Likewise.
62575
62576 2007-10-03  Bruno Haible  <bruno@clisp.org>
62577             Jim Meyering  <jim@meyering.net>
62578             Eric Blake  <ebb9@byu.net>
62579
62580         * doc/relocatable.texi: Use @command instead of @program.
62581
62582 2007-10-02  Jim Meyering  <jim@meyering.net>
62583
62584         Perform one more "_.h" -> ".in.h" substitution.
62585         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62586         instead of unistd_.h here, too.
62587
62588 2007-10-01  Bruno Haible  <bruno@clisp.org>
62589
62590         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62591         Needed for the alloca-opt module.
62592
62593 2007-09-30  Bruno Haible  <bruno@clisp.org>
62594
62595         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62596         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62597         alloca_.h.
62598         * lib/argz.in.h: Renamed from lib/argz_.h.
62599         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62600         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62601         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62602         byteswap_.h.
62603         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62604         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62605         dirent_.h.
62606         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62607         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62608         fcntl_.h.
62609         * lib/float.in.h: Renamed from lib/float_.h.
62610         * modules/float (Files, Makefile.am): Use float.in.h instead of
62611         float_.h.
62612         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62613         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62614         fnmatch_.h.
62615         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62616         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62617         getopt_.h.
62618         * lib/glob.in.h: Renamed from lib/glob_.h.
62619         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62620         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62621         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62622         iconv_.h.
62623         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62624         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62625         inttypes_.h.
62626         * lib/locale.in.h: Renamed from lib/locale_.h.
62627         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62628         locale_.h.
62629         * lib/math.in.h: Renamed from lib/math_.h.
62630         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62631         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62632         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62633         of netinet_in_.h. Add dependency.
62634         * lib/poll.in.h: Renamed from lib/poll_.h.
62635         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62636         * lib/search.in.h: Renamed from lib/search_.h.
62637         * modules/search (Files, Makefile.am): Use search.in.h instead of
62638         search_.h.
62639         * lib/signal.in.h: Renamed from lib/signal_.h.
62640         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62641         _signal.h.
62642         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62643         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62644         stdbool_.h.
62645         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62646         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62647         stdint_.h.
62648         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62649         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62650         stdio_.h.
62651         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62652         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62653         stdlib_.h.
62654         * lib/string.in.h: Renamed from lib/string_.h.
62655         * modules/string (Files, Makefile.am): Use string.in.h instead of
62656         string_.h.
62657         * doc/gnulib-tool.texi (Initial import): Update.
62658         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62659         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62660         of sys_select_.h. Add dependency.
62661         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62662         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62663         of sys_socket_.h.
62664         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62665         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62666         sys_stat_.h.
62667         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62668         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62669         sys_time_.h.
62670         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62671         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62672         sysexits_.h.
62673         * lib/time.in.h: Renamed from lib/time_.h.
62674         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62675         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62676         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62677         unistd_.h.
62678         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62679         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62680         wchar_.h.
62681         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62682         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62683         wctype_.h.
62684         * build-aux/bootstrap (slurp): Update.
62685         * lib/.cppi-disable: Update.
62686
62687 2007-09-30  Bruno Haible  <bruno@clisp.org>
62688
62689         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62690         Needed on BeOS.
62691
62692 2007-09-30  Bruno Haible  <bruno@clisp.org>
62693
62694         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62695
62696 2007-09-29  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62699
62700 2007-09-29  Bruno Haible  <bruno@clisp.org>
62701
62702         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62703         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62704         * build-aux/install-reloc: Compile also areadlink.c.
62705         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62706
62707 2007-09-29  Bruno Haible  <bruno@clisp.org>
62708
62709         * gnulib-tool (func_emit_initmacro_done): Indentation.
62710
62711 2007-09-29  Bruno Haible  <bruno@clisp.org>
62712
62713         * README: Add CVS checkout update instructions.
62714         Info from Bob Proulx <bob@proulx.com>.
62715
62716 2007-09-28  Eric Blake  <ebb9@byu.net>
62717
62718         Provide move-if-change.
62719         * build-aux/move-if-change: New file, based on best practice
62720         rather than any canonical upstream location.
62721
62722 2007-09-28  Jim Meyering  <jim@meyering.net>
62723
62724         Fix canonicalize loop-detection corner case.
62725         Do not attempt to stat the symlink values stored via seen_triple.
62726         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62727         on linux-2.6.18, (but not 2.6.22).
62728         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62729         triple_compare.  The former compares dev,ino,filename, while the latter
62730         would actually stat dirname(filename) when dev and ino were equal.
62731         * lib/hash-triple.c: Install <string.h>.
62732         (STREQ): Define.
62733         (triple_compare_ino_str): New function.
62734         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62735
62736 2007-09-28  Eric Blake  <ebb9@byu.net>
62737
62738         Enforce that AC_REPLACE_FUNCS files exist.
62739         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62740         override check for typos.
62741
62742         Fix test-closein on Solaris 10.
62743         * tests/test-closein.c (main): Don't assume stdin can be inherited
62744         closed on all systems.
62745         * tests/test-closein.sh: Likewise.
62746         Reported by Piotr Tarnowski.
62747
62748 2007-09-28  Jim Meyering  <jim@meyering.net>
62749
62750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62751
62752 2007-09-27  Jim Meyering  <jim@meyering.net>
62753
62754         canonicalize: Avoid a false-positive cycle failure.
62755         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62756         Sort.  Remove cycle-check.
62757         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62758         not cycle-check.h.
62759         (seen_triple): New function.
62760         (canonicalize_filename_mode): Use it instead of cycle-check.
62761         * tests/test-canonicalize.c: Add a test for this bug.
62762         * tests/test-canonicalize.sh: Set up and run the test.
62763
62764         New module, file-set, from coreutils.
62765         * modules/file-set: Define it.
62766         * lib/file-set.c, lib/file-set.h: Implement.
62767
62768         New module, hash-triple, from coreutils.
62769         * modules/hash-triple: Define it.
62770         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62771
62772 2007-09-25  Eric Blake  <ebb9@byu.net>
62773
62774         Fix strerror on Interix.
62775         * lib/string_.h (strerror): Declare replacement.
62776         * doc/functions/strerror.texi (strerror): Document the Interix
62777         shortcoming.
62778         * modules/string (Makefile.am): Support new hooks.
62779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62780         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62781         gl_FUNC_STRERROR_SEPARATE.
62782         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62783         * lib/strerror.c (rpl_strerror): Provide replacement.
62784         * modules/strerror (Depends-on): Add string.
62785         (configure.ac): Detect use of module.
62786         * tests/test-strerror.c: New file.
62787         * modules/strerror-tests: New test module.
62788         * modules/argp (Depends-on): Add strerror.
62789         * modules/error (Depends-on): Likewise.
62790         Reported by Martin Koeppe.
62791
62792 2007-09-24  Bruno Haible  <bruno@clisp.org>
62793
62794         * README: Update git instructions.
62795
62796 2007-09-24  Eric Blake  <ebb9@byu.net>
62797
62798         Revert fpending breakage from 2007-09-08.
62799         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62800         __fpending.c.
62801
62802 2007-09-24  Jim Meyering  <jim@meyering.net>
62803
62804         filenamecat.c: Add a test.
62805         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62806         showing how the function works when DIR is the empty string.
62807
62808 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62809
62810         * tests/test-canonicalize.sh: Turn on executable bit.
62811
62812 2007-09-19  Eric Blake  <ebb9@byu.net>
62813
62814         * README: Update CVS instructions.
62815
62816 2007-09-18  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/areadlink: New file.
62819         * lib/areadlink.h (areadlink): New declaration.
62820         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62821
62822 2007-09-17  Jim Meyering  <jim@meyering.net>
62823
62824         * lib/savewd.c (ESTALE) [!defined]: Define.
62825         Reported to be required on Interix by Martin Koeppe.
62826
62827 2007-09-17  Bruno Haible  <bruno@clisp.org>
62828
62829         * gnulib-tool (func_version): Use $version.
62830
62831 2007-09-16  Bruno Haible  <bruno@clisp.org>
62832
62833         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62834         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62835         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62836         Reported by Greg Schafer <gschafer@zip.com.au>.
62837
62838 2007-09-15  Bruno Haible  <bruno@clisp.org>
62839
62840         * gnulib-tool (sed): Try a little harder to make bash understand the
62841         alias.
62842         Reported by Bruce Korb <bruce.korb@gmail.com>.
62843
62844 2007-09-13  Eric Blake  <ebb9@byu.net>
62845
62846         * ChangeLog: Remove conflict markers.
62847
62848 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62849
62850         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62851         Reported by Bruno Haible <bruno@clisp.org>.
62852
62853 2007-09-12  Bruno Haible  <bruno@clisp.org>
62854
62855         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62856         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62857         is not defined.
62858
62859 2007-09-12  Eric Blake  <ebb9@byu.net>
62860
62861         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62862         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62863         Autoconf definition.
62864         * modules/euidaccess (Depends-on): Add extensions, for
62865         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62866         * modules/fnmatch (Depends-on): Likewise.
62867         * modules/getaddrinfo (Depends-on): Likewise.
62868         * modules/getdelim (Depends-on): Likewise.
62869         * modules/getline (Depends-on): Likewise.
62870         * modules/getsubopt (Depends-on): Likewise.
62871         * modules/gettext (Depends-on): Likewise.
62872         * modules/group-member (Depends-on): Likewise.
62873         * modules/mbchar (Depends-on): Likewise.
62874         * modules/memmem (Depends-on): Likewise.
62875         * modules/mempcpy (Depends-on): Likewise.
62876         * modules/memrchr (Depends-on): Likewise.
62877         * modules/pagealign_alloc (Depends-on): Likewise.
62878         * modules/readutmp (Depends-on): Likewise.
62879         * modules/stpcpy (Depends-on): Likewise.
62880         * modules/stpncpy (Depends-on): Likewise.
62881         * modules/strchrnul (Depends-on): Likewise.
62882         * modules/strndup (Depends-on): Likewise.
62883         * modules/strsep (Depends-on): Likewise.
62884         * modules/strverscmp (Depends-on): Likewise.
62885         * modules/vasprintf (Depends-on): Likewise.
62886         * modules/wcwidth (Depends-on): Likewise.
62887         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62888         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62889         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62890         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62891         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62892         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62893         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62894         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62895         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62896         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62898         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62899         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62900         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62901         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62902         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62903         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62904         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62906         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62907         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62908         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62909         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62910         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62911         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62913         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62914         so that lock.m4 can be used in gettext without extensions module.
62915
62916 2007-09-11  Bruno Haible  <bruno@clisp.org>
62917
62918         * m4/isc-posix.m4: Remove file.
62919         Suggested by Eric Blake.
62920
62921 2007-09-11  Eric Blake  <ebb9@byu.net>
62922
62923         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62924
62925 2007-09-10  Bruno Haible  <bruno@clisp.org>
62926
62927         * posix-modules: Fix typo in error message.
62928         Reported by Matt <mkraai@beckman.com>.
62929
62930 2007-09-09  Bruno Haible  <bruno@clisp.org>
62931
62932         * doc/functions/getdelim.texi: Update list of platforms lacking the
62933         function.
62934         * doc/functions/getline.texi: Likewise.
62935
62936 2007-09-09  Jim Meyering  <jim@meyering.net>
62937
62938         * lib/hash.c (hash_initialize): Detect calloc failure.
62939         Reported by Bruno Haible.
62940
62941 2007-09-09  Bruno Haible  <bruno@clisp.org>
62942
62943         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62944         malloc or realloc fails.
62945
62946 2007-09-09  Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/getcwd (Depends-on): Add malloc-posix.
62949         * modules/glob (Depends-on): Likewise.
62950         * modules/putenv (Depends-on): Likewise.
62951         * modules/strdup (Depends-on): Likewise.
62952         * modules/getdelim (Depends-on): Add realloc-posix.
62953         * modules/read-file (Depends-on): Likewise.
62954
62955 2007-09-09  Bruno Haible  <bruno@clisp.org>
62956
62957         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62958         (gl_FUNC_MALLOC_POSIX): Require it.
62959         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62960         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62961         * modules/realloc (Files): Add m4/malloc.m4.
62962         * modules/calloc (Files): Likewise.
62963
62964 2007-09-09  Bruno Haible  <bruno@clisp.org>
62965
62966         * modules/malloc-posix: New file.
62967         * modules/malloc (Depends-on): Add malloc-posix.
62968         * lib/malloc.c: Include errno.h.
62969         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62970         and a POSIX-compatible malloc into a single function. Set ENOMEM
62971         when returning NULL.
62972         * m4/malloc.m4: New file.
62973         * doc/functions/malloc.texi: Mention the malloc-posix module.
62974         * lib/stdlib_.h (malloc): New declaration.
62975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62976         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62977         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62978         and HAVE_MALLOC_POSIX.
62979
62980 2007-09-09  Bruno Haible  <bruno@clisp.org>
62981
62982         * modules/realloc-posix: New file.
62983         * modules/realloc (Depends-on): Add realloc-posix.
62984         * lib/realloc.c: Include errno.h.
62985         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62986         and a POSIX-compatible realloc into a single function. Set ENOMEM
62987         when returning NULL.
62988         * m4/realloc.m4: New file.
62989         * doc/functions/realloc.texi: Mention the realloc-posix module.
62990         * lib/stdlib_.h (realloc): New declaration.
62991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62992         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62993         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62994         and HAVE_REALLOC_POSIX.
62995
62996 2007-09-09  Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/calloc-posix: New file.
62999         * modules/calloc (Depends-on): Add calloc-posix.
63000         * lib/calloc.c: Include errno.h.
63001         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63002         and a POSIX-compatible calloc into a single function. Set ENOMEM
63003         when returning NULL.
63004         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63005         * doc/functions/calloc.texi: Mention the calloc-posix module.
63006         * lib/stdlib_.h (calloc): New declaration.
63007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63008         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63009         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63010         and HAVE_CALLOC_POSIX.
63011
63012 2007-09-09  Bruno Haible  <bruno@clisp.org>
63013
63014         Allow for modules to show an arbitrary notice.
63015         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63016         * gnulib-tool: New option --extract-notice.
63017         (func_usage): Document it.
63018         (sed_extract_prog): Update.
63019         (func_get_notice): New function.
63020         (func_modules_notice): New function.
63021         (func_import, func_create_testdir): Invoke it.
63022         Suggested by Jim Meyering.
63023
63024 2007-09-09  Bruno Haible  <bruno@clisp.org>
63025
63026         * gnulib-tool: New options --verbose, --quiet.
63027         (func_usage): Document them.
63028         (verbose): New variable.
63029         (func_execute_command): New function.
63030         (func_import): Don't show the module list and the file list if
63031         $verbose < 0.
63032         (func_create_testdir): Likewise. Use func_execute_command.
63033         (func_create_megatestdir): Use func_execute_command.
63034
63035 2007-09-08  Bruno Haible  <bruno@clisp.org>
63036
63037         * gnulib-tool (func_import): Prefer rsync over wget when available,
63038         for fetching the PO files.
63039
63040 2007-09-08  Bruno Haible  <bruno@clisp.org>
63041
63042         * posix-modules: New file. Portions copied from gnulib-tool.
63043         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63044
63045 2007-09-08  Jim Meyering  <jim@meyering.net>
63046
63047         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63048         * lib/fpending.h: Rename from __fpending.h.
63049         * lib/fpending.c: Rename from __fpending.c.
63050         Include "fpending.h", not "__fpending.h".
63051         * lib/__fpending.h, lib/__fpending.c: Remove files.
63052         * modules/fpending (Files): Reflect new file names.
63053         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63054
63055 2007-09-08  Bruno Haible  <bruno@clisp.org>
63056
63057         * m4/inttypes-h.m4: Remove stub file.
63058
63059 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63060
63061         * doc/headers/stdint.texi: Discuss #include_next issue.
63062
63063 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63066
63067 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63068
63069         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63070         in variable name.
63071
63072 2007-09-03  Jim Meyering  <jim@meyering.net>
63073
63074         New module: git-version-gen.
63075         * modules/git-version-gen: New file.
63076
63077         Import changes from coreutils for bootstrap script.
63078
63079         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63080
63081         bootstrap: uses rsync to download the .po files
63082         * build-aux/bootstrap (po_download_command_format): New global.
63083         (download_po_files): Use rsync.
63084         (update_po_files): Don't remove .po files after download,
63085         so future rsync runs can take advantage of the copies.
63086
63087         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63088
63089         Solve the unnecessary-.po-file-regeneration problem once and for all.
63090         * build-aux/bootstrap (download_po_files): New function, renamed from
63091         get_translations.  Now, downloads, but doesn't update LINGUAS.
63092         (update_po_files): New function.
63093
63094         bootstrap: Ignore more.
63095         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63096         uniwidth to e.g., lib/.gitignore.
63097         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63098
63099         * build-aux/bootstrap: New setting: vc_ignore.
63100         (insert_sorted_if_absent): Create $file if absent.
63101         Adapt to new, possibly empty, list: $vc_ignore.
63102
63103         bootstrap: generate more ignorable names
63104         * build-aux/bootstrap (slurp): When generating ignorable names,
63105         also map .sin to .sed, .gperf to .c, and .y to .c.
63106
63107 2007-09-03  Jim Meyering  <jim@meyering.net>
63108
63109         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63110         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63111
63112 2007-09-02  Bruno Haible  <bruno@clisp.org>
63113
63114         Fix mis-recognition of 'mcs' on QNX 6.
63115         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63116         output contains the string "Mono".
63117         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63118         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63119
63120 2007-09-01  Bruno Haible  <bruno@clisp.org>
63121
63122         Fix collision between uniwidth/* and linebreak modules.
63123         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63124         u32_width): Remove declarations.
63125         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63126         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63127         streq3, streq2, streq1, streq0): Remove functions.
63128         (STREQ): Remove macro.
63129         (is_cjk_encoding): Remove function.
63130         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63131         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63132         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63133         * NEWS: Document the change.
63134
63135 2007-09-01  Bruno Haible  <bruno@clisp.org>
63136
63137         * lib/streq.h: Add double-inclusion guard.
63138
63139 2007-09-01  Karl Berry  <karl@gnu.org>
63140
63141         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63142
63143 2007-08-28  Jim Meyering  <jim@meyering.net>
63144
63145         Rename mreadlink_with_size to areadlink_with_size.
63146         * NEWS: Document the change.
63147         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63148         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63149         * lib/mreadlink.h: Rename this to...
63150         * lib/areadlink.h: ...this.
63151         * modules/mreadlink-with-size: Rename this to...
63152         * modules/areadlink-with-size: ...this.
63153         * lib/canonicalize.c: Reflect the renaming.
63154         * modules/canonicalize: Likewise.
63155
63156 2007-08-26  Bruno Haible  <bruno@clisp.org>
63157
63158         * gnulib-tool (func_import): When deciding which files to remove,
63159         consider also dangling symbolic links.
63160         Reported by Eric Blake.
63161
63162 2007-08-26  Bruno Haible  <bruno@clisp.org>
63163
63164         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63165
63166 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63167
63168         * lib/readline.c: Don't include getline.h, the prototype is now
63169         found in stdio.h.
63170
63171 2007-08-23  Jim Meyering  <jim@meyering.net>
63172
63173         Getdelim touchup.
63174         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63175         around the funlockfile call, since funlockfile never sets errno.
63176         Don't set errno upon failed realloc.
63177
63178 2007-08-22  Eric Blake  <ebb9@byu.net>
63179
63180         Getline touchups.
63181         * lib/getdelim.c (getdelim): Revert regression that required *n to
63182         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63183         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63184         getdelim, rather than whether implementation is missing.
63185         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63186         * lib/stdio_.h (getline): Also declare if replacement is
63187         required.
63188         * doc/functions/getdelim.texi: New file.
63189         * doc/functions/getline.texi: Likewise.
63190         * doc/gnulib.texi (Function Substitutes): Add new files.
63191         Reported by Bruno Haible.
63192
63193 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63194
63195         * users.txt: Add Guile.
63196
63197 2007-08-22  Eric Blake  <ebb9@byu.net>
63198
63199         * tests/test-getdelim.c (main): Use remove, not unlink.
63200         * tests/test-getline.c (main): Likewise.
63201
63202         Move getline and getdelim into stdio.h, per POSIX 200x.
63203         * modules/getline (Files): Remove getline.h.
63204         (Depends-on): Add stdio.
63205         (configure.ac): Add module indicator.
63206         * modules/getdelim (Files): Remove getdelim.h.
63207         (Depends-on): Add stdio.
63208         (configure.ac): Add module indicator.
63209         * modules/stdio (Makefile.am): Work with new indicators.
63210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63212         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63213         * lib/getdelim.h: Delete.
63214         * lib/getline.h: Delete.
63215         * lib/stdio_.h (getdelim, getline): Declare.
63216         * modules/getdelim-tests: New module.
63217         * modules/getline-tests: Likewise.
63218         * tests/test-getdelim.c: New file.
63219         * tests/test-getline.c: Likewise.
63220         * NEWS: Document the change.
63221         * lib/getline.c: Update choice of header.
63222         * lib/csharpcomp.c: Likewise.
63223         * lib/getpass.c: Likewise.
63224         * lib/javacomp.c: Likewise.
63225         * lib/javaversion.c: Likewise.
63226         * lib/yesno.c: Likewise.
63227         * lib/getdelim.c: Likewise.
63228         (getdelim): Set errno on failure, and avoid memory leak.
63229
63230 2007-08-19  Bruno Haible  <bruno@clisp.org>
63231
63232         * modules/closein (Depends-on): Add freadahead.
63233         * lib/closein.c: Include freadahead.h.
63234         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63235         is zero.
63236
63237 2007-08-19  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/freadahead-tests: New file.
63240         * tests/test-freadahead.sh: New file.
63241         * tests/test-freadahead.c: New file.
63242
63243         * modules/freadahead: New file.
63244         * lib/freadahead.h: New file.
63245         * lib/freadahead.c: New file.
63246         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63247         fbufmode, fpurge, freadable, fwritable.
63248
63249 2007-08-19  Eric Blake  <ebb9@byu.net>
63250
63251         Test yesno in combination with closein.
63252         * lib/yesno.c (yesno): Document use of stdin.
63253         * modules/yesno-tests (Files): New module.
63254         * tests/test-yesno.c (main): New file.
63255         * tests/test-yesno.sh: Likewise.
63256
63257 2007-08-19  Bruno Haible  <bruno@clisp.org>
63258
63259         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63260         * lib/fseeko.c (rpl_fseeko): Likewise.
63261         * lib/fseterr.c (fseterr): Likewise.
63262
63263 2007-08-19  Bruno Haible  <bruno@clisp.org>
63264
63265         * tests/test-lseek.c (main): Disable a test for BeOS.
63266         * doc/functions/lseek.texi: Document the BeOS bug.
63267
63268 2007-08-19  Bruno Haible  <bruno@clisp.org>
63269             Eric Blake  <ebb9@byu.net>
63270
63271         * lib/lseek.c: Include <sys/stat.h>.
63272         (rpl_lseek): Add workaround code also for Unix platforms.
63273         Needed for BeOS.
63274         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63275         * doc/functions/lseek.texi: Document BeOS definiency.
63276
63277 2007-08-18  Bruno Haible  <bruno@clisp.org>
63278
63279         * modules/fstrcmp-tests: New file.
63280         * tests/test-fstrcmp.c: New file.
63281
63282 2007-08-18  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/fstrcmp: New file, from GNU gettext with modifications.
63285         * lib/fstrcmp.h: New file, from GNU gettext.
63286         * lib/fstrcmp.c: New file, from GNU gettext.
63287         * MODULES.html.sh (String handling): Add fstrcmp.
63288
63289 2007-08-18  Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63292         'bool'.
63293         (diag, compareseq): Remove const from the ctxt argument.
63294         (USE_HEURISTIC): Undefine at the end.
63295
63296 2007-08-18  Jim Meyering  <jim@meyering.net>
63297
63298         New file: lib/idcache.h
63299         * NEWS: Mention the addition.
63300         * modules/idcache (Files): Add lib/idcache.h
63301         * lib/idcache.c: Include "idcache.h".
63302         Don't include <sys/types.h>.
63303         Add a FIXME comment.
63304         Move file-scoped "static" declarations to the top.
63305         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63306
63307 2007-08-17  Bruno Haible  <bruno@clisp.org>
63308         and Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         * MODULES.html.sh: Add diffseq.
63311         * modules/diffseq: New file.
63312         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63313         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63314
63315 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         Import changes from coreutils for bootstrap script.
63318
63319         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * build-aux/bootstrap (slurp): Work even in environments where
63322         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63323         current code does not slurp files whose names start with ".", and
63324         this looks like it might be a troublesome area.
63325
63326         2007-07-11  Jim Meyering  <jim@meyering.net>
63327
63328         If there's a GPL vN copyright comment, require that N == 3.
63329
63330         2007-07-08  Jim Meyering  <jim@meyering.net>
63331
63332         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63333         * build-aux/bootstrap (mam_template): Move definition out of loop.
63334
63335         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63336
63337         * build-aux/bootstrap (symlink_to_dir): Rename function from
63338         symlink_to_gnulib.  Add a directory parameter.  Update all
63339         callers.
63340         (cp_mark_as_generated): Also check for -- and link to -- files in
63341         gl/.
63342
63343         2007-07-08  Jim Meyering  <jim@meyering.net>
63344
63345         Adapt to deeper hierarchy in gnulib.
63346         * build-aux/bootstrap (symlink_to_dir): If the destination
63347         directory doesn't exist, create it. This is required at least for
63348         "lib/uniwidth/cjk.h".
63349
63350         2007-05-15  Jim Meyering  <jim@meyering.net>
63351
63352         * build-aux/bootstrap: Now that generated Makefile.am files
63353         are no longer under version control, they must be created at
63354         bootstrap time.
63355
63356 2007-08-14  Ben Pfaff  <blp@gnu.org>
63357
63358         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63359
63360 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63363         given the changes below.
63364         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63365         even on hosts that have padding bits beyond the supported 64.
63366
63367 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63368
63369         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63370         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63371         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63372         depends on it.
63373         (xstrtol_error): Remove.
63374         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63375         but with a different signature.
63376         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63377         * lib/xstrtol-error.c: Include exitfail.h.
63378         (xstrtol_fatal): New function, with a different signature from the
63379         old xstrtol_error, so that the caller need not worry about passing
63380         in an exit status, or about storage management of the option argument.
63381         (xstrtol_error): Now a static function.  Redo signature to
63382         implement xstrtol_fatal.  Output the correct number of hyphens in
63383         front of the option so that the caller need not worry about
63384         storage management.
63385         (N_): New macro.
63386         (_): Remove; not used now.
63387         * modules/xstrtol: Depend on getopt.
63388         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63389         of old STRTOL_FATAL_ERROR macro.
63390         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63391         of test program.
63392         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63393         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63394
63395 2007-08-08  Eric Blake  <ebb9@byu.net>
63396
63397         * lib/xstrtol-error.c: Add missing include.
63398
63399         Move xstrtol messages into gnulib domain, when --pobase is used.
63400         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63401         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63402         * modules/xstrtol (Files): Distribute new file.
63403         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63404         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63405         * tests/test-xstrtol.c: ...into new file.
63406         * tests/test-xstrtoul.c: Also test xstrtoul.
63407         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63408         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63409         * tests/test-xstrtol.sh: Drive the tests.
63410         * tests/test-xstrtoimax.sh: Likewise.
63411         * tests/test-xstrtoumax.sh: Likewise.
63412         * modules/xstrtol-tests: New module.
63413         * modules/xstrtoimax-tests: Likewise.
63414         * modules/xstrtoumax-tests: Likewise.
63415
63416 2007-08-08  Jim Meyering  <jim@meyering.net>
63417
63418         New function: mfile_name_concat.
63419         * lib/filenamecat.c (mfile_name_concat): New function, just like
63420         file_name_concat, but return NULL upon failure rather than exiting
63421         with a diagnostic.
63422         * lib/filenamecat.h: Declare it.
63423
63424 2007-08-07  Bruno Haible  <bruno@clisp.org>
63425
63426         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63427         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63428         warning from gcc.
63429         Reported by Eric Blake.
63430
63431 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63432
63433         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63434         * modules/crypto/arcfour (License): Likewise.
63435         * modules/crypto/des-tests (License): Likewise.
63436         * modules/crypto/gc-arctwo-tests (License): Likewise.
63437         * modules/crypto/gc-des-tests (License): Likewise.
63438         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63439         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63440         * modules/crypto/gc-md2-tests (License): Likewise.
63441         * modules/crypto/gc-md4-tests (License): Likewise.
63442         * modules/crypto/gc-md5-tests (License): Likewise.
63443         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63444         * modules/crypto/gc-rijndael-tests (License): Likewise.
63445         * modules/crypto/gc-sha1-tests (License): Likewise.
63446         * modules/crypto/gc-tests (License): Likewise.
63447         * modules/crypto/hmac-md5 (License): Likewise.
63448         * modules/crypto/hmac-sha1 (License): Likewise.
63449         * modules/crypto/md2-tests (License): Likewise.
63450         * modules/crypto/md4-tests (License): Likewise.
63451         * modules/crypto/md5 (License): Likewise.
63452         * modules/crypto/rijndael (License): Likewise.
63453         * modules/crypto/sha1 (License): Likewise.
63454         * modules/memxor (License): Likewise.
63455
63456 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63457         and Bruno Haible  <bruno@clisp.org>
63458
63459         * NEWS: Describe interface changes to human, xstrtol.
63460         * lib/human.h: Include <xstrtol.h>.
63461         (human_options): Return enum strtol_error, not int.  Remove
63462         bool arg; take int * instead.
63463         * lib/human.c: Don't include "gettext.h".
63464         (_): Remove; no longer used.
63465         Don't include <xstrtol.h>, since human.h does it.
63466         (human_options): Adjust to abovementioned interface changes.
63467         Do not report error to stderr; that's now the caller's
63468         responsibility.
63469         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63470         interface change.
63471         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63472         Str, Argument_type_string.  All uses changed.  Put " argument"
63473         in diagnostics to make them clearer.  Change wording of suffix
63474         message for clarity.
63475         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63476         Argument_type_string.
63477         (STRTOL_FATAL_WARN): Remove; no longer used.
63478         * modules/human (Depends-on): Remove gettext-h.
63479
63480 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63481
63482         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63483
63484 2007-07-31  Bruno Haible  <bruno@clisp.org>
63485
63486         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63487         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63488         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63489
63490 2007-07-31  Bruno Haible  <bruno@clisp.org>
63491
63492         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63493         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63494
63495 2007-07-30  Bruno Haible  <bruno@clisp.org>
63496
63497         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63498         * modules/c-ctype (License): Likewise.
63499         * modules/c-strcase (License): Likewise.
63500         * modules/check-version (License): Likewise.
63501         * modules/iconv (License): Likewise.
63502         * modules/iconv_open (License): Likewise.
63503         * modules/read-file (License): Likewise.
63504         * modules/striconv (License): Likewise.
63505         * modules/strverscmp (License): Likewise.
63506         * modules/vasprintf (License): Likewise.
63507         * modules/crypto/des (License): Likewise.
63508         * modules/crypto/gc (License): Likewise.
63509         * modules/crypto/gc-arcfour (License): Likewise.
63510         * modules/crypto/gc-arctwo (License): Likewise.
63511         * modules/crypto/gc-des (License): Likewise.
63512         * modules/crypto/gc-hmac-md5 (License): Likewise.
63513         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63514         * modules/crypto/gc-md2 (License): Likewise.
63515         * modules/crypto/gc-md4 (License): Likewise.
63516         * modules/crypto/gc-md5 (License): Likewise.
63517         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63518         * modules/crypto/gc-random (License): Likewise.
63519         * modules/crypto/gc-rijndael (License): Likewise.
63520         * modules/crypto/gc-sha1 (License): Likewise.
63521         * modules/crypto/md2 (License): Likewise.
63522         * modules/crypto/md4 (License): Likewise.
63523
63524 2007-07-30  Jim Meyering  <jim@meyering.net>
63525
63526         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63527         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63528         it has valid stat data.  This bug would cause du not to count the
63529         sizes of inaccessible directories.
63530         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63531         in <http://bugzilla.redhat.com/250077>.
63532
63533 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63534             Bruno Haible  <bruno@clisp.org>
63535
63536         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63537         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63538         #include_next, gives a diagnostic about it, but reports no error in
63539         the exit code.
63540         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63541
63542 2007-07-24  Ben Pfaff  <blp@gnu.org>
63543
63544         Improve name: "count-one-bits" is better than "popcount".
63545         * MODULES.html.sh: Update name.
63546         * lib/popcount.h: Renamed lib/count-one-bits.h.
63547         (popcount): Renamed count_one_bits.
63548         (popcountl): Renamed count_one_bits_l.
63549         (popcountll): Renamed count_one_bits_ll.
63550         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63551         * modules/popcount: Renamed module/count-one-bits.
63552         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63553         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63554
63555 2007-07-23  Ben Pfaff  <blp@gnu.org>
63556
63557         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63558         better code generation, and add U to large constants to avoid
63559         warnings, in non-GCC case.
63560         Suggested by Bruno Haible.
63561
63562 2007-07-23  Ben Pfaff  <blp@gnu.org>
63563
63564         * lib/popcount.h: Use verify_true instead of if...abort.
63565         * modules/popcount: Depend on verify module.
63566         Suggested by Jim Meyering.
63567
63568 2007-07-23  Bruno Haible  <bruno@clisp.org>
63569
63570         * gnulib-tool (func_import): Create a .cvsignore file also when the
63571         directory is not yet in CVS but the toplevel directory is. When
63572         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63573         Reported by Karl Berry.
63574
63575 2007-07-22  Ben Pfaff  <blp@gnu.org>
63576
63577         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63578         case.
63579         Suggested by Eric Blake.
63580
63581 2007-07-22  Ben Pfaff  <blp@gnu.org>
63582
63583         New module: popcount.
63584         * MODULES.html.sh: Add popcount.
63585         * modules/popcount: New file.
63586         * modules/popcount-tests: New file.
63587         * tests/test-popcount.c: New file.
63588         * lib/popcount.h: New file.
63589         * m4/popcount.m4: New file.
63590
63591 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         * build-aux/announce-gen: Update to GPLv3.
63594
63595         * build-aux/config.guess: Update from config.
63596
63597 2007-07-21  Bruno Haible  <bruno@clisp.org>
63598
63599         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63600         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63601
63602 2007-07-20  Jim Meyering  <jim@meyering.net>
63603
63604         * check-module: Diagnose a self-dependency.
63605
63606 2007-07-19  Bruno Haible  <bruno@clisp.org>
63607
63608         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63609         empty.
63610         Reported by Eric Blake.
63611
63612 2007-07-18  Bruno Haible  <bruno@clisp.org>
63613
63614         * gnulib-tool: New options --po-base, --po-domain.
63615         (func_usage): Document them.
63616         (pobase, po_domain): New variables.
63617         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63618         DEFAULT_TEXT_DOMAIN.
63619         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63620         (func_import): Consider pobase and po_domain. Create a po/ directory.
63621         (func_create_testdir): Set pobase and po_domain to empty.
63622         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63623         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63624
63625 2007-07-18  Bruno Haible  <bruno@clisp.org>
63626
63627         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63628         EXTRA_DIST augmentation for files in build-aux/.
63629
63630 2007-07-16  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63633         * modules/getdelim (License): Likewise.
63634
63635 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63636
63637         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63638         * modules/d-type (License): Likewise.
63639         * modules/extensions (License): Likewise.
63640         * modules/fnmatch (License): Likewise.
63641         * modules/fseeko (License): Likewise.
63642         * modules/getaddrinfo (License): Likewise.
63643         * modules/getline (License): Likewise.
63644         * modules/getlogin_r (License): Likewise.
63645         * modules/getpass (License): Likewise.
63646         * modules/gettimeofday (License): Likewise.
63647         * modules/glob (License): Likewise.
63648         * modules/inet_ntop (License): Likewise.
63649         * modules/malloc (License): Likewise.
63650         * modules/malloca (License): Likewise.
63651         * modules/memmem (License): Likewise.
63652         * modules/mempcpy (License): Likewise.
63653         * modules/memset (License): Likewise.
63654         * modules/minmax (License): Likewise.
63655         * modules/mktime (License): Likewise.
63656         * modules/netinet_in (License): Likewise.
63657         * modules/pathmax (License): Likewise.
63658         * modules/poll (License): Likewise.
63659         * modules/regex (License): Likewise.
63660         * modules/snprintf (License): Likewise.
63661         * modules/stdbool (License): Likewise.
63662         * modules/stdint (License): Likewise.
63663         * modules/stdio (License): Likewise.
63664         * modules/strcase (License): Likewise.
63665         * modules/strcasestr (License): Likewise.
63666         * modules/strdup (License): Likewise.
63667         * modules/string (License): Likewise.
63668         * modules/strndup (License): Likewise.
63669         * modules/strnlen (License): Likewise.
63670         * modules/strpbrk (License): Likewise.
63671         * modules/strptime (License): Likewise.
63672         * modules/strsep (License): Likewise.
63673         * modules/sys_select (License): Likewise.
63674         * modules/sys_socket (License): Likewise.
63675         * modules/sys_stat (License): Likewise.
63676         * modules/sys_time (License): Likewise.
63677         * modules/time (License): Likewise.
63678         * modules/time_r (License): Likewise.
63679         * modules/timegm (License): Likewise.
63680         * modules/unistd (License): Likewise.
63681         * modules/vsnprintf (License): Likewise.
63682         * modules/wctype (License): Likewise.
63683
63684 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63685
63686         * modules/argz (License): LGPLv2+.
63687
63688 2007-07-15  Karl Berry  <karl@gnu.org>
63689
63690         * doc/gnulib.texi: revise node structure per new fdl.texi.
63691
63692 2007-07-14  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63695         the output file.
63696         * lib/uniname/uninames.h: Regenerated.
63697
63698 2007-07-14  Karl Berry  <karl@gnu.org>
63699
63700         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63701         omitting sectioning and index commands.
63702
63703 2007-07-13  Bruno Haible  <bruno@clisp.org>
63704
63705         New gnulib-tool option --more-symlinks.
63706         * gnulib-tool (func_usage): Document --more-symlinks.
63707         (do_copyrights): New variable.
63708         Recognize option --more-symlinks.
63709         (func_import): Don't add a copyright notice transform to
63710         sed_transform_lib_file if do_copyrights is empty.
63711
63712 2007-07-13  Bruno Haible  <bruno@clisp.org>
63713
63714         * lib/vasnprintf.c (decimal_point_char): Define also if
63715         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63716         && !NEED_PRINTF_DIRECTIVE_A.
63717         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63718         Gary V. Vaughan <gary@gnu.org>.
63719
63720 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63721
63722         * lib/inttypes_.h: Undo previous change, since it was fixed
63723         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63724
63725 2007-07-13  Bruno Haible  <bruno@clisp.org>
63726
63727         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63728         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63729
63730 2007-07-13  Jim Meyering  <jim@meyering.net>
63731
63732         df: Don't fail for Tru64's "file-on-file mount".
63733         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63734         so we fall through and use statfs instead.  Details here:
63735         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63736         Reported by Albert Chin.
63737
63738 2007-07-13  Bruno Haible  <bruno@clisp.org>
63739
63740         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63741         * modules/configmake (License): Likewise.
63742         * modules/gettext (License): Likewise.
63743         * modules/gettext-h (License): Likewise.
63744         * modules/include_next (License): Likewise.
63745         * modules/link-warning (License): Likewise.
63746         * modules/localcharset (License): Likewise.
63747         * modules/localename (License): Likewise.
63748         * modules/lock (License): Likewise.
63749         * modules/relocatable-lib-lgpl (License): Likewise.
63750         * modules/size_max (License): Likewise.
63751         * modules/vasnprintf (License): Likewise.
63752         * modules/wchar (License): Likewise.
63753         * modules/xsize (License): Likewise.
63754
63755 2007-07-13  Bruno Haible  <bruno@clisp.org>
63756
63757         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63758         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63759
63760 2007-07-12  Bruno Haible  <bruno@clisp.org>
63761
63762         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63763         in the modules files.
63764
63765 2007-07-11  Karl Berry  <karl@gnu.org>
63766
63767         * MODULES.html.sh (func_module): use
63768          sed -e '\|^'"${includefile}"'$|d'
63769          instead of /.../d, to avoid errors on $includefile's containing /.
63770
63771 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63772
63773         * gnulib-tool (func_import): Avoid duplication of --avoid
63774         statements
63775         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63776         names to `_' in variable names.
63777
63778 2007-07-10  Eric Blake  <ebb9@byu.net>
63779
63780         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63781         * NEWS: Document this change.
63782
63783 2007-07-08  Bruno Haible  <bruno@clisp.org>
63784
63785         Update to Unicode 5.0.
63786         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63787         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63788         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63789         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63790         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63791         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63792         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63793         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63794         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63795         U+10A3F, U+1D242..U+1D244.
63796         (nonspacing_table_ind): Update.
63797         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63798         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63799
63800 2007-07-08  Bruno Haible  <bruno@clisp.org>
63801
63802         Update to Unicode 5.0.
63803         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63804         code transform. Extend the name index field of unicode_name_to_code and
63805         unicode_code_to_name from 16 to 24 bits.
63806         * lib/uniname/uniname.c (unicode_character_name,
63807         unicode_name_character): Add the range 0x12xxx to the code transform.
63808         * lib/uniname/uninames.h: Regenerated.
63809         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63810
63811 2007-07-07  Bruno Haible  <bruno@clisp.org>
63812
63813         * modules/wcwidth-tests: New file.
63814         * tests/test-wcwidth.c: New file.
63815
63816         Work around MacOS X wcwidth() bug.
63817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63818         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63819         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63820         original wcwidth in non-UTF-8 locales.
63821         * modules/wcwidth (Depends-on): Add localcharset, streq,
63822         uniwidth/width.
63823         * doc/functions/wcwidth.texi: Update.
63824
63825 2007-07-07  Bruno Haible  <bruno@clisp.org>
63826
63827         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63828         (wcwidth): New declaration.
63829         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63830         macros.
63831         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63832         here. Prepare for creating <wchar.h> unconditionally.
63833         * modules/wchar (Depends-on): Add link-warning.
63834         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63835         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63836         * lib/wcwidth.h: Remove file.
63837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63838         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63839         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63840         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63841         (Include): Replace wcwidth.h with <wchar.h>.
63842         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63843         * lib/mbchar.h: Don't include wcwidth.h.
63844         * lib/mbswidth.c: Likewise.
63845         * NEWS: Mention the change.
63846
63847 2007-07-07  Bruno Haible  <bruno@clisp.org>
63848
63849         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63850         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63851         definition with an external declaration.
63852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63853         defined as a function. Remove AC_C_INLINE requirement.
63854         * modules/wcwidth (Files): Add lib/wcwidth.c.
63855         (Makefile.am): Remove redundant statement.
63856
63857 2007-07-07  Bruno Haible  <bruno@clisp.org>
63858
63859         * MODULES.html.sh (Unicode string functions): Add the new modules.
63860
63861         * tests/uniwidth/test-u32-strwidth.c: New file.
63862         * modules/uniwidth/u32-strwidth-tests: New file.
63863
63864         * lib/uniwidth/u32-strwidth.c: New file.
63865         * modules/uniwidth/u32-strwidth: New file.
63866
63867         * tests/uniwidth/test-u16-strwidth.c: New file.
63868         * modules/uniwidth/u16-strwidth-tests: New file.
63869
63870         * lib/uniwidth/u16-strwidth.c: New file.
63871         * modules/uniwidth/u16-strwidth: New file.
63872
63873         * tests/uniwidth/test-u8-strwidth.c: New file.
63874         * modules/uniwidth/u8-strwidth-tests: New file.
63875
63876         * lib/uniwidth/u8-strwidth.c: New file.
63877         * modules/uniwidth/u8-strwidth: New file.
63878
63879         * tests/uniwidth/test-u32-width.c: New file.
63880         * modules/uniwidth/u32-width-tests: New file.
63881
63882         * lib/uniwidth/u32-width.c: New file.
63883         * modules/uniwidth/u32-width: New file.
63884
63885         * tests/uniwidth/test-u16-width.c: New file.
63886         * modules/uniwidth/u16-width-tests: New file.
63887
63888         * lib/uniwidth/u16-width.c: New file.
63889         * modules/uniwidth/u16-width: New file.
63890
63891         * tests/uniwidth/test-u8-width.c: New file.
63892         * modules/uniwidth/u8-width-tests: New file.
63893
63894         * lib/uniwidth/u8-width.c: New file.
63895         * modules/uniwidth/u8-width: New file.
63896
63897         * tests/uniwidth/test-uc_width.c: New file.
63898         * modules/uniwidth/width-tests: New file.
63899
63900         * lib/uniwidth/width.c: New file, from GNU libiconv.
63901         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63902         * modules/uniwidth/width: New file.
63903
63904         * lib/uniwidth.h: New file, from GNU libiconv.
63905         * modules/uniwidth/base: New file.
63906
63907 2007-07-07  Bruno Haible  <bruno@clisp.org>
63908
63909         * lib/uniname.h: New file, from GNU gettext.
63910         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63911         * lib/uniname/uninames.h: New file, from GNU gettext.
63912         * lib/uniname/uniname.c: New file, from GNU gettext.
63913         * tests/uniname/test-uninames.sh: New file.
63914         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63915         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63916         * modules/uniname/base: New file.
63917         * modules/uniname/uniname: New file.
63918         * modules/uniname/uniname-tests: New file.
63919         * MODULES.html.sh (Unicode string functions): Add the new modules.
63920
63921 2007-07-06  Bruno Haible  <bruno@clisp.org>
63922
63923         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63924
63925 2007-07-06  Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63928         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63929         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63930         include <sys/time.h>.
63931         Reported by Eric Blake.
63932
63933 2007-07-06  Eric Blake  <ebb9@byu.net>
63934
63935         Fix testing canonicalize on cygwin.
63936         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63937         Revert patch from 2007-06-19.
63938         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63939         canonicalize module is also in use.
63940         * tests/test-canonicalize.c: New file.
63941         * tests/test-canonicalize.sh: Likewise.
63942         * modules/canonicalize-tests: Likewise.
63943
63944 2007-07-06  Jim Meyering  <jim@meyering.net>
63945
63946         * lib/getugroups.c (getugroups): Detect getgrent failure.
63947         Adjust comment to reflect reality: this function may return -1.
63948
63949 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63950
63951         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63952         the new TP address.
63953         (usage): Fix typo
63954         (gnulib_mk): New variable.
63955
63956 2007-07-05  Jim Meyering  <jim@meyering.net>
63957
63958         Don't let endgrent clobber errno, no matter how improbable.
63959         * lib/getugroups.c (getugroups): Save and restore errno around
63960         endgrent call.
63961
63962         Close the group DB even when failing with 2^31 or more members.
63963         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63964
63965 2007-07-04  Jim Meyering  <jim@meyering.net>
63966
63967         * lib/getugroups.h: New file.
63968         * lib/getugroups.c: Include "getugroups.h".
63969         Remove uses of "register" keyword.
63970         Move local variable, "cp", down into scope where used.
63971         Give "username" parameter the "const" attribute.
63972         * modules/getugroups (Files): Add lib/getugroups.h
63973
63974 2007-07-04  Karl Berry  <karl@gnu.org>
63975
63976         * MODULES.html.sh (func_all_modules): Complete rename of
63977         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63978
63979 2007-07-02  Bruno Haible  <bruno@clisp.org>
63980
63981         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63982         mode, when inttypes.h comes from gnulib.
63983         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63984
63985 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63986
63987         * NEWS: Mention lgpl module name change.
63988
63989         * modules/lgpl-2.1: Renamed from lgpl.
63990
63991         * NEWS: Mention gpl module name change.
63992
63993         * modules/gpl-3.0: New file, based on gpl-2.0.
63994
63995         * modules/gpl-2.0: Renamed from gpl.
63996
63997         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63998         doc/gpl-2.0.texi.
63999
64000 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64001
64002         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64003         #define __STDC_LIMIT_MACROS temporarily while including
64004         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64005         Problem reported by Joel E. Denny in
64006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64007
64008 2007-07-01  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/unistdio.h: New file.
64011         * lib/unistdio/u-asnprintf.h: New file.
64012         * lib/unistdio/u-asprintf.h: New file.
64013         * lib/unistdio/u-printf-args.c: New file.
64014         * lib/unistdio/u-printf-args.h: New file.
64015         * lib/unistdio/u-printf-parse.h: New file.
64016         * lib/unistdio/u-snprintf.h: New file.
64017         * lib/unistdio/u-sprintf.h: New file.
64018         * lib/unistdio/u-vasprintf.h: New file.
64019         * lib/unistdio/u-vsnprintf.h: New file.
64020         * lib/unistdio/u-vsprintf.h: New file.
64021         * lib/unistdio/ulc-asnprintf.c: New file.
64022         * lib/unistdio/ulc-asprintf.c: New file.
64023         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64024         * lib/unistdio/ulc-printf-parse.c: New file.
64025         * lib/unistdio/ulc-snprintf.c: New file.
64026         * lib/unistdio/ulc-sprintf.c: New file.
64027         * lib/unistdio/ulc-vasnprintf.c: New file.
64028         * lib/unistdio/ulc-vasprintf.c: New file.
64029         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64030         * lib/unistdio/ulc-vsnprintf.c: New file.
64031         * lib/unistdio/ulc-vsprintf.c: New file.
64032         * lib/unistdio/u8-asnprintf.c: New file.
64033         * lib/unistdio/u8-asprintf.c: New file.
64034         * lib/unistdio/u8-printf-parse.c: New file.
64035         * lib/unistdio/u8-snprintf.c: New file.
64036         * lib/unistdio/u8-sprintf.c: New file.
64037         * lib/unistdio/u8-vasnprintf.c: New file.
64038         * lib/unistdio/u8-vasprintf.c: New file.
64039         * lib/unistdio/u8-vsnprintf.c: New file.
64040         * lib/unistdio/u8-vsprintf.c: New file.
64041         * lib/unistdio/u8-u8-asnprintf.c: New file.
64042         * lib/unistdio/u8-u8-asprintf.c: New file.
64043         * lib/unistdio/u8-u8-snprintf.c: New file.
64044         * lib/unistdio/u8-u8-sprintf.c: New file.
64045         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64046         * lib/unistdio/u8-u8-vasprintf.c: New file.
64047         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64048         * lib/unistdio/u8-u8-vsprintf.c: New file.
64049         * lib/unistdio/u16-asnprintf.c: New file.
64050         * lib/unistdio/u16-asprintf.c: New file.
64051         * lib/unistdio/u16-printf-parse.c: New file.
64052         * lib/unistdio/u16-snprintf.c: New file.
64053         * lib/unistdio/u16-sprintf.c: New file.
64054         * lib/unistdio/u16-vasnprintf.c: New file.
64055         * lib/unistdio/u16-vasprintf.c: New file.
64056         * lib/unistdio/u16-vsnprintf.c: New file.
64057         * lib/unistdio/u16-vsprintf.c: New file.
64058         * lib/unistdio/u16-u16-asnprintf.c: New file.
64059         * lib/unistdio/u16-u16-asprintf.c: New file.
64060         * lib/unistdio/u16-u16-snprintf.c: New file.
64061         * lib/unistdio/u16-u16-sprintf.c: New file.
64062         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64063         * lib/unistdio/u16-u16-vasprintf.c: New file.
64064         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64065         * lib/unistdio/u16-u16-vsprintf.c: New file.
64066         * lib/unistdio/u32-asnprintf.c: New file.
64067         * lib/unistdio/u32-asprintf.c: New file.
64068         * lib/unistdio/u32-printf-parse.c: New file.
64069         * lib/unistdio/u32-snprintf.c: New file.
64070         * lib/unistdio/u32-sprintf.c: New file.
64071         * lib/unistdio/u32-vasnprintf.c: New file.
64072         * lib/unistdio/u32-vasprintf.c: New file.
64073         * lib/unistdio/u32-vsnprintf.c: New file.
64074         * lib/unistdio/u32-vsprintf.c: New file.
64075         * lib/unistdio/u32-u32-asnprintf.c: New file.
64076         * lib/unistdio/u32-u32-asprintf.c: New file.
64077         * lib/unistdio/u32-u32-snprintf.c: New file.
64078         * lib/unistdio/u32-u32-sprintf.c: New file.
64079         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64080         * lib/unistdio/u32-u32-vasprintf.c: New file.
64081         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64082         * lib/unistdio/u32-u32-vsprintf.c: New file.
64083         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64084         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64085         * tests/unistdio/test-ulc-printf1.h: New file.
64086         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64087         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64088         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64089         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64090         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64091         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64092         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64093         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64094         * tests/unistdio/test-u8-asnprintf1.c: New file.
64095         * tests/unistdio/test-u8-asnprintf1.h: New file.
64096         * tests/unistdio/test-u8-printf1.h: New file.
64097         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64098         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64099         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64100         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64101         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64102         * tests/unistdio/test-u8-vasprintf1.c: New file.
64103         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64104         * tests/unistdio/test-u8-vsprintf1.c: New file.
64105         * tests/unistdio/test-u16-asnprintf1.c: New file.
64106         * tests/unistdio/test-u16-asnprintf1.h: New file.
64107         * tests/unistdio/test-u16-printf1.h: New file.
64108         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64109         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64110         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64111         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64112         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64113         * tests/unistdio/test-u16-vasprintf1.c: New file.
64114         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64115         * tests/unistdio/test-u16-vsprintf1.c: New file.
64116         * tests/unistdio/test-u32-asnprintf1.c: New file.
64117         * tests/unistdio/test-u32-asnprintf1.h: New file.
64118         * tests/unistdio/test-u32-printf1.h: New file.
64119         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64120         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64121         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64122         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64123         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64124         * tests/unistdio/test-u32-vasprintf1.c: New file.
64125         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64126         * tests/unistdio/test-u32-vsprintf1.c: New file.
64127         * modules/unistdio/base: New file.
64128         * modules/unistdio/u-printf-args: New file.
64129         * modules/unistdio/ulc-asnprintf: New file.
64130         * modules/unistdio/ulc-asprintf: New file.
64131         * modules/unistdio/ulc-fprintf: New file.
64132         * modules/unistdio/ulc-printf-parse: New file.
64133         * modules/unistdio/ulc-snprintf: New file.
64134         * modules/unistdio/ulc-sprintf: New file.
64135         * modules/unistdio/ulc-vasnprintf: New file.
64136         * modules/unistdio/ulc-vasprintf: New file.
64137         * modules/unistdio/ulc-vfprintf: New file.
64138         * modules/unistdio/ulc-vsnprintf: New file.
64139         * modules/unistdio/ulc-vsprintf: New file.
64140         * modules/unistdio/u8-asnprintf: New file.
64141         * modules/unistdio/u8-asprintf: New file.
64142         * modules/unistdio/u8-printf-parse: New file.
64143         * modules/unistdio/u8-snprintf: New file.
64144         * modules/unistdio/u8-sprintf: New file.
64145         * modules/unistdio/u8-vasnprintf: New file.
64146         * modules/unistdio/u8-vasprintf: New file.
64147         * modules/unistdio/u8-vsnprintf: New file.
64148         * modules/unistdio/u8-vsprintf: New file.
64149         * modules/unistdio/u8-u8-asnprintf: New file.
64150         * modules/unistdio/u8-u8-asprintf: New file.
64151         * modules/unistdio/u8-u8-snprintf: New file.
64152         * modules/unistdio/u8-u8-sprintf: New file.
64153         * modules/unistdio/u8-u8-vasnprintf: New file.
64154         * modules/unistdio/u8-u8-vasprintf: New file.
64155         * modules/unistdio/u8-u8-vsnprintf: New file.
64156         * modules/unistdio/u8-u8-vsprintf: New file.
64157         * modules/unistdio/u16-asnprintf: New file.
64158         * modules/unistdio/u16-asprintf: New file.
64159         * modules/unistdio/u16-printf-parse: New file.
64160         * modules/unistdio/u16-snprintf: New file.
64161         * modules/unistdio/u16-sprintf: New file.
64162         * modules/unistdio/u16-vasnprintf: New file.
64163         * modules/unistdio/u16-vasprintf: New file.
64164         * modules/unistdio/u16-vsnprintf: New file.
64165         * modules/unistdio/u16-vsprintf: New file.
64166         * modules/unistdio/u16-u16-asnprintf: New file.
64167         * modules/unistdio/u16-u16-asprintf: New file.
64168         * modules/unistdio/u16-u16-snprintf: New file.
64169         * modules/unistdio/u16-u16-sprintf: New file.
64170         * modules/unistdio/u16-u16-vasnprintf: New file.
64171         * modules/unistdio/u16-u16-vasprintf: New file.
64172         * modules/unistdio/u16-u16-vsnprintf: New file.
64173         * modules/unistdio/u16-u16-vsprintf: New file.
64174         * modules/unistdio/u32-asnprintf: New file.
64175         * modules/unistdio/u32-asprintf: New file.
64176         * modules/unistdio/u32-printf-parse: New file.
64177         * modules/unistdio/u32-snprintf: New file.
64178         * modules/unistdio/u32-sprintf: New file.
64179         * modules/unistdio/u32-vasnprintf: New file.
64180         * modules/unistdio/u32-vasprintf: New file.
64181         * modules/unistdio/u32-vsnprintf: New file.
64182         * modules/unistdio/u32-vsprintf: New file.
64183         * modules/unistdio/u32-u32-asnprintf: New file.
64184         * modules/unistdio/u32-u32-asprintf: New file.
64185         * modules/unistdio/u32-u32-snprintf: New file.
64186         * modules/unistdio/u32-u32-sprintf: New file.
64187         * modules/unistdio/u32-u32-vasnprintf: New file.
64188         * modules/unistdio/u32-u32-vasprintf: New file.
64189         * modules/unistdio/u32-u32-vsnprintf: New file.
64190         * modules/unistdio/u32-u32-vsprintf: New file.
64191         * modules/unistdio/ulc-asnprintf-tests: New file.
64192         * modules/unistdio/ulc-vasnprintf-tests: New file.
64193         * modules/unistdio/ulc-vasprintf-tests: New file.
64194         * modules/unistdio/ulc-vsnprintf-tests: New file.
64195         * modules/unistdio/ulc-vsprintf-tests: New file.
64196         * modules/unistdio/u8-asnprintf-tests: New file.
64197         * modules/unistdio/u8-vasnprintf-tests: New file.
64198         * modules/unistdio/u8-vasprintf-tests: New file.
64199         * modules/unistdio/u8-vsnprintf-tests: New file.
64200         * modules/unistdio/u8-vsprintf-tests: New file.
64201         * modules/unistdio/u16-asnprintf-tests: New file.
64202         * modules/unistdio/u16-vasnprintf-tests: New file.
64203         * modules/unistdio/u16-vasprintf-tests: New file.
64204         * modules/unistdio/u16-vsnprintf-tests: New file.
64205         * modules/unistdio/u16-vsprintf-tests: New file.
64206         * modules/unistdio/u32-asnprintf-tests: New file.
64207         * modules/unistdio/u32-vasnprintf-tests: New file.
64208         * modules/unistdio/u32-vasprintf-tests: New file.
64209         * modules/unistdio/u32-vsnprintf-tests: New file.
64210         * modules/unistdio/u32-vsprintf-tests: New file.
64211         * MODULES.html.sh (Unicode string functions): Add the new modules.
64212
64213 2007-07-01  Bruno Haible  <bruno@clisp.org>
64214
64215         * lib/sprintf.c (sprintf): Limit the available length estimation,
64216         to avoid address wraparound.
64217         * lib/vsprintf.c (vsprintf): Likewise.
64218         * modules/sprintf-posix (Dependencies): Add stdint.
64219         * modules/vsprintf-posix (Dependencies): Likewise.
64220
64221 2007-07-01  Bruno Haible  <bruno@clisp.org>
64222
64223         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64224         Windows PATH as well. Conservative double-quoting. Comments.
64225
64226 2007-07-01  Bruno Haible  <bruno@clisp.org>
64227             Eric Blake  <ebb9@byu.net>
64228             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64229
64230         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64231         empty components in $PATH, denoting '.'.
64232
64233 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64234
64235         * gnulib-tool: Fix indentation.
64236         (func_create_megatestdir): Likewise.
64237         Report by Bruno Haible.
64238
64239 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64240
64241         Sync from Automake.
64242         * build-aux/gnupload: Fix shell portability issues with for loops.
64243         Report by Karl Berry.
64244
64245 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64246
64247         * build-aux/maint.mk (POURL): Use translationproject.org.
64248
64249 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64250             Bruno Haible  <bruno@clisp.org>
64251
64252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64253         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64254         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64255         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64256         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64257
64258 2007-06-27  Bruno Haible  <bruno@clisp.org>
64259
64260         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64261         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64262
64263 2007-06-26  Karl Berry  <karl@gnu.org>
64264
64265         * MODULES.html.sh: remove xreadlink-with-size.
64266
64267 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64270         method that I hope also handles the double-include problem noted
64271         by Bruno Haible in
64272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64273
64274 2007-06-23  Bruno Haible  <bruno@clisp.org>
64275
64276         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64277         Don't let the 'mostlyclean' target fail if the last subdirectory could
64278         not be removed.
64279         Reported by Karl Berry.
64280
64281 2007-06-23  Bruno Haible  <bruno@clisp.org>
64282
64283         * gnulib-tool (echo): Add a speedier workaround for ksh.
64284         * tests/test-echo.sh: Likewise.
64285
64286 2007-06-23  Bruno Haible  <bruno@clisp.org>
64287
64288         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64289         * tests/test-echo.sh: Likewise.
64290
64291 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64292
64293         * gnulib-tool (IFS): Initialize early, so we don't set it to
64294         empty later.
64295         (self_abspathname): Rewrite algorithm to set it, reindent.
64296         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64297         (func_create_megatestdir): Merge some sed scripts.
64298
64299 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64300
64301         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64302         exposed by Sun Studio 11 cc on Solaris 8.
64303
64304 2007-06-22  Bruno Haible  <bruno@clisp.org>
64305
64306         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64307         backslashes.
64308         * tests/test-echo.sh: New file.
64309
64310 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64311
64312         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64313         simplify `sed_replace_build_aux' scripts, they are portable but
64314         echoing them with `echo' is not.
64315         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64316
64317 2007-06-21  Karl Berry  <karl@gnu.org>
64318
64319         * config/srclist.txt: guess we can't handle the licenses via
64320         srclist at the moment.
64321
64322 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         * MODULES.html.sh: Add include_next.
64325         * modules/include_next: New file.
64326
64327 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64328
64329         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64330         INCLUDE_NEXT.
64331         (gl_CHECK_NEXT_HEADERS): New macro.
64332         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64333         the obsolescent gl_ABSOLUTE_HEADER.
64334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64335         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64336         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64337         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64338         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64339         * m4/math_h.m4 (gl_MATH_H): Likewise.
64340         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64341         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64342         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64343         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64344         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64345         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64346         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64350         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64351         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64352         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64353         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64354         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64355         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64356         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64357         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64358         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64359         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64360         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64361         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64362         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64363         * lib/float_.h: Likewise.
64364         * lib/inttypes_.h: Likewise.
64365         * lib/math_.h: Likewise.
64366         * lib/search_.h: Likewise.
64367         * lib/signal_.h: Likewise.
64368         * lib/stdint_.h: Likewise.
64369         * lib/stdio_.h: Likewise.
64370         * lib/stdlib_.h: Likewise.
64371         * lib/string_.h: Likewise.
64372         * lib/sys_stat_.h: Likewise.
64373         * lib/sys_time_.h: Likewise.
64374         * lib/time_.h: Likewise.
64375         * lib/unistd_.h: Likewise.
64376         * lib/wchar_.h: Likewise.
64377         * lib/wctype_.h: Likewise.
64378         * lib/dirent_.h: Likewise.
64379         * lib/iconv_.h: Likewise.
64380         * lib/locale_.h: Likewise.
64381         * lib/netinet_in_.h: Likewise.
64382         * lib/sys_select_.h: Likewise.
64383         * lib/sys_socket_.h: Likewise.
64384         * lib/sysexits_.h: Likewise.
64385         * modules/fcntl (Depends-on): Depend on include_next, not
64386         absolute_header.
64387         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64388         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64389         * modules/fchdir: Likewise.
64390         * modules/float: Likewise.
64391         * modules/iconv_open: Likewise.
64392         * modules/inttypes: Likewise.
64393         * modules/locale: Likewise.
64394         * modules/math: Likewise.
64395         * modules/netinet_in: Likewise.
64396         * modules/search: Likewise.
64397         * modules/signal: Likewise.
64398         * modules/stdint: Likewise.
64399         * modules/stdio: Likewise.
64400         * modules/stdlib: Likewise.
64401         * modules/string: Likewise.
64402         * modules/sys_select: Likewise.
64403         * modules/sys_socket: Likewise.
64404         * modules/sys_stat: Likewise.
64405         * modules/sys_time: Likewise.
64406         * modules/sysexits: Likewise.
64407         * modules/time: Likewise.
64408         * modules/unistd: Likewise.
64409         * modules/wchar: Likewise.
64410         * modules/wctype: Likewise.
64411         * modules/sys_stat: Change maintainer to "all".
64412         * modules/unistd: Likewise.
64413
64414 2007-06-20  Karl Berry  <karl@gnu.org>
64415
64416         * config/srclist.txt: track www changes in license files.
64417
64418 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64419
64420         * build-aux/bootstrap: Remove stray dot.
64421         Make sure build_aux settings are honored when linking
64422         gnulib_extra_files.
64423
64424 2007-06-19  Eric Blake  <ebb9@byu.net>
64425
64426         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64427         Allow compilation on cygwin.
64428
64429 2007-06-19  Jim Meyering  <jim@meyering.net>
64430
64431         xreadlink-with-size: Remove module.  No longer used.
64432         Ex-callers now use xreadlink or mreadlink-with-size.
64433         * modules/xreadlink-with-size: Remove module.
64434         * lib/xreadlink-with-size.c: Remove file.
64435         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64436         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64437         just before the function definition *is* accurate.
64438
64439         Eliminate one way canonicalize_filename_mode could exit.
64440         * lib/canonicalize.c (canonicalize_filename_mode):
64441         Use mreadlink_with_size, not xreadlink_with_size.
64442
64443 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64444
64445         Detect porting problems to FreeBSD/arm, which has time_t wider than
64446         long int.  Original problem reported for GNU diff by Xin Li in
64447         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64448         * modules/getdate (Depends-on): Add intprops, verify.
64449         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64450         is an integer type no wider than long int.
64451
64452 2007-06-18  Jim Meyering  <jim@meyering.net>
64453
64454         New module: mreadlink-with-size.
64455         * MODULES.html.sh: Add mreadlink-with-size.
64456         * modules/mreadlink-with-size: New module
64457         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64458         not xreadlink-with-size.
64459         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64460
64461 2007-06-16  Bruno Haible  <bruno@clisp.org>
64462
64463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64464         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64465         Reported by Gary V. Vaughan <gary@gnu.org>.
64466
64467 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         Revamp lchown so that it lives in unistd.h where it belongs.
64470         * lib/lchown.h: Remove.
64471         * lib/dirchownmod.c: Don't include lib/lchown.h.
64472         * lib/fchownat.c: Likewise.
64473         * lib/openat.c: Likewise.
64474         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64475         does not follow symlinks.
64476         (EOPNOTSUPP): Define if not defined.
64477         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64478         is defined to 0.
64479         (lchown): New decl.
64480         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64481         Do not check for lchown decl.
64482         Set REPLACE_LCHOWN.
64483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64484         REPLACE_LCHOWN.
64485         * modules/chown: Make it clear it follows symlinks.
64486         * modules/lchown: Make it clear it doesn't follow symlinks.
64487         (Files): Remove lib/lchown.h
64488         (Depends-on): Add unistd.
64489         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64490         (Include): Include <unistd.h>, not "lchown.h".
64491         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64492         REPLACE_LCHOWN.
64493
64494 2007-06-15  Jim Meyering  <jim@meyering.net>
64495
64496         Change license (GPL to LGPL) of fsusage and dependents.
64497         * modules/fsusage (License): Change to LGPL.
64498         * modules/full-read (License): Likewise.
64499         * modules/full-write (License): Likewise.
64500         * modules/safe-read (License): Likewise.
64501         * modules/safe-write (License): Likewise.
64502
64503 2007-06-14  Ben Pfaff  <blp@gnu.org>
64504
64505         Missing part of allocsa -> malloca transition.
64506         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64507         gl_MALLOCA.
64508
64509 2007-06-12  Bruno Haible  <bruno@clisp.org>
64510
64511         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64512         to ia64, x86_64, i386.
64513         Reported by Eric Blake.
64514
64515 2007-06-12  Bruno Haible  <bruno@clisp.org>
64516
64517         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64518         cross-compiling to x86_64.
64519
64520 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64523         glitch reported by Ralf Wildenhues in
64524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64525
64526         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64527         Vin Shelton.
64528
64529 2007-06-11  Bruno Haible  <bruno@clisp.org>
64530
64531         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64532         replacement string.
64533         Reported by Eric Blake.
64534
64535 2007-06-10  Bruno Haible  <bruno@clisp.org>
64536
64537         Prepare vasnprintf code for use with Unicode strings.
64538         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64539         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64540         TYPE_U32_STRING.
64541         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64542         a_u32_string variants.
64543         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64544         * lib/printf-args.c: Don't include config.h and the specification
64545         header if PRINTF_FETCHARGS is already defined.
64546         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64547         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64548         TYPE_U16_STRING, TYPE_U32_STRING.
64549         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64550         u16_directive, u16_directives, u32_directive, u32_directives): New
64551         types.
64552         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64553         New declarations.
64554         * lib/printf-parse.c: Don't include config.h and the specification
64555         header if PRINTF_PARSE is already defined. Eliminate the set of
64556         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64557         them now. Include c-ctype.h.
64558         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64559         directive and CHAR_T_ONLY_ASCII.
64560         * lib/vasnprintf.c: Don't include config.h and the specification header
64561         if VASNPRINTF is already defined.
64562         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64563         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64564         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64565         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64566         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64567         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64568         code accordingly.
64569         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64570         pad_ourselves also in this case, with the 'c' and 's' directives, and
64571         with a different notion of "width".
64572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64573
64574 2007-06-10  Bruno Haible  <bruno@clisp.org>
64575
64576         * modules/unistr/u32-mbsnlen: New file.
64577         * lib/unistr/u32-mbsnlen.c: New file.
64578
64579         * modules/unistr/u16-mbsnlen: New file.
64580         * lib/unistr/u16-mbsnlen.c: New file.
64581
64582         * modules/unistr/u8-mbsnlen: New file.
64583         * lib/unistr/u8-mbsnlen.c: New file.
64584
64585         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64586         declarations.
64587
64588 2007-06-10  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/string_.h (mbsnlen): New declaration.
64591         * lib/mbsnlen.c: New file.
64592         * m4/mbsnlen.m4: New file.
64593         * modules/mbsnlen: New file.
64594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64595         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64596         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64597
64598 2007-06-10  Bruno Haible  <bruno@clisp.org>
64599
64600         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64601
64602 2007-06-10  Bruno Haible  <bruno@clisp.org>
64603
64604         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64605         * lib/mbuiter.h: Likewise.
64606
64607 2007-06-10  Bruno Haible  <bruno@clisp.org>
64608
64609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64610         declaration.
64611
64612 2007-06-10  Karl Berry  <karl@gnu.org>
64613
64614         * config/srclist.txt: remove gettext entries, Bruno prefers
64615         to update individually.
64616
64617 2007-06-10  Bruno Haible  <bruno@clisp.org>
64618
64619         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64620         'maxlen'. Ensure only length + width bytes are allocated, not
64621         length + 1 + width.
64622
64623 2007-06-09  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64626         (CHAR_T): Remove macro.
64627         (VASNPRINTF): Update.
64628
64629 2007-06-09  Bruno Haible  <bruno@clisp.org>
64630
64631         * MODULES.html.sh (Unicode string functions): Add the new modules.
64632
64633         * modules/uniconv/u32-conv-to-enc: New file.
64634         * lib/uniconv/u32-conv-to-enc.c: New file.
64635         * modules/uniconv/u32-conv-to-enc-tests: New file.
64636         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64637
64638         * modules/uniconv/u16-conv-to-enc: New file.
64639         * lib/uniconv/u16-conv-to-enc.c: New file.
64640         * lib/uniconv/u-conv-to-enc.h: New file.
64641         * modules/uniconv/u16-conv-to-enc-tests: New file.
64642         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64643
64644         * modules/uniconv/u8-conv-to-enc: New file.
64645         * lib/uniconv/u8-conv-to-enc.c: New file.
64646         * modules/uniconv/u8-conv-to-enc-tests: New file.
64647         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64648
64649         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64650         u32_conv_to_encoding): New declarations.
64651
64652 2007-06-09  Bruno Haible  <bruno@clisp.org>
64653
64654         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64655
64656 2007-06-09  Bruno Haible  <bruno@clisp.org>
64657
64658         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64659         * modules/malloca: Renamed from modules/allocsa, updated.
64660         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64661         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64662         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64663         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64664         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64665         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64666         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64667         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64668         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64669         * modules/c-strcasestr (Depends-on): Update.
64670         * lib/c-strcasestr.c: Update.
64671         * modules/c-strstr (Depends-on): Update.
64672         * lib/c-strstr.c: Update.
64673         * modules/canonicalize-lgpl (Depends-on): Update.
64674         * lib/canonicalize-lgpl.c: Update.
64675         * modules/clean-temp (Depends-on): Update.
64676         * lib/clean-temp.c: Update.
64677         * modules/csharpcomp (Depends-on): Update.
64678         * lib/csharpcomp.c: Update.
64679         * modules/csharpexec (Depends-on): Update.
64680         * lib/csharpexec.c: Update.
64681         * modules/javacomp (Depends-on): Update.
64682         * lib/javacomp.c: Update.
64683         * modules/javaexec (Depends-on): Update.
64684         * lib/javaexec.c: Update.
64685         * modules/mbscasestr (Depends-on): Update.
64686         * lib/mbscasestr.c: Update.
64687         * modules/mbsstr (Depends-on): Update.
64688         * lib/mbsstr.c: Update.
64689         * modules/setenv (Depends-on): Update.
64690         * lib/setenv.c: Update.
64691         * modules/strcasestr (Depends-on): Update.
64692         * lib/strcasestr.c: Update.
64693         * modules/striconveha (Depends-on): Update.
64694         * lib/striconveha.c: Update.
64695         * modules/relocatable-prog-wrapper (Files): Update.
64696         * lib/relocwrapper.c: Update.
64697         * build-aux/install-reloc: Update.
64698         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64699
64700 2007-06-08  Bruno Haible  <bruno@clisp.org>
64701
64702         Port to uClibc.
64703         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64704         * lib/fpurge.c (fpurge): Likewise.
64705         * lib/freading.c (freading): Likewise.
64706         * lib/fseeko.c (rpl_fseeko): Likewise.
64707         * lib/fseterr.c (fseterr): Likewise.
64708         * lib/fwriting.c (fwriting): Likewise.
64709         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64710
64711 2007-06-08  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64714         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64715         * modules/gettext (Files): Add m4/intlmacosx.m4.
64716
64717 2007-06-07  Bruno Haible  <bruno@clisp.org>
64718
64719         * modules/localename-tests: New file.
64720         * tests/test-localename.c: New file.
64721
64722         New module 'localename'.
64723         * lib/localename.h: New file.
64724         * lib/localename.c: New file, from GNU gettext.
64725         * m4/localename.m4: New file.
64726         * modules/localename: New file.
64727
64728 2007-06-07  Bruno Haible  <bruno@clisp.org>
64729
64730         Work around the lack of <wchar.h> on some builds of uClibc.
64731         * doc/headers/wchar.texi: Update.
64732         * lib/wchar_.h: Include <wchar.h> only if it exists.
64733         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64734         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64735         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64736         doesn't exist.
64737         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64738         * modules/mbfile (Depends-on): Add wchar.
64739         * modules/mbiter (Depends-on): Likewise.
64740         * modules/mbuiter (Depends-on): Likewise.
64741         Reported by Simon Josefsson.
64742
64743 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         Work around problem reported by Steven M. Schweda in
64746         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64747         Tru64 5.1B with the Compaq compiler environment installed declares
64748         an 'isblank' function but does not define it in the C library.
64749         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64750         * lib/regex_internal.h (isblank): Likewise.
64751         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64752         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64753
64754 2007-06-05  Bruno Haible  <bruno@clisp.org>
64755
64756         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64757         ia64.
64758         * modules/printf-safe: New file.
64759         * modules/fprintf-posix (Depends-on): Add printf-safe.
64760         * modules/printf-posix (Depends-on): Likewise.
64761         * modules/snprintf-posix (Depends-on): Likewise.
64762         * modules/sprintf-posix (Depends-on): Likewise.
64763         * modules/vasnprintf-posix (Depends-on): Likewise.
64764         * modules/vasprintf-posix (Depends-on): Likewise.
64765         * modules/vfprintf-posix (Depends-on): Likewise.
64766         * modules/vprintf-posix (Depends-on): Likewise.
64767         * modules/vsnprintf-posix (Depends-on): Likewise.
64768         * modules/vsprintf-posix (Depends-on): Likewise.
64769         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64770         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64771         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64772         "no" on i386, x86_64, ia64.
64773         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
64777         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64778         on i386, x86_64, ia64.
64779         * tests/test-vasnprintf-posix.c: Include float.h.
64780         (LDBL80_WORDS): New macro.
64781         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64782         on i386, x86_64, ia64.
64783         * tests/test-vasprintf-posix.c: Include float.h.
64784         (LDBL80_WORDS): New macro.
64785         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64786         on i386, x86_64, ia64.
64787         * tests/test-snprintf-posix.c: Include float.h.
64788         * tests/test-sprintf-posix.c: Likewise.
64789         * tests/test-vsnprintf-posix.c: Likewise.
64790         * tests/test-vsprintf-posix.c: Likewise.
64791
64792 2007-06-05  Bruno Haible  <bruno@clisp.org>
64793
64794         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64796         non-IEEE numbers on i386, x86_64, ia64.
64797         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64798         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64799         * tests/test-isnanl.h: Include float.h.
64800         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64801
64802 2007-06-05  Bruno Haible  <bruno@clisp.org>
64803
64804         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64805         also the %a / %A. Handle the %a / %A code before this extra handling.
64806
64807 2007-06-05  Bruno Haible  <bruno@clisp.org>
64808
64809         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64810         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64811
64812 2007-06-05  Bruno Haible  <bruno@clisp.org>
64813
64814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64815         typo in variable name.
64816
64817 2007-06-05  Eric Blake  <ebb9@byu.net>
64818
64819         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64820         Reported by Simon Josefsson.
64821
64822 2007-06-04  Bruno Haible  <bruno@clisp.org>
64823
64824         Avoid test failures on some PowerPC platforms.
64825         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64826         Define differently for PowerPC.
64827         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64828         Reported by Gary V. Vaughan <gary@gnu.org>.
64829
64830 2007-06-02  Bruno Haible  <bruno@clisp.org>
64831
64832         Fix test-stdint failure on FreeBSD/ia64.
64833         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64834         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64835         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64836         * doc/headers/stdint.texi: Update.
64837
64838 2007-06-01  Bruno Haible  <bruno@clisp.org>
64839
64840         * tests/test-binary-io.c (main): Pass a third argument to open().
64841         Reported by Gary V. Vaughan <gary@gnu.org>.
64842
64843 2007-06-01  Bruno Haible  <bruno@clisp.org>
64844
64845         * doc/functions/frexpl.texi: Update for mingw.
64846
64847 2007-06-01  Bruno Haible  <bruno@clisp.org>
64848
64849         * tests/test-lseek.c (main): Disable test of errno for invalid third
64850         argument.
64851         * doc/functions/lseek.texi: Update.
64852         Reported by Gary V. Vaughan <gary@gnu.org>.
64853
64854 2007-05-28  Bruno Haible  <bruno@clisp.org>
64855
64856         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64857
64858 2007-05-31  Eric Blake  <ebb9@byu.net>
64859
64860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64861         cross compiling.
64862
64863 2007-05-30  Eric Blake  <ebb9@byu.net>
64864         and Bruno Haible  <bruno@clisp.org>
64865
64866         Work around mingw test failures exposed by m4-1.4.9b.
64867         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64868         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64869         moment.
64870
64871 2007-05-30  Bruno Haible  <bruno@clisp.org>
64872
64873         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64874         assuming that they are closed. Needed on HP-UX 11.
64875
64876 2007-05-29  Bruno Haible  <bruno@clisp.org>
64877
64878         Fix a problem with #include_next.
64879         * lib/dirent_.h: Split the double-inclusion guard.
64880         * lib/fcntl_.h: Likewise.
64881         * lib/float_.h: Likewise.
64882         * lib/iconv_.h: Likewise.
64883         * lib/inttypes_.h: Likewise.
64884         * lib/locale_.h: Likewise.
64885         * lib/math_.h: Likewise.
64886         * lib/netinet_in_.h: Likewise.
64887         * lib/search_.h: Likewise.
64888         * lib/signal_.h: Likewise.
64889         * lib/stdint_.h: Likewise.
64890         * lib/stdio_.h: Likewise.
64891         * lib/stdlib_.h: Likewise.
64892         * lib/string_.h: Likewise.
64893         * lib/sys_select_.h: Likewise.
64894         * lib/sys_socket_.h: Likewise.
64895         * lib/sys_stat_.h: Likewise.
64896         * lib/sys_time_.h: Likewise.
64897         * lib/sysexits_.h: Likewise.
64898         * lib/time_.h: Likewise.
64899         * lib/unistd_.h: Likewise.
64900         * lib/wchar_.h: Likewise.
64901         * lib/wctype_.h: Likewise.
64902
64903 2007-05-29  Bruno Haible  <bruno@clisp.org>
64904
64905         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64906         for the moment.
64907
64908 2007-05-29  Bruno Haible  <bruno@clisp.org>
64909
64910         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64911         invocation.
64912         Reported by Eric Blake.
64913
64914 2007-05-29  Bruno Haible  <bruno@clisp.org>
64915
64916         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64917         compiling case.
64918
64919 2007-05-29  Eric Blake  <ebb9@byu.net>
64920             Bruno Haible  <bruno@clisp.org>
64921
64922         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64923         cross compiles.
64924
64925 2007-05-28  Eric Blake  <ebb9@byu.net>
64926
64927         * modules/closein-tests (test_closein_LDADD): Support test on
64928         cygwin with libtool.
64929
64930 2007-05-28  Bruno Haible  <bruno@clisp.org>
64931
64932         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64933         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64934         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64935         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64936         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64937         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64938         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64939         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64940         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64941
64942 2007-05-28  Eric Blake  <ebb9@byu.net>
64943
64944         Unconditionally include <config.h> in unit tests.
64945         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64946         * tests/test-allocsa.c, tests/test-arcfour.c,
64947         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64948         tests/test-array_list.c, tests/test-array_oset.c,
64949         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64950         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64951         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64952         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64953         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64954         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64955         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64956         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64957         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64958         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64959         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64960         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64961         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64962         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64963         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64964         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64965         test-md5.c, test-memmem.c, test-printf-posix.c,
64966         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64967         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64968         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64969         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64970         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64971         test-vasnprintf-posix2.c, test-vasnprintf.c,
64972         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64973         test-vfprintf-posix.c, test-vprintf-posix.c,
64974         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64975         test-xvasprintf.c: Likewise.
64976
64977 2007-05-28  Bruno Haible  <bruno@clisp.org>
64978
64979         * gnulib-tool (func_import): Remember the --with-tests command-line
64980         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64981         Reported by Eric Blake.
64982
64983 2007-05-28  Bruno Haible  <bruno@clisp.org>
64984
64985         * modules/ftell-tests: New file.
64986         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64987         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64988
64989         * lib/ftell.c: New file.
64990         * modules/ftell: New file.
64991         * m4/ftell.m4: New file.
64992         * doc/functions/ftell.texi: Update.
64993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64994         REPLACE_FTELL.
64995         * lib/stdio_.h (rpl_ftell): New declaration.
64996         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64997         REPLACE_FTELL.
64998
64999 2007-05-28  Eric Blake  <ebb9@byu.net>
65000
65001         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65002
65003 2007-05-28  Bruno Haible  <bruno@clisp.org>
65004
65005         * modules/fseek-tests: New file.
65006         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65007         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65008
65009         * lib/fseek.c: New file.
65010         * modules/fseek: New file.
65011         * m4/fseek.m4: New file.
65012         * doc/functions/fseek.texi: Update.
65013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65014         REPLACE_FSEEK.
65015         * lib/stdio_.h (rpl_fseek): New declaration.
65016         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65017         REPLACE_FSEEK.
65018
65019 2007-05-28  Bruno Haible  <bruno@clisp.org>
65020
65021         * lib/stdio_.h (fflush): More comments.
65022
65023 2007-05-28  Bruno Haible  <bruno@clisp.org>
65024
65025         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65026         runtime test.
65027
65028 2007-05-28  Eric Blake  <ebb9@byu.net>
65029
65030         Improve lseek module.
65031         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65032         * lib/unistd_.h (lseek): Scale back link warning message.
65033         * tests/test-lseek.c: Beef up test.
65034         * tests/test-lseek.sh: Exercise more facets of lseek.
65035         Reported by Bruno Haible.
65036
65037 2007-05-28  Bruno Haible  <bruno@clisp.org>
65038
65039         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65040         to define.
65041
65042 2007-05-27  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65045
65046 2007-05-27  Bruno Haible  <bruno@clisp.org>
65047
65048         * modules/openmp: New file.
65049         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65050         Noah Misch.
65051
65052 2007-05-26  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/chdir-long (Depends-on): Add fchdir.
65055         * modules/chdir-safer (Depends-on): Likewise.
65056         * modules/fts (Depends-on): Likewise.
65057         * modules/fts-lgpl (Depends-on): Likewise.
65058         * modules/openat (Depends-on): Likewise.
65059         * modules/savewd (Depends-on): Likewise.
65060
65061 2007-05-24  Eric Blake  <ebb9@byu.net>
65062
65063         Fix lseek on mingw.
65064         * modules/lseek: New module.
65065         * m4/lseek.m4: New file.
65066         * lib/lseek.c: New file.
65067         * modules/lseek-tests: New file.
65068         * tests/test-lseek.c: New file.
65069         * tests/test-lseek.sh: New file.
65070         * MODULES.html.sh: Document lseek module.
65071         * modules/fflush (Depends-on): Add lseek, fseeko.
65072         * modules/fseeko (Depends-on): Likewise.
65073         * modules/ftello (Depends-on): Likewise.
65074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65075         broken.
65076         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65077         broken.
65078         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65079         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65080         * lib/ftello.c (rpl_ftello): Likewise.
65081         * tests/test-fseeko.c (main): Test this.
65082         * tests/test-fseeko.sh: Likewise.
65083         * tests/test-ftello.c (main): Likewise.
65084         * tests/test-ftello.sh: Likewise.
65085         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65086         implies replacing fseek.
65087         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65088         HAVE_FTELLO.
65089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65090         * modules/unistd (Makefile.am): Likewise.
65091         * lib/unistd_.h (lseek): Declare a replacement.
65092         * doc/functions/lseek.texi (lseek): Document this fix.
65093         * doc/functions/fseek.texi (fseek): Likewise.
65094         * doc/functions/ftell.texi (ftell): Likewise.
65095
65096 2007-05-24  Bruno Haible  <bruno@clisp.org>
65097
65098         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65099         in the printed representation of a NaN.
65100         * tests/test-vasprintf-posix.c (test_function): Likewise.
65101         * tests/test-snprintf-posix.h (test_function): Likewise.
65102         * tests/test-sprintf-posix.h (test_function): Likewise.
65103         Reported by Eric Blake.
65104
65105 2007-05-23  Eric Blake  <ebb9@byu.net>
65106
65107         Fix fseeko/ftello on cygwin 1.5.24.
65108         * doc/functions/fseeko.texi (fseeko): Document the fix.
65109         * doc/functions/ftello.texi (ftello): Document the fix.
65110         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65111         * doc/functions/stdout.text (stdout): New file.
65112         * doc/functions/stderr.text (stderr): New file.
65113         * doc/gnulib.texi (Function Substitutes): Use new files.
65114         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65115         prior to 1.7.0.
65116         * tests/test-ftello.c (main): Likewise for ftello.
65117         * tests/test-fseeko.sh: New file.
65118         * tests/test-ftello.sh: New file.
65119         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65120         with seekable stdin.
65121         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65122         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65123         (gl_REPLACE_FSEEKO): New macro.
65124         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65125         * modules/fseeko (Files): Distribute fseeko.c.
65126         * modules/ftello (Files): Distribute ftello.c.
65127         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65128         mode.
65129         * lib/ftello.c (rpl_ftello): New file.
65130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65131         fseeko, ftello.
65132         (gl_STDIN_LARGE_OFFSET): New macro.
65133         * modules/stdio (Makefile.am): Perform the replacement.
65134         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65135
65136 2007-05-23  Bruno Haible  <bruno@clisp.org>
65137
65138         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65139         GNULIB_POSIXCHECK is defined.
65140
65141 2007-05-21  Bruno Haible  <bruno@clisp.org>
65142
65143         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65144         Check also the output for NaN arguments. When cross-compiling, guess
65145         no on IRIX.
65146         * lib/vasnprintf.c: Update comments.
65147         * tests/test-vasnprintf-posix.c (strisnan): New function.
65148         (test_function): Use it.
65149         * tests/test-vasprintf-posix.c (strisnan): New function.
65150         (test_function): Use it.
65151         * tests/test-snprintf-posix.h (strisnan): New function.
65152         (test_function): Use it.
65153         * tests/test-sprintf-posix.h (strisnan): New function.
65154         (test_function): Use it.
65155         Reported by Eric Blake.
65156
65157 2007-05-20  Bruno Haible  <bruno@clisp.org>
65158
65159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65160         numbers that fails on BeOS.
65161         * doc/functions/frexpl.texi: Update.
65162
65163 2007-05-20  Jim Meyering  <jim@meyering.net>
65164
65165         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65166         forced upon us by glibc-2.6.
65167
65168 2007-05-20  Bruno Haible  <bruno@clisp.org>
65169
65170         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65171         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65172         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65173         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65174         NEED_PRINTF_INFINITE.
65175         (is_infinitel): New function.
65176         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65178         gl_PREREQ_VASNPRINTF_INFINITE.
65179         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65180         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65181         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65182         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65183         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65184         gl_PREREQ_VASNPRINTF_INFINITE.
65185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65192         * doc/functions/fprintf.texi: Update.
65193         * doc/functions/printf.texi: Update.
65194         * doc/functions/snprintf.texi: Update.
65195         * doc/functions/sprintf.texi: Update.
65196         * doc/functions/vfprintf.texi: Update.
65197         * doc/functions/vprintf.texi: Update.
65198         * doc/functions/vsnprintf.texi: Update.
65199         * doc/functions/vsprintf.texi: Update.
65200
65201 2007-05-20  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65204         was not found in libc.
65205         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65206
65207 2007-05-20  Bruno Haible  <bruno@clisp.org>
65208
65209         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65210         printed as "-nan" instead of "nan".
65211         * tests/test-vasprintf-posix.c (test_function): Likewise.
65212         * tests/test-snprintf-posix.h (test_function): Likewise.
65213         * tests/test-sprintf-posix.h (test_function): Likewise.
65214         Needed for HP-UX 11.
65215
65216 2007-05-20  Jim Meyering  <jim@meyering.net>
65217
65218         Fix buggy test for the fchownat-deref bug.
65219         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65220         symlink required for the run-test.  Without it, this test would
65221         always declare that fchownat doesn't work, and client code would
65222         unnecessarily use the replacement function with fixed libc.
65223         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65224         Reported by Greg Schafer.
65225
65226 2007-05-19  Bruno Haible  <bruno@clisp.org>
65227
65228         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65229         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65230         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65231         Needed for IRIX 6.5 and Solaris 2.5.1.
65232
65233 2007-05-19  Bruno Haible  <bruno@clisp.org>
65234
65235         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65236         (test_function): Skip tests involving -0.0 on platforms where
65237         -0.0 = 0.0.
65238         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65239         (test_function): Skip tests involving -0.0 on platforms where
65240         -0.0 = 0.0.
65241         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65242         (test_function): Skip tests involving -0.0 on platforms where
65243         -0.0 = 0.0.
65244         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65245         (test_function): Skip tests involving -0.0 on platforms where
65246         -0.0 = 0.0.
65247         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65248         tests.
65249         * tests/test-printf-posix.h (test_function): Likewise.
65250         * tests/test-printf-posix.output: Remove all -0.0 related results.
65251         Needed for IRIX 6.5.
65252
65253 2007-05-19  Bruno Haible  <bruno@clisp.org>
65254
65255         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65256         printed as "nan0x7fffffff" instead of "nan".
65257         * tests/test-vasprintf-posix.c (test_function): Likewise.
65258         * tests/test-snprintf-posix.h (test_function): Likewise.
65259         * tests/test-sprintf-posix.h (test_function): Likewise.
65260         * tests/test-fprintf-posix.h (NaN): Remove macro.
65261         (test_function): Remove all NaN related tests.
65262         * tests/test-printf-posix.h (NaN): Remove macro.
65263         (test_function): Remove all NaN related tests.
65264         * tests/test-printf-posix.output: Remove all NaN related results.
65265         Needed for IRIX 6.5.
65266
65267 2007-05-19  Bruno Haible  <bruno@clisp.org>
65268
65269         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65270         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65271
65272 2007-05-19  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/float_.h: New file.
65275         * m4/float_h.m4: New file.
65276         * modules/float: New file.
65277         * modules/isnanl (Dependencies): Add float.
65278         * modules/isnanl-nolibm (Dependencies): Likewise.
65279         * modules/mathl (Dependencies): Likewise.
65280         * modules/printf-frexpl (Dependencies): Likewise.
65281         * modules/signbit (Dependencies): Likewise.
65282         * modules/vasnprintf (Dependencies): Likewise.
65283         * doc/headers/float.texi: Update.
65284
65285 2007-05-19  Jim Meyering  <jim@meyering.net>
65286
65287         * lib/utimens.c (gl_futimens): Rename from futimens,
65288         now that glibc-2.6 declares futimens.
65289         * lib/utimens.h: Likewise.
65290
65291 2007-05-19  Bruno Haible  <bruno@clisp.org>
65292
65293         Avoid test failures on mingw.
65294         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65295         * tests/test-printf-posix.sh: Likewise.
65296         * tests/test-vfprintf-posix.sh: Likewise.
65297         * tests/test-vprintf-posix.sh: Likewise.
65298
65299 2007-05-19  Bruno Haible  <bruno@clisp.org>
65300
65301         Fix *printf result for NaN, Inf, -0.0 on mingw.
65302         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65303         * lib/vasnprintf.c: Include math.h and isnan.h.
65304         (is_infinite_or_zero): New function.
65305         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65306         values in the %f, %F, %e, %E, %g, %G directives.
65307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65309         gl_PRINTF_INFINITE and test its result. Invoke
65310         gl_PREREQ_VASNPRINTF_INFINITE.
65311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65318         * doc/functions/fprintf.texi: Update.
65319         * doc/functions/printf.texi: Update.
65320         * doc/functions/snprintf.texi: Update.
65321         * doc/functions/sprintf.texi: Update.
65322         * doc/functions/vfprintf.texi: Update.
65323         * doc/functions/vprintf.texi: Update.
65324         * doc/functions/vsnprintf.texi: Update.
65325         * doc/functions/vsprintf.texi: Update.
65326
65327 2007-05-19  Bruno Haible  <bruno@clisp.org>
65328
65329         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65330         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65331         Instead of multiplying with 10^k, set extra_zeroes to k.
65332         (scale10_round_long_double): Remove function.
65333
65334 2007-05-18  Bruno Haible  <bruno@clisp.org>
65335
65336         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65337         introduced on 2007-05-06.
65338
65339 2007-05-18  Bruno Haible  <bruno@clisp.org>
65340
65341         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65342         %g directives.
65343         * tests/test-vasprintf-posix.c (test_function): Likewise.
65344         * tests/test-snprintf-posix.h (test_function): Likewise.
65345         * tests/test-sprintf-posix.h (test_function): Likewise.
65346
65347 2007-05-18  Bruno Haible  <bruno@clisp.org>
65348
65349         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65350         (strmatch): New function.
65351         (test_function): Test the %f directive on numbers of various exponents.
65352         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65353         (strmatch): New function.
65354         (test_function): Test the %f directive on numbers of various exponents.
65355         * tests/test-snprintf-posix.h (strmatch): New function.
65356         (test_function): Test the %f directive on numbers of various exponents.
65357         * tests/test-sprintf-posix.h (strmatch): New function.
65358         (test_function): Test the %f directive on numbers of various exponents.
65359         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65360         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65361         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65362         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65363
65364 2007-05-18  Bruno Haible  <bruno@clisp.org>
65365
65366         Add support for 'long double' number output.
65367         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65368         * lib/vasnprintf.c: Include math.h and float+.h.
65369         (mp_limb_t): New type.
65370         (GMP_LIMB_BITS): New macro.
65371         (mp_twolimb_t): New type.
65372         (GMP_TWOLIMB_BITS): New macro.
65373         (mpn_t): New type.
65374         (multiply, divide, convert_to_decimal, decode_long_double,
65375         scale10_round_long_double, scale10_round_decimal_long_double,
65376         floorlog10l): New functions.
65377         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65378         for the %f, %F, %e, %E, %g, %G directives.
65379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65381         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65382         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65390         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65391         * modules/snprintf-posix (Depends-on): Likewise.
65392         * modules/sprintf-posix (Depends-on): Likewise.
65393         * modules/vasnprintf-posix (Depends-on): Likewise.
65394         * modules/vasprintf-posix (Depends-on): Likewise.
65395         * modules/vfprintf-posix (Depends-on): Likewise.
65396         * modules/vsnprintf-posix (Depends-on): Likewise.
65397         * modules/vsprintf-posix (Depends-on): Likewise.
65398         * modules/vasnprintf (Files): Add lib/float+.h.
65399         * doc/functions/fprintf.texi: Update.
65400         * doc/functions/printf.texi: Update.
65401         * doc/functions/snprintf.texi: Update.
65402         * doc/functions/sprintf.texi: Update.
65403         * doc/functions/vfprintf.texi: Update.
65404         * doc/functions/vprintf.texi: Update.
65405         * doc/functions/vsnprintf.texi: Update.
65406         * doc/functions/vsprintf.texi: Update.
65407
65408 2007-05-18  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65411
65412 2007-05-18  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65415         for printing 64-bit integers. Needed for mingw.
65416
65417 2007-05-18  Bruno Haible  <bruno@clisp.org>
65418
65419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65420         gl_FUNC_FREXPL_WORKS.
65421         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65422
65423 2007-05-18  Bruno Haible  <bruno@clisp.org>
65424
65425         * modules/frexpl-nolibm-tests: New file.
65426
65427         * modules/frexpl-nolibm: New file.
65428         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65429
65430 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65433         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65434         GCC 4.2, which otherwise issues a lot of warnings.
65435         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65436         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65437         Likewise.
65438         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65439         * modules/iconv_open (iconv.h): Likewise.
65440         * modules/locale (locale.h): Likewise.
65441         * modules/netinet_in (netinet/in.h): Likewise.
65442         * modules/sys_select (sys_select.h): Likewise.
65443         * modules/sys_socket (sys/socket.h): Likewise.
65444         * modules/sys_stat (sys/stat.h): Likewise.
65445         * modules/sysexits (sysexits.h): Likewise.
65446         * modules/unistd (unistd.h): Likewise.
65447
65448 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65449
65450         * modules/closein-tests (Makefile.am): Distribute
65451         `test-closein.sh'.
65452
65453 2007-05-17  Bruno Haible  <bruno@clisp.org>
65454
65455         * tests/test-printf-posix.output: Renamed from
65456         tests/test-fprintf-posix.out.
65457         * modules/fprintf-posix-tests: Update.
65458         * modules/printf-posix-tests: Update.
65459         * modules/vfprintf-posix-tests: Update.
65460         * modules/vprintf-posix-tests: Update.
65461         * tests/test-fprintf-posix.sh: Update.
65462         * tests/test-printf-posix.sh: Update.
65463         * tests/test-vfprintf-posix.sh: Update.
65464         * tests/test-vprintf-posix.sh: Update.
65465         Reported by Ralf Wildenhues.
65466
65467 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65470         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65471         GCC 4.2, which otherwise issues a lot of warnings.
65472         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65473         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65474         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65475         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65476         it should no longer be needed.
65477         * lib/string_.h: Likewise.
65478         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65479         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65480         * modules/inttypes (inttypes.h): Likewise.
65481         * modules/math (math.h): Likewise.
65482         * modules/search (search.h): Likewise.
65483         * modules/signal (signal.h): Likewise.
65484         * modules/stdint (stdint.h): Likewise.
65485         * modules/stdio (stdio.h): Likewise.
65486         * modules/stdlib (stdlib.h): Likewise.
65487         * modules/string (string.h): Likewise.
65488         * modules/sys_time (sys/time.h): Likewise.
65489         * modules/time (time.h): Likewise.
65490         * modules/wchar (wchar.h): Likewise.
65491         * modules/wctype (wtype.h): Likewise.
65492
65493 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65494
65495         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65496
65497 2007-05-13  Bruno Haible  <bruno@clisp.org>
65498
65499         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65500         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65501         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65502         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65503         (gl_PREREQ_STRTOK_R): Don't require it here.
65504
65505 2007-05-13  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65508         when used in C++ mode.
65509
65510 2007-05-12  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/linebuffer.h: Tweak doc.
65513         * lib/linebuffer.c: Likewise.
65514
65515 2007-05-12  James Youngman  <jay@gnu.org>
65516
65517         * lib/linebuffer.c (readlinebuffer_delim): New function,
65518         like readlinebuffer, but use a caller-specified delimiter.
65519         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65520         as the delimiter.
65521         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65522
65523 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65524
65525         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65526         * modules/openat (Files): Remove openat-die.c.
65527         (Depends-on): Add openat-die.
65528         * modules/openat-die: New module.
65529
65530 2007-05-06  Bruno Haible  <bruno@clisp.org>
65531
65532         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65533         Update with info about Cygwin.
65534         * doc/functions/fprintf.texi: Update.
65535         * doc/functions/printf.texi: Update.
65536         * doc/functions/snprintf.texi: Update.
65537         * doc/functions/sprintf.texi: Update.
65538         * doc/functions/vfprintf.texi: Update.
65539         * doc/functions/vprintf.texi: Update.
65540         * doc/functions/vsnprintf.texi: Update.
65541         * doc/functions/vsprintf.texi: Update.
65542         Reported by Eric Blake.
65543
65544 2007-05-06  Bruno Haible  <bruno@clisp.org>
65545
65546         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65547         padding ourselves for the floating-point directives.
65548         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65551         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65552         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65553         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65554         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65559         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65560         * tests/test-snprintf-posix.h (test_function): Also check the width
65561         and some flags in the %f directive.
65562         * tests/test-sprintf-posix.h (test_function): Likewise.
65563         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65564         * tests/test-vasprintf-posix.c (test_function): Likewise.
65565         * doc/functions/fprintf.texi: Update.
65566         * doc/functions/printf.texi: Update.
65567         * doc/functions/snprintf.texi: Update.
65568         * doc/functions/sprintf.texi: Update.
65569         * doc/functions/vfprintf.texi: Update.
65570         * doc/functions/vprintf.texi: Update.
65571         * doc/functions/vsnprintf.texi: Update.
65572         * doc/functions/vsprintf.texi: Update.
65573
65574 2007-05-06  Bruno Haible  <bruno@clisp.org>
65575
65576         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65577         pass the ' flag character to sprintf or snprintf.
65578         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65581         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65582         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65583         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65590         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65591         flag.
65592         * tests/test-sprintf-posix.h (test_function): Likewise.
65593         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65594         * tests/test-vasprintf-posix.c (test_function): Likewise.
65595         * doc/functions/fprintf.texi: Update.
65596         * doc/functions/printf.texi: Update.
65597         * doc/functions/snprintf.texi: Update.
65598         * doc/functions/sprintf.texi: Update.
65599         * doc/functions/vfprintf.texi: Update.
65600         * doc/functions/vprintf.texi: Update.
65601         * doc/functions/vsnprintf.texi: Update.
65602         * doc/functions/vsprintf.texi: Update.
65603
65604 2007-05-01  Bruno Haible  <bruno@clisp.org>
65605
65606         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65607
65608 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65611         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65612
65613 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65616         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65618
65619 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65620
65621         * lib/argp-help.c (struct hol_entry): New member `ord'.
65622         (HOL_ENTRY_PTRCMP): Use ord for comparison
65623         (hol_sort): Initialize ord.
65624
65625 2007-05-01  Bruno Haible  <bruno@clisp.org>
65626
65627         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65628         Reported by Eric Blake.
65629         * doc/gnulib.texi (Function Substitutes): Update.
65630
65631 2007-05-01  Bruno Haible  <bruno@clisp.org>
65632
65633         * doc/functions.texi: Remove file, now redundant through
65634         doc/functions/*.texi.
65635
65636 2007-05-01  Bruno Haible  <bruno@clisp.org>
65637
65638         * modules/argp (Depends-on): Add sleep.
65639
65640 2007-05-01  Bruno Haible  <bruno@clisp.org>
65641
65642         * modules/sleep-tests: New file.
65643         * tests/test-sleep.c: New file.
65644
65645         * modules/sleep: New file.
65646         * lib/sleep.c: New file.
65647         * m4/sleep.m4: New file.
65648         * lib/unistd_.h (sleep): New declaration.
65649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65650         HAVE_SLEEP.
65651         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65652         * doc/functions/sleep.texi: Document the sleep module.
65653
65654 2007-05-01  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/sigprocmask.h: Remove file.
65657         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65658         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65659         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65660         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65661         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65662         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65663         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65664         HAVE_SIGSET_T as a shell variable.
65665         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65666         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65667         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65668         (Depends-on): Add signal. Remove verify.
65669         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65670         (Include): Mention <signal.h> instead of sigprocmask.h.
65671         * NEWS: Mention the change.
65672         * lib/fatal-signal.c: Don't include sigprocmask.h.
65673
65674 2007-05-01  Bruno Haible  <bruno@clisp.org>
65675
65676         * modules/signal: New file.
65677         * lib/signal_.h: New file.
65678         * m4/signal_h.m4: New file.
65679
65680 2007-05-01  Bruno Haible  <bruno@clisp.org>
65681
65682         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65683         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65684         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65685         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65686
65687 2007-05-01  Bruno Haible  <bruno@clisp.org>
65688
65689         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65690         configure time.
65691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65692         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65693         * modules/sys_stat (Makefile.am): Substitute their values into
65694         sys/stat.h.
65695
65696 2007-05-01  Bruno Haible  <bruno@clisp.org>
65697
65698         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65699         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65700         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65701
65702 2007-05-01  Bruno Haible  <bruno@clisp.org>
65703
65704         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65705         'assert' module here.
65706
65707 2007-05-01  Bruno Haible  <bruno@clisp.org>
65708
65709         * doc/functions/*.texi: New files.
65710         * doc/functions/google-ranking.txt: New file.
65711         * doc/gnulib.texi (Function Substitutes): New chapter.
65712         (ctime, inet_ntoa): Remove sections.
65713         * doc/ctime.texi: Remove file.
65714         * doc/inet_ntoa.texi: Remove file.
65715         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65716         dependencies.
65717         (%.info): New rule, specifying a --reference-limit.
65718
65719 2007-05-01  Bruno Haible  <bruno@clisp.org>
65720
65721         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65722
65723 2007-05-01  Bruno Haible  <bruno@clisp.org>
65724
65725         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65726         the portability of 'mkdir' to mingw systems.
65727
65728 2007-05-01  Bruno Haible  <bruno@clisp.org>
65729
65730         * doc/headers/google-ranking.txt: New file.
65731
65732 2007-04-30  Eric Blake  <ebb9@byu.net>
65733
65734         Prefer fseeko to fseek.
65735         * modules/getpass (Depends-on): Add fseeko.
65736         * lib/getpass.c (getpass): Use fseeko, not fseek.
65737
65738 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65739
65740         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65741         assumes the sorting is stable, while most qsort implementations
65742         are not.  Use argument addresses to ensure they never compare as
65743         equal.
65744
65745         * tests/test-argp-2.sh (usage-indent test): Fix output
65746         (func_compare): Restore diff options
65747         * tests/test-argp.c: Restore #include "progname.h"
65748
65749 2007-04-29  Bruno Haible  <bruno@clisp.org>
65750
65751         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65753         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65755         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65756         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65757         (TESTS, check_PROGRAMS): Add test-snprintf.
65758         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65759         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65760         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65761         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65762         assertions that fail on HP-UX, OSF/1, or IRIX.
65763         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65764
65765 2007-04-29  Bruno Haible  <bruno@clisp.org>
65766
65767         * MODULES.html.sh (posix_functions): Remove 'contents'.
65768
65769 2007-04-29  Karl Berry  <karl@gnu.org>
65770
65771         * config/srclist.txt (gendocs_template_min): new entry.
65772
65773 2007-04-29  Bruno Haible  <bruno@clisp.org>
65774
65775         Work around fpurge bug on BSD systems.
65776         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65777         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65778         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65779         fpurge to rpl_fpurge if the system already has this function.
65780         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65781         the case where the system already has this function. Correct invariants
65782         on BSD systems.
65783         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65784         BSD systems.
65785
65786 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65787
65788         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65789         proposed by Sven Verdoolaege.
65790
65791         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65792         options.
65793         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65794         (usage and help tests): Update
65795
65796 2007-04-29  Bruno Haible  <bruno@clisp.org>
65797
65798         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65799         Print more information in case of failure. Disable a test on BeOS.
65800
65801 2007-04-29  Bruno Haible  <bruno@clisp.org>
65802
65803         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65804         This helps debugging on systems on which no gdb is available.
65805
65806 2007-04-29  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/freading.h: Improve comments.
65809         * lib/fwriting.h: Likewise.
65810         * tests/test-freading.c (main): Don't check freading immediately after
65811         repositioning. Needed for glibc.
65812
65813 2007-04-29  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/freading.c (freading): Trivial simplification.
65816
65817 2007-04-28  Bruno Haible  <bruno@clisp.org>
65818
65819         * tests/test-fwriting.c (main): Also test the interaction between
65820         fflush and fwriting.
65821         * modules/fwriting-tests (Depends-on): Add fflush.
65822
65823         * tests/test-freading.c (main): Also test the interaction between
65824         fflush and freading.
65825         * modules/freading-tests (Depends-on): Add fflush.
65826
65827 2007-04-28  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65830         fseeko and ftello.
65831         Suggested by Eric Blake.
65832
65833 2007-04-28  Jim Meyering  <jim@meyering.net>
65834
65835         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65836         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65837         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65838
65839 2007-04-27  Eric Blake  <ebb9@byu.net>
65840
65841         * doc/headers/assert.texi (assert.h): Document assert module use.
65842
65843 2007-04-27  Bruno Haible  <bruno@clisp.org>
65844
65845         * doc/headers/*.texi: New files.
65846         * doc/gnulib.texi (Header File Substitutes): New chapter.
65847         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65848         dependencies.
65849         (standards.info ,standards.html, standards.dvi): Update dependencies.
65850         (mostlyclean, clean): New targets.
65851
65852 2007-04-27  Bruno Haible  <bruno@clisp.org>
65853
65854         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65855         * modules/sysexits (Files, Makefile.am): Update.
65856
65857         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65858         * modules/sys_socket (Files, Makefile.am): Update.
65859
65860         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65861         * modules/sys_stat (Files, Makefile.am): Update.
65862
65863 2007-04-27  Eric Blake  <ebb9@byu.net>
65864
65865         * lib/freading.h: Improve comments.
65866         * lib/fwriting.h: Likewise.
65867         * lib/fflush.c: Likewise.
65868
65869         Fix closein for mingw.
65870         * modules/closein-tests: Add tests for closein.
65871         * tests/test-closein.c: New file.
65872         * tests/test-closein.sh: Likewise.
65873         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65874         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65875
65876 2007-04-27  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65879         version is < 6.
65880         * lib/math_.h [__DECC]: Likewise.
65881         * lib/stdio_.h [__DECC]: Likewise.
65882         * lib/stdlib_.h [__DECC]: Likewise.
65883         * lib/string_.h [__DECC]: Likewise.
65884         * lib/time_.h [__DECC]: Likewise.
65885         * lib/wchar_.h [__DECC]: Likewise.
65886         * lib/wctype_.h [__DECC]: Likewise.
65887
65888 2007-04-27  Bruno Haible  <bruno@clisp.org>
65889
65890         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65891
65892 2007-04-27  Bruno Haible  <bruno@clisp.org>
65893
65894         * lib/fflush.c: Add comments.
65895         * modules/fpurge-tests (Depends-on): Add fflush.
65896         * modules/freadable-tests (Depends-on): Likewise.
65897         * modules/fwritable-tests (Depends-on): Likewise.
65898
65899 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65900
65901         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65902         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65903         Report by Bruno Haible <bruno@clisp.org>.
65904
65905 2007-04-26  Eric Blake  <ebb9@byu.net>
65906
65907         Fix fflush on mingw.
65908         * modules/fflush (Depends-on): Add freading.
65909         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65910         but unread data.
65911
65912 2007-04-26  Eric Blake  <ebb9@byu.net>
65913         and Bruno Haible  <bruno@clisp.org>
65914
65915         Implement freading and fwriting.
65916         * lib/freading.c: New file.
65917         * lib/freading.h: Likewise.
65918         * m4/freading.m4: Likewise.
65919         * modules/freading: Likewise.
65920         * modules/freading-tests: Likewise.
65921         * tests/test-freading.c: Likewise.
65922         * lib/fwriting.c: New file.
65923         * lib/fwriting.h: Likewise.
65924         * m4/fwriting.m4: Likewise.
65925         * modules/fwriting: Likewise.
65926         * modules/fwriting-tests: Likewise.
65927         * tests/test-fwriting.c: Likewise.
65928         * MODULES.html.sh (File stream based Input/Output): Mention them.
65929
65930 2007-04-26  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65933         'long' when we assume it.
65934         Suggested by Eric Blake.
65935
65936 2007-04-26  Bruno Haible  <bruno@clisp.org>
65937
65938         Ensure fseeko, ftello are declared on glibc systems.
65939         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65940         * modules/fseeko (configure.ac-early): Likewise.
65941         * modules/ftello (configure.ac-early): Likewise.
65942         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65943         AC_FUNC_FSEEKO for this.
65944         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65945         (gl_CHECK_FSEEKO): Remove macro.
65946
65947 2007-04-26  Bruno Haible  <bruno@clisp.org>
65948
65949         * tests/test-fflush.c (main): Also check the ftell result after
65950         fflush and fseek/fseeko.
65951         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65952         file descriptor position cache in the stream.
65953         * lib/fseeko.c (rpl_fseeko): Likewise.
65954
65955 2007-04-26  Bruno Haible  <bruno@clisp.org>
65956
65957         * modules/fflush-tests (Depends-on): Add fseeko.
65958
65959 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65960             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65961
65962         * lib/argz_.h: ensure error_t definition is obtained in same
65963         mechanism system argz.h would have.
65964         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65965         argz facilities are known bad.  Err on the side of caution if
65966         cross-compiling.
65967
65968 2007-04-25  Eric Blake  <ebb9@byu.net>
65969
65970         * lib/fpurge.c (includes): Use stdlib.h for free.
65971         * tests/test-fflush.c (main): Also test fflush-fseeko.
65972
65973 2007-04-25  Bruno Haible  <bruno@clisp.org>
65974
65975         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65976         * lib/fseeko.c: New file.
65977         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65978         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65979         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65980         gl_FUNC_FSEEKO.
65981         (gl_FUNC_FSEEKO): Invoke it.
65982         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65983         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65984         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65985
65986 2007-04-25  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/fflush (Depends-on): Add ftello.
65989
65990 2007-04-25  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/ftello-tests: New file.
65993         * tests/test-ftello.c: New file.
65994
65995         * modules/ftello: New file.
65996         * m4/ftello.m4: New file.
65997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65998         HAVE_FTELLO.
65999         * lib/stdio_.h (ftello): New declaration.
66000         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66001         HAVE_FTELLO.
66002
66003 2007-04-25  Bruno Haible  <bruno@clisp.org>
66004
66005         * modules/fseeko-tests: New file.
66006         * tests/test-fseeko.c: New file.
66007
66008         * modules/fseeko: New file.
66009         * m4/fseeko.m4: New file.
66010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66011         HAVE_FSEEKO.
66012         * lib/stdio_.h (fseeko): New declaration.
66013         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66014         HAVE_FSEEKO.
66015
66016 2007-04-25  Bruno Haible  <bruno@clisp.org>
66017
66018         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66019
66020 2007-04-25  Bruno Haible  <bruno@clisp.org>
66021
66022         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66023         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66024         * tests/test-unistd.c: Likewise.
66025         * tests/test-fcntl.c: Likewise.
66026
66027 2007-04-23  Eric Blake  <ebb9@byu.net>
66028
66029         * lib/fflush.c: Fix missing include.
66030         Reported by Bruno Haible.
66031
66032 2007-04-23  Bruno Haible  <bruno@clisp.org>
66033
66034         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66035         Reported by Eric Blake.
66036
66037 2007-04-23  Bruno Haible  <bruno@clisp.org>
66038
66039         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66040
66041 2007-04-23  Bruno Haible  <bruno@clisp.org>
66042
66043         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66044
66045 2007-04-23  Bruno Haible  <bruno@clisp.org>
66046
66047         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66048         Needed on HP-UX 11.
66049
66050 2007-04-16  Eric Blake  <ebb9@byu.net>
66051
66052         Make fflush rely on fpurge.
66053         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66054         open coding all variants.
66055         * modules/fflush (Depends-on): Add fpurge and unistd.
66056         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66057         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66058
66059         Fix --with-tests compilation on cygwin.
66060         * modules/argmatch-tests (Makefile.am): List gnulib library first
66061         in LDADD.
66062         * modules/argp-tests (Makefile.am): Likewise.
66063         * modules/array-list-tests (Makefile.am): Likewise.
66064         * modules/array-oset-tests (Makefile.am): Likewise.
66065         * modules/avltree-list-tests (Makefile.am): Likewise.
66066         * modules/avltree-oset-tests (Makefile.am): Likewise.
66067         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66068         * modules/carray-list-tests (Makefile.am): Likewise.
66069         * modules/dirname-tests (Makefile.am): Likewise.
66070         * modules/frexp-tests (Makefile.am): Likewise.
66071         * modules/isnanl-tests (Makefile.am): Likewise.
66072         * modules/linked-list-tests (Makefile.am): Likewise.
66073         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66074         * modules/lock-tests (Makefile.am): Likewise.
66075         * modules/rbtree-list-tests (Makefile.am): Likewise.
66076         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66077         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66078         * modules/tls-tests (Makefile.am): Likewise.
66079         * modules/tsearch-tests (Makefile.am): Likewise.
66080         * modules/xvasprintf-tests (Makefile.am): Likewise.
66081
66082         Fix fpurge for cygwin.
66083         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66084         value.
66085         * modules/fpurge-tests (Depends-on): Clean up trash.
66086
66087 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66088
66089         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66090
66091         * m4/autobuild.m4: Re-indent.
66092
66093 2007-04-13  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/fpurge-tests: New file.
66096         * tests/test-fpurge.c: New file.
66097
66098         * modules/fpurge: New file.
66099         * lib/fpurge.h: New file.
66100         * lib/fpurge.c: New file.
66101         * m4/fpurge.m4: New file.
66102
66103 2007-04-13  Bruno Haible  <bruno@clisp.org>
66104
66105         * modules/fbufmode-tests: New file.
66106         * tests/test-fbufmode.c: New file.
66107
66108         * modules/fbufmode: New file.
66109         * lib/fbufmode.h: New file.
66110         * lib/fbufmode.c: New file.
66111         * m4/fbufmode.m4: New file.
66112
66113 2007-04-13  Bruno Haible  <bruno@clisp.org>
66114
66115         * modules/fwritable-tests: New file.
66116         * tests/test-fwritable.c: New file.
66117
66118         * modules/fwritable: New file.
66119         * lib/fwritable.h: New file.
66120         * lib/fwritable.c: New file.
66121         * m4/fwritable.m4: New file.
66122
66123 2007-04-13  Bruno Haible  <bruno@clisp.org>
66124
66125         * modules/freadable-tests: New file.
66126         * tests/test-freadable.c: New file.
66127
66128         * modules/freadable: New file.
66129         * lib/freadable.h: New file.
66130         * lib/freadable.c: New file.
66131         * m4/freadable.m4: New file.
66132
66133 2007-04-13  Bruno Haible  <bruno@clisp.org>
66134
66135         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66136         MOSTLYCLEANFILES.
66137
66138 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66141         gzip bootstrap.conf to avoid dragging in i18n machinery.
66142         (gnulib_tool_option): Use it.
66143
66144 2007-04-13  Bruno Haible  <bruno@clisp.org>
66145
66146         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66147         %F directives.
66148         * tests/test-vasprintf-posix.c (test_function): Likewise.
66149         * tests/test-snprintf-posix.h (test_function): Likewise.
66150         * tests/test-sprintf-posix.h (test_function): Likewise.
66151         * tests/test-fprintf-posix.h (test_function): Likewise.
66152         * tests/test-printf-posix.h (test_function): Likewise.
66153         * tests/test-fprintf-posix.out: Likewise.
66154
66155 2007-04-13  Bruno Haible  <bruno@clisp.org>
66156
66157         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66158         * modules/tls-tests (configure.ac): Likewise.
66159         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66160
66161 2007-04-13  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/tls.c (glthread_tls_get): Fix return type.
66164         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66165
66166 2007-04-12  Eric Blake  <ebb9@byu.net>
66167
66168         * modules/gettime (Depends-on): Remove gettime.
66169         Reported by Dmitry V. Levin.
66170
66171 2007-04-12  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/fflush (Include): Mention <stdio.h>.
66174         * modules/strtoimax (Include): Mention <inttypes.h>.
66175         * modules/strtoumax (Include): Likewise.
66176
66177 2007-04-12  Eric Blake  <ebb9@byu.net>
66178
66179         * .cvsignore: New file.
66180         * .gitignore: Likewise.
66181
66182 2007-04-12  Bruno Haible  <bruno@clisp.org>
66183
66184         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66185         not before, since $(LDADD) often contains libgnu.a.
66186         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66187         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66188         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66189         Needed on Cygwin.
66190
66191 2007-04-12  Eric Blake  <ebb9@byu.net>
66192
66193         Work around glibc's failure to flush stdin on fclose.
66194         * lib/closein.c (close_stdin): Flush stdin before closing.
66195
66196         Work around glibc's failure to reset seekable stdin on exit.
66197         * modules/closein: New module.
66198         * lib/closein.c: New file.
66199         * lib/closein.h: Likewise.
66200         * m4/closein.m4: Likewise.
66201         * MODULES.html.sh (File stream based Input/Output): Document it.
66202
66203 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66204
66205         * gnulib-tool: Rename generated 'autobuild' script to
66206         'do-autobuild' in --create-megatestdir output.
66207
66208         * doc/gnulib.texi (Build robot for gnulib): Fix.
66209
66210 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66211
66212         * modules/sysexits (Depends-on): Add absolute-header.
66213
66214 2007-04-12  Eric Blake  <ebb9@byu.net>
66215
66216         No need to preserve errno on success.
66217         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66218         Reported by Bruno Haible.
66219
66220 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66221
66222         * MODULES.html.sh (Support for maintaining and releasing
66223         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66224
66225 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66226
66227         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66228
66229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66230
66231         * modules/autobuild: New module.
66232
66233         * m4/autobuild.m4: New file.
66234
66235 2007-04-11  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66238         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66239         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66248         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66249         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66250         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66251         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66252         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66254         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66255         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66256         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66257         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66258         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66260         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66261         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66263         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66264         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66265         Reported by Eric Blake.
66266
66267 2007-04-11  Bruno Haible  <bruno@clisp.org>
66268
66269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66270
66271 2007-04-10  Bruno Haible  <bruno@clisp.org>
66272
66273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66274         for NaN and Infinity. Needed on FreeBSD 6.1.
66275         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66276         regarding results for "%010a" of Infinity and NaN.
66277         * tests/test-vasprintf-posix.c (test_function): Likewise.
66278         * tests/test-snprintf-posix.h (test_function): Likewise.
66279         * tests/test-sprintf-posix.h (test_function): Likewise.
66280         * tests/test-fprintf-posix.h (test_function): Likewise.
66281         * tests/test-printf-posix.h (test_function): Likewise.
66282         * tests/test-fprintf-posix.out: Likewise.
66283
66284 2007-04-10  Bruno Haible  <bruno@clisp.org>
66285
66286         * modules/locale-tests: New file.
66287         * tests/test-locale.c: New file.
66288
66289         * modules/locale: New file.
66290         * lib/locale_.h: New file.
66291         * m4/locale_h.m4: New file.
66292
66293 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66294             Bruno Haible  <bruno@clisp.org>
66295
66296         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66297         be determined, test for availability of the copysignf, copysign,
66298         copysignl functions.
66299         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66300         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66301         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66302
66303 2007-04-09  Eric Blake  <ebb9@byu.net>
66304
66305         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66306         * modules/stdio (Makefile.am): Support fflush.
66307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66308         * modules/fflush: New file.
66309         * lib/fflush.c: Likewise.
66310         * m4/fflush.m4: Likewise.
66311         * modules/fflush-tests: New test.
66312         * tests/test-fflush.c: Likewise.
66313         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66314
66315 2007-04-06  Bruno Haible  <bruno@clisp.org>
66316
66317         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66318         (VASNPRINTF): Use signbit for faster determination whether to print a
66319         minus sign.
66320         * modules/vasnprintf (Files): Remove lib/float+.h.
66321         * modules/fprintf-posix (Depends-on): Add signbit.
66322         * modules/snprintf-posix (Depends-on): Likewise.
66323         * modules/sprintf-posix (Depends-on): Likewise.
66324         * modules/vasnprintf-posix (Depends-on): Likewise.
66325         * modules/vasprintf-posix (Depends-on): Likewise.
66326         * modules/vfprintf-posix (Depends-on): Likewise.
66327         * modules/vsnprintf-posix (Depends-on): Likewise.
66328         * modules/vsprintf-posix (Depends-on): Likewise.
66329
66330 2007-04-06  Bruno Haible  <bruno@clisp.org>
66331
66332         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66333         * tests/test-frexpl.c (main): Likewise.
66334         * tests/test-ldexpl.c (main): Likewise.
66335         * modules/frexp-tests (Depends-on): Add signbit.
66336         * modules/frexpl-tests (Depdends-on): Likewise.
66337         * modules/ldexpl-tests (Depdends-on): Likewise.
66338
66339 2007-04-06  Bruno Haible  <bruno@clisp.org>
66340
66341         * modules/signbit-tests: New file.
66342         * tests/test-signbit.c: New file.
66343
66344         * modules/signbit: New file.
66345         * lib/signbitf.c: New file.
66346         * lib/signbitd.c: New file.
66347         * lib/signbitl.c: New file.
66348         * m4/signbit.m4: New file.
66349         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66350         (signbit): New macro.
66351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66352         REPLACE_SIGNBIT.
66353         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66354         REPLACE_FREXPL into math.h.
66355
66356 2007-04-06  Bruno Haible  <bruno@clisp.org>
66357
66358         * modules/isnanf-nolibm-tests: New file.
66359         * tests/test-isnanf.c: New file.
66360
66361         * modules/isnanf-nolibm: New file.
66362         * lib/isnanf.h: New file.
66363         * lib/isnanf.c: New file.
66364         * lib/isnan.c: Consider the USE_FLOAT macro.
66365         * m4/isnanf.m4: New file.
66366
66367 2007-04-06  Bruno Haible  <bruno@clisp.org>
66368
66369         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66370         (Link): New section.
66371
66372         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66373
66374 2007-04-06  Bruno Haible  <bruno@clisp.org>
66375
66376         Assume the 'long double' type.
66377         * m4/longdouble.m4: Remove file.
66378         * config/srclist.txt: Don't mention longdouble.m4.
66379         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66380         * lib/float+.h: Likewise.
66381         * lib/frexp.c: Likewise.
66382         * lib/printf-args.h: Likewise.
66383         * lib/printf-args.c: Likewise.
66384         * lib/printf-frexp.c: Likewise.
66385         * lib/printf-parse.c: Likewise.
66386         * lib/vasnprintf.c: Likewise.
66387         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66388         * m4/intl.m4: Likewise.
66389         * m4/isnanl.m4: Likewise.
66390         * m4/printf.m4: Likewise.
66391         * m4/printf-frexpl.m4: Likewise.
66392         * m4/vasnprintf.m4: Likewise.
66393         * modules/allocsa (Files): Remove m4/longdouble.m4.
66394         * modules/gettext (Files): Likewise.
66395         * modules/relocatable-prog-wrapper (Files): Likewise.
66396         * modules/vasnprintf (Files): Likewise.
66397         * modules/isnanl (Files): Likewise.
66398         (Include): Simplify.
66399         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66400         (Include): Simplify.
66401         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66402         (Include): Simplify.
66403         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66404         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66405         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66406         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66407         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66409         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66411         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66412         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66413         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66415         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66416         * tests/test-isnanl.c: Likewise.
66417         * tests/test-snprintf-posix.h: Likewise.
66418         * tests/test-sprintf-posix.h: Likewise.
66419         * tests/test-vasnprintf-posix.c: Likewise.
66420         * tests/test-vasnprintf-posix2.c: Likewise.
66421         * tests/test-vasprintf-posix.c: Likewise.
66422
66423 2007-04-06  Bruno Haible  <bruno@clisp.org>
66424
66425         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66426         * lib/math_.h [__DECC]: Include the overridden include file through
66427         #include_next, outside the double-inclusion guard.
66428         * lib/stdio_.h [__DECC]: Likewise.
66429         * lib/stdlib_.h [__DECC]: Likewise.
66430         * lib/string_.h [__DECC]: Likewise.
66431         * lib/time_.h [__DECC]: Likewise.
66432         * lib/wchar_.h [__DECC]: Likewise.
66433         * lib/wctype_.h [__DECC]: Likewise.
66434         * lib/inttypes_.h [__DECC]: Likewise.
66435         Reported by Albert Chin <china@thewrittenword.com> in
66436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66437
66438 2007-04-04  Eric Blake  <ebb9@byu.net>
66439
66440         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66441         1.5.x.
66442
66443 2007-04-04  Bruno Haible  <bruno@clisp.org>
66444
66445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66446         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66447
66448 2007-04-04  Bruno Haible  <bruno@clisp.org>
66449
66450         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66451         results for "%010a" of Infinity and NaN.
66452         * tests/test-vasprintf-posix.c (test_function): Likewise.
66453         * tests/test-snprintf-posix.h (test_function): Likewise.
66454         * tests/test-sprintf-posix.h (test_function): Likewise.
66455         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66456         * tests/test-printf-posix.h (test_function): Likewise.
66457         * tests/test-fprintf-posix.out: Update.
66458         Needed for FreeBSD 6.1.
66459
66460 2007-04-04  Bruno Haible  <bruno@clisp.org>
66461
66462         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66463         directly used by the gnulib modules nor by gnulib-tool.
66464
66465 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * DEPENDENCIES: Give overall description of version dependency
66468         desirability.  Use more-typical names for apps.
66469         Add shell, coreutils, diffutils, grep, tar, gzip.
66470
66471 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66472
66473         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66474
66475 2007-04-04  Karl Berry  <karl@gnu.org>
66476
66477         * MODULES.html.sh (func_module): missing '.
66478
66479 2007-04-03  Bruno Haible  <bruno@clisp.org>
66480
66481         * modules/argmatch-tests (Makefile.am): New variable
66482         test_argmatch_LDADD.
66483         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66484         * modules/array-list-tests (Makefile.am): New variable
66485         test_array_list_LDADD.
66486         * modules/array-oset-tests (Makefile.am): New variable
66487         test_array_oset_LDADD.
66488         * modules/avltree-list-tests (Makefile.am): New variable
66489         test_avltree_list_LDADD.
66490         * modules/avltree-oset-tests (Makefile.am): New variable
66491         test_avltree_oset_LDADD.
66492         * modules/avltreehash-list-tests (Makefile.am): New variable
66493         test_avltreehash_list_LDADD.
66494         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66495         test_canonicalize_lgpl_LDADD.
66496         * modules/carray-list-tests (Makefile.am): New variable
66497         test_carray_list_LDADD.
66498         * modules/dirname-tests (Makefile.am): New variable
66499         test_dirname_LDADD.
66500         * modules/linked-list-tests (Makefile.am): New variable
66501         test_linked_list_LDADD.
66502         * modules/linkedhash-list-tests (Makefile.am): New variable
66503         test_linkedhash_list_LDADD.
66504         * modules/rbtree-list-tests (Makefile.am): New variable
66505         test_rbtree_list_LDADD.
66506         * modules/rbtree-oset-tests (Makefile.am): New variable
66507         test_rbtree_oset_LDADD.
66508         * modules/rbtreehash-list-tests (Makefile.am): New variable
66509         test_rbtreehash_list_LDADD.
66510         * modules/xvasprintf-tests (Makefile.am): New variable
66511         test_xvasprintf_LDADD.
66512         Reported by Eric Blake.
66513
66514 2007-04-03  Eric Blake  <ebb9@byu.net>
66515
66516         * DEPENDENCIES: Weaken m4 requirements.
66517
66518 2007-04-03  Bruno Haible  <bruno@clisp.org>
66519
66520         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66521         * modules/isnanl-tests (configure.ac): Likewise.
66522
66523 2007-04-03  Ben Pfaff  <blp@gnu.org>
66524
66525         * modules/iconv_open: Add $(srcdir)/ to source directory
66526         references in Makefile fragments that call gperf, to fix VPATH
66527         builds.
66528
66529 2007-04-03  Bruno Haible  <bruno@clisp.org>
66530
66531         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66532         * lib/ldexpl.c: Undo last change.
66533
66534 2007-04-03  Bruno Haible  <bruno@clisp.org>
66535
66536         * modules/printf-frexpl (Depends-on): Undo last change.
66537         (Files): Add m4/ldexpl.m4.
66538
66539 2007-04-03  Bruno Haible  <bruno@clisp.org>
66540
66541         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66542         * modules/isnanl (Link): New section.
66543
66544         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66545         * modules/frexp (Link): New section.
66546
66547         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66548         * modules/frexpl (Link): New section.
66549
66550         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66551         * modules/ldexpl (Link): New section.
66552
66553 2007-04-03  Bruno Haible  <bruno@clisp.org>
66554
66555         * modules/TEMPLATE-EXTENDED: New file.
66556         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66557
66558 2007-04-03  Bruno Haible  <bruno@clisp.org>
66559
66560         * DEPENDENCIES: New file.
66561         Suggested by Simon Josefsson.
66562
66563 2007-04-03  Bruno Haible  <bruno@clisp.org>
66564
66565         * doc/gnulib.texi: Escape @.
66566
66567 2007-04-03  James Youngman  <jay@gnu.org>
66568         and Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66571         birthtime on all systems that have birthtime, not just those which
66572         use st_birthtimensec rather than st_birthtim.  Putting zero in
66573         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66574         that the birth time is not available for files on an NFS mount.
66575
66576 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66577
66578         * modules/memxor: Move back from crypto/, suggested by Bruno.
66579         * modules/crypto/hmac-sha1: Fix memxor dependency.
66580
66581         * modules/crypto/gc: Moved from ../.
66582
66583 2007-04-02  Eric Blake  <ebb9@byu.net>
66584
66585         * lib/ldexpl.c (includes): Avoid libm.
66586
66587         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66588
66589 2007-04-02  Bruno Haible  <bruno@clisp.org>
66590
66591         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66592         on IRIX.
66593
66594 2007-04-02  Bruno Haible  <bruno@clisp.org>
66595
66596         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66597         x86 or x86_64 platforms running MacOS X.
66598         Reported by Ryan Schmidt <@ryandesign.com>.
66599
66600 2007-04-02  Bruno Haible  <bruno@clisp.org>
66601
66602         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66603         i386.
66604
66605 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66606
66607         * modules/crypto/arcfour: Moved from ../.
66608         * modules/crypto/arcfour-tests: Moved from ../.
66609         * modules/crypto/arctwo: Moved from ../.
66610         * modules/crypto/arctwo-tests: Moved from ../.
66611         * modules/crypto/des: Moved from ../.
66612         * modules/crypto/des-tests: Moved from ../.
66613         * modules/crypto/gc-arcfour: Moved from ../.
66614         * modules/crypto/gc-arcfour-tests: Moved from ../.
66615         * modules/crypto/gc-arctwo: Moved from ../.
66616         * modules/crypto/gc-arctwo-tests: Moved from ../.
66617         * modules/crypto/gc-des: Moved from ../.
66618         * modules/crypto/gc-des-tests: Moved from ../.
66619         * modules/crypto/gc-hmac-md5: Moved from ../.
66620         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66621         * modules/crypto/gc-hmac-sha1: Moved from ../.
66622         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66623         * modules/crypto/gc-md2: Moved from ../.
66624         * modules/crypto/gc-md2-tests: Moved from ../.
66625         * modules/crypto/gc-md4: Moved from ../.
66626         * modules/crypto/gc-md4-tests: Moved from ../.
66627         * modules/crypto/gc-md5: Moved from ../.
66628         * modules/crypto/gc-md5-tests: Moved from ../.
66629         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66630         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66631         * modules/crypto/gc-random: Moved from ../.
66632         * modules/crypto/gc-rijndael: Moved from ../.
66633         * modules/crypto/gc-rijndael-tests: Moved from ../.
66634         * modules/crypto/gc-sha1: Moved from ../.
66635         * modules/crypto/gc-sha1-tests: Moved from ../.
66636         * modules/crypto/gc-tests: Moved from ../.
66637         * modules/crypto/hmac-md5: Moved from ../.
66638         * modules/crypto/hmac-md5-tests: Moved from ../.
66639         * modules/crypto/hmac-sha1: Moved from ../.
66640         * modules/crypto/hmac-sha1-tests: Moved from ../.
66641         * modules/crypto/md2: Moved from ../.
66642         * modules/crypto/md2-tests: Moved from ../.
66643         * modules/crypto/md4: Moved from ../.
66644         * modules/crypto/md4-tests: Moved from ../.
66645         * modules/crypto/md5: Moved from ../.
66646         * modules/crypto/md5-tests: Moved from ../.
66647         * modules/crypto/memxor: Moved from ../.
66648         * modules/crypto/rijndael: Moved from ../.
66649         * modules/crypto/rijndael-tests: Moved from ../.
66650         * modules/crypto/sha1: Moved from ../.
66651
66652 2007-03-30  James Youngman  <jay@gnu.org>
66653
66654         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66655         rename() to change the ctime of a file (because ctime is unaffected
66656         by rename on jfs2 on AIX 5.1).
66657         (main): Start by doing cleanup, in case a previous run failed leaving
66658         test files behind.
66659
66660 2007-03-31  Bruno Haible  <bruno@clisp.org>
66661
66662         Support old proprietary implementations of iconv.
66663         * modules/iconv_open: New file.
66664         * lib/iconv_.h: New file.
66665         * m4/iconv_h.m4: New file.
66666         * lib/iconv_open.c: New file.
66667         * lib/iconv_open-aix.gperf: New file.
66668         * lib/iconv_open-hpux.gperf: New file.
66669         * lib/iconv_open-irix.gperf: New file.
66670         * lib/iconv_open-osf.gperf: New file.
66671         * m4/iconv_open.m4: New file.
66672         * modules/linebreak (Depends-on): Add iconv_open.
66673         * modules/striconv (Depends-on): Likewise.
66674         * modules/striconveh (Depends-on): Likewise.
66675         * modules/unicodeio (Depends-on): Likewise.
66676         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66677         (iconv_t)(-1).
66678         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66679         conversion if cd is (iconv_t)(-1).
66680         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66681         is not possible.
66682
66683 2007-03-31  Bruno Haible  <bruno@clisp.org>
66684
66685         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66686         work on Solaris either. Protect also second use of "autodetect_jp".
66687
66688 2007-03-31  Bruno Haible  <bruno@clisp.org>
66689
66690         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66691         the function is not present.
66692
66693 2007-03-31  Bruno Haible  <bruno@clisp.org>
66694
66695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66696         the function is not present.
66697
66698 2007-03-31  Bruno Haible  <bruno@clisp.org>
66699
66700         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66701         a bug in HP-UX iconv_open().
66702
66703 2007-03-31  Bruno Haible  <bruno@clisp.org>
66704
66705         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66706         (Mathematics <math.h>): New section, add fpieee.
66707         (Input/output <stdio.h>): Add fseterr.
66708         (Mathematics <math.h>): New section, add printf-frexp.
66709         (Container data structures): Add sublist.
66710         (Core language properties): Add fpucw, inline.
66711         (Functions for greatest-width integer types <inttypes.h>): Add
66712         imaxabs, imaxdiv, inttypes.
66713         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66714         isnanl-nolibm, ldexp.
66715         (Mathematics <math.h>): New section, add printf-frexpl.
66716         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66717         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66718         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66719         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66720         (Unicode string functions): Add unistr/u*-mbtoucr.
66721         (Java): Add javacomp-script, javaexec-script.
66722         (C#): Add csharpcomp-script, csharpexec-script.
66723         (Support for building libraries and executables): Add havelib,
66724         relocatable-*.
66725         (Support for maintaining and releasing projects): Renamed from
66726         'Support for maintaining and release projects'. Add announce-gen.
66727
66728 2007-03-31  Bruno Haible  <bruno@clisp.org>
66729
66730         * README: Talk primarily about git.
66731         (git and CVS): Renamed from CVS.
66732         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66733         gnulib is available through git.
66734         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66735
66736 2007-03-30  Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66739         * lib/poll_.h: Likewise.
66740         * lib/stat_.h: Likewise.
66741         * lib/sys_time_.h: Likewise.
66742         * lib/sysexit_.h: Likewise.
66743         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66744         * lib/stdbool_.h: Likewise.
66745         * lib/byteswap_.h: Add double-inclusion guard.
66746
66747 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66748
66749         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66750
66751 2007-03-30  Karl Berry  <karl@gnu.org>
66752
66753         * config/srclist-update: double space after USA in the license
66754         substitution, since that's how it's usually (?) written.
66755
66756 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66759         reported by Bruno Haible.
66760
66761 2007-03-29  Bruno Haible  <bruno@clisp.org>
66762
66763         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66764         a bug in AIX iconv().
66765
66766 2007-03-29  Bruno Haible  <bruno@clisp.org>
66767
66768         * modules/ldexpl-tests: New file.
66769         * tests/test-ldexpl.c: New file.
66770
66771 2007-03-29  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/ldexpl.c: Include fpucw.h.
66774         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66775         multiplication.
66776         * modules/ldexpl (Depends-on): Add fpucw.
66777
66778 2007-03-29  Bruno Haible  <bruno@clisp.org>
66779
66780         * modules/ldexpl: New file.
66781         * m4/ldexpl.m4: New file.
66782         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66783         set.
66784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66785         REPLACE_LDEXPL.
66786         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66787         REPLACE_LDEXPL.
66788         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66789         gl_FUNC_LDEXPL_WORKS.
66790         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66791         * modules/mathl (Files): Remove lib/ldexpl.c.
66792         (Depends-on): Add ldexpl.
66793
66794 2007-03-29  Bruno Haible  <bruno@clisp.org>
66795
66796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66797
66798 2007-03-29  Bruno Haible  <bruno@clisp.org>
66799
66800         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66801         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66802         and possibly also HP-UX.
66803         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66804         work on AIX, IRIX, HP-UX, OSF/1.
66805         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66806         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66807         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66808         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66809         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66810         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66811
66812 2007-03-29  Bruno Haible  <bruno@clisp.org>
66813
66814         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66815
66816 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66819         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66820
66821 2007-03-29  Eric Blake  <ebb9@byu.net>
66822
66823         * lib/acl-internal.h: Remove redundant include.
66824         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66825         Cygwin when a file is locked.
66826
66827 2007-03-29  Bruno Haible  <bruno@clisp.org>
66828
66829         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66830         file.
66831         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66832
66833 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66836         try to remove a parent directory if the child couldn't be removed
66837         (except for the first rmdir, which could fail because the child
66838         doesn't exist).  Problem reported by Jeff Blaine in
66839         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66840
66841 2007-03-28  Bruno Haible  <bruno@clisp.org>
66842
66843         * lib/striconveh.c (utf8conv_carefully): New function.
66844         (mem_cd_iconveh_internal): Invoke it.
66845
66846 2007-03-28  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66849         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66850         input.
66851         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66852         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66853         unistr/u8-uctomb.
66854
66855 2007-03-28  Bruno Haible  <bruno@clisp.org>
66856
66857         * modules/unistr/u8-mbtoucr: New file.
66858         * lib/unistr/u8-mbtoucr.c: New file.
66859         * modules/unistr/u16-mbtoucr: New file.
66860         * lib/unistr/u16-mbtoucr.c: New file.
66861         * modules/unistr/u16-mbtoucr: New file.
66862         * lib/unistr/u16-mbtoucr.c: New file.
66863         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66864
66865 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66866             Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66869         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66870         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66871
66872         * m4/stdio_h.m4: Add stubs for vasprintf too.
66873
66874         * modules/stdio: Support vasprintf in sed command.
66875
66876         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66877         vasprintf.h.  Add stdio module indicator.
66878
66879         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66880         vasprintf.h.
66881
66882         * lib/vasprintf.h: File removed.
66883
66884         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66885         * lib/vasprintf.c: Ditto.
66886         * lib/xvasprintf.c: Ditto.
66887         * tests/test-vasprintf-posix.c: Ditto.
66888         * tests/test-vasprintf.c: Ditto.
66889
66890 2007-03-27  Bruno Haible  <bruno@clisp.org>
66891
66892         Make vasnprintf multithread-safe.
66893         * lib/vasnprintf.c (decimal_point_char): New function.
66894         (VASNPRINTF): Use it.
66895         Suggested by Simon Josefsson.
66896
66897 2007-03-27  Eric Blake  <ebb9@byu.net>
66898
66899         Support sub-second birthtime on cygwin.
66900         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66901         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66902         (get_stat_birthtime): Also work with st_birthtim.
66903
66904 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66907         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66908         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66909         (get_stat_birthtime_ns): Simplify compile-time tests.
66910         (get_stat_birthtime): Change the API to look like
66911         get_stat_mtime etc., except return a negative tv_nsec on error.
66912         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66913         Don't check for "spare" fields.
66914         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66915         or for struct stat.st_birthtime, as these tests aren't used.
66916         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66917
66918 2007-03-27  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/stat-time.h: Include <sys/stat.h>.
66921
66922 2007-03-27  James Youngman  <jay@gnu.org>
66923
66924         * lib/stat-time.h (get_stat_birthtime): New function for
66925           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66926         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66927           and its variants.
66928         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66929         * modules/stat-time-test: New file.
66930         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66931
66932 2007-03-26  Bruno Haible  <bruno@clisp.org>
66933
66934         Better support of signalling NaNs.
66935         * lib/atanl.c: Include isnanl.h.
66936         (atanl): Perform test for NaN at the beginning of the function and
66937         through a call to isnanl.
66938         * lib/cosl.c: Include isnanl.h.
66939         (cosl): Perform test for NaN at the beginning of the function and
66940         through a call to isnanl.
66941         * lib/ldexpl.c: Include isnanl.h.
66942         (ldexpl): Perform test for NaN through a call to isnanl.
66943         * lib/logl.c: Include isnanl.h.
66944         (logl): Perform test for NaN at the beginning of the function and
66945         through a call to isnanl.
66946         * lib/sinl.c: Include isnanl.h.
66947         (sinl): Perform test for NaN at the beginning of the function and
66948         through a call to isnanl.
66949         * lib/sqrtl.c: Include isnanl.h.
66950         (sqrtl): Perform test for NaN at the beginning of the function and
66951         through a call to isnanl.
66952         * lib/tanl.c: Include isnanl.h.
66953         (tanl): Perform test for NaN at the beginning of the function and
66954         through a call to isnanl.
66955         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66956         * modules/mathl (Depends-on): Add isnanl.
66957
66958 2007-03-26  Eric Blake  <ebb9@byu.net>
66959
66960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66961         regression in logic sense of previous patch.
66962
66963 2007-03-26  Bruno Haible  <bruno@clisp.org>
66964
66965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66966         unportable shell command "if ! ...".
66967         Reported by Ralf Wildenhues.
66968
66969 2007-03-25  Bruno Haible  <bruno@clisp.org>
66970
66971         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66972         <sysexits.h> file, and only add EX_CONFIG.
66973         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66974         absolute file name and whether it is sufficient. Substitute also
66975         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66976         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66977         ABSOLUTE_SYSEXITS_H into sysexits.h.
66978
66979 2007-03-25  Bruno Haible  <bruno@clisp.org>
66980
66981         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66982         hints is NULL.
66983
66984 2007-03-25  Bruno Haible  <bruno@clisp.org>
66985
66986         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66987         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66988
66989 2007-03-25  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/vasnprintf.c: Include langinfo.h.
66992         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66993         multithread-safe.
66994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67003         Reported by Simon Josefsson.
67004
67005 2007-03-25  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67008         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67009         * modules/vasnprintf (Depends-on): Add stdint.
67010
67011 2007-03-25  Bruno Haible  <bruno@clisp.org>
67012
67013         * modules/fpieee: New file.
67014         * m4/fpieee.m4: New file.
67015         * modules/isnan-nolibm (Depends-on): Add fpieee.
67016         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67017         * modules/isnanl (Depends-on): Add fpieee.
67018
67019 2007-03-25  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67022
67023 2007-03-25  Bruno Haible  <bruno@clisp.org>
67024
67025         Avoid test failures on IRIX 6.5.
67026         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67027         (main): Use it.
67028         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67029         macros.
67030         (main): Use them.
67031
67032 2007-03-25  Bruno Haible  <bruno@clisp.org>
67033
67034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67035         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67036         exists but doesn't work.
67037         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67038         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67040         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67041         math.h.
67042
67043 2007-03-25  Bruno Haible  <bruno@clisp.org>
67044
67045         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67046         returns inf. Needed on IRIX 6.5.
67047
67048 2007-03-25  Bruno Haible  <bruno@clisp.org>
67049
67050         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67051         (main): Use isnanl instead of x != x idiom.
67052         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67053
67054         * tests/test-frexp.c: Include isnan.h.
67055         (main): Use isnan instead of x != x idiom.
67056         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67057
67058 2007-03-25  Bruno Haible  <bruno@clisp.org>
67059
67060         * tests/test-frexp.c (NaN): New function/macro.
67061         (main): Use it instead of 0.0 / 0.0.
67062         * tests/test-isnan.c (NaN): New function/macro.
67063         (main): Use it instead of 0.0 / 0.0.
67064         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67065         (test_function): Use it instead of 0.0 / 0.0.
67066         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67067         (test_function): Use it instead of 0.0 / 0.0.
67068         * tests/test-snprintf-posix.h (NaN): New function/macro.
67069         (test_function): Use it instead of 0.0 / 0.0.
67070         * tests/test-sprintf-posix.h (NaN): New function/macro.
67071         (test_function): Use it instead of 0.0 / 0.0.
67072         * tests/test-fprintf-posix.h (NaN): New function/macro.
67073         (test_function): Use it instead of 0.0 / 0.0.
67074         * tests/test-printf-posix.h (NaN): New function/macro.
67075         (test_function): Use it instead of 0.0 / 0.0.
67076
67077         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67078
67079 2007-03-25  Bruno Haible  <bruno@clisp.org>
67080
67081         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67082
67083 2007-03-25  Bruno Haible  <bruno@clisp.org>
67084
67085         * lib/regexec.c (merge_state_with_log): Make static.
67086
67087 2007-03-25  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/trigl.c (kernel_rem_pio2): Make static.
67090
67091 2007-03-25  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/sincosl.c (sincosl_table): Make static.
67094
67095 2007-03-25  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67098         if the compiler does not support C99.
67099
67100 2007-03-25  Bruno Haible  <bruno@clisp.org>
67101
67102         * modules/time (Makefile.am): Ensure all rule action lines start with a
67103         tab.
67104
67105 2007-03-24  Bruno Haible  <bruno@clisp.org>
67106
67107         * modules/tsearch-tests: New file.
67108         * tests/test-tsearch.sh: New file.
67109         * tests/test-tsearch.c: New file, mostly copied from glibc.
67110
67111         * modules/search-tests: New file.
67112         * tests/test-search.c: New file.
67113
67114         * modules/search: New file.
67115         * lib/search_.h: New file, incorporating lib/tsearch.h.
67116         * m4/search_h.m4: New file.
67117         * lib/tsearch.h: Remove file.
67118         * lib/tsearch.c: Include search.h instead of tsearch.h.
67119         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67120         HAVE_TSEARCH.
67121         * modules/tsearch (Files): Remove lib/tsearch.h.
67122         (Depends-on): Add search.
67123         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67124         (Include): Change tsearch.h into search.h.
67125
67126 2007-03-24  Bruno Haible  <bruno@clisp.org>
67127
67128         * modules/fpucw: New file.
67129         * lib/fpucw.h: New file.
67130         * lib/frexp.c: Include fpucw.h.
67131         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67132         (FUNC): Use them.
67133         * lib/printf-frexp.c: Include fpucw.h.
67134         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67135         (FUNC): Use them.
67136         * lib/vasnprintf.c: Include fpucw.h.
67137         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67138         'long double' calculations.
67139         * tests/test-frexpl.c: Include fpucw.h.
67140         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67141         * tests/test-printf-frexpl.c: Include fpucw.h.
67142         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67143         * modules/frexpl (Depends-on): Add fpucw.
67144         * modules/printf-frexpl (Depends-on): Likewise.
67145         * modules/fprintf-posix (Depends-on): Likewise.
67146         * modules/snprintf-posix (Depends-on): Likewise.
67147         * modules/sprintf-posix (Depends-on): Likewise.
67148         * modules/vasnprintf-posix (Depends-on): Likewise.
67149         * modules/vasprintf-posix (Depends-on): Likewise.
67150         * modules/vfprintf-posix (Depends-on): Likewise.
67151         * modules/vsnprintf-posix (Depends-on): Likewise.
67152         * modules/vsprintf-posix (Depends-on): Likewise.
67153         * modules/frexpl-tests (Depends-on): Likewise.
67154         * modules/printf-frexpl-tests (Depends-on): Likewise.
67155
67156 2007-03-24  Bruno Haible  <bruno@clisp.org>
67157
67158         * lib/float+.h: New file.
67159         * lib/isnan.c: Include float+.h.
67160         (SIZE): New macro.
67161         (FUNC): Compare only SIZE bytes of the value.
67162         * lib/vasnprintf.c: Include float+.h.
67163         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67164         SIZEOF_LDBL or SIZEOF_DBL bytes.
67165         * modules/isnan-nolibm (Files): Add lib/float+.h.
67166         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67167         * modules/isnanl (Files): Add lib/float+.h.
67168         * modules/vasnprintf (Files): Add lib/float+.h.
67169
67170 2007-03-24  Bruno Haible  <bruno@clisp.org>
67171
67172         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67173         include isnanl-nolibm.h.
67174
67175 2007-03-24  Bruno Haible  <bruno@clisp.org>
67176
67177         * tests/test-read-file.c (main): Don't produce spurious output for
67178         expected situations. Make the test fail if it encountered unexpected
67179         results.
67180
67181 2007-03-24  Bruno Haible  <bruno@clisp.org>
67182
67183         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67184         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67185
67186 2007-03-24  Bruno Haible  <bruno@clisp.org>
67187
67188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67189
67190 2007-03-24  Bruno Haible  <bruno@clisp.org>
67191
67192         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67193         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67194
67195         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67196         * modules/utf8-ucs4: Turn into a symbolic link to module
67197         unistr/u8-mbtouc.
67198
67199         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67200         utf8-ucs4-unsafe.
67201         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67202         unistr/u8-mbtouc-unsafe.
67203
67204         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67205         * modules/utf16-ucs4: Turn into a symbolic link to module
67206         unistr/u16-mbtouc.
67207
67208         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67209         utf16-ucs4-unsafe.
67210         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67211         unistr/u16-mbtouc-unsafe.
67212
67213         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67214         * modules/ucs4-utf8: Turn into a symbolic link to module
67215         unistr/u8-ubtomb.
67216
67217         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67218         * modules/ucs4-utf16: Turn into a symbolic link to module
67219         unistr/u16-ubtomb.
67220
67221 2007-03-24  Bruno Haible  <bruno@clisp.org>
67222
67223         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67224         Enable the function only if HAVE_INLINE.
67225         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67226         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67227         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67228         Enable the function only if HAVE_INLINE.
67229         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67230         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67231         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67232         Enable the function only if HAVE_INLINE.
67233         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67234         Enable the function only if HAVE_INLINE.
67235         * modules/utf8-ucs4: Update.
67236         * modules/utf8-ucs4-unsafe: Update.
67237         * modules/utf16-ucs4: Update.
67238         * modules/utf16-ucs4-unsafe: Update.
67239         * modules/ucs4-utf8: Update.
67240         * modules/ucs4-utf16: Update.
67241
67242 2007-03-24  Bruno Haible  <bruno@clisp.org>
67243
67244         * lib/utf8-ucs4.h: Remove file.
67245         * lib/utf8-ucs4-unsafe.h: Remove file.
67246         * lib/utf16-ucs4.h: Remove file.
67247         * lib/utf16-ucs4-unsafe.h: Remove file.
67248         * lib/ucs4-utf8.h: Remove file.
67249         * lib/ucs4-utf16.h: Remove file.
67250         * lib/unistr.h: Include their previous contents.
67251         * m4/utf-ucs4.m4: Remove file.
67252         * m4/ucs4-utf.m4: Remove file.
67253         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67254         (Depends-on): Add unistr/base.
67255         (configure.ac): Remove gl_UTF_UCS4.
67256         (Makefile.am): Update.
67257         (Include): Change to unistr.h.
67258         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67259         (Depends-on): Add unistr/base.
67260         (configure.ac): Remove gl_UTF_UCS4.
67261         (Makefile.am): Update.
67262         (Include): Change to unistr.h.
67263         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67264         (Depends-on): Add unistr/base.
67265         (configure.ac): Remove gl_UTF_UCS4.
67266         (Makefile.am): Update.
67267         (Include): Change to unistr.h.
67268         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67269         (Depends-on): Add unistr/base.
67270         (configure.ac): Remove gl_UTF_UCS4.
67271         (Makefile.am): Update.
67272         (Include): Change to unistr.h.
67273         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67274         (Depends-on): Add unistr/base.
67275         (configure.ac): Remove gl_UCS4_UTF.
67276         (Makefile.am): Update.
67277         (Include): Change to unistr.h.
67278         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67279         (Depends-on): Add unistr/base.
67280         (configure.ac): Remove gl_UCS4_UTF.
67281         (Makefile.am): Update.
67282         (Include): Change to unistr.h.
67283         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67284         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67285         utf8-ucs4-unsafe.h.
67286         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67287         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67288         utf16-ucs4-unsafe.h.
67289         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67290         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67291         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67292         * lib/unistr/u8-strchr.c: Likewise.
67293         * lib/unistr/u8-strrchr.c: Likewise.
67294         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67295         * lib/unistr/u16-strchr.c: Likewise.
67296         * lib/unistr/u16-strrchr.c: Likewise.
67297         * lib/striconveh.c: Update.
67298         * lib/linebreak.c: Update.
67299
67300 2007-03-24  Bruno Haible  <bruno@clisp.org>
67301
67302         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67303         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67304
67305 2007-03-22  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67308
67309 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67310
67311         * MODULES.html.sh (File system functions): New module write-any-file.
67312         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67313         * m4/write-any-file.m4: New files.
67314
67315 2007-03-23  Eric Blake  <ebb9@byu.net>
67316
67317         * gnulib-tool: Rearrange space-tab sequences, since some editors
67318         like to eat them.
67319
67320 2007-03-23  Eric Blake  <ebb9@byu.net>
67321
67322         * lib/version-etc.c (version_etc_va): Update license wording to
67323         be more concise.  Recommended by Richard Stallman.
67324
67325 2007-03-22  Bruno Haible  <bruno@clisp.org>
67326
67327         * lib/poll.c (MSG_PEEK): New fallback definition.
67328
67329 2007-03-22  Bruno Haible  <bruno@clisp.org>
67330
67331         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67332         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67333         (main): Update.
67334         Fixes a compilation error on BeOS.
67335
67336 2007-03-22  Bruno Haible  <bruno@clisp.org>
67337
67338         * modules/frexpl-tests: New file.
67339         * tests/test-frexpl.c: New file.
67340
67341         * modules/frexpl: New file.
67342         * m4/frexpl.m4: New file.
67343         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67344         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67346         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67347         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67348         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67349
67350 2007-03-22  Bruno Haible  <bruno@clisp.org>
67351
67352         * lib/frexpl.c: Share code with lib/frexp.c.
67353         * modules/mathl (Files): Add lib/frexp.c.
67354         (Depends-on): Add isnanl-nolibm.
67355
67356 2007-03-22  Bruno Haible  <bruno@clisp.org>
67357
67358         * modules/printf-frexp (Files): Add m4/frexp.m4.
67359         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67360         only if the found frexp function actually works.
67361
67362 2007-03-22  Bruno Haible  <bruno@clisp.org>
67363
67364         * lib/frexp.c: Remove older implementation that uses divisions.
67365
67366 2007-03-21  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/frexp-tests: New file.
67369         * tests/test-frexp.c: New file.
67370
67371         * modules/frexp: New file.
67372         * lib/frexp.c: New file.
67373         * m4/frexp.m4: New file.
67374         * lib/math_.h (frexp): New declaration.
67375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67376         REPLACE_FREXP.
67377         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67378
67379 2007-03-21  Bruno Haible  <bruno@clisp.org>
67380
67381         * modules/isnanl-tests: New file.
67382         * tests/test-isnanl.c: New file.
67383
67384         * modules/isnanl: New file.
67385         * lib/isnanl.h: New file.
67386         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67387         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67388         gl_FUNC_ISNANL_WORKS.
67389         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67390         New macros.
67391
67392 2007-03-21  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67395         lib/isnanl.h.
67396         (Include): Update.
67397         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67398         * lib/vasnprintf.c: Update.
67399         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67400         tests/test-isnanl.h, remove tests/test-isnanl.c.
67401         (Makefile.am): Update.
67402         * tests/test-isnanl-nolibm.c: New file.
67403         * tests/test-isnanl.h: New file.
67404         * tests/test-isnanl.c: Remove file.
67405
67406 2007-03-21  Jim Meyering  <jim@meyering.net>
67407
67408         When trying to open ".", treat ESTALE like EACCES.
67409         * lib/savewd.c (savewd_save): Resort to forking not just upon
67410         failure with EACCES, but also when errno is ESTALE.
67411
67412 2007-03-20  Bruno Haible  <bruno@clisp.org>
67413
67414         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67415         Needed on AIX 5.1. Reported by Matthew Woehlke.
67416
67417 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         Suggestions by Bruno Haible:
67420         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67421         our own.
67422         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67423         * modules/acl (Depends-on): Add gettext.
67424
67425 2007-03-19  Bruno Haible  <bruno@clisp.org>
67426
67427         * modules/iconvme: Remove file.
67428         * lib/iconvme.h: Remove file.
67429         * lib/iconvme.c: Remove file.
67430         * m4/iconvme.m4: Remove file.
67431
67432 2007-03-19  Bruno Haible  <bruno@clisp.org>
67433
67434         * doc/relocatable-maint.texi: Break long shell script line.
67435         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67436
67437 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67440         handle file_has_acl.
67441         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67442         * lib/acl.c: Move header inclusions and related macro defns into
67443         lib/acl-internal.h.
67444         (S_ISLNK): Remove defn, since that's now done for us.
67445         (file_has_acl): Move to lib/file-has-acl.c.
67446         Call acl_trivial if available.  This is the crucial part of the fix.
67447         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67448         shared within the library.  Rewrite a bit, partly to make it compatible
67449         with the GNU coding style.
67450         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67451         Remove unnecessary double-quotes.
67452         Don't test for acl_to_text; the build will catch that.
67453         Replace acl_entries if it doesn't exist and it is needed.
67454         Check for -lsec and acl_trivial (as used on Solaris 10).
67455         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67456         lib/file-has-acl.c.
67457         (Depends-on): Add sys_stat, for S_ISLNK.
67458
67459 2007-03-19  Ben Pfaff  <blp@gnu.org>
67460
67461         * doc/gnulib.texi: Fix typos.
67462         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67463
67464 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67465
67466         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67467         If size is zero here, buf must be zero.
67468
67469 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67470
67471         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67472         <bruno@clisp.org>.
67473
67474 2007-03-18  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67477         Suggested by Eric Blake.
67478
67479 2007-03-18  Ben Pfaff  <blp@gnu.org>
67480
67481         * doc/relocatable.texi: Recommend using as prefix a directory
67482         that does not exist and will never be created.  Based on
67483         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67484         and others.
67485
67486 2007-03-17  Bruno Haible  <bruno@clisp.org>
67487
67488         * lib/fchownat.c: Include lchown.h.
67489
67490 2007-03-17  Bruno Haible  <bruno@clisp.org>
67491
67492         Fix endless loop when the given allocated size was > INT_MAX.
67493         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67494         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67495         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67496         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67497         * lib/sprintf.c (sprintf): Likewise.
67498
67499 2007-03-17  Bruno Haible  <bruno@clisp.org>
67500
67501         * tests/test-argp-2.sh (func_compare): Output a context diff.
67502
67503 2007-03-17  Bruno Haible  <bruno@clisp.org>
67504
67505         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67506         locale's decimal-point character.
67507
67508 2007-03-17  Bruno Haible  <bruno@clisp.org>
67509
67510         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67511         before comparing it. Needed because on some platforms (e.g. x86) a
67512         'long double' occupies less bytes than sizeof (long double).
67513
67514 2007-03-17  Bruno Haible  <bruno@clisp.org>
67515
67516         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67517         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67518         * tests/test-getaddrinfo.c (simple): Likewise.
67519         * tests/test-read-file.c (main): Likewise.
67520
67521 2007-03-17  Bruno Haible  <bruno@clisp.org>
67522
67523         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67524
67525 2007-03-17  Bruno Haible  <bruno@clisp.org>
67526
67527         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67528         unused variable.
67529
67530 2007-03-17  Bruno Haible  <bruno@clisp.org>
67531
67532         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67533         * tests/test-c-strncasecmp.c: Likewise.
67534
67535 2007-03-17  Bruno Haible  <bruno@clisp.org>
67536
67537         * modules/stdlib (Depends-on): Add unistd.
67538         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67539         Needed for MacOS X 10.3.
67540
67541 2007-03-17  Bruno Haible  <bruno@clisp.org>
67542
67543         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67544
67545 2007-03-17  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67548
67549 2007-03-17  Bruno Haible  <bruno@clisp.org>
67550
67551         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67552         to reflect files copied from gnulib (with or without modifications).
67553         Suggested by Jim Meyering.
67554
67555 2007-03-17  Eric Blake  <ebb9@byu.net>
67556
67557         * NEWS: Document stdlib change from 2007-02-18.
67558
67559 2007-03-17  Jim Meyering  <jim@meyering.net>
67560
67561         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67562         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67563         someone uses a name containing shell meta-characters.
67564         Reported by Alfred M. Szmidt.
67565
67566         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67567
67568 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67569
67570         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67571         and copy gettext configuration files only if configure.ac contains
67572         a use of AM_GNU_GETTEXT_VERSION.
67573
67574 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67575
67576         * build-aux/bootstrap (gnulib_name): New variable.
67577         (gnulib_tool_options): Use it.
67578
67579 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67580
67581         * tests/test-des.c: Use new namespace.
67582
67583 2007-03-15  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67586         Reported by James Youngman <jay@gnu.org>.
67587
67588 2007-03-15  Bruno Haible  <bruno@clisp.org>
67589
67590         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67591         declared prototype. Needed with cc on OSF/1 5.1.
67592
67593 2007-03-15  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67596         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67597         (struct gl_list_implementation): Add dispose_fn argument to the
67598         'create_empty', 'create' methods.
67599         (struct gl_list_impl_base): Add field 'dispose_fn'.
67600         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67601         argument.
67602         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67603         dispose_fn argument.
67604         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67605         dispose_fn on the dropped values.
67606         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67607         dispose_fn argument.
67608         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67609         dropped values.
67610         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67611         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67612         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67613         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67614         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67615         argument.
67616         (gl_tree_list_free): Call dispose_fn on the dropped values.
67617         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67618         the dropped values.
67619         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67620         Add dispose_fn argument.
67621         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67622         Call dispose_fn on the dropped values.
67623         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67624         Add dispose_fn argument.
67625         (gl_sublist_create): Initialize the 'dispose_fn' field.
67626         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67627         * tests/test-array_list.c (main): Update.
67628         * tests/test-carray_list.c (main): Update.
67629         * tests/test-avltree_list.c (main): Update.
67630         * tests/test-rbtree_list.c (main): Update.
67631         * tests/test-avltreehash_list.c (main): Update.
67632         * tests/test-rbtreehash_list.c (main): Update.
67633         * tests/test-linked_list.c (main): Update.
67634         * tests/test-linkedhash_list.c (main): Update.
67635         * tests/test-array_oset.c (main): Update.
67636
67637 2007-03-15  Bruno Haible  <bruno@clisp.org>
67638
67639         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67640         (gl_oset_create_empty): Add dispose_fn argument.
67641         (struct gl_oset_implementation): Add dispose_fn argument to
67642         'create_empty' method.
67643         (struct gl_oset_impl_base): Add dispose_fn field.
67644         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67645         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67646         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67647         values.
67648         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67649         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67650         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67651         dropped value.
67652         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67653         dropped value.
67654         * tests/test-array_oset.c (main): Update.
67655         * tests/test-avltree_oset.c (main): Update.
67656         * tests/test-rbtree_oset.c (main): Update.
67657         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67658
67659 2007-03-13  Bruno Haible  <bruno@clisp.org>
67660
67661         * tests/test-stdbool.c (i): Update after last patch.
67662
67663 2007-03-12  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67666         the iswprint macro. Needed on Solaris 2.5.1.
67667
67668 2007-03-12  Bruno Haible  <bruno@clisp.org>
67669
67670         * tests/test-printf-frexp.c (main): Declare x as volatile.
67671
67672 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67673
67674         * doc/gnulib.texi (Build robot for gnulib): New section.
67675
67676 2007-03-12  Jim Meyering  <jim@meyering.net>
67677
67678         * build-aux/bootstrap: New file.
67679         * build-aux/bootstrap.conf: New file, from coreutils.
67680
67681 2007-03-11  Bruno Haible  <bruno@clisp.org>
67682
67683         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67684
67685 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67686
67687         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67688         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67689         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67690
67691 2007-03-11  Bruno Haible  <bruno@clisp.org>
67692
67693         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67694         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67695
67696 2007-03-11  Bruno Haible  <bruno@clisp.org>
67697
67698         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67699         formula. Needed for SunPRO C 5.0.
67700
67701 2007-03-11  Bruno Haible  <bruno@clisp.org>
67702
67703         * modules/long-options (Depends-on): Add getopt.
67704
67705 2007-03-11  Bruno Haible  <bruno@clisp.org>
67706
67707         * modules/modechange (Depends-on): Add stdbool.
67708
67709 2007-03-11  Bruno Haible  <bruno@clisp.org>
67710
67711         * modules/i-ring (Depends-on): Add stdbool.
67712
67713 2007-03-11  Bruno Haible  <bruno@clisp.org>
67714
67715         * modules/gc-des (Depends-on): Add stdbool.
67716
67717 2007-03-11  Bruno Haible  <bruno@clisp.org>
67718
67719         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67720
67721 2007-03-11  Bruno Haible  <bruno@clisp.org>
67722
67723         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67724
67725 2007-03-11  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67728
67729 2007-03-11  Bruno Haible  <bruno@clisp.org>
67730
67731         * lib/vasnprintf.c (sprintf): Undefine.
67732
67733 2007-03-11  Bruno Haible  <bruno@clisp.org>
67734
67735         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67736         initializers in SunPRO C and Compaq C compilers.
67737
67738 2007-03-11  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67741         decrementing code ANSI C compliant.
67742
67743 2007-03-11  Bruno Haible  <bruno@clisp.org>
67744
67745         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67746         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67747
67748 2007-03-11  Bruno Haible  <bruno@clisp.org>
67749
67750         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67751         <stdbool.h> substitute doesn't pass.
67752
67753 2007-03-11  Bruno Haible  <bruno@clisp.org>
67754
67755         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67756
67757 2007-03-11  Bruno Haible  <bruno@clisp.org>
67758
67759         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67760         script, for submission to autobuild.josefsson.org.
67761
67762 2007-03-10  Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/canonicalize-lgpl-tests: New file.
67765         * tests/test-canonicalize-lgpl.sh: New file.
67766         * tests/test-canonicalize-lgpl.c: New file.
67767
67768         * modules/c-strcase-tests: New file.
67769         * tests/test-c-strcase.sh: New file.
67770         * tests/test-c-strcasecmp.c: New file.
67771         * tests/test-c-strncasecmp.c: New file.
67772
67773         * modules/atexit-tests: New file.
67774         * tests/test-atexit.sh: New file.
67775         * tests/test-atexit.c: New file.
67776
67777 2007-03-10  Bruno Haible  <bruno@clisp.org>
67778
67779         * tests/test-binary-io.sh: Use temporary filenames that are not so
67780         likely to clash with those of other tests (in a parallel make).
67781         * tests/test-binary-io.c: Likewise.
67782
67783 2007-03-10  Bruno Haible  <bruno@clisp.org>
67784
67785         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67786         fallback; use #error instead.
67787         Suggested by Simon Josefsson.
67788
67789 2007-03-10  Bruno Haible  <bruno@clisp.org>
67790
67791         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67792         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67793         first and the last.
67794
67795 2007-03-10  Bruno Haible  <bruno@clisp.org>
67796
67797         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67798
67799 2007-03-10  Bruno Haible  <bruno@clisp.org>
67800
67801         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67802         "make distcheck".
67803         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67804         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67805         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67806
67807 2007-03-10  Bruno Haible  <bruno@clisp.org>
67808
67809         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67810         variable.
67811         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67812         variable.
67813
67814 2007-03-09  Eric Blake  <ebb9@byu.net>
67815         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67816
67817         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67818         types are not being provided by gnulib.
67819         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67820         types are supported.
67821
67822 2007-03-10  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/stdio_.h (__attribute__): New macro.
67825         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67826         vsprintf): Specify __attribute__ __format__ for GCC.
67827         Suggested by Eric Blake.
67828
67829 2007-03-09  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/printf-posix-tests: New file.
67832         * tests/test-printf-posix.sh: New file.
67833         * tests/test-printf-posix.c: New file.
67834
67835         * modules/printf-posix: New file.
67836         * lib/printf.c: New file.
67837         * m4/printf-posix-rpl.m4: New file.
67838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67839         REPLACE_PRINTF.
67840         * lib/stdio_.h (printf): New declaration.
67841         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67842         ____strfmon____): New macros.
67843         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67844         REPLACE_PRINTF.
67845
67846 2007-03-09  Bruno Haible  <bruno@clisp.org>
67847
67848         * tests/test-vasnprintf-posix2.sh: New file.
67849         * tests/test-vasnprintf-posix2.c: New file.
67850         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67851         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67852         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67853
67854         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67855         a locale dependent decimal point, rather than always '.'.
67856
67857 2007-03-09  Eric Blake  <ebb9@byu.net>
67858
67859         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67860         spite of platforms like Tandem/NSK that define it to -1.
67861
67862 2007-03-08  Bruno Haible  <bruno@clisp.org>
67863
67864         * modules/vprintf-posix-tests: New file.
67865         * tests/test-vprintf-posix.sh: New file.
67866         * tests/test-vprintf-posix.c: New file.
67867         * tests/test-printf-posix.h: New file.
67868
67869         * modules/vprintf-posix: New file.
67870         * lib/vprintf.c: New file.
67871         * m4/vprintf-posix.m4: New file.
67872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67873         REPLACE_VPRINTF.
67874         * lib/stdio_.h (vprintf): New declaration.
67875         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67876         REPLACE_VPRINTF.
67877
67878 2007-03-08  Bruno Haible  <bruno@clisp.org>
67879
67880         * modules/fprintf-posix-tests: New file.
67881         * tests/test-fprintf-posix.sh: New file.
67882         * tests/test-fprintf-posix.c: New file.
67883
67884         * modules/fprintf-posix: New file.
67885         * lib/fprintf.c: New file.
67886         * m4/fprintf-posix.m4: New file.
67887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67888         REPLACE_FPRINTF.
67889         * lib/stdio_.h (fprintf): New declaration.
67890         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67891         REPLACE_FPRINTF.
67892
67893 2007-03-08  Bruno Haible  <bruno@clisp.org>
67894
67895         * modules/vfprintf-posix-tests: New file.
67896         * tests/test-vfprintf-posix.sh: New file.
67897         * tests/test-vfprintf-posix.c: New file.
67898         * tests/test-fprintf-posix.h: New file.
67899         * tests/test-fprintf-posix.out: New file.
67900
67901         * modules/vfprintf-posix: New file.
67902         * lib/vfprintf.c: New file.
67903         * m4/vfprintf-posix.m4: New file.
67904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67905         REPLACE_VFPRINTF.
67906         * lib/stdio_.h (vfprintf): New declaration.
67907         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67908         REPLACE_VFPRINTF.
67909
67910 2007-03-08  Bruno Haible  <bruno@clisp.org>
67911
67912         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67913
67914 2007-03-08  Bruno Haible  <bruno@clisp.org>
67915
67916         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67917         instead of 'expr' invocations.
67918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67923         Suggested by Paul Eggert.
67924
67925 2007-03-08  Bruno Haible  <bruno@clisp.org>
67926
67927         * modules/fseterr-tests: New file.
67928         * tests/test-fseterr.c: New file.
67929
67930         * modules/fseterr: New file.
67931         * lib/fseterr.h: New file.
67932         * lib/fseterr.c: New file.
67933
67934 2007-03-08  Bruno Haible  <bruno@clisp.org>
67935
67936         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67937         * lib/getopt_.h: Likewise.
67938         * lib/mbswidth.h: Likewise.
67939         * lib/setenv.h: Likewise.
67940         * lib/vasnprintf.h: Likewise.
67941         * lib/vasprintf.h: Likewise.
67942         * lib/verror.h: Likewise.
67943         * lib/xsetenv.h: Likewise.
67944         * lib/xvasprintf.h: Likewise.
67945
67946 2007-03-08  Jim Meyering  <jim@meyering.net>
67947
67948         * users.txt: Add parted.
67949
67950         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67951
67952 2007-03-07  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/printf.m4: Make the shell script snippets copy&pastable.
67955
67956 2007-03-02  Bruno Haible  <bruno@clisp.org>
67957
67958         * lib/netinet_in_.h: New file.
67959         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67960         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67961         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67962         (Depends-on): Add absolute-header.
67963         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67964         into netinet/in.h.
67965
67966 2007-03-03  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/sys_select_.h: New file.
67969         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67970         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67971         * modules/sys_select (Files): Add lib/sys_select_.h.
67972         (Depends-on): Add absolute-header.
67973         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67974         into sys/select.h.
67975
67976 2007-03-02  Bruno Haible  <bruno@clisp.org>
67977
67978         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67979         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67980         values.
67981         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67982         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67983         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67984         * modules/sys_socket (Depends-on): Add absolute-header.
67985         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67986         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67987         (Include): Remove requirement of inclusion of <sys/types.h>.
67988
67989 2007-03-02  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/byteswap_.h (bswap_32): Fix formula.
67992
67993 2007-03-06  Bruno Haible  <bruno@clisp.org>
67994
67995         * modules/sprintf-posix-tests: New file.
67996         * tests/test-sprintf-posix.c: New file.
67997
67998         * modules/sprintf-posix: New file.
67999         * lib/sprintf.c: New file.
68000         * m4/sprintf-posix.m4: New file.
68001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68002         REPLACE_SPRINTF.
68003         * lib/stdio_.h (sprintf): New declaration.
68004         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68005         REPLACE_SPRINTF.
68006
68007 2007-03-06  Bruno Haible  <bruno@clisp.org>
68008
68009         * modules/vsprintf-posix-tests: New file.
68010         * tests/test-vsprintf-posix.c: New file.
68011         * tests/test-sprintf-posix.h: New file.
68012
68013         * modules/vsprintf-posix: New file.
68014         * lib/vsprintf.c: New file.
68015         * m4/vsprintf-posix.m4: New file.
68016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68017         REPLACE_VSPRINTF.
68018         * lib/stdio_.h (vsprintf): New declaration.
68019         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68020         REPLACE_VSPRINTF.
68021
68022 2007-03-06  Bruno Haible  <bruno@clisp.org>
68023
68024         * modules/vsnprintf (Depend-on): Remove minmax.
68025
68026 2007-03-06  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/snprintf-posix-tests: New file.
68029         * tests/test-snprintf-posix.c: New file.
68030
68031         * modules/snprintf-posix: New file.
68032         * m4/snprintf-posix.m4: New file.
68033         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68034         gl_FUNC_SNPRINTF.
68035         (gl_FUNC_SNPRINTF): Invoke it.
68036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68037         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68038         is set.
68039         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68040
68041 2007-03-06  Bruno Haible  <bruno@clisp.org>
68042
68043         * modules/vsnprintf-posix-tests: New file.
68044         * tests/test-vsnprintf-posix.c: New file.
68045         * tests/test-snprintf-posix.h: New file.
68046
68047         * modules/vsnprintf-posix: New file.
68048         * m4/vsnprintf-posix.m4: New file.
68049         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68050         gl_FUNC_VSNPRINTF.
68051         (gl_FUNC_VSNPRINTF): Invoke it.
68052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68053         * lib/stdio_.h (vsnprintf): Define as a replacement if
68054         REPLACE_VSNPRINTF is set.
68055         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68056
68057 2007-03-06  Bruno Haible  <bruno@clisp.org>
68058
68059         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68061
68062 2007-03-06  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68065         (asinl): Declare also if HAVE_DECL_ASINL is set.
68066         (atanl): Declare also if HAVE_DECL_ATANL is set.
68067         (ceill): Declare also if HAVE_DECL_CEILL is set.
68068         (cosl): Declare also if HAVE_DECL_COSL is set.
68069         (expl): Declare also if HAVE_DECL_EXPL is set.
68070         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68071         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68072         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68073         (logl): Declare also if HAVE_DECL_LOGL is set.
68074         (sinl): Declare also if HAVE_DECL_SINL is set.
68075         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68076         (tanl): Declare also if HAVE_DECL_TANL is set.
68077         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68079         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68080         declaration of frexpl, ldexpl.
68081         * modules/printf-frexpl (Depends-on): Add math.
68082         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68083
68084 2007-03-05  Bruno Haible  <bruno@clisp.org>
68085
68086         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68087         frexpl and ldexpl are declared.
68088         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68089
68090 2007-03-05  Bruno Haible  <bruno@clisp.org>
68091
68092         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68093         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68094
68095 2007-03-05  Bruno Haible  <bruno@clisp.org>
68096
68097         * lib/stdio_.h: Include <stddef.h>.
68098
68099 2007-03-05  Bruno Haible  <bruno@clisp.org>
68100
68101         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68102
68103 2007-03-05  Bruno Haible  <bruno@clisp.org>
68104
68105         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68106         NetBSD 4, from Ralf Wildenhues.
68107
68108 2007-03-04  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/vasprintf.h: Update #if logic for the case when the functions
68111         exist but are overridden.
68112
68113 2007-03-04  Bruno Haible  <bruno@clisp.org>
68114
68115         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68116         implementations: glibc-2.4 and MacOS X 10.3.
68117         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68118         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68119         * tests/test-vasprintf-posix.c (test_function): Likewise.
68120
68121 2007-03-04  Bruno Haible  <bruno@clisp.org>
68122
68123         * modules/vasprintf-posix-tests: New file.
68124         * tests/test-vasprintf-posix.c: New file.
68125
68126         * modules/vasprintf-posix: New file.
68127         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68128         defined.
68129         * m4/vasprintf-posix.m4: New file.
68130         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68131         gl_FUNC_VASPRINTF.
68132         (gl_FUNC_VASPRINTF): Invoke it.
68133         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68134         here.
68135         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68136
68137 2007-03-04  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68140         REPLACE_GETTIMEOFDAY.
68141         * modules/sys_time (Makefile.am): Likewise.
68142         * m4/sys_time_h.m4: Likewise.
68143         * m4/gettimeofday.m4: Likewise.
68144
68145 2007-03-04  Bruno Haible  <bruno@clisp.org>
68146
68147         * modules/vasnprintf-posix-tests: New file.
68148         * tests/test-vasnprintf-posix.c: New file.
68149
68150         * modules/vasnprintf-posix: New file.
68151         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68152         printf-frexpl.h.
68153         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68154         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68155         REPLACE_VASNPRINTF is defined.
68156         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68157         gl_FUNC_VASNPRINTF.
68158         (gl_FUNC_VASNPRINTF): Invoke it.
68159         * m4/vasnprintf-posix.m4: New file.
68160         * m4/printf.m4: New file.
68161
68162 2007-03-04  Bruno Haible  <bruno@clisp.org>
68163
68164         Compile progreloc.c only if --enable-relocatable is specified.
68165         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68166         if --enable-relocatable was specified.
68167         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68168         lib_SOURCES.
68169
68170 2007-03-04  Jim Meyering  <jim@meyering.net>
68171
68172         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68173         Use it consistently, rather than enumerating errno constants.
68174
68175 2007-03-04  Bruno Haible  <bruno@clisp.org>
68176
68177         * modules/xvasprintf-tests: New file.
68178         * tests/test-xvasprintf.c: New file.
68179
68180         * modules/vasprintf-tests: New file.
68181         * tests/test-vasprintf.c: New file.
68182
68183         * modules/vasnprintf-tests: New file.
68184         * tests/test-vasnprintf.c: New file.
68185
68186         * modules/vsnprintf-tests: New file.
68187         * tests/test-vsnprintf.c: New file.
68188
68189         * modules/snprintf-tests: New file.
68190         * tests/test-snprintf.c: New file.
68191
68192 2007-03-04  Bruno Haible  <bruno@clisp.org>
68193
68194         Compile relocatable.c only if --enable-relocatable is specified.
68195         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68196         gl_RELOCATABLE_LIBRARY.
68197         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68198         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68199         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68200         gl_RELOCATABLE_LIBRARY.
68201         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68202         (Makefile.am): Remove lib_SOURCES.
68203         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68204         gl_RELOCATABLE_LIBRARY.
68205         (Makefile.am): Remove lib_SOURCES.
68206         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68207         always.
68208         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68209         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68210
68211 2007-03-04  Bruno Haible  <bruno@clisp.org>
68212
68213         * modules/argmatch-tests: New file.
68214         * tests/test-argmatch.c: New file.
68215
68216         * tests/test-allocsa.c (main): Halve the number of loop runs.
68217
68218         * modules/alloca-opt-tests: New file.
68219         * tests/test-alloca-opt.c: New file.
68220
68221 2007-03-04  Jim Meyering  <jim@meyering.net>
68222
68223         Work around difference between Linux ACLs and Solaris 10 ZFS.
68224         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68225         for EINVAL.
68226
68227 2007-03-03  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/relocatable-prog (Depends-on): Add back progreloc's
68230         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68231
68232 2007-03-03  Bruno Haible  <bruno@clisp.org>
68233
68234         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68235         * modules/relocatable-lib: New file.
68236
68237 2007-03-03  Bruno Haible  <bruno@clisp.org>
68238
68239         * modules/relocatable-prog: Renamed from modules/relocatable.
68240         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68241
68242 2007-03-03  Bruno Haible  <bruno@clisp.org>
68243
68244         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68245         m4/relocatable-lib.m4.
68246         (Depends-on): Remove 'relocatable'.
68247         (configure.ac): Add gl_RELOCATABLE_NOP.
68248
68249 2007-03-03  Bruno Haible  <bruno@clisp.org>
68250
68251         * modules/relocatable-prog-wrapper: New file.
68252         * modules/relocatable (Depends-on): Add it. Remove all other
68253         dependencies except progname.
68254         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68255
68256         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68257         (gl_FUNC_STRERROR): Nop.
68258         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68259
68260         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68261         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68262
68263         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68264         (gl_FUNC_READLINK): Update.
68265
68266         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68267
68268 2007-03-03  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68271         * modules/xreadlink (Depends-on): Add unistd.
68272         * modules/xreadlink-with-size (Depends-on): Likewise.
68273
68274 2007-03-03  Bruno Haible  <bruno@clisp.org>
68275
68276         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68277         extracted from gt_FUNC_SETENV.
68278         (gt_FUNC_SETENV): Remove macro.
68279         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68280         remove gt_FUNC_SETENV.
68281
68282 2007-03-03  Bruno Haible  <bruno@clisp.org>
68283
68284         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68285         ENABLE_RELOCATABLE here.
68286         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68287
68288 2007-03-03  Bruno Haible  <bruno@clisp.org>
68289
68290         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68291         * tests/test-rbtreehash_list.c: Include progname.h.
68292         (main): Call set_program_name.
68293
68294         * modules/rbtree-oset-tests (Depends-on): Add progname.
68295         * tests/test-rbtree_oset.c: Include progname.h.
68296         (main): Call set_program_name.
68297
68298         * modules/rbtree-list-tests (Depends-on): Add progname.
68299         * tests/test-rbtree_list.c: Include progname.h.
68300         (main): Call set_program_name.
68301
68302         * modules/linked-list-tests (Depends-on): Add progname.
68303         * tests/test-linked_list.c: Include progname.h.
68304         (main): Call set_program_name.
68305
68306 2007-03-03  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68309         All uses of __restrict changed to _Restrict_.
68310         * lib/glob_.h (__restrict): Remove macro.
68311
68312 2007-03-02  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/gettext (configure.ac): Require gettext infrastructure
68315         from version 0.16.1.
68316
68317 2007-03-02  Bruno Haible  <bruno@clisp.org>
68318
68319         * modules/linkedhash-list-tests (Depends-on): Add progname.
68320         * tests/test-linkedhash_list.c: Include progname.h.
68321         (main): Call set_program_name.
68322
68323         * modules/carray-list-tests (Depends-on): Add progname.
68324         * tests/test-carray_list.c: Include progname.h.
68325         (main): Call set_program_name.
68326
68327         * modules/avltreehash-list-tests (Depends-on): Add progname.
68328         * tests/test-avltreehash_list.c: Include progname.h.
68329         (main): Call set_program_name.
68330
68331         * modules/avltree-oset-tests (Depends-on): Add progname.
68332         * tests/test-avltree_oset.c: Include progname.h.
68333         (main): Call set_program_name.
68334
68335         * modules/avltree-list-tests (Depends-on): Add progname.
68336         * tests/test-avltree_list.c: Include progname.h.
68337         (main): Call set_program_name.
68338
68339         * modules/array-oset-tests (Depends-on): Add progname.
68340         * tests/test-array_oset.c: Include progname.h.
68341         (main): Call set_program_name.
68342
68343         * modules/array-list-tests (Depends-on): Add progname.
68344         * tests/test-array_list.c: Include progname.h.
68345         (main): Call set_program_name.
68346
68347         * modules/argp-tests (Depends-on): Add progname.
68348         * tests/test-argp.c: Include argp.h first. Include progname.h.
68349         (main): Call set_program_name.
68350
68351 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * doc/gnulib-tool.texi (Initial import): Reword description of
68354         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68355         limited effect even if defined after the first system include.
68356
68357 2007-03-01  Bruno Haible  <bruno@clisp.org>
68358
68359         * build-aux/config.libpath: Update to libtool-1.5.22.
68360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68361
68362 2007-03-01  Bruno Haible  <bruno@clisp.org>
68363
68364         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68365         foo_CFLAGS.
68366         Reported by Ralf Wildenhues.
68367
68368 2007-03-01  Bruno Haible  <bruno@clisp.org>
68369
68370         * build-aux/install-reloc: Remove object files left over by some
68371         compilers.
68372         Reported by Ralf Wildenhues.
68373
68374 2007-03-01  Bruno Haible  <bruno@clisp.org>
68375
68376         * build-aux/install-reloc: Break long lines.
68377
68378 2007-03-01  Bruno Haible  <bruno@clisp.org>
68379
68380         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68381         Reported by Ralf Wildenhues.
68382
68383 2007-03-01  Bruno Haible  <bruno@clisp.org>
68384
68385         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68386         include ordering constraints.
68387
68388 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68392         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68393         as another example.
68394         * lib/time_.h: Fix misspelling.
68395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68396         Require gl_HEADER_TIME_H_DEFAULTS.
68397         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68398         * m4/time_r.m4 (gl_TIME_R): Likewise.
68399         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68400
68401 2007-03-01  Bruno Haible  <bruno@clisp.org>
68402
68403         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68404         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68405
68406 2007-03-01  Jim Meyering  <jim@meyering.net>
68407
68408         * modules/xreadlink (Maintainer): Add my name.
68409         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68410
68411 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68412             Bruno Haible  <bruno@clisp.org>
68413
68414         * build-aux/install-reloc: Compile also c-ctype.c.
68415         * build-aux/relocatable.sh.in: New file.
68416         * doc/relocatable.texi: New file.
68417         * doc/relocatable-maint.texi: New file.
68418         * doc/gnulib.texi: Include relocatable-maint.texi.
68419         * lib/progreloc.c: Include unistd.h unconditionally.
68420         * lib/relocwrapper.c: Include unistd.h unconditionally.
68421         Include c-ctype.h.
68422         (add_dotbin): Use c_tolower.
68423         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68424         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68425         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68426         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68427         to m4/relocatable-lib.m4.
68428         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68429         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68430         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68431         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68432         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68433         * modules/relocatable: New file.
68434         * modules/relocatable-lib: New file.
68435         * modules/relocatable-script: New file.
68436
68437 2007-02-28  Bruno Haible  <bruno@clisp.org>
68438
68439         Import --enable-relocatable infrastructure.
68440         * build-aux/config.libpath: New file, from GNU gettext.
68441         * build-aux/install-reloc: New file, from GNU gettext.
68442         * build-aux/reloc-ldflags: New file, from GNU gettext.
68443         * lib/relocatable.h: New file, from GNU gettext.
68444         * lib/relocatable.c: New file, from GNU gettext.
68445         * lib/relocwrapper.c: New file, from GNU gettext.
68446         * m4/relocatable.m4: New file, from GNU gettext.
68447
68448 2007-02-28  Bruno Haible  <bruno@clisp.org>
68449
68450         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68451
68452         * modules/xreadlink: New file, from GNU gettext with modifications.
68453         * lib/xreadlink.c: New file, from GNU gettext.
68454         * lib/xreadlink.h: Add comments.
68455         (xreadlink): New declaration.
68456
68457         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68458         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68459         lib/xreadlink-with-size.c.
68460         (configure.ac): Remove gl_XREADLINK invocation.
68461         (Makefile.am): Augment lib_SOURCES.
68462         * m4/xreadlink.m4: Remove file.
68463         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68464         (xreadlink_with_size): Renamed from xreadink.
68465         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68466         * modules/canonicalize (Depends-on): Replace xreadlink with
68467         xreadlink-with-size.
68468         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68469
68470 2007-02-25  Jim Meyering  <jim@meyering.net>
68471
68472         * build-aux/announce-gen: When complaining about excess arguments,
68473         list them.
68474
68475 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * README: Document signed integer overflow situation more
68478         accurately.
68479
68480 2007-02-25  Bruno Haible  <bruno@clisp.org>
68481
68482         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68483         'a' or 'A' conversion.
68484
68485 2007-02-25  Bruno Haible  <bruno@clisp.org>
68486
68487         * modules/filename: Renamed from modules/pathname.
68488         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68489         lib/concatpath.c with lib/concat-filename.c.
68490         (Makefile.am): Update.
68491         (Include): Replace pathname.h with filename.h.
68492         * lib/filename.h: Renamed from lib/pathname.h.
68493         (concatenated_filename): Renamed from concatenated_pathname.
68494         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68495         (concatenated_filename): Renamed from concatenated_pathname.
68496         * lib/findprog.c: Include filename.h instead of pathname.h.
68497         (find_in_path): Update.
68498         * lib/javacomp.c: Include filename.h instead of pathname.h.
68499         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68500         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68501         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68502         is_oldgcj_14_13_usable, is_javac_usable): Update.
68503         * lib/javaexec.c: Include filename.h instead of pathname.h.
68504         (execute_java_class): Update.
68505         * modules/findprog: Update.
68506         * modules/javacomp: Update.
68507         * modules/javaexec: Update.
68508         * MODULES.html.sh (File system functions): Add 'filename', remove
68509         'pathname'.
68510
68511 2007-02-25  Bruno Haible  <bruno@clisp.org>
68512
68513         * modules/printf-frexpl-tests: New file.
68514         * tests/test-printf-frexpl.c: New file.
68515
68516         * modules/printf-frexpl: New file.
68517         * lib/printf-frexpl.h: New file.
68518         * lib/printf-frexpl.c: New file.
68519         * m4/printf-frexpl.m4: New file.
68520
68521 2007-02-25  Bruno Haible  <bruno@clisp.org>
68522
68523         * modules/printf-frexp-tests: New file.
68524         * tests/test-printf-frexp.c: New file.
68525
68526         * modules/printf-frexp: New file.
68527         * lib/printf-frexp.h: New file.
68528         * lib/printf-frexp.c: New file.
68529         * m4/printf-frexp.m4: New file.
68530
68531 2007-02-25  Bruno Haible  <bruno@clisp.org>
68532
68533         Assume automake >= 1.10 for the tests.
68534         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68535         * modules/arctwo-tests: Likewise.
68536         * modules/argp-tests: Likewise.
68537         * modules/avltree-list-tests: Likewise.
68538         * modules/avltree-oset-tests: Likewise.
68539         * modules/avltreehash-list-tests: Likewise.
68540         * modules/carray-list-tests: Likewise.
68541         * modules/crc-tests: Likewise.
68542         * modules/des-tests: Likewise.
68543         * modules/gc-arcfour-tests: Likewise.
68544         * modules/gc-arctwo-tests: Likewise.
68545         * modules/gc-des-tests: Likewise.
68546         * modules/gc-hmac-md5-tests: Likewise.
68547         * modules/gc-hmac-sha1-tests: Likewise.
68548         * modules/gc-md2-tests: Likewise.
68549         * modules/gc-md4-tests: Likewise.
68550         * modules/gc-md5-tests: Likewise.
68551         * modules/gc-pbkdf2-sha1-tests: Likewise.
68552         * modules/gc-rijndael-tests: Likewise.
68553         * modules/gc-sha1-tests: Likewise.
68554         * modules/gc-tests: Likewise.
68555         * modules/getaddrinfo-tests: Likewise.
68556         * modules/hmac-md5-tests: Likewise.
68557         * modules/hmac-sha1-tests: Likewise.
68558         * modules/linked-list-tests: Likewise.
68559         * modules/linkedhash-list-tests: Likewise.
68560         * modules/lock-tests: Likewise.
68561         * modules/md2-tests: Likewise.
68562         * modules/md4-tests: Likewise.
68563         * modules/md5-tests: Likewise.
68564         * modules/rbtree-list-tests: Likewise.
68565         * modules/rbtree-oset-tests: Likewise.
68566         * modules/rbtreehash-list-tests: Likewise.
68567         * modules/read-file-tests: Likewise.
68568         * modules/rijndael-tests: Likewise.
68569         * modules/stdint-tests: Likewise.
68570         * modules/tls-tests: Likewise.
68571
68572 2007-02-24  Bruno Haible  <bruno@clisp.org>
68573
68574         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68575         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68576         function; instead check whether isnan with a double argument links.
68577         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68578         function; instead check whether isnan with a 'long double' argument
68579         links.
68580         Reported by Eric Blake <ebb9@byu.net>.
68581
68582 2007-02-24  Bruno Haible  <bruno@clisp.org>
68583
68584         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68585         defined.
68586         * lib/isnanl.c: Remove all code. Just include isnan.c.
68587         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68588
68589 2007-02-25  Jim Meyering  <jim@meyering.net>
68590
68591         Avoid conflicting types for 'unsetenv' on FreeBSD.
68592         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68593         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68594         in stdlib.h.
68595
68596 2007-02-24  Bruno Haible  <bruno@clisp.org>
68597
68598         * modules/isnanl-nolibm-tests: New file.
68599         * tests/test-isnanl.c: New file.
68600
68601         * modules/isnanl-nolibm: New file.
68602         * lib/isnanl.h: New file.
68603         * lib/isnanl.c: New file.
68604         * m4/isnanl.m4: New file.
68605
68606 2007-02-24  Bruno Haible  <bruno@clisp.org>
68607
68608         * modules/isnan-nolibm-tests: New file.
68609         * tests/test-isnan.c: New file.
68610
68611         * modules/isnan-nolibm: New file.
68612         * lib/isnan.h: New file.
68613         * lib/isnan.c: New file.
68614         * m4/isnan.m4: New file.
68615
68616 2007-02-24  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68619         assume that an exponent fits in 20 bits.
68620
68621 2007-02-24  Jim Meyering  <jim@meyering.net>
68622
68623         * m4/regex.m4: Update the description of the configure-time option,
68624         --without-included-regex, to state accurately what the defaults are,
68625         and perhaps to give people an idea why using this option is risky.
68626
68627 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68630         loops on small arguments.  This attempts to avoid the problem
68631         Bruno Haible reported for AIX 4.3.2 in
68632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68633
68634 2007-02-23  Bruno Haible  <bruno@clisp.org>
68635
68636         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68637         Needed for help2man.
68638
68639 2007-02-23  Karl Berry  <karl@gnu.org>
68640
68641         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68642         exists, foo.h should be cvs-ignored, not committed.
68643
68644 2007-02-23  Eric Blake  <ebb9@byu.net>
68645
68646         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68647         * lib/stat-time.h (includes): Likewise.
68648         * lib/utimecmp.c (includes): Likewise.
68649         * lib/utimens.h (includes): Likewise.
68650         * lib/getdate.y (includes): Also include "timespec.h" for use
68651         internal to the module.
68652         * modules/utimens (Depends-on): Revert yesterday's patch.
68653         * modules/nanosleep (Depends-on): Add missing dependency.
68654
68655 2007-02-22  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/glob.c: Don't include getlogin_r.h.
68658
68659 2007-02-22  Jim Meyering  <jim@meyering.net>
68660
68661         * modules/utimens (Depends-on): Add timespec, required for
68662         utimens.h's inclusion of timespec.h.
68663
68664 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68667         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68668         Schwab in
68669         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68670         I'll try to think of a better way to fix the Solaris problem.
68671
68672         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68673         like glibc; on Solaris 10, it fails with errno == EINVAL.
68674         POSIX says the behavior is unspecified if the first argument is NULL,
68675         so play it safe and never pass NULL to the system getcwd.
68676
68677 2007-02-21  Jim Meyering  <jim@meyering.net>
68678
68679         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68680         of gettimeofday.  It would conflict with the one now always
68681         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68682         an IRIX 6.5 build failure.
68683
68684 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         Minor fixups to port to Solaris 10 with Sun C 5.8.
68687         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68688         * modules/getcwd (Depends-on): Add dirfd.
68689         * lib/putenv.c (putenv): #undef it.
68690         (rpl_putenv): New decl.
68691         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68692
68693 2007-02-20  Bruno Haible  <bruno@clisp.org>
68694
68695         * modules/stdio-tests: New file.
68696         * tests/test-stdio.c: New file.
68697
68698         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68699         (Depends-on): Add stdio.
68700         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68701         (Include): Use <stdio.h> instead of vsnprintf.h.
68702         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68703         HAVE_DECL_VSNPRINTF.
68704         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68705
68706         * modules/snprintf (Files): Remove lib/snprintf.h.
68707         (Depends-on): Add stdio.
68708         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68709         (Include): Use <stdio.h> instead of snprintf.h.
68710         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68711         HAVE_DECL_SNPRINTF.
68712         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68713         * lib/getaddrinfo.c: Likewise.
68714
68715         * modules/stdio: New file.
68716         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68717         * lib/snprintf.h: Remove file.
68718         * lib/vsnprintf.h: Remove file.
68719         * lib/.cppi-disable: Remove snprintf.h.
68720         * m4/stdio_h.m4: New file.
68721         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68722
68723 2007-02-20  Jim Meyering  <jim@meyering.net>
68724
68725         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68726         used by e.g., mingw.  From Bruno Haible.
68727
68728 2007-02-19  Bruno Haible  <bruno@clisp.org>
68729
68730         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68731         warnings.
68732         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68733
68734 2007-02-19  Bruno Haible  <bruno@clisp.org>
68735
68736         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68737         from mingw users.
68738
68739 2007-02-19  Bruno Haible  <bruno@clisp.org>
68740
68741         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68742         warnings.
68743         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68744
68745 2007-02-19  Jim Meyering  <jim@meyering.net>
68746
68747         Don't use FD after a successful "fdopendir (fd)".
68748         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68749         Reset it by calling dirfd on the just-obtained DIR*.
68750
68751         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68752         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68753
68754 2007-02-18  Bruno Haible  <bruno@clisp.org>
68755
68756         * lib/readlink.c: Include <unistd.h>.
68757         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68758         HAVE_READLINK.
68759         * modules/readlink (Depends-on): Add unistd.
68760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68761         (Include): Add <unistd.h>.
68762
68763         * lib/getlogin_r.h: Remove file.
68764         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68765         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68766         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68767         HAVE_DECL_GETLOGIN_R.
68768         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68770         (Include): Use <unistd.h> instead of getlogin_r.h.
68771
68772         * lib/getcwd.h: Remove file.
68773         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68774         * lib/xgetcwd.c: Likewise.
68775         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68776         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68777         * modules/getcwd (Files): Remove lib/getcwd.h.
68778         (Depends-on): Add unistd.
68779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68780         (Include): Use <unistd.h> instad of getcwd.h.
68781
68782         * lib/ftruncate.c: Include <unistd.h> first.
68783         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68784         Set HAVE_FTRUNCATE.
68785         * modules/ftruncate (Depends-on): Add unistd.
68786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68787
68788         * lib/fchdir.c: Include <unistd.h> first.
68789         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68791         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68792         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68793         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68794
68795         * lib/dup2.c: Include <unistd.h> first.
68796         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68797         HAVE_DUP2.
68798         * modules/dup2 (Depends-on): Add unistd.
68799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68800
68801         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68802         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68803         REPLACE_CHOWN. Don't define chown as a macro here.
68804         * modules/chown (Depends-on): Add unistd.
68805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68806
68807         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68808         Add definition for GL_LINK_WARNING.
68809         (chown, dup2): New declarations.
68810         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68811         link warning.
68812         (ftruncate): New declaration.
68813         (getcwd): New declaration, taken from old getcwd.h.
68814         (getlogin_r): New declaration, taken from old getlogin_r.h.
68815         (readlink): New declaration.
68816         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68817         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68818         (gl_PREREQ_UNISTD): Remove macro.
68819         (gl_UNISTD_MODULE_INDICATOR): New macro.
68820         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68821         many new variables. Don't set UNISTD_H.
68822         * modules/unistd (Description): Change.
68823         (Depends-on): Add link-warning.
68824         (configure.ac): Update.
68825         (Makefile.am): Create unistd.h always. Substitute many new variables
68826         into it.
68827
68828 2007-02-18  Bruno Haible  <bruno@clisp.org>
68829
68830         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68831         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68832         HAVE_GETSUBOPT.
68833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68834         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68835         * lib/getsubopt.h: Remove file.
68836         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68837         (Depends-on): Add stdlib.
68838         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68839         (Includes): Use <stdlib.h> instead of getsubopt.h.
68840         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68841         Set HAVE_GETSUBOPT.
68842         * lib/getsubopt.c: Don't include getsubopt.h.
68843
68844 2007-02-18  Bruno Haible  <bruno@clisp.org>
68845
68846         * modules/fchdir (Depends-on): Add dup2.
68847
68848 2007-02-18  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/stdlib_.h: Handle glibc's special invocation convention
68851         specially.
68852
68853 2007-02-18  Bruno Haible  <bruno@clisp.org>
68854
68855         * modules/stdlib-tests: New file.
68856         * tests/test-stdlib.c: New file.
68857
68858         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68859         (Depends-on): Add stdlib.
68860         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68861         (Includes): Use <stdlib.h> instead of mkstemp.h.
68862         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68863         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68864         * lib/mkstemp.c: Don't include mkstemp.h.
68865         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68866         * lib/stdlib--.h: Don't include mkstemp.h.
68867
68868         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68869         (Depends-on): Add stdlib.
68870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68871         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68872         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68873         HAVE_MKDTEMP.
68874         * lib/mkdtemp.c: Don't include mkdtemp.h.
68875         * lib/clean-temp.c: Don't include mkdtemp.h.
68876
68877         * modules/exit (Files): Remove lib/exit.h.
68878         (Depends-on): Add stdlib.
68879         (Makefile.am): Remove lib_SOURCES.
68880         (Include): Use <stdlib.h> instead of exit.h.
68881         * lib/argmatch.c: Don't include exit.h.
68882         * lib/execute.c: Likewise.
68883         * lib/pagealign_alloc.c: Likewise.
68884         * lib/pipe.c: Likewise.
68885         * lib/wait-process.c: Likewise.
68886         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68887         * lib/exitfail.c: Likewise.
68888         * lib/savewd.c: Likewise.
68889         * lib/xsetenv.c: Likewise.
68890
68891         * modules/stdlib: New file.
68892         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68893         and extra comments about mkstemp().
68894         * lib/exit.h: Remove file.
68895         * lib/mkdtemp.h: Remove file.
68896         * lib/mkstemp.h: Remove file.
68897         * m4/stdlib_h.m4: New file.
68898         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68899
68900 2007-02-18  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/math-tests: New file.
68903         * tests/test-math.c: New file.
68904
68905         * modules/math: New file.
68906         * modules/mathl (Files): Remove lib/mathl.h.
68907         (Depends-on): Add math.
68908         (Makefile.am): Don't mention mathl.h.
68909         (Include): Use <math.h> instead of mathl.h.
68910         * lib/math_.h: New file.
68911         * lib/mathl.h: Remove file.
68912         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68913         mathl.h.
68914         * lib/asinl.c: Likewise.
68915         * lib/atanl.c: Likewise.
68916         * lib/ceill.c: Likewise.
68917         * lib/cosl.c: Likewise.
68918         * lib/expl.c: Likewise.
68919         * lib/floorl.c: Likewise.
68920         * lib/frexpl.c: Likewise.
68921         * lib/ldexpl.c: Likewise.
68922         * lib/logl.c: Likewise.
68923         * lib/sincosl.c: Likewise.
68924         * lib/sinl.c: Likewise.
68925         * lib/sqrtl.c: Likewise.
68926         * lib/tanl.c: Likewise.
68927         * lib/trigl.c: Likewise.
68928         * m4/math_h.m4: New file.
68929         * MODULES.html.sh (Mathematics): Add math.
68930
68931 2007-02-17  Bruno Haible  <bruno@clisp.org>
68932
68933         * modules/wctype-tests: New file.
68934         * tests/test-wctype.c: New file.
68935
68936         * modules/wchar-tests: New file.
68937         * tests/test-wchar.c: New file.
68938
68939         * modules/unistd-tests: New file.
68940         * tests/test-unistd.c: New file.
68941
68942         * modules/time-tests: New file.
68943         * tests/test-time.c: New file.
68944
68945         * modules/sysexits-tests: New file.
68946         * tests/test-sysexits.c: New file.
68947
68948         * modules/sys_time-tests: New file.
68949         * tests/test-sys_time.c: New file.
68950
68951         * modules/sys_stat-tests: New file.
68952         * tests/test-sys_stat.c: New file.
68953
68954         * modules/sys_socket-tests: New file.
68955         * tests/test-sys_socket.c: New file.
68956
68957         * modules/sys_select-tests: New file.
68958         * tests/test-sys_select.c: New file.
68959
68960         * modules/string-tests: New file.
68961         * tests/test-string.c: New file.
68962
68963         * modules/stdbool-tests: New file.
68964         * tests/test-stdbool.c: New file.
68965
68966         * modules/netinet_in-tests: New file.
68967         * tests/test-netinet_in.c: New file.
68968
68969         * modules/inttypes-tests: New file.
68970         * tests/test-inttypes.c: New file.
68971
68972         * modules/fcntl-tests: New file.
68973         * tests/test-fcntl.c: New file.
68974
68975         * modules/byteswap-tests: New file.
68976         * tests/test-byteswap.c: New file.
68977
68978         * modules/arpa_inet-tests: New file.
68979         * tests/test-arpa_inet.c: New file.
68980
68981 2007-02-17  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68984         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68985         if the corresponding module is not enabled. Emit link warnings if
68986         the function is used nevertheless.
68987         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68988         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68989         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68990         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68991         * modules/inttypes (Depends-on): Add link-warning.
68992         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68993         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68994         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68995         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68996         * modules/imaxdiv (configure.ac): Likewise.
68997         * modules/strtoimax (configure.ac): Likewise.
68998         * modules/strtoumax (configure.ac): Likewise.
68999
69000 2007-02-17  Bruno Haible  <bruno@clisp.org>
69001
69002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69003         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69004         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69005         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69006
69007 2007-02-17  Bruno Haible  <bruno@clisp.org>
69008
69009         * modules/link-warning: New file.
69010         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69011         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69012         * modules/string (Depends-on): Add link-warning.
69013         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69014         string.h.
69015         * MODULES.html.sh (Support for building libraries and executables): Add
69016         link-warning.
69017
69018 2007-02-17  Bruno Haible  <bruno@clisp.org>
69019
69020         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69021         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69022         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69023         long lines.
69024
69025 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69026             Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/tmpfile: New file.
69029         * lib/tmpfile.c: New file.
69030         * m4/tmpfile.m4: New file.
69031         * MODULES.html.sh (func_all_modules): New section "Input/output".
69032
69033 2007-02-15  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69036         (supports_delete_on_close): New function.
69037         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69038
69039 2007-02-14  Bruno Haible  <bruno@clisp.org>
69040
69041         * modules/mbspcasecmp-tests: New file.
69042         * tests/test-mbspcasecmp.sh: New file.
69043         * tests/test-mbspcasecmp.c: New file.
69044
69045         New module mbspcasecmp.
69046         * modules/mbspcasecmp: New file.
69047         * lib/mbspcasecmp.c: New file.
69048         * lib/string_.h (strncasecmp): Change warning message.
69049         (mbspcasecmp): New declaration.
69050         * m4/mbspcasecmp.m4: New file.
69051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69052         GNULIB_MBSPCASECMP.
69053         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69054         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69055
69056 2007-02-14  Bruno Haible  <bruno@clisp.org>
69057
69058         * modules/mbsncasecmp-tests: New file.
69059         * tests/test-mbsncasecmp.sh: New file.
69060         * tests/test-mbsncasecmp.c: New file.
69061
69062         New module mbsncasecmp.
69063         * modules/mbsncasecmp: New file.
69064         * lib/mbsncasecmp.c: New file.
69065         * lib/string_.h (mbsncasecmp): New declaration.
69066         * m4/mbsncasecmp.m4: New file.
69067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69068         GNULIB_MBSNCASECMP.
69069         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69070         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69071
69072 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69075         Verify that it doesn't overlap with our flags.
69076         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69077         do not have the desired effect in multibyte locales; instead, use
69078         mbscasecmp.
69079         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69080         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69081         we don't require GNU fnmatch ourselves (if our users require it, they
69082         should do so explicitly).
69083
69084         Fix regex code so it doesn't rely on strcasecmp.
69085         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69086         Otherwise, include gnulib's langinfo.h.
69087         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69088         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69089         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69090         * modules/regex (FILES): Remove m4/codeset.m4.
69091         (Depends-on): Add localcharset.  Remove strcase.
69092
69093 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69094
69095         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69096         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69097
69098 2007-02-13  Bruno Haible  <bruno@clisp.org>
69099
69100         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69101         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69102
69103 2007-02-12  Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69106         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69107         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69108         time warning rather than a link error.
69109
69110 2007-02-12  Bruno Haible  <bruno@clisp.org>
69111
69112         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69113         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69115
69116 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69119         args, not 2.
69120
69121 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         New module 'time', so that apps can include <time.h> as per
69124         POSIX and GNU instead of separate include files like time_r.h
69125         and timegm.h.  This implementation tries out a simpler approach
69126         for replacing decls in standard include files (as compared to
69127         the string module), somewhat as an experiment.
69128
69129         * config/srclist.txt: Comment out mktime.c for now.
69130         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69131         since it doesn't apply any more.  Use generic wording instead.
69132         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69133         'time'.
69134         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69135         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69136         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69137         Don't include <sys/types.h>; no longer needed since we assume C89.
69138         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69139         * lib/strftime.c: Likewise.
69140         * lib/time_r.c: Likewise.
69141         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69142         * lib/nanosleep.c: Include <time.h> first, to check interface.
69143         * lib/strptime.c: Likewise.
69144         * lib/time_r.c: Likewise.
69145         * lib/timegm.c: Likewise.
69146         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69147         needed.
69148         * lib/timegm.c: Don't include timegm.h; no longer needed.
69149         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69150         time.h now handles any problems in that area.
69151         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69152         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69153         that time.h defines struct timespec.
69154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69155         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69156         handles that.
69157         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69158         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69159         needed.  Set REPLACE_LOCALTIME.
69160         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69161         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69162         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69163         nanosleep; time_h.m4 now does that.  Don't require
69164         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69165         module handles this now.
69166         * modules/getdate (Depends-on): Remove timespec.  Add time.
69167         * modules/nanosleep (Depends-on): Likewise.
69168         * modules/stat-time (Depends-on): Likewise.
69169         * modules/nanosleep (Include): Include time.h, not timespec.h.
69170         * modules/strptime (Files): Remove lib/strptime.h.
69171         (Depends-on): Add extensions, time.
69172         (Include): Include time.h, not strptime.h.
69173         * modules/time_r (Files): Remove lib/time_r.h.
69174         (Depends-on): Add time.
69175         (Include): Include time.h, not time_r.h.
69176         * modules/timegm: Likewise.
69177         * modules/timespec (Description): Now does timespec-related decls
69178         of our own, instead of struct timespec itself.
69179         (Depends-on): Add time; remove extensions.
69180         (Maintainer): Add self.
69181         * modules/utimecmp (Depends-on): Add time; remove timespec.
69182         * modules/utimens (Depends-on): Likewise.
69183         * modules/xnanosleep (Depends-on): Likewise.
69184
69185 2007-02-11  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/c-strstr.c: Include allocsa.h.
69188         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69189         * lib/c-strcasestr.c: Include allocsa.h.
69190         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69191         * lib/strcasestr.c: Include allocsa.h.
69192         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69193         * lib/mbsstr.c: Include allocsa.h.
69194         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69195         allocsa/freesa instead of malloc/free.
69196         * lib/mbscasestr.c: Include allocsa.h.
69197         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69198         allocsa/freesa instead of malloc/free.
69199         * modules/c-strstr (Depends-on): Add allocsa.
69200         * modules/c-strcasestr (Depends-on): Likewise.
69201         * modules/strcasestr (Depends-on): Likewise.
69202         * modules/mbsstr (Depends-on): Likewise.
69203         * modules/mbscasestr (Depends-on): Likewise.
69204
69205 2007-02-11  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69208
69209         * modules/mbsspn-tests: New file.
69210         * tests/test-mbsspn.sh: New file.
69211         * tests/test-mbsspn.c: New file.
69212
69213 2007-02-11  Bruno Haible  <bruno@clisp.org>
69214
69215         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69216
69217         * modules/mbspbrk-tests: New file.
69218         * tests/test-mbspbrk.sh: New file.
69219         * tests/test-mbspbrk.c: New file.
69220
69221 2007-02-11  Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69224         unneeded cast.
69225
69226         * modules/mbscspn-tests: New file.
69227         * tests/test-mbscspn.sh: New file.
69228         * tests/test-mbscspn.c: New file.
69229
69230 2007-02-11  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/mbscasecmp-tests: New file.
69233         * tests/test-mbscasecmp.sh: New file.
69234         * tests/test-mbscasecmp.c: New file.
69235
69236 2007-02-11  Bruno Haible  <bruno@clisp.org>
69237
69238         Ensure O(n) worst-case complexity of mbscasestr.
69239         * lib/mbscasestr.c: Include stdbool.h.
69240         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69241         functions.
69242         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69243         the bookkeeping indicates that it's worth it.
69244         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69245
69246         * modules/mbscasestr-tests: New file.
69247         * tests/test-mbscasestr1.c: New file.
69248         * tests/test-mbscasestr2.sh: New file.
69249         * tests/test-mbscasestr2.c: New file.
69250         * tests/test-mbscasestr3.sh: New file.
69251         * tests/test-mbscasestr3.c: New file.
69252         * tests/test-mbscasestr4.sh: New file.
69253         * tests/test-mbscasestr4.c: New file.
69254         * m4/locale-tr.m4: New file.
69255
69256 2007-02-11  Bruno Haible  <bruno@clisp.org>
69257
69258         Ensure O(n) worst-case complexity of mbsstr.
69259         * lib/mbsstr.c: Include stdbool.h.
69260         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69261         functions.
69262         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69263         bookkeeping indicates that it's worth it.
69264         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69265
69266         * modules/mbsstr-tests: New file.
69267         * tests/test-mbsstr1.c: New file.
69268         * tests/test-mbsstr2.sh: New file.
69269         * tests/test-mbsstr2.c: New file.
69270         * tests/test-mbsstr3.sh: New file.
69271         * tests/test-mbsstr3.c: New file.
69272         * m4/locale-fr.m4: New file.
69273
69274 2007-02-11  Bruno Haible  <bruno@clisp.org>
69275
69276         * lib/mbsrchr.c (mbsrchr): Fix bug.
69277
69278         * modules/mbsrchr-tests: New file.
69279         * tests/test-mbsrchr.sh: New file.
69280         * tests/test-mbsrchr.c: New file.
69281
69282 2007-02-11  Bruno Haible  <bruno@clisp.org>
69283
69284         * lib/mbschr.c (mbschr): Fix bug.
69285
69286         * modules/mbschr-tests: New file.
69287         * tests/test-mbschr.sh: New file.
69288         * tests/test-mbschr.c: New file.
69289         * m4/locale-zh.m4: New file.
69290
69291 2007-02-11  Bruno Haible  <bruno@clisp.org>
69292
69293         Support for copying multibyte string iterators.
69294         * lib/mbiter.h: Include <string.h>.
69295         (mbiter_multi_copy): New function.
69296         (mbi_copy): New macro.
69297         * lib/mbuiter.h: Include <string.h>.
69298         (mbuiter_multi_copy): New function.
69299         (mbui_copy): New macro.
69300
69301 2007-02-11  Bruno Haible  <bruno@clisp.org>
69302
69303         New module mbslen.
69304         * modules/mbslen: New file.
69305         * lib/mbslen.c: New file.
69306         * lib/string_.h (mbslen): New declaration.
69307         * m4/mbslen.m4: New file.
69308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69309         GNULIB_MBSLEN.
69310         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69311         * MODULES.html.sh (Internationalization functions): Add mbslen.
69312
69313 2007-02-11  Bruno Haible  <bruno@clisp.org>
69314
69315         Ensure O(n) worst-case complexity of strcasestr substitute.
69316         * lib/strcasestr.c: Include stdbool.h.
69317         (knuth_morris_pratt): New function.
69318         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69319         bookkeeping indicates that it's worth it.
69320         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69321
69322         * modules/strcasestr-tests: New file.
69323         * tests/test-strcasestr.c: New file.
69324
69325 2007-02-11  Bruno Haible  <bruno@clisp.org>
69326
69327         Ensure O(n) worst-case complexity of c_strcasestr.
69328         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69329         (knuth_morris_pratt): New function.
69330         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69331         the bookkeeping indicates that it's worth it.
69332         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69333
69334         * modules/c-strcasestr-tests: New file.
69335         * tests/test-c-strcasestr.c: New file.
69336
69337 2007-02-11  Bruno Haible  <bruno@clisp.org>
69338
69339         Ensure O(n) worst-case complexity of c_strstr.
69340         * lib/c-strstr.c: Include stdbool.h, string.h.
69341         (knuth_morris_pratt): New function.
69342         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69343         bookkeeping indicates that it's worth it.
69344         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69345
69346         * lib/c-strstr.c: Complete rewrite for maintainability.
69347
69348         * modules/c-strstr-tests: New file.
69349         * tests/test-c-strstr.c: New file.
69350
69351 2007-02-11  Bruno Haible  <bruno@clisp.org>
69352
69353         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69354         5.2.1 and earlier, whereby \055 was treated just like the range
69355         delimiter '-'.
69356         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69357
69358 2007-02-08  Bruno Haible  <bruno@clisp.org>
69359
69360         * modules/regex (Depends-on): Add stdbool.
69361         Reported by Dalibor Topic <robilad@kaffe.org>.
69362
69363 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69366         Prefer returning from main to exiting from it.
69367         Remove unnecessary parens after sizeof.
69368
69369 2007-02-05  Bruno Haible  <bruno@clisp.org>
69370
69371         New module mbssep.
69372         * modules/mbssep: New file.
69373         * lib/mbssep.c: New file.
69374         * lib/string_.h (strsep): Add a conditional link warning.
69375         (mbssep): New declaration.
69376         * m4/mbssep.m4: New file.
69377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69378         GNULIB_MBSSEP.
69379         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69380         * MODULES.html.sh (Internationalization functions): Add mbssep.
69381
69382 2007-02-05  Bruno Haible  <bruno@clisp.org>
69383
69384         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69385         Optimize search in case of 1 delimiter.
69386
69387 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69388
69389         * lib/acl.h: Include sys/types.h before sys/acl.h.
69390
69391 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69392
69393         Merge upstream fix for glibc bugzilla #3957:
69394
69395         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69396
69397         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69398         bit for RE_HAT_LISTS_NOT_NEWLINE.
69399         (build_charclass_op): Remove bogus comment.
69400
69401 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69402
69403         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69404
69405 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69408         * lib/memmem.c [!defined _LIBC]: Include config.h.
69409
69410 2007-02-04  Bruno Haible  <bruno@clisp.org>
69411
69412         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69413         warning message.
69414
69415 2007-02-04  Bruno Haible  <bruno@clisp.org>
69416
69417         New module mbstok_r.
69418         * modules/mbstok_r: New file.
69419         * lib/mbstok_r.c: New file.
69420         * lib/string_.h (strtok_r): Change argument names to match the
69421         comments. Add a conditional link warning.
69422         (mbstok_r): New declaration.
69423         * m4/mbstok_r.m4: New file.
69424         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69425         GNULIB_MBSTOK_R.
69426         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69427         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69428
69429 2007-02-04  Bruno Haible  <bruno@clisp.org>
69430
69431         New module mbsspn.
69432         * modules/mbsspn: New file.
69433         * lib/mbsspn.c: New file.
69434         * lib/string_.h (strspn): Add a conditional link warning.
69435         (mbsspn): New declaration.
69436         * m4/mbsspn.m4: New file.
69437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69438         GNULIB_MBSSPN.
69439         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69440         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69441
69442 2007-02-04  Bruno Haible  <bruno@clisp.org>
69443
69444         New module mbspbrk.
69445         * modules/mbspbrk: New file.
69446         * lib/mbspbrk.c: New file.
69447         * lib/string_.h (strpbrk): Add a conditional link warning.
69448         (mbspbrk): New declaration.
69449         * m4/mbspbrk.m4: New file.
69450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69451         GNULIB_MBSPBRK.
69452         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69453         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69454
69455 2007-02-04  Bruno Haible  <bruno@clisp.org>
69456
69457         New module mbscspn.
69458         * modules/mbscspn: New file.
69459         * lib/mbscspn.c: New file.
69460         * lib/string_.h (strcspn): Add a conditional link warning.
69461         (mbscspn): New declaration.
69462         * m4/mbscspn.m4: New file.
69463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69464         GNULIB_MBSCSPN.
69465         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69466         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69467
69468 2007-02-04  Bruno Haible  <bruno@clisp.org>
69469
69470         New module mbscasestr, reduced goal of strcasestr.
69471         * modules/mbscasestr: New file.
69472         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69473         (mbscasestr): Renamed from strcasestr.
69474         * lib/strcasestr.c: Don't include mbuiter.h.
69475         (strcasestr): Remove support for multibyte locales.
69476         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69477         Change the conditional link warning.
69478         (mbscasestr): New declaration.
69479         * m4/mbscasestr.m4: New file.
69480         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69481         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69482         REPLACE_STRCASESTR.
69483         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69485         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69486         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69487         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69488         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69489         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69490         (Depends-on): Remove mbuiter.
69491         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69492
69493 2007-02-04  Bruno Haible  <bruno@clisp.org>
69494
69495         Simplify handling of strncasecmp.
69496         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69497         the conditional link warning.
69498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69499         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69500         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69501         * modules/strcase (configure.ac): Don't invoke
69502         gl_STRING_MODULE_INDICATOR.
69503         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69504
69505 2007-02-04  Bruno Haible  <bruno@clisp.org>
69506
69507         New module mbscasecmp, reduced goal of strcasecmp.
69508         * modules/mbscasecmp: New file.
69509         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69510         (mbscasecmp): Renamed from strcasecmp.
69511         * lib/strcasecmp.c: Don't include mbuiter.h.
69512         (strcasecmp): Remove support for multibyte locales.
69513         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69514         Change the conditional link warning.
69515         (mbscasecmp): New declaration.
69516         * m4/mbscasecmp.m4: New file.
69517         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69518         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69519         REPLACE_STRCASECMP.
69520         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69522         GNULIB_MBSCASECMP.
69523         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69524         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69525         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69526         (Depends-on): Remove mbuiter.
69527         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69528
69529 2007-02-04  Bruno Haible  <bruno@clisp.org>
69530
69531         New module mbsstr. Remove module strstr.
69532         * modules/mbsstr: New file.
69533         * modules/strstr: Remove file.
69534         * lib/mbsstr.c: Renamed from lib/strstr.c.
69535         (mbsstr): Renamed from strstr.
69536         * lib/string_.h (strstr): Remove declaration. Change the conditional
69537         link warning.
69538         (mbsstr): New declaration.
69539         * m4/mbsstr.m4: New file.
69540         * m4/strstr.m4: Remove file.
69541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69542         REPLACE_STRSTR.
69543         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69544         Don't initialize GNULIB_STRSTR.
69545         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69546         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69547         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69548         (Support for systems lacking ANSI C 89): Remove strstr.
69549
69550 2007-02-04  Bruno Haible  <bruno@clisp.org>
69551
69552         New module mbsrchr.
69553         * modules/mbsrchr: New file.
69554         * lib/mbsrchr.c: New file.
69555         * lib/string_.h (strrchr): Add a conditional link warning.
69556         (mbsrchr): New declaration.
69557         * m4/mbsrchr.m4: New file.
69558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69559         GNULIB_MBSRCHR.
69560         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69561         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69562
69563 2007-02-04  Bruno Haible  <bruno@clisp.org>
69564
69565         New module mbschr.
69566         * modules/mbschr: New file.
69567         * lib/mbschr.c: New file.
69568         * lib/string_.h (strchr): Add a conditional link warning.
69569         (mbschr): New declaration.
69570         * m4/mbschr.m4: New file.
69571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69572         GNULIB_MBSCHR.
69573         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69574         * MODULES.html.sh (Internationalization functions): Add mbschr.
69575
69576 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69577
69578         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69579
69580         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69581
69582 2007-02-04  Bruno Haible  <bruno@clisp.org>
69583
69584         New module description section 'configure.ac-early'.
69585         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69586         (func_get_autoconf_early_snippet): New function.
69587         (func_import, func_create_testdir): Use it. Remove special cases for
69588         modules 'extensions' and 'lock'.
69589         * modules/extensions (configure.ac-early): Require
69590         gl_USE_SYSTEM_EXTENSIONS.
69591         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69592
69593 2007-02-04  Bruno Haible  <bruno@clisp.org>
69594
69595         Make use of gcj-4.3's -fsource and -ftarget option.
69596         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69597         and if so try the options -fsource and -ftarget.
69598         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69599         source_version, ftarget_option, target_version arguments.
69600         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69601         (is_envjavac_oldgcj_14_14_usable): Renamed from
69602         is_envjavac_gcj_14_14_usable.
69603         (is_envjavac_oldgcj_14_13_usable): Renamed from
69604         is_envjavac_gcj_14_13_usable.
69605         (is_gcj_present): Update.
69606         (is_gcj_43, is_gcj43_usable): New functions.
69607         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69608         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69609         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69610         try the options -fsource and -ftarget.
69611
69612 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69615         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69616         larger value.
69617
69618 2007-02-03  Jim Meyering  <jim@meyering.net>
69619
69620         Give tools a better chance to allocate space for very large buffers.
69621         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69622
69623         Make pwd and readlink work also when run with an unreadable parent dir
69624         on systems with openat support.
69625         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69626         provided getcwd function, even when we have openat support.
69627         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69628
69629 2007-02-02  Bruno Haible  <bruno@clisp.org>
69630
69631         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69632         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69633         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69634         portability problems if one of these functions is only used on specific
69635         platforms.
69636         Reported by Paul Eggert.
69637
69638 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69641         is causing more trouble than it's curing.
69642         * lib/regex_internal.h (__mempcpy): Remove.
69643         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69644         (and make the code a tad smaller to boot).
69645         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69646
69647 2007-02-02  Jim Meyering  <jim@meyering.net>
69648
69649         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69650         section, not in the Makefile.am: one.
69651
69652 2007-02-02  Eric Blake  <ebb9@byu.net>
69653
69654         * lib/strchrnul.c: Always include config.h first.
69655
69656         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69657         gnulib strstr is not necessary here.
69658
69659 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69660
69661         * m4/socklen.m4: Fix typo.
69662
69663 2007-02-02  Eric Blake  <ebb9@byu.net>
69664
69665         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69666         * modules/netinet_in (Makefile.am): Likewise.
69667
69668 2007-02-01  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/string_.h (GL_LINK_WARNING): New macro.
69671         (strcasecmp, strstr, strcasestr): If provided by the system,
69672         conditionally define as a macro that leads to a warning instead of to
69673         an error.
69674         (strncasecmp): Conditionally define as a macro that leads to a warning.
69675
69676 2007-02-01  Karl Berry  <karl@gnu.org>
69677
69678         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69679
69680 2007-02-01  Bruno Haible  <bruno@clisp.org>
69681
69682         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69683         renamings.
69684
69685 2007-02-01  Eric Blake  <ebb9@byu.net>
69686
69687         * modules/regex (Depends-on): Revert dependence on mempcpy.
69688         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69689         module's definition of mempcpy.
69690         Reported by Paul Eggert.
69691
69692 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69695         the symbol XYZ before redefining it.  This fixes a problem with
69696         programs that don't use XYZ, when compiled on systems that define
69697         XYZ to something else.
69698
69699 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69700
69701         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69702         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69703         writeable to group or other and (2) is intended to have a special
69704         mode bit that is set or cleared.  In such a case, the directory
69705         should be neither group- nor other-writeable until the special
69706         mode bits are right.
69707
69708 2007-01-31  Eric Blake  <ebb9@byu.net>
69709
69710         * modules/mountlist (Depends-on): Add strstr.
69711
69712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69713         bug.
69714         * modules/string (Makefile.am): Remove redundant replacement.
69715         * modules/regex (Depends-on): Add mempcpy.
69716
69717 2007-01-31  Bruno Haible  <bruno@clisp.org>
69718
69719         New module description field 'Link'.
69720         * gnulib-tool (func_usage): Document --extract-link-directive.
69721         (sed_extract_prog): Recognize 'Link' directive.
69722         (func_get_link_directive): New function.
69723         (func_import): Show summary of link directives.
69724         Handle --extract-link-directive option.
69725         * modules/acl (Link): New section.
69726         * modules/clock-time (Link): New section.
69727         * modules/euidaccess (Link): New section.
69728         * modules/gettext (Link): New section.
69729         * modules/iconv (Link): New section.
69730         * modules/lock (Link): New section.
69731         * modules/nanosleep (Link): New section.
69732         * modules/readline (Link): New section.
69733
69734 2007-01-27  Bruno Haible  <bruno@clisp.org>
69735
69736         Enforce the use of gnulib modules for unportable <string.h> functions.
69737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69738         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69739         (gl_HEADER_STRING_H_BODY): Require it.
69740         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69741         the symbol XYZ to one that gives a link error.
69742         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69743         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69744         * modules/mempcpy (configure.ac): Likewise.
69745         * modules/memrchr (configure.ac): Likewise.
69746         * modules/stpcpy (configure.ac): Likewise.
69747         * modules/stpncpy (configure.ac): Likewise.
69748         * modules/strcase (configure.ac): Likewise.
69749         * modules/strcasestr (configure.ac): Likewise.
69750         * modules/strchrnul (configure.ac): Likewise.
69751         * modules/strdup (configure.ac): Likewise.
69752         * modules/strndup (configure.ac): Likewise.
69753         * modules/strnlen (configure.ac): Likewise.
69754         * modules/strpbrk (configure.ac): Likewise.
69755         * modules/strsep (configure.ac): Likewise.
69756         * modules/strstr (configure.ac): Likewise.
69757         * modules/strtok_r (configure.ac): Likewise.
69758
69759 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69760
69761         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69762
69763 2007-01-30  Jim Meyering  <jim@meyering.net>
69764
69765         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69766
69767 2007-01-29  Bruno Haible  <bruno@clisp.org>
69768
69769         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69770         * lib/execute.c: Likewise.
69771         * lib/pipe.c: Likewise.
69772         * lib/printf-args.h: Likewise.
69773         * lib/printf-args.c: Likewise.
69774         * lib/printf-parse.c: Likewise.
69775         * lib/vasnprintf.c: Likewise.
69776
69777 2007-01-29  Eric Blake  <ebb9@byu.net>
69778
69779         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69780         declaration.
69781
69782 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * lib/strptime.h (strptime): Use 'restrict' for args where
69785         POSIX requires this.
69786         * lib/strptime.c (strptime): Likewise.
69787         Change license notice from LGPL to GPL, since gnulib-tool will
69788         change this as needed.
69789         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69790         defined.
69791         Include "strptime.h" first, to check interface.
69792         Do not #undef _LIBC and _NL_CURRENT.
69793         Do not include <stdlib.h>; no longer needed.
69794         Include "time_r.h" and declare ptime_locale_status
69795         only if _LIBC is not defined.
69796         (__P): Remove unused macro.
69797         (match_string): Bring back glibc version, but use it only if _LIBC
69798         is defined.
69799         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69800         Remove unnecessary assertion and abort() call.
69801         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69802         * m4/strptime.m4: Fix serial number comment.
69803         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69804         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69805         (Depends-on): Add time_r.
69806
69807 2007-01-29  Bruno Haible  <bruno@clisp.org>
69808
69809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69810         strptime.
69811         * modules/strptime (Depends-on): Add stdbool.
69812         * lib/strptime.h: Include <time.h> always. Add comments.
69813
69814 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69815
69816         * modules/strptime: New file.
69817         * lib/strptime.h: New file.
69818         * lib/strptime.c: New file.
69819         * m4/strptime.m4: New file.
69820
69821 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * MODULES.html.sh: New module mpsort.
69824         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69825
69826         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69827         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69828         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69829         All uses changed.
69830         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69831         All uses changed.
69832         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69833         to _Restrict_.
69834         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69835         the parameter matches the prototype.
69836
69837 2007-01-28  Jim Meyering  <jim@meyering.net>
69838
69839         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69840         sys/time.h here, reverting that part of the previous patch:
69841         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69842
69843 2007-01-28  Bruno Haible  <bruno@clisp.org>
69844
69845         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69846         value of $(SYS_TIME_H).
69847         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69848         remove it conditionally, too. [added by Jim Meyering]
69849         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69851         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69852         GETTIMEOFDAY_REPLACEMENT to 1.
69853
69854 2007-01-28  Bruno Haible  <bruno@clisp.org>
69855
69856         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69857         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69859         Set UNISTD_H instead of UNISTD_H2.
69860         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69861
69862 2007-01-28  Bruno Haible  <bruno@clisp.org>
69863
69864         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69865         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69866
69867 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69868
69869         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69870         (func_create_testdir): Ensure C locale for `grep' and `tr'
69871         character ranges.
69872         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69873         ACLOCAL_AMFLAGS parsing state machine.
69874
69875 2007-01-27  Bruno Haible  <bruno@clisp.org>
69876
69877         * modules/unistr/base: Update.
69878
69879 2007-01-27  Bruno Haible  <bruno@clisp.org>
69880
69881         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69882         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69883         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69884         modules/unistr/u32-mbtouc.
69885         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69886         * lib/unistr.h: Update.
69887         * lib/linebreak.c: Update.
69888         * modules/unistr/u32-mbtouc: Renamed from
69889         modules/unistr/u32-mbtouc-safe.
69890         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69891         * lib/unistr.h: Update.
69892         * lib/unistr/u32-to-u8.c: Update.
69893         * lib/unistr/u32-to-u16.c: Update.
69894
69895 2007-01-27  Bruno Haible  <bruno@clisp.org>
69896
69897         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69898         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69899         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69900         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69901         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69902         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69903         modules/unistr/u16-mbtouc.
69904         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69905         * lib/unistr.h: Update.
69906         * lib/linebreak.c: Update.
69907         * modules/linebreak: Update.
69908         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69909         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69910         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69911         * modules/unistr/u16-mbtouc: Renamed from
69912         modules/unistr/u16-mbtouc-safe.
69913         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69914         * lib/unistr.h: Update.
69915         * lib/unistr/u16-to-u8.c: Update.
69916         * modules/unistr/u16-to-u8: Update.
69917         * lib/unistr/u16-to-u32.c: Update.
69918         * modules/unistr/u16-to-u32: Update.
69919
69920 2007-01-27  Bruno Haible  <bruno@clisp.org>
69921
69922         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69923         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69924         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69925         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69926         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69927         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69928         modules/unistr/u8-mbtouc.
69929         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69930         * lib/unistr.h: Update.
69931         * lib/striconveh.c: Update.
69932         * modules/striconveh: Update.
69933         * lib/linebreak.c: Update.
69934         * modules/linebreak: Update.
69935         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69936         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69937         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69938         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69939         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69940         * lib/unistr.h: Update.
69941         * lib/striconveh.c: Update.
69942         * modules/striconveh: Update.
69943         * lib/unistr/u8-to-u16.c: Update.
69944         * modules/unistr/u8-to-u16: Update.
69945         * lib/unistr/u8-to-u32.c: Update.
69946         * modules/unistr/u8-to-u32: Update.
69947
69948 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69949
69950         Sync from Libtool.
69951         * lib/argz.c: Do not include strings.h nor memory.h, include
69952         string.h unconditionally.  Patch by Simon Josefsson.
69953
69954 2007-01-27  Bruno Haible  <bruno@clisp.org>
69955
69956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69957         from gl_HEADER_STRING_H_BODY.
69958         (gl_HEADER_STRING_H_BODY): Require it.
69959         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69960         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69962         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69964         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69966         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69967         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69968         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69969         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69970         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69971         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69972         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69973         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69974
69975 2007-01-27  Bruno Haible  <bruno@clisp.org>
69976
69977         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69978         check_PROGRAMS into noinst_PROGRAMS.
69979         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69980         check_PROGRAMS in this case.
69981         (func_import): Set for_test to false.
69982         (func_create_testdir): Set for_test to true.
69983
69984 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69985             Bruno Haible  <bruno@clisp.org>
69986
69987         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69988         (Depends-on): Add string.
69989         (Includes): Use <string.h> instead of strcasestr.h.
69990         * modules/string (Makefile.am): Also substitute the value of
69991         REPLACE_STRCASESTR.
69992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69993         assume strcasestr is declared in <string.h> not <strings.h>. Also
69994         set REPLACE_STRCASESTR.
69995         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69996         REPLACE_STRCASESTR.
69997         * lib/strcasestr.h: Remove file.
69998         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69999         * lib/string_.h (strcasestr): New declaration.
70000
70001 2007-01-27  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/string_.h: Use 'extern'.
70004
70005 2007-01-27  Jim Meyering  <jim@meyering.net>
70006
70007         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70008         of set-but-not-used local, "q".
70009
70010         * lib/mempcpy.c: Include <config.h> before <string.h>.
70011         This fixes a compilation error on HP-UX, due to the system's
70012         "restrict"-using mempcpy prototype.
70013
70014 2007-01-26  Bruno Haible  <bruno@clisp.org>
70015
70016         Small optimization.
70017         * lib/javacomp.c: Include c-strstr.h.
70018          (is_envjavac_gcj): Use c_strstr instead of strstr.
70019         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70020
70021 2007-01-26  Bruno Haible  <bruno@clisp.org>
70022
70023         * MODULES.html.sh (Unicode string functions): Add the new modules.
70024
70025         * modules/uniconv/u32-strconv-to-locale: New file.
70026         * lib/uniconv/u32-strconv-to-locale.c: New file.
70027
70028         * modules/uniconv/u16-strconv-to-locale: New file.
70029         * lib/uniconv/u16-strconv-to-locale.c: New file.
70030
70031         * modules/uniconv/u8-strconv-to-locale: New file.
70032         * lib/uniconv/u8-strconv-to-locale.c: New file.
70033
70034         * modules/uniconv/u32-strconv-from-locale: New file.
70035         * lib/uniconv/u32-strconv-from-locale.c: New file.
70036
70037         * modules/uniconv/u16-strconv-from-locale: New file.
70038         * lib/uniconv/u16-strconv-from-locale.c: New file.
70039
70040         * modules/uniconv/u8-strconv-from-locale: New file.
70041         * lib/uniconv/u8-strconv-from-locale.c: New file.
70042
70043         * modules/uniconv/u32-strconv-to-enc: New file.
70044         * lib/uniconv/u32-strconv-to-enc.c: New file.
70045         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70046         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70047
70048         * modules/uniconv/u16-strconv-to-enc: New file.
70049         * lib/uniconv/u16-strconv-to-enc.c: New file.
70050         * lib/uniconv/u-strconv-to-enc.h: New file.
70051         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70052         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70053
70054         * modules/uniconv/u8-strconv-to-enc: New file.
70055         * lib/uniconv/u8-strconv-to-enc.c: New file.
70056         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70057         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70058
70059         * modules/uniconv/u32-strconv-from-enc: New file.
70060         * lib/uniconv/u32-strconv-from-enc.c: New file.
70061         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70062         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70063
70064         * modules/uniconv/u16-strconv-from-enc: New file.
70065         * lib/uniconv/u16-strconv-from-enc.c: New file.
70066         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70067         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70068
70069         * modules/uniconv/u8-strconv-from-enc: New file.
70070         * lib/uniconv/u8-strconv-from-enc.c: New file.
70071         * lib/uniconv/u-strconv-from-enc.h: New file.
70072         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70073         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70074
70075         * modules/uniconv/u32-conv-from-enc: New file.
70076         * lib/uniconv/u32-conv-from-enc.c: New file.
70077         * modules/uniconv/u32-conv-from-enc-tests: New file.
70078         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70079
70080         * modules/uniconv/u16-conv-from-enc: New file.
70081         * lib/uniconv/u16-conv-from-enc.c: New file.
70082         * lib/uniconv/u-conv-from-enc.h: New file.
70083         * modules/uniconv/u16-conv-from-enc-tests: New file.
70084         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70085
70086         * modules/uniconv/u8-conv-from-enc: New file.
70087         * lib/uniconv/u8-conv-from-enc.c: New file.
70088         * modules/uniconv/u8-conv-from-enc-tests: New file.
70089         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70090
70091         * modules/uniconv/base: New file.
70092         * lib/uniconv.h: New file.
70093
70094 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         * doc/gnulib-tool.texi (Initial import): Update to match current
70097         behavior with strdup module.
70098         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70099         * lib/memmem.h: Remove; all uses removed.  This is now done
70100         by <string.h>.
70101         * lib/mempcpy.h: Likewise.
70102         * lib/memrchr.h: Likewise.
70103         * lib/stpcpy.h: Likewise.
70104         * lib/stpncpy.h: Likewise.
70105         * lib/strcase.h: Likewise.
70106         * lib/strchrnul.h: Likewise.
70107         * lib/strdup.h: Likewise.
70108         * lib/strndup.h: Likewise.
70109         * lib/strnlen.h: Likewise.
70110         * lib/strpbrk.h: Likewise.
70111         * lib/strsep.h: Likewise.
70112         * lib/strstr.h: Likewise.
70113         * lib/strtok_r.h: Likewise.
70114         * lib/string_.h: New file.
70115         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70116         Rely on <string.h> instead.
70117         * lib/canon-host.c: Likewise.
70118         * lib/chdir-long.c: Likewise.
70119         * lib/concatpath.c: Likewise.
70120         * lib/exclude.c: Likewise.
70121         * lib/fchdir.c: Likewise.
70122         * lib/getaddrinfo.c: Likewise.
70123         * lib/getcwd.c: Likewise.
70124         * lib/getsubopt.c: Likewise.
70125         * lib/glob.c: Likewise.
70126         * lib/hard-locale.c: Likewise.
70127         * lib/iconvme.c: Likewise.
70128         * lib/javacomp.c: Likewise.
70129         * lib/mempcpy.c: Likewise.
70130         * lib/memrchr.c: Likewise.
70131         * lib/regex_internal.h: Likewise.
70132         * lib/stpncpy.c: Likewise.
70133         * lib/strcasecmp.c: Likewise.
70134         * lib/strchrnul.c: Likewise.
70135         * lib/strdup.c: Likewise.
70136         * lib/striconv.c: Likewise.
70137         * lib/striconveh.c: Likewise.
70138         * lib/striconveha.c: Likewise.
70139         * lib/strncasecmp.c: Likewise.
70140         * lib/strndup.c: Likewise.
70141         * lib/strnlen.c: Likewise.
70142         * lib/strsep.c: Likewise.
70143         * lib/strstr.c: Likewise.
70144         * lib/strtok_r.c: Likewise.
70145         * lib/userspec.c: Likewise.
70146         * lib/w32spawn.h: Likewise.
70147         * lib/xstrndup.c: Likewise.
70148         * lib/mountlist.c (strstr): Remove decl.
70149         * m4/string_h.m4: New file.
70150         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70151         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70152         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70153         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70154         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70155         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70156         Set REPLACE_STRCASECMP if necessary.
70157         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70159         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70160         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70161         HAVE_DECL_STRDUP if necessary.
70162         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70163         since gl_FUNC_STRNDUP does that now.
70164         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70165         Check for decl here...
70166         (gl_PREREQ_STRNLEN): ... not here.
70167         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70168         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70169         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70170         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70171         necessary.
70172         * modules/string: New file.
70173         * modules/memmem (Files): Remove special-purpose include file.
70174         (Depends-on): Add string.
70175         (Include): Include <string.h>, not the removed file.
70176         * modules/mempcpy: Likewise.
70177         * modules/memrchr: Likewise.
70178         * modules/stpcpy: Likewise.
70179         * modules/stpncpy: Likewise.
70180         * modules/strcase: Likewise.
70181         * modules/strchrnul: Likewise.
70182         * modules/strdup: Likewise.
70183         * modules/strndup: Likewise.
70184         * modules/strnlen: Likewise.
70185         * modules/strpbrk: Likewise.
70186         * modules/strsep: Likewise.
70187         * modules/strstr: Likewise.
70188         * modules/strtok_r: Likewise.
70189         * tests/test-dirname.c: Don't include "strdup.h", since
70190         <string.h> now suffices.
70191         * tests/test-memmem.c: Don't include "memmem.h", since
70192         <string.h> now suffices.
70193
70194 2007-01-25  Bruno Haible  <bruno@clisp.org>
70195
70196         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70197         *resultp is 0.
70198
70199         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70200         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70201         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70202         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70203
70204         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70205         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70206         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70207         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70208         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70209         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70210
70211 2007-01-24  Bruno Haible  <bruno@clisp.org>
70212
70213         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70215         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70216         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70217         gl_FUNC_FTS_CORE.
70218         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70219         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70220         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70221         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70222         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70223         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70224         gl_FUNC_FCHOWNAT.
70225         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70226         gl_FUNC_STRFTIME.
70227         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70228         Reported by Ralf Wildenhues.
70229
70230 2007-01-24  Bruno Haible  <bruno@clisp.org>
70231
70232         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70233         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70234         gl_GETADDRINFO.
70235         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70236         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70237         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70238
70239 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70242         Don't use 'exit'; just return from 'main'.
70243         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70244
70245         * lib/fnmatch_.h: Readjust white space and comments to match
70246         glibc, to avoid spurious diffs.
70247
70248 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70251         2004-12-01 change by Jakub Jelinek, since this code won't compile
70252         if !LIBC.  Problem reported by Bob Proulx.
70253
70254 2007-01-23  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/striconveh.c: Include c-strcaseeq.h.
70257         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70258         * modules/striconveh (Depends-on): Add c-strcaseeq.
70259
70260 2007-01-23  Bruno Haible  <bruno@clisp.org>
70261
70262         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70263
70264         * modules/c-strcaseeq: New file.
70265         * lib/c-strcaseeq.h: New file.
70266
70267         * modules/streq: New file.
70268         * lib/streq.h: New file.
70269
70270 2007-01-23  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/striconveha-tests: New file.
70273         * tests/test-striconveha.c: New file.
70274
70275         * lib/striconveha.h: Include <stdbool.h>.
70276         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70277         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70278         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70279         (mem_iconveha): New function.
70280         (str_iconveha_notranslit): Renamed from str_iconveha.
70281         (str_iconveha): New function.
70282         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70283         c-strcase.
70284
70285 2007-01-23  Bruno Haible  <bruno@clisp.org>
70286
70287         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70288         encodings without forgiving before trying any encoding with handler.
70289         (str_iconveha): Try all encodings without forgiving before trying any
70290         encoding with handler.
70291
70292 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         Import the following changes from libc.
70295
70296         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70297
70298         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70299
70300         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70301
70302         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70303         normal_bracket label.
70304
70305         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70306
70307         [BZ #361]
70308         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70309         to normal_bracket after fetching the next character.
70310
70311 2007-01-22  Bruno Haible  <bruno@clisp.org>
70312
70313         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70314         argument.
70315         * lib/striconveh.c (iconv_carefully_1): New function.
70316         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70317         argument.
70318         (str_cd_iconveh): Update.
70319         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70320         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70321         * tests/test-striconveh.c (MAGIC): New macro.
70322         (new_offsets): New function.
70323         (main): Test call with and without offsets.
70324
70325 2007-01-22  Bruno Haible  <bruno@clisp.org>
70326
70327         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70328         * modules/sys_select (Makefile.am): Likewise.
70329         * modules/sys_socket (Makefile.am): Likewise.
70330         * modules/sys_time (Makefile.am): Likewise.
70331
70332 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * modules/gettimeofday (License): Change from GPL to LGPL, since
70335         gettimeofday is a library function.
70336
70337 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70338
70339         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70340
70341 2007-01-21  Bruno Haible  <bruno@clisp.org>
70342
70343         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70344
70345 2007-01-21  Bruno Haible  <bruno@clisp.org>
70346
70347         * modules/striconveha: New file.
70348         * lib/striconveha.h: New file.
70349         * lib/striconveha.c: New file.
70350         * MODULES.html.sh (Internationalization functions): Add striconveha.
70351         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70352         string.
70353         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70354
70355 2007-01-21  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70358         * lib/striconveh.c (str_iconveh): Likewise.
70359
70360 2007-01-21  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/striconveh.h (mem_iconveh): New declaration.
70363         * lib/striconveh.c (mem_iconveh): New function.
70364         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70365
70366 2007-01-21  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70369
70370         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70371         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70372         original result buffer.
70373         (str_cd_iconveh): Update.
70374         * tests/test-striconveh.c (main): Update.
70375
70376         * lib/striconv.h (mem_cd_iconv): Change specification.
70377         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70378         result buffer.
70379         (str_cd_iconv): Update.
70380         * tests/test-striconv.c (main): Update.
70381
70382 2007-01-21  Bruno Haible  <bruno@clisp.org>
70383
70384         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70385
70386 2007-01-20  Jim Meyering  <jim@meyering.net>
70387
70388         * lib/userspec.c (parse_with_separator): If a user or group string
70389         starts with "+", skip the corresponding name-to-ID look-up, since
70390         such a look-up must fail: user and group names may not include "+".
70391
70392 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70395         since we now assume the sys_time module.
70396         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70397         check for sys/time.h; no longer needed.
70398         * modules/poll (Depends-on): Depend on sys_time.
70399
70400 2007-01-18  Bruno Haible  <bruno@clisp.org>
70401
70402         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70403         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70404
70405         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70406         gettimeofday.
70407
70408         * tests/test-gettimeofday.c: Include <time.h>.
70409         (dummy): Remove variable.
70410
70411         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70412         gl_HEADER_SYS_TIME_H.
70413         (gl_HEADER_SYS_TIME_H): New macro.
70414
70415         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70416         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70418         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70419         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70420         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70421         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70422         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70423         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70424         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70425         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70426
70427         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70428         last change; it caused a compilation error when cross-compiling to
70429         Cygwin.
70430
70431 2007-01-18  Jim Meyering  <jim@meyering.net>
70432
70433         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70434         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70435         than the race-prone "test -d sys || mkdir sys".
70436         (configure.ac): Use AC_PROG_MKDIR_P.
70437         * modules/sys_select: Likewise.
70438         * modules/sys_socket: Likewise.
70439         * modules/sys_time: Likewise.
70440
70441 2007-01-18  Eric Blake  <ebb9@byu.net>
70442
70443         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70444         replace gettimeofday.
70445         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70446         name, to avoid infinite recursion.
70447
70448 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70451         module sys_time.
70452         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70453         assume timespec.h defines struct timeval.
70454         * lib/settime.c: Likewise.
70455         * lib/utimens.c: Likewise.
70456         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70457         since we now assume the gettimeofday module.
70458         * lib/tempname.c (__gen_tempname): Likewise.
70459         * lib/gettimeofday.h: Remove.
70460         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70461         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70462         Include <time.h>, for 'time()'.
70463         (localtime_buffer_addr): Also use this workaround if
70464         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70465         to simplify the uses.  All uses changed.
70466         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70467         that #undef is inside {}, and 'const' follows type name consistently.
70468         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70469         (gettimeofday): Do not use the maximum possible value for
70470         tv->tv_usec, since that might break usages other than ls.c.
70471         Instead, we'll leave ls.c alone.  This undoes today's patch
70472         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70473         we've never observed the problem but might as well keep the
70474         canary.
70475         * lib/nanosleep.c: Include timespec.h first, for interface check.
70476         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70477         now assume the sys_time module.
70478         * lib/tempname.c: Likewise.
70479         * lib/timespec.h: Likewise.
70480         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70481         needed.
70482         * lib/strftime.c: Likewise.
70483         * lib/timespec.h: Likewise.
70484         * lib/posixtm.c: Include posixtm.h first, for interface check.
70485         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70486         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70487         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70488         * lib/sys_time_.h: New file.
70489         * lib/timespec.h (struct timespec): Use long int, not long.
70490         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70491         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70492         Remove obsolescent call to AC_HEADER_TIME.
70493         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70495         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70496         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70497         Likewise.
70498         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70499         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70501         into the sys_time module.  Check for gettimeofday just once.
70502         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70503         for gettimeofday signature to just check the signature.  Merely
70504         compile it, since linking doesn't test signature.  Improve test for
70505         whether gettimeofday.o is actually needed.
70506         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70507         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70508         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70509         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70510         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70511         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70512         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70513         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70514         than worrying about sys/time.h.
70515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70516         Don't bother worrying about TIME_WITH_SYS_TIME.
70517         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70518         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70519         * m4/sys_time_h.m4: New file.
70520         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70521         Don't include sys/time.h.  Return from main rather than exiting.
70522         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70523         all uses changed.
70524         * modules/gethrxtime (Depends-on): Add sys_time.
70525         * modules/gettime (Depends-on): Likewise.
70526         * modules/gettimeofday (Depends-on): Likewise.
70527         * modules/nanosleep (Depends-on): Likewise.
70528         * modules/settime (Depends-on): Likewise.
70529         * modules/tempname (Depends-on): Likewise.
70530         * modules/utimens (Depends-on): Likewise.
70531         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70532         (Include): Change back to <sys/time.h>.
70533         (Maintainer): Add self.
70534         * modules/sys_time: New file.
70535         * modules/tempname (Depends-on): Add gettimeofday.
70536         * tests/test-gettimeofday.c: Include <sys/time.h>
70537         rather than gettimeofday.h.
70538
70539 2007-01-17  Bruno Haible  <bruno@clisp.org>
70540
70541         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70542         the license default to GPL.
70543         (func_create_testdir): Don't complain if a module is LGPL and its
70544         tests module depends on GPLed modules.
70545
70546 2007-01-17  Bruno Haible  <bruno@clisp.org>
70547
70548         * lib/gettimeofday.c (gettimeofday): Add code for the case
70549         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70550         maximum possible value for tv->tv_usec, rather than the minimum one.
70551
70552 2005-10-08  Martin Lambers  <marlam@marlam.de>
70553 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70554 2007-01-16  Bruno Haible  <bruno@clisp.org>
70555
70556         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70557         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70558         gl_FUNC_GETTIMEOFDAY.
70559         (Include): Add gettimeofday.h.
70560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70561         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70562         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70563         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70564         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70565         * lib/gettimeofday.h: New file.
70566         * lib/gettimeofday.c: Include <sys/timeb.h>.
70567         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70568         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70569         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70570         fall back on time().
70571
70572         * tests/test-gettimeofday.c: New file.
70573         * modules/gettimeofday-tests: New file.
70574
70575 2007-01-16  Eric Blake  <ebb9@byu.net>
70576
70577         * modules/fnmatch (Depends-on): Depend on wchar.
70578         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70579         * m4/fnmatch.m4: Likewise.
70580         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70581         * m4/mbchar.m4: Likewise.
70582         * modules/mbswidth (Depends-on): Depend on wchar.
70583         * lib/mbswidth.c: Assume <wchar.h>.
70584         * m4/mbswidth.m4: Likewise.
70585         * modules/quotearg (Depends-on): Depend on wchar.
70586         * lib/quotearg.c: Assume <wchar.h>.
70587         * m4/quotearg.m4: Likewise.
70588         * modules/regex (Depends-on): Depend on wchar.
70589         * lib/regex_internal.h: Assume <wchar.h>.
70590         * m4/regex.m4: Likewise.
70591         * modules/stdint (Depends-on): Depend on wchar.
70592         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70593         * m4/stdint.m4: Likewise.
70594         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70595         * modules/strftime (Depends-on): Depend on wchar.
70596         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70597         * modules/strtol (Depends-on): Depend on wchar.
70598         * lib/strtol.c: Assume <wchar.h>.
70599         * modules/wcwidth (Depends-on): Depend on wchar.
70600         * lib/wcwidth.h: Assume <wchar.h>.
70601         * m4/wcwidth.m4: Likewise.
70602
70603 2007-01-16  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/csharpexec-script: New, created from...
70606         * modules/csharpexec: ... this.
70607
70608 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70609
70610         * modules/javaexec-script: New, created from...
70611         * modules/javaexec: ... this.
70612
70613 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70614
70615         * modules/poll (Dependencies): Add sys_select.
70616
70617 2007-01-15  Jim Meyering  <jim@meyering.net>
70618
70619         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70620         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70621         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70622         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70623
70624 2007-01-15  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/striconveh: New file.
70627         * lib/striconveh.h: New file.
70628         * lib/striconveh.c: New file.
70629         * MODULES.html.sh (Internationalization functions): Add striconveh.
70630
70631         * modules/striconveh-tests: New file.
70632         * tests/test-striconveh.c: New file.
70633
70634 2007-01-15  Bruno Haible  <bruno@clisp.org>
70635
70636         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70637         not from GNU libiconv or GNU libc.
70638
70639 2007-01-15  Bruno Haible  <bruno@clisp.org>
70640
70641         * doc/gnulib-intro.texi (Copyright): Explain the different license
70642         terms for module descriptions, autoconf macros, tests, documentation.
70643
70644 2007-01-14  Bruno Haible  <bruno@clisp.org>
70645
70646         * modules/striconv-tests: New file.
70647         * tests/test-striconv.c: New file.
70648
70649 2007-01-14  Bruno Haible  <bruno@clisp.org>
70650
70651         * modules/iconv-tests: New file.
70652         * tests/test-iconv.c: New file.
70653
70654 2007-01-14  Bruno Haible  <bruno@clisp.org>
70655
70656         * gnulib-tool (func_get_license): For test modules, use the license of
70657         the main module.
70658
70659 2007-01-14  Bruno Haible  <bruno@clisp.org>
70660
70661         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70662         if iconv is found to exist.
70663
70664 2007-01-14  Bruno Haible  <bruno@clisp.org>
70665
70666         * modules/c-ctype-tests: New file.
70667         * tests/test-c-ctype.c: New file.
70668
70669 2007-01-14  Bruno Haible  <bruno@clisp.org>
70670
70671         * modules/binary-io-tests: New file.
70672         * tests/test-binary-io.sh: New file.
70673         * tests/test-binary-io.c: New file.
70674
70675 2007-01-14  Bruno Haible  <bruno@clisp.org>
70676
70677         * modules/array-oset-tests: New file.
70678         * tests/test-array_oset.c: New file.
70679
70680 2007-01-14  Bruno Haible  <bruno@clisp.org>
70681
70682         * modules/array-list-tests: New file.
70683         * tests/test-array_list.c: New file.
70684
70685 2007-01-14  Bruno Haible  <bruno@clisp.org>
70686
70687         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70688         and make.
70689         Reported by Simon Josefsson in
70690         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70691
70692 2007-01-14  Bruno Haible  <bruno@clisp.org>
70693
70694         * modules/allocsa-tests: New file.
70695         * tests/test-allocsa.c: New file.
70696
70697 2007-01-14  Bruno Haible  <bruno@clisp.org>
70698
70699         * modules/fchdir (Depends-on): Add absolute-header.
70700         * modules/unistd (Depends-on): Likewise.
70701
70702 2006-12-30  Bruno Haible  <bruno@clisp.org>
70703
70704         * modules/fchdir: New file.
70705         * modules/unistd (Files): Add lib/unistd_.h.
70706         (Makefile.am): Generate unistd.h from unistd_.h.
70707         * lib/fchdir.c: New file.
70708         * lib/dirent_.h: New file.
70709         * lib/unistd_.h: New file.
70710         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70711         * m4/fchdir.m4: New file.
70712         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70713         (gl_HEADER_UNISTD): Invoke it.
70714         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70715         function.
70716         * lib/backupfile.c (opendir, closedir): Undefine.
70717         * lib/chown.c (open, close): Undefine.
70718         * lib/clean-temp.c (open, close): Undefine.
70719         * lib/copy-file.c (open, close): Undefine.
70720         * lib/execute.c (open, close): Undefine.
70721         * lib/fsusage.c (open, close): Undefine.
70722         * lib/gc-gnulib.c (open, close): Undefine.
70723         * lib/getcwd.c (opendir, closedir): Undefine.
70724         * lib/glob.c (opendir, closedir): Undefine.
70725         * lib/javacomp.c (open, close): Undefine.
70726         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70727         * lib/openat-proc.c (open, close): Undefine.
70728         * lib/pagealign_alloc.c (open, close): Undefine.
70729         * lib/pipe.c (open, close): Undefine.
70730         * lib/progreloc.c (open, close): Undefine.
70731         * lib/savedir.c (opendir, closedir): Undefine.
70732         * lib/utime.c (open, close): Undefine.
70733         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70734
70735 2007-01-10  Bruno Haible  <bruno@clisp.org>
70736
70737         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70738
70739 2007-01-12  Eric Blake  <ebb9@byu.net>
70740
70741         Provide a robust <wchar.h>.  Further simplifications are now
70742         possible in other modules, but not included here.
70743         * modules/wchar: New module.
70744         * m4/wchar.m4: New file.
70745         * lib/wchar_.h: Likewise.
70746         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70747         of the new module.
70748         * MODULES.html.sh (Extended multibyte and wide character utilities):
70749         New section.
70750
70751 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70754         to a reasonable default for memory allocation.
70755         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70756         file system that reports garbage st_size values for symlinks.
70757         Problem reported by Liyang Hu.
70758
70759 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70760
70761         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70762         Emacs .#* auto-save files).
70763
70764 2007-01-11  Bruno Haible  <bruno@clisp.org>
70765
70766         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70767         directory.
70768
70769 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70770
70771         Use @...@ consistently in lib/wctype_.h.
70772         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70773         on it being set to 1 or 0.
70774         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70775         go back to AC_SUBSTing it.
70776         * modules/wctype (Makefile.am): Undo previous change.
70777
70778 2007-01-10  Eric Blake  <ebb9@byu.net>
70779
70780         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70781         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70782         * modules/wctype (Makefile.am): Likewise.
70783         Reported by Chris McGuire.
70784
70785 2007-01-10  Jim Meyering  <jim@meyering.net>
70786
70787         fts.c: a small readability/maintainability improvement
70788         * lib/fts.c (fts_read): Make this code slightly more readable and
70789         maintainable by hoisting the "sp->fts_cur = p" assignments to
70790         immediately follow the statements that set P.  Derived from
70791         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70792
70793 2007-01-10  Eric Blake  <ebb9@byu.net>
70794
70795         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70796         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70798         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70799         Reported by Chris McGuire.
70800
70801 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70802
70803         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70804         in sed script.
70805
70806 2007-01-09  Bruno Haible  <bruno@clisp.org>
70807
70808         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70809         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70810         variables.
70811         (func_module): Use them.
70812
70813 2007-01-09  Bruno Haible  <bruno@clisp.org>
70814
70815         * modules/unistr/base: New file.
70816         * lib/unistr.h: New file.
70817
70818         * modules/unistr/u8-to-u16: New file.
70819         * lib/unistr/u8-to-u16.c: New file.
70820
70821         * modules/unistr/u8-to-u32: New file.
70822         * lib/unistr/u8-to-u32.c: New file.
70823
70824         * modules/unistr/u16-to-u8: New file.
70825         * lib/unistr/u16-to-u8.c: New file.
70826
70827         * modules/unistr/u16-to-u32: New file.
70828         * lib/unistr/u16-to-u32.c: New file.
70829
70830         * modules/unistr/u32-to-u8: New file.
70831         * lib/unistr/u32-to-u8.c: New file.
70832
70833         * modules/unistr/u32-to-u16: New file.
70834         * lib/unistr/u32-to-u16.c: New file.
70835
70836         * modules/unistr/u8-check: New file.
70837         * modules/unistr/u16-check: New file.
70838         * modules/unistr/u32-check: New file.
70839         * lib/unistr/u8-check.c: New file.
70840         * lib/unistr/u16-check.c: New file.
70841         * lib/unistr/u32-check.c: New file.
70842
70843         * modules/unistr/u8-chr: New file.
70844         * modules/unistr/u16-chr: New file.
70845         * modules/unistr/u32-chr: New file.
70846         * lib/unistr/u8-chr.c: New file.
70847         * lib/unistr/u16-chr.c: New file.
70848         * lib/unistr/u32-chr.c: New file.
70849
70850         * modules/unistr/u8-cmp: New file.
70851         * modules/unistr/u16-cmp: New file.
70852         * modules/unistr/u32-cmp: New file.
70853         * lib/unistr/u8-cmp.c: New file.
70854         * lib/unistr/u16-cmp.c: New file.
70855         * lib/unistr/u32-cmp.c: New file.
70856
70857         * modules/unistr/u8-cpy: New file.
70858         * modules/unistr/u16-cpy: New file.
70859         * modules/unistr/u32-cpy: New file.
70860         * lib/unistr/u8-cpy.c: New file.
70861         * lib/unistr/u16-cpy.c: New file.
70862         * lib/unistr/u32-cpy.c: New file.
70863         * lib/unistr/u-cpy.h: New file.
70864
70865         * modules/unistr/u8-cpy-alloc: New file.
70866         * modules/unistr/u16-cpy-alloc: New file.
70867         * modules/unistr/u32-cpy-alloc: New file.
70868         * lib/unistr/u8-cpy-alloc.c: New file.
70869         * lib/unistr/u16-cpy-alloc.c: New file.
70870         * lib/unistr/u32-cpy-alloc.c: New file.
70871         * lib/unistr/u-cpy-alloc.h: New file.
70872
70873         * modules/unistr/u8-endswith: New file.
70874         * modules/unistr/u16-endswith: New file.
70875         * modules/unistr/u32-endswith: New file.
70876         * lib/unistr/u8-endswith.c: New file.
70877         * lib/unistr/u16-endswith.c: New file.
70878         * lib/unistr/u32-endswith.c: New file.
70879         * lib/unistr/u-endswith.h: New file.
70880
70881         * modules/unistr/u8-mblen: New file.
70882         * modules/unistr/u16-mblen: New file.
70883         * modules/unistr/u32-mblen: New file.
70884         * lib/unistr/u8-mblen.c: New file.
70885         * lib/unistr/u16-mblen.c: New file.
70886         * lib/unistr/u32-mblen.c: New file.
70887
70888         * modules/unistr/u8-mbtouc: New file.
70889         * modules/unistr/u16-mbtouc: New file.
70890         * modules/unistr/u32-mbtouc: New file.
70891         * lib/unistr/u8-mbtouc.c: New file.
70892         * lib/unistr/u16-mbtouc.c: New file.
70893         * lib/unistr/u32-mbtouc.c: New file.
70894
70895         * modules/unistr/u8-mbtouc-safe: New file.
70896         * modules/unistr/u16-mbtouc-safe: New file.
70897         * modules/unistr/u32-mbtouc-safe: New file.
70898         * lib/unistr/u8-mbtouc-safe.c: New file.
70899         * lib/unistr/u16-mbtouc-safe.c: New file.
70900         * lib/unistr/u32-mbtouc-safe.c: New file.
70901
70902         * modules/unistr/u8-move: New file.
70903         * modules/unistr/u16-move: New file.
70904         * modules/unistr/u32-move: New file.
70905         * lib/unistr/u8-move.c: New file.
70906         * lib/unistr/u16-move.c: New file.
70907         * lib/unistr/u32-move.c: New file.
70908         * lib/unistr/u-move.h: New file.
70909
70910         * modules/unistr/u8-next: New file.
70911         * modules/unistr/u16-next: New file.
70912         * modules/unistr/u32-next: New file.
70913         * lib/unistr/u8-next.c: New file.
70914         * lib/unistr/u16-next.c: New file.
70915         * lib/unistr/u32-next.c: New file.
70916
70917         * modules/unistr/u8-prev: New file.
70918         * modules/unistr/u16-prev: New file.
70919         * modules/unistr/u32-prev: New file.
70920         * lib/unistr/u8-prev.c: New file.
70921         * lib/unistr/u16-prev.c: New file.
70922         * lib/unistr/u32-prev.c: New file.
70923
70924         * modules/unistr/u8-set: New file.
70925         * modules/unistr/u16-set: New file.
70926         * modules/unistr/u32-set: New file.
70927         * lib/unistr/u8-set.c: New file.
70928         * lib/unistr/u16-set.c: New file.
70929         * lib/unistr/u32-set.c: New file.
70930         * lib/unistr/u-set.h: New file.
70931
70932         * modules/unistr/u8-startswith: New file.
70933         * modules/unistr/u16-startswith: New file.
70934         * modules/unistr/u32-startswith: New file.
70935         * lib/unistr/u8-startswith.c: New file.
70936         * lib/unistr/u16-startswith.c: New file.
70937         * lib/unistr/u32-startswith.c: New file.
70938         * lib/unistr/u-startswith.h: New file.
70939
70940         * modules/unistr/u8-stpcpy: New file.
70941         * modules/unistr/u16-stpcpy: New file.
70942         * modules/unistr/u32-stpcpy: New file.
70943         * lib/unistr/u8-stpcpy.c: New file.
70944         * lib/unistr/u16-stpcpy.c: New file.
70945         * lib/unistr/u32-stpcpy.c: New file.
70946         * lib/unistr/u-stpcpy.h: New file.
70947
70948         * modules/unistr/u8-stpncpy: New file.
70949         * modules/unistr/u16-stpncpy: New file.
70950         * modules/unistr/u32-stpncpy: New file.
70951         * lib/unistr/u8-stpncpy.c: New file.
70952         * lib/unistr/u16-stpncpy.c: New file.
70953         * lib/unistr/u32-stpncpy.c: New file.
70954         * lib/unistr/u-stpncpy.h: New file.
70955
70956         * modules/unistr/u8-strcat: New file.
70957         * modules/unistr/u16-strcat: New file.
70958         * modules/unistr/u32-strcat: New file.
70959         * lib/unistr/u8-strcat.c: New file.
70960         * lib/unistr/u16-strcat.c: New file.
70961         * lib/unistr/u32-strcat.c: New file.
70962         * lib/unistr/u-strcat.h: New file.
70963
70964         * modules/unistr/u8-strchr: New file.
70965         * modules/unistr/u16-strchr: New file.
70966         * modules/unistr/u32-strchr: New file.
70967         * lib/unistr/u8-strchr.c: New file.
70968         * lib/unistr/u16-strchr.c: New file.
70969         * lib/unistr/u32-strchr.c: New file.
70970
70971         * modules/unistr/u8-strcmp: New file.
70972         * modules/unistr/u16-strcmp: New file.
70973         * modules/unistr/u32-strcmp: New file.
70974         * lib/unistr/u8-strcmp.c: New file.
70975         * lib/unistr/u16-strcmp.c: New file.
70976         * lib/unistr/u32-strcmp.c: New file.
70977
70978         * modules/unistr/u8-strcpy: New file.
70979         * modules/unistr/u16-strcpy: New file.
70980         * modules/unistr/u32-strcpy: New file.
70981         * lib/unistr/u8-strcpy.c: New file.
70982         * lib/unistr/u16-strcpy.c: New file.
70983         * lib/unistr/u32-strcpy.c: New file.
70984         * lib/unistr/u-strcpy.h: New file.
70985
70986         * modules/unistr/u8-strcspn: New file.
70987         * modules/unistr/u16-strcspn: New file.
70988         * modules/unistr/u32-strcspn: New file.
70989         * lib/unistr/u8-strcspn.c: New file.
70990         * lib/unistr/u16-strcspn.c: New file.
70991         * lib/unistr/u32-strcspn.c: New file.
70992         * lib/unistr/u-strcspn.h: New file.
70993
70994         * modules/unistr/u8-strdup: New file.
70995         * modules/unistr/u16-strdup: New file.
70996         * modules/unistr/u32-strdup: New file.
70997         * lib/unistr/u8-strdup.c: New file.
70998         * lib/unistr/u16-strdup.c: New file.
70999         * lib/unistr/u32-strdup.c: New file.
71000         * lib/unistr/u-strdup.h: New file.
71001
71002         * modules/unistr/u8-strlen: New file.
71003         * modules/unistr/u16-strlen: New file.
71004         * modules/unistr/u32-strlen: New file.
71005         * lib/unistr/u8-strlen.c: New file.
71006         * lib/unistr/u16-strlen.c: New file.
71007         * lib/unistr/u32-strlen.c: New file.
71008         * lib/unistr/u-strlen.h: New file.
71009
71010         * modules/unistr/u8-strmblen: New file.
71011         * modules/unistr/u16-strmblen: New file.
71012         * modules/unistr/u32-strmblen: New file.
71013         * lib/unistr/u8-strmblen.c: New file.
71014         * lib/unistr/u16-strmblen.c: New file.
71015         * lib/unistr/u32-strmblen.c: New file.
71016
71017         * modules/unistr/u8-strmbtouc: New file.
71018         * modules/unistr/u16-strmbtouc: New file.
71019         * modules/unistr/u32-strmbtouc: New file.
71020         * lib/unistr/u8-strmbtouc.c: New file.
71021         * lib/unistr/u16-strmbtouc.c: New file.
71022         * lib/unistr/u32-strmbtouc.c: New file.
71023
71024         * modules/unistr/u8-strncat: New file.
71025         * modules/unistr/u16-strncat: New file.
71026         * modules/unistr/u32-strncat: New file.
71027         * lib/unistr/u8-strncat.c: New file.
71028         * lib/unistr/u16-strncat.c: New file.
71029         * lib/unistr/u32-strncat.c: New file.
71030         * lib/unistr/u-strncat.h: New file.
71031
71032         * modules/unistr/u8-strncmp: New file.
71033         * modules/unistr/u16-strncmp: New file.
71034         * modules/unistr/u32-strncmp: New file.
71035         * lib/unistr/u8-strncmp.c: New file.
71036         * lib/unistr/u16-strncmp.c: New file.
71037         * lib/unistr/u32-strncmp.c: New file.
71038
71039         * modules/unistr/u8-strncpy: New file.
71040         * modules/unistr/u16-strncpy: New file.
71041         * modules/unistr/u32-strncpy: New file.
71042         * lib/unistr/u8-strncpy.c: New file.
71043         * lib/unistr/u16-strncpy.c: New file.
71044         * lib/unistr/u32-strncpy.c: New file.
71045         * lib/unistr/u-strncpy.h: New file.
71046
71047         * modules/unistr/u8-strnlen: New file.
71048         * modules/unistr/u16-strnlen: New file.
71049         * modules/unistr/u32-strnlen: New file.
71050         * lib/unistr/u8-strnlen.c: New file.
71051         * lib/unistr/u16-strnlen.c: New file.
71052         * lib/unistr/u32-strnlen.c: New file.
71053         * lib/unistr/u-strnlen.h: New file.
71054
71055         * modules/unistr/u8-strpbrk: New file.
71056         * modules/unistr/u16-strpbrk: New file.
71057         * modules/unistr/u32-strpbrk: New file.
71058         * lib/unistr/u8-strpbrk.c: New file.
71059         * lib/unistr/u16-strpbrk.c: New file.
71060         * lib/unistr/u32-strpbrk.c: New file.
71061         * lib/unistr/u-strpbrk.h: New file.
71062
71063         * modules/unistr/u8-strrchr: New file.
71064         * modules/unistr/u16-strrchr: New file.
71065         * modules/unistr/u32-strrchr: New file.
71066         * lib/unistr/u8-strrchr.c: New file.
71067         * lib/unistr/u16-strrchr.c: New file.
71068         * lib/unistr/u32-strrchr.c: New file.
71069
71070         * modules/unistr/u8-strspn: New file.
71071         * modules/unistr/u16-strspn: New file.
71072         * modules/unistr/u32-strspn: New file.
71073         * lib/unistr/u8-strspn.c: New file.
71074         * lib/unistr/u16-strspn.c: New file.
71075         * lib/unistr/u32-strspn.c: New file.
71076         * lib/unistr/u-strspn.h: New file.
71077
71078         * modules/unistr/u8-strstr: New file.
71079         * modules/unistr/u16-strstr: New file.
71080         * modules/unistr/u32-strstr: New file.
71081         * lib/unistr/u8-strstr.c: New file.
71082         * lib/unistr/u16-strstr.c: New file.
71083         * lib/unistr/u32-strstr.c: New file.
71084         * lib/unistr/u-strstr.h: New file.
71085
71086         * modules/unistr/u8-strtok: New file.
71087         * modules/unistr/u16-strtok: New file.
71088         * modules/unistr/u32-strtok: New file.
71089         * lib/unistr/u8-strtok.c: New file.
71090         * lib/unistr/u16-strtok.c: New file.
71091         * lib/unistr/u32-strtok.c: New file.
71092         * lib/unistr/u-strtok.h: New file.
71093
71094         * modules/unistr/u8-uctomb: New file.
71095         * modules/unistr/u16-uctomb: New file.
71096         * modules/unistr/u32-uctomb: New file.
71097         * lib/unistr/u8-uctomb.c: New file.
71098         * lib/unistr/u16-uctomb.c: New file.
71099         * lib/unistr/u32-uctomb.c: New file.
71100
71101         * MODULES.html.sh (Unicode string functions): Add the new modules.
71102
71103 2007-01-08  Bruno Haible  <bruno@clisp.org>
71104
71105         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71106         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71107         subdirectories.
71108
71109 2007-01-08  Karl Berry  <karl@gnu.org>
71110
71111         * doc/error.texi: mention that main() fns must set program_name
71112         when progname is used.
71113
71114 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71117         WCTYPE_H is empty, for the benefit of builds from non-distclean
71118         directories.  Problem reported by Eric Blake in
71119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71120
71121 2007-01-08  Bruno Haible  <bruno@clisp.org>
71122
71123         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71124         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71125         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71126         PROVIDE_CANONICALIZE_FILENAME_MODE.
71127         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71128
71129 2007-01-08  Bruno Haible  <bruno@clisp.org>
71130
71131         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71132         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71133         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71134         * lib/fts.c: Likewise.
71135         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71136
71137 2006-12-25  Bruno Haible  <bruno@clisp.org>
71138
71139         * modules/utf8-ucs4-safe: New file.
71140         * lib/utf8-ucs4-safe.h: New file.
71141         * lib/unistr/utf8-ucs4-safe.c: New file.
71142
71143         * modules/utf16-ucs4-safe: New file.
71144         * lib/utf16-ucs4-safe.h: New file.
71145         * lib/unistr/utf16-ucs4-safe.c: New file.
71146
71147         * MODULES.html.sh (Unicode string functions): Add the new modules.
71148
71149 2007-01-08  Bruno Haible  <bruno@clisp.org>
71150
71151         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71152         (Depends-on): Add unitypes.
71153         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71154         (u8_mbtouc_aux): Move out to separate file.
71155         (u8_mbtouc): Use ucs4_t, uint8_t types.
71156         * lib/unistr/utf8-ucs4.c: New file.
71157
71158         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71159         (Depends-on): Add unitypes.
71160         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71161         (u16_mbtouc_aux): Move out to separate file.
71162         (u16_mbtouc): Use ucs4_t, uint16_t types.
71163         * lib/unistr/utf16-ucs4.c: New file.
71164
71165         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71166         (Depends-on): Add unitypes.
71167         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71168         (u8_uctomb_aux): Move out to separate file.
71169         (u8_uctomb): Use ucs4_t, uint8_t types.
71170         * lib/unistr/ucs4-utf8.c: New file.
71171
71172         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71173         (Depends-on): Add unitypes.
71174         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71175         (u16_uctomb_aux): Move out to separate file.
71176         (u16_uctomb): Use ucs4_t, uint16_t types.
71177         * lib/unistr/ucs4-utf16.c: New file.
71178
71179 2006-12-25  Bruno Haible  <bruno@clisp.org>
71180
71181         * modules/unitypes: New file.
71182         * lib/unitypes.h: New file.
71183         * MODULES.html.sh (func_all_modules): New section "Unicode string
71184         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71185         this section. Add unitypes.
71186
71187 2007-01-08  Bruno Haible  <bruno@clisp.org>
71188
71189         Avoid variable names that conflict with those from libtool.
71190         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71191         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71192         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71193         library_names_spec to acl_library_names_spec, hardcode_* to
71194         acl_hardcode_*.
71195         Reported by Ralf Wildenhues.
71196
71197 2007-01-08  Bruno Haible  <bruno@clisp.org>
71198
71199         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71200         definition.
71201         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71202         definition.
71203         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71204         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71205         definition.
71206         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71207         definition.
71208         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71209         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71210         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71211         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71212         definition.
71213         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71214         definition.
71215         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71216         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71217         GC_USE_<algorithm>.
71218         * lib/gc-libgcrypt.c: Likewise.
71219         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71220         * modules/gc-arctwo (configure.ac): Likewise.
71221         * modules/gc-des (configure.ac): Likewise.
71222         * modules/gc-hmac-md5 (configure.ac): Likewise.
71223         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71224         * modules/gc-md2 (configure.ac): Likewise.
71225         * modules/gc-md4 (configure.ac): Likewise.
71226         * modules/gc-md5 (configure.ac): Likewise.
71227         * modules/gc-random (configure.ac): Likewise.
71228         * modules/gc-rijndael (configure.ac): Likewise.
71229         * modules/gc-sha1 (configure.ac): Likewise.
71230
71231 2007-01-08  Bruno Haible  <bruno@clisp.org>
71232
71233         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71234         macro definition.
71235         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71236         definition.
71237         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71238         definition.
71239         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71240         * modules/fcntl-safer (configure.ac): Likewise.
71241         * modules/fopen-safer (configure.ac): Likewise.
71242         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71243         GNULIB_FWRITEERROR macro definition.
71244
71245 2007-01-08  Bruno Haible  <bruno@clisp.org>
71246
71247         * m4/gnulib-common.m4: New file.
71248         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71249         (func_get_filelist): Add m4/gnulib-common.m4.
71250
71251 2007-01-08  Bruno Haible  <bruno@clisp.org>
71252
71253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71254         command.
71255
71256 2007-01-08  Jim Meyering  <jim@meyering.net>
71257
71258         Use a more robust test for a "can't happen" condition.
71259         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71260         narrowed the st_size value.  Presuming the "can't happen" condition
71261         is true, that narrowing could conceivably convert an invalid st_size
71262         value into a valid one.  Instead, use a change based on Matthew
71263         Woehlke's original patch.
71264
71265         Slight readability improvement: use an assert-like macro
71266         in place of literal "abort ()" uses.
71267         * lib/fts.c (fts_assert): Define.
71268         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71269         Use this macro instead of a bare 'abort'.
71270
71271 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71274         simply work around them.
71275         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71276         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71277         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71278         declaring.
71279         Don't bother to define as macros, since the standard doesn't require it.
71280         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71281         longer worry about IRIX 5.3.
71282         (HAVE_WCTYPE_CTMP_BUG): Remove.
71283
71284 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71287         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71288         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71289         Problems reported by Georg Schwarz for IRIX 5.3.
71290
71291         * gnulib-tool (autoconf_minversion): Take the maximum version number
71292         found, not the minimum.  Problem reported by James Youngman.
71293
71294 2007-01-03  Karl Berry  <karl@gnu.org>
71295
71296         * doc/error.texi: new file, explaining interaction with progname.
71297         * doc/gnulib.texi: include it.  Update copyright.
71298
71299 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71300
71301         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71302         AC_CANONICAL_HOST, to improve autobuild outputs.
71303
71304 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71305             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71306
71307         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71308         sockets, server sockets, and other file descriptors.  Count errors
71309         to compute the return value.  Reorder the code a bit to be easier
71310         to follow.  Don't set event bits that were not requested (except
71311         POLLERR and POLLHUP).
71312
71313 2007-01-01  Bruno Haible  <bruno@clisp.org>
71314
71315         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71316
71317 2007-01-03  Jim Meyering  <jim@meyering.net>
71318
71319         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71320
71321 2007-01-02  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/settime (Include): Require timespec.h.
71324         * modules/nanosleep (Include): Likewise.
71325
71326 2007-01-01  Bruno Haible  <bruno@clisp.org>
71327
71328         * gnulib-tool (func_emit_copyright_notice): Bump year.
71329         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71330
71331 2007-01-01  Bruno Haible  <bruno@clisp.org>
71332
71333         Improve support for OpenBSD.
71334         * build-aux/config.rpath (libname_spec): Export.
71335         (library_names_spec): New variable. Export.
71336         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71337         library_names_spec from the config.rpath output. Locate shared library
71338         through the name pattern in library_names_spec.
71339
71340 2007-01-01  Eric Blake  <ebb9@byu.net>
71341
71342         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71343
71344 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71345
71346         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71347         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71348         assume the C locale, and avoid an "eval" that could cause trouble.
71349         Problem with SORT reported by Bob Proulx.
71350
71351         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71352         Define.  Trivial patch from Henning Nielsen Lund, originally
71353         sent to bug-grep@gnu.org today.
71354
71355 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71358         struct stat.  Problem reported by Henning Nielsen Lund.
71359         * lib/acl.c: Include acl.h first, to check interface.  Don't
71360         bother to include sys/types.h and sys/stat.h again.
71361
71362 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         Import the following change from libc; problem reported by
71365         Sven Verdoolaege.
71366
71367         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71368
71369         [BZ #1373]
71370         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71371
71372 2006-12-28  Jim Meyering  <jim@meyering.net>
71373
71374         * build-aux/announce-gen: Do not assume that the package
71375         builds any of tar.gz, tar.bz2, and .xdelta files.
71376         Suggestion from Simon Josefsson.
71377
71378 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71379
71380         * modules/announce-gen: New file.
71381
71382 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71385         handles its gotchas now.
71386         * lib/mbswidth.c: Likewise.
71387         * lib/wcwidth.h: Likewise.
71388         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71389         and iswcntrl; the wctype module does this stuff now.
71390         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71392         * modules/mbchar (Depends-on): Add wctype.
71393         * modules/mbswidth (Depends-on): Likewise.
71394         * modules/wcwidth (Depends-on): Likewise.
71395
71396 2006-12-27  Eric Blake  <ebb9@byu.net>
71397
71398         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71399         module uses more than what <wctype.h> is required to provide.
71400
71401 2006-12-26  Eric Blake  <ebb9@byu.net>
71402
71403         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71404
71405 2006-12-26  Eric Blake  <ebb9@byu.net>
71406
71407         * modules/absolute-header: New module.
71408         * modules/fcntl (Depends-on): Depend on it.
71409         * modules/inttypes (Depends-on): Likewise.
71410         * modules/stdint (Depends-on): Likewise.
71411         * modules/sys_stat (Depends-on): Likewise.
71412         * modules/wctype (Depends-on): Likewise.
71413         * MODULES.html.sh (Support for building libraries and
71414         executables): Document it.
71415
71416 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * gnulib-tool (SED): Remove, undoing previous change.
71419         The problem was that it broke coreutils on Solaris, because
71420         "sed --posix" leaked into a makefile.
71421         (sed): New alias, if 'alias' and GNU sed.
71422
71423 2006-12-24  Jim Meyering  <jim@meyering.net>
71424
71425         Work around an fchownat bug in glibc-2.4:
71426         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71427         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71428         in spite of the -P option.
71429         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71430         New macros.
71431         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71432         * modules/openat (Files): Add lib/fchownat.c.
71433         * lib/openat.c (fchownat): Don't define here.  Move to...
71434         * lib/fchownat.c: ...this new file.
71435
71436 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         Fix bug reported by Bruno Haible in
71439         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71440         where quotearg.c didn't compile on Mac OS X 10.2 because it
71441         lacks <wchar.h> and wint_t.
71442         * lib/wctype_.h (__wctype_wint_t): New type.
71443         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71444         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71445         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71446         Arg is now of type __wctype_wint_t, not wint_t.
71447         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71448         substitute HAVE_WINT_T.
71449         * modules/wctype (Files): Add m4/wint_t.m4.
71450         (wctype.h): Substitute HAVE_WINT_T.
71451
71452 2006-12-23  Bruno Haible  <bruno@clisp.org>
71453
71454         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71455
71456 2006-12-23  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71459         S_ISLNK.
71460         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71461         mingw.
71462
71463 2006-12-22  Bruno Haible  <bruno@clisp.org>
71464
71465         * lib/copy-file.c: Include acl.h.
71466         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71467         Close the file descriptors only after being done with copy_acl.
71468         * modules/copy-file (Depends-on): Add acl.
71469
71470 2006-12-22  Bruno Haible  <bruno@clisp.org>
71471
71472         * gnulib-tool (SED): New variable.
71473         Use $SED instead of sed everywhere.
71474
71475 2006-12-22  Bruno Haible  <bruno@clisp.org>
71476
71477         * modules/no-c++: New file.
71478         * m4/no-c++.m4: New file.
71479         * MODULES.html.sh (Support for building libraries and executables):
71480         Add no-c++.
71481
71482 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71485         Include <limits.h>, and use its INT_MAX to rewrite the
71486         j loop so that it does not overflow 'int'.  Problem reported by
71487         Ralf Wildenhues in
71488         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71489         Play it safe by shifting left by 1 rather than multiplying by 2,
71490         as GCC is less likely to optimize this away when the value
71491         is signed (when it assumes overflow leads to undefined behavior).
71492         Also, don't assume time_t uses two's complement.
71493
71494 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * MODULES.html.sh: New module wctype.
71497         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71498         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71499         <wctype.h>, since the new wctype module should fix this.
71500         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71501         the wctype module should arrange for it.
71502         * lib/regex_internal.h: Likewise.
71503         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71504         since the wctype module should handle this now.
71505         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71506         * modules/fnmatch (Depends-on): Add wctype.
71507         * modules/quotearg (Depends-on): Likewise.
71508         * modules/regex (Depends-on): Likewise.
71509
71510 2006-12-19  Bruno Haible  <bruno@clisp.org>
71511
71512         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71513         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71514
71515 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71516
71517         * modules/savewd (Depends-on): Fix dependency on fcntl.
71518
71519 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71522         conforms to C99, rather than relying on the user's environment
71523         setting of STDINT_H.
71524
71525 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71526         and Eric Blake  <ebb9@byu.net>
71527
71528         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71529         This is more consistent with the other defines here.
71530         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71531         Port to z/OS.  Problem reported by Paul Gilmartin.
71532         Change local vars to use gl_ prefix rather than ac_.
71533         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71534         with other defines.
71535         * modules/double-slash-root: New module.
71536         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71537         (Depends-on): Add double-slash-root.
71538         * MODULES.html.sh (File system functions): Mention new module.
71539
71540 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71543         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71544         This is for the benefit of gzip, which doesn't do i18n.
71545
71546 2006-12-12  Jim Meyering  <jim@meyering.net>
71547
71548         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71549         Reported by Andreas Schwab <schwab@suse.de>.
71550
71551 2006-12-12  Bruno Haible  <bruno@clisp.org>
71552
71553         Merge these changes.
71554         2006-09-05  Bruno Haible  <bruno@clisp.org>
71555         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71556         iconv_alloc succeeded.
71557         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71558         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71559         test for " && dest " at the end - dest is always != NULL there. Call
71560         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71561         with 2xNULL arguments, also to flush the state storage. Handle the
71562         IRIX iconv behaviour. Realloc the final result, to throw away unused
71563         memory.
71564
71565 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71568         and fchmodat unconditionally, since glibc 2.4 has them.
71569         Problem reported by Arkadiusz Miskiewicz.
71570
71571 2006-12-10  Bruno Haible  <bruno@clisp.org>
71572
71573         * gnulib-tool (func_import): Show the include files only for those
71574         modules that are copied and specified.
71575         Reported by Karl Berry.
71576
71577 2006-12-08  Jim Meyering  <jim@meyering.net>
71578
71579         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71580         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71581
71582         * build-aux/announce-gen: Add two new options, both optional:
71583         --bootstrap-tools=TOOL_LIST
71584               a comma-separated list of tools, e.g.,
71585               autoconf,automake,bison,gnulib
71586         --gnulib-snapshot-date=DATE
71587               if gnulib is in the bootstrap tool list,
71588               then report this as the snapshot date.
71589               If not specified, use the current date/time.
71590               If you specify a date here, be sure it's UTC.
71591
71592 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71593
71594         * tests/test-argp-2.sh: Fix test to match actual output.
71595         (func_compare): Fix sed script to be portable.
71596
71597 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71600         workaround for this case.  It is not autoconfigured now; offhand
71601         it's hard to see how to autoconfigure it.
71602
71603 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71606         a directory that is about to be chowned.  Such a directory's
71607         initial file permissions should permit the owner only and this
71608         should not be changed until after the chown, since the group and
71609         other bits would be incorrect if they granted permission before
71610         the chown.
71611
71612         Fix porting problem for iswctype reported by Georg Schwarz in:
71613         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71614         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71615         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71617         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71618
71619 2006-12-03  Jim Meyering  <jim@meyering.net>
71620
71621         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71622         p->fts_statp may not yet be defined.
71623         (fts_read): Instead, set it in the caller, once p->fts_statp is
71624         sure to be defined, and corresponds to a top-level directory.
71625         This bug made du -x fail.  Here's the coreutils test case:
71626         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71627         Reported by Mike Frysinger.
71628
71629 2006-12-01  Jim Meyering  <jim@meyering.net>
71630
71631         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71632         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71633         Reported by Simon Josefsson.
71634
71635 2006-11-30  Jim Meyering  <jim@meyering.net>
71636
71637         * m4/warning.m4: Use the all-permissive copyright notice
71638         recommended by RMS (rather than LGPL).
71639         * m4/vararrays.m4: Likewise.
71640         * m4/flexmember.m4: Likewise.
71641
71642 2006-11-29  Bruno Haible  <bruno@clisp.org>
71643
71644         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71645         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71646         using +=.
71647         Reported by Simon Josefsson <simon@josefsson.org>.
71648
71649 2006-11-28  James Youngman <jay@gnu.org>
71650
71651         * README: Advise users that they might find the bug-gnulib@gnu.org
71652         and autotools-announce@gnu.org mailing lists useful.
71653
71654 2006-11-28  Bruno Haible  <bruno@clisp.org>
71655
71656         * m4/ptrdiff_max.m4: Remove file.
71657
71658 2006-11-21  Bruno Haible  <bruno@clisp.org>
71659
71660         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71661         _AC_COMPUTE_INT.
71662         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71663         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71664         _AC_COMPUTE_INT.
71665         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71666         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71667         _AC_COMPUTE_INT.
71668         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71669
71670 2006-11-28  Jim Meyering  <jim@meyering.net>
71671
71672         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71673         warning from "gcc -Wshadow" about shadowing the builtin.
71674
71675 2006-11-27  Bruno Haible  <bruno@clisp.org>
71676
71677         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71678         _AC_COMPUTE_INT.
71679         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71680
71681 2006-11-27  Bruno Haible  <bruno@clisp.org>
71682             Paul Eggert  <eggert@cs.ucla.edu>
71683
71684         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71685
71686 2006-11-26  Bruno Haible  <bruno@clisp.org>
71687
71688         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71689         noinst_LTLIBRARIES.
71690
71691 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71692             Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71695         if compiling with "gcc -ansi".
71696
71697 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         Fix some incompatibilities with gcc -ansi -pedantic.
71700         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71701         if compiling pedantically with GCC, unless it's C99 or later.
71702         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71703         it mishandles gcc -ansi -pedantic as well.
71704         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71705         if gcc -pedantic.
71706         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71707         initializers for struct if -pedantic, unless it's C99 or later.
71708
71709 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71710
71711         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71712         Don't close an fd more than once. Identical atimes indicate
71713         success, not failure.
71714
71715 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71716
71717         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71718
71719 2006-11-23  Jim Meyering  <jim@meyering.net>
71720
71721         * build-aux/announce-gen: New file.  From coreutils.
71722
71723 2006-11-22  Jim Meyering  <jim@meyering.net>
71724
71725         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71726         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71727         (fts_read): Use a temporary to narrow the overused st_size member
71728         before using it in a switch statement.  Reported by Matthew Woehlke.
71729
71730         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71731         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71732
71733 2006-11-20  Bruno Haible  <bruno@clisp.org>
71734
71735         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71736         changequote instead of pairs of brackets.
71737         Reported by Andreas Schwab <schwab@suse.de>.
71738
71739 2006-11-21  Jim Meyering  <jim@meyering.net>
71740
71741         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71742         so as to remain compatible with older compilers.
71743         Patch from Michael Deutschmann.
71744
71745 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         * MODULES.html.sh (File system functions): Add openat.
71748
71749         * lib/openat.h (rpl_fstatat): New macro, if
71750         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71751         (fstatat): Define to rpl_fstatat under the same conditions,
71752         unless COMPILING_FSTATAT.
71753         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71754         seems to have the bug.
71755         * lib/fstatat.c: New file.
71756         * modules/openat (Files): Add it.
71757
71758 2006-11-20  Bruno Haible  <bruno@clisp.org>
71759
71760         * Makefile: New file.
71761
71762 2006-11-20  Jim Meyering  <jim@meyering.net>
71763
71764         The beginnings of syntax-related checks for gnulib.
71765         * lib/Makefile: New file.
71766         * lib/t-idcache: New script.  Ensure that the two halves of
71767         idcache.c stay in sync.
71768
71769         * lib/idcache.c: Adjust comments in user- and group- portions to
71770         be more accurate, and to be consistent with one another.
71771
71772 2006-11-20  Jim Meyering  <jim@meyering.net>
71773
71774         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71775         continue using the flexible array member (thus, this module performs
71776         half as many malloc calls), with the addition that...
71777         (getgroup, getuser): Consistently record a non-match via an empty
71778         "name" string, and map an empty string match to a NULL return value.
71779         * modules/idcache (Depends-on): Re-add flexmember.
71780
71781         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71782         (getuidbyname, getgroup, getgidbyname): Likewise.
71783
71784         Use cleaner syntax: NULL rather than 0.
71785         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71786
71787 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71790         It mishandled the case where the group was missing.
71791         Problem reported by Greg Schafer.
71792         * modules/idcache: Likewise.
71793
71794 2006-11-18  Jim Meyering  <jim@meyering.net>
71795
71796         * check-module (%exempt_header): Add exception for some
71797         conditionally-included headers.
71798
71799         * modules/i-ring (Depends-on): Add verify.
71800         (License): Change to LGPL.
71801
71802 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71805         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71806         and inttostr.h.  Use snprintf rather than uinttostr, so that
71807         LGPLed code doesn't depend on GPLed.
71808
71809 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71810
71811         * modules/inline (License): Change from GPL to LGPL.
71812
71813 2006-11-17  Jim Meyering  <jim@meyering.net>
71814
71815         * modules/d-type (License): Switch to LGPL.
71816
71817 2006-11-15  Bruno Haible  <bruno@clisp.org>
71818
71819         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71820
71821 2006-11-15  Eric Blake  <ebb9@byu.net>
71822
71823         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71824         the module dependency.
71825
71826 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71827             Bruno Haible  <bruno@clisp.org>
71828
71829         * gnulib-tool (func_create_testdir): Add license consistency check.
71830
71831 2006-11-15  Eric Blake  <ebb9@byu.net>
71832
71833         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71834         random "(cached)" in configure output.
71835
71836 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71837
71838         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71839         test for conforming inttypes.h is both announced and cached.
71840
71841         * MODULES.html.sh (seen_modules, seen_files): New variables.
71842         (func_module): Rewrite to use a few less gnulib-tool and sed
71843         invocations.  Avoid a couple of quadratic algorithms for ...
71844         (missed_modules, missed_files): ... these, with ...
71845         (func_append, func_tmpdir): ... these new functions, from
71846         gnulib-tool.  Analogously, install traps for cleanup.
71847
71848         * tests/test-gc.c (main): Remove unused variables.
71849         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71850
71851 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * modules/inttostr (License): Change to LGPL.
71854
71855 2006-11-14  Eric Blake  <ebb9@byu.net>
71856
71857         * modules/tempname (License): Change to LGPL.
71858
71859 2006-11-14  Eric Blake  <ebb9@byu.net>
71860
71861         * doc/functions.texi (Function Portability): *printf functions on
71862         Cygwin now understand all POSIX size specifiers.
71863
71864 2006-11-14  Bruno Haible  <bruno@clisp.org>
71865
71866         * modules/c-ctype (License): Change to LGPL.
71867
71868 2006-11-12  Bruno Haible  <bruno@clisp.org>
71869
71870         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71871         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71872         for GNOME libraries, for which the include files are installed in
71873         subdirectories of $prefix/include.
71874
71875 2006-11-12  Bruno Haible  <bruno@clisp.org>
71876
71877         * m4/lib-link.m4: Require at least autoconf-2.54.
71878         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71879         name to underscores for the --with option.
71880
71881 2006-11-13  Bruno Haible  <bruno@clisp.org>
71882
71883         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71884         the tests directory.
71885         Reported by Ralf Wildenhues.
71886
71887 2006-11-13  Bruno Haible  <bruno@clisp.org>
71888
71889         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71890         (func_emit_initmacro_end): Undo the override here.
71891         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71892         Works around the famous automake error in coreutils.
71893
71894 2006-11-13  Eric Blake  <ebb9@byu.net>
71895
71896         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71897         element, not its node.
71898
71899 2006-11-12  Bruno Haible  <bruno@clisp.org>
71900
71901         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71902         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71903
71904 2006-11-12  Bruno Haible  <bruno@clisp.org>
71905
71906         * gnulib-tool: New option --local-symlink.
71907         (func_usage): Document it.
71908         (lsymbolic): New variable.
71909         (func_import, func_create_testdir): If --symlink was not specified,
71910         test whether --local-symlink was specified and the file comes from
71911         the local_gnulib_dir.
71912
71913 2006-11-12  Bruno Haible  <bruno@clisp.org>
71914
71915         * gnulib-tool (func_ln): New function.
71916         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71917
71918 2006-11-12  Bruno Haible  <bruno@clisp.org>
71919
71920         Finish support for source files in subdirectories.
71921         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71922         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71923         AUTOMAKE_OPTIONS.
71924         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71925
71926 2006-11-12  Bruno Haible  <bruno@clisp.org>
71927
71928         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71929         EXTRA_lib_SOURCES augmentation.
71930         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71931
71932 2006-11-12  Jim Meyering  <jim@meyering.net>
71933
71934         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71935         file descriptors.  This also averts a failure on systems with
71936         native openat support when a traversed directory lacks "x" access.
71937         * lib/fts_.h: Include "i-ring.h"
71938         (struct FTS) [fts_fd_ring]: New member.
71939         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71940         (FCHDIR): Add parentheses.
71941         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71942         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71943         When descending, rather than simply closing the previous
71944         fts_cwd_fd value, push that file descriptor onto the ring.
71945         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71946         (fts_open): Initialize the new fd_ring member.
71947         (fts_close): Clear the ring.
71948         (fts_safe_changedir): When possible, use our new fd_ring to skip
71949         the diropen and fstat and dev/ino comparison that would normally
71950         accompany a virtual `chdir ("..")'.
71951
71952         * modules/fts (Depends-on): Add i-ring.
71953         * modules/i-ring: New module.
71954         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71955         * m4/i-ring.m4: New file.
71956
71957 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71958
71959         * gnulib-tool (func_create_testdir): Fix replacement of
71960         `build-aux' in configure.ac.  Run autotools in gltests
71961         subdirectory.
71962         (func_create_testdir, func_create_megatestdir, test): There is
71963         no need for '--force' in most autotool invocations in a new
71964         tree.  Actually fail the whole test if any of the tools, or the
71965         configure or make stages fail.
71966
71967         Sync from Automake.
71968         * build-aux/gnupload: Revert last change.  Add pointer to upload
71969         instructions of the GNU Maintenance Instructions.
71970         Suggestion by Karl Berry.
71971
71972 2006-11-10  Jim Meyering  <jim@meyering.net>
71973
71974         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71975
71976 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71977
71978         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71979         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71980         (bind_textdomain_codeset) [! ENABLE_NLS]:
71981         Evaluate all the arguments.  That way, callers get compatible behavior
71982         if the arguments have side effects.  Also, it avoids some GCC
71983         diagnostics in some cases; Joel E. Denny reported problems when Bison
71984         was configured with --enable-gcc-warnigs.
71985
71986 2006-11-10  Jim Meyering  <jim@meyering.net>
71987
71988         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71989         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71990         account.
71991
71992 2006-11-10  Jim Meyering  <jim@meyering.net>
71993
71994         * modules/inline: New file/module.
71995         * modules/xalloc (Files): Remove m4/inline.m4.
71996         (Depends-on): Add inline, instead.
71997         * modules/oset: Likewise.
71998         * modules/list: Likewise.
71999
72000 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72003         Problem reported by Matthew Woehlke.
72004
72005 2006-11-09  Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/tempname.c (gen_tempname): Remove variant that invokes
72008         __gen_tempname.
72009         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72010         __gen_tempname.
72011
72012 2006-11-08  Bruno Haible  <bruno@clisp.org>
72013
72014         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72015         to 'yes' instead of 'cross-compiling'.
72016
72017 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * lib/quotearg.h (quotearg_free): New decl.
72020         * lib/quotearg.c (quotearg_free): New function.
72021         (slot0, nslots, slotvec0, slotvec):
72022         Now file-scope so that quotearg_free can get at them.
72023
72024 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72025
72026         Sync from Automake.
72027         * build-aux/gnupload: Add missing 'gnu' to example URL.
72028         Report by Karl Berry.
72029
72030 2006-11-08  Bruno Haible  <bruno@clisp.org>
72031
72032         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72033         Suggested by Paul Eggert.
72034
72035 2006-11-08  Jim Meyering  <jim@meyering.net>
72036
72037         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72038         It's already included if !_LIBC.
72039         (fts_safe_changedir): Add a comment.
72040
72041 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72044         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72045         Matthew Woehlke.
72046
72047         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72048         definitions up, to avoid colliding with change below.
72049         (static_inline) [HAVE_INLINE]: New macro.
72050         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72051         Provide extern decls when !HAVE_INLINE.  Do not define unless
72052         static_inline is defined, either by us or by xmalloc.c.  Use
72053         static_inline rather than static inline.
72054         (XCALLOC): Optimize sizeof(T) = 1 case.
72055         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72056
72057 2006-11-07  Bruno Haible  <bruno@clisp.org>
72058
72059         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72060         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72061         AC_C_INLINE.
72062         * modules/xalloc (Files): Add m4/inline.m4.
72063
72064 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72065
72066         * README: Fix typo.
72067         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72068         (Miscellanous Notes): ...from this.
72069
72070 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72073         Mention that offsetof should be used instead of sizeof.
72074         From Bruno Haible.
72075
72076 2006-11-07  Bruno Haible  <bruno@clisp.org>
72077
72078         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72079
72080 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72083         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72084         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72085         (gl_tree_add_before, gl_tree_add_after):
72086         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72087         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72088         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72089         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72090         (gl_linked_add_after, gl_linked_add_at): Likewise.
72091         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72092         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72093         (gl_tree_add_before, gl_tree_add_after): Likewise.
72094         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72095         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72096         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72097
72098 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72099
72100         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72101
72102 2006-11-06  Bruno Haible  <bruno@clisp.org>
72103
72104         * m4/inline.m4: New file.
72105         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72106         * modules/list (Files): Add m4/inline.m4.
72107         * modules/oset (Files): Likewise.
72108
72109 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * lib/idcache.c: Include <stddef.h>, for offsetof.
72112         (struct userid.name): Change from char * to a flexible array member.
72113         All uses changed.
72114         * modules/idcache (Depends-on): Add flexmember.
72115
72116         * MODULES.html.sh (Core language properties): New module flexmember.
72117         * modules/flexmember, m4/flexmember.m4: New files.
72118
72119         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72120         inline functions that are identical with the old xnmalloc_inline,
72121         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72122         that we can avoid some unnecessary integer multiplications and
72123         divisions in the common case where the element size is known at
72124         compile time.
72125         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72126         needed.
72127         (xnboundedmalloc): Remove.
72128         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72129         arguments, for consistency with rest of this header.
72130         (xcharalloc): Rewrite using XNMALLOC.
72131         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72132         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72133         versions have been moved to lib/xalloc.h and renamed to be the
72134         non-*_inline versions.
72135         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72136         and xnrealloc functions, since those functions are now inline and
72137         now call us.
72138         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72139         renaming described above.
72140         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72141         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72142         captures the dependency in AC_C_INLINE.
72143
72144         New module canonicalize-lgpl, proposed by Charles Wilson in
72145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72146         with a few small changes afterwards.
72147         * MODULES.html.sh (File system functions): New module
72148         canonicalize-lgpl.
72149         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72150         and canonicalize_file_name.
72151         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72152         * modules/canonicalize-lgpl: New files.
72153
72154 2006-11-05  Bruno Haible  <bruno@clisp.org>
72155
72156         * gnulib-tool (func_import, func_create_testdir): Create directories
72157         also for files in subdirectories of lib/.
72158
72159 2006-11-05  Bruno Haible  <bruno@clisp.org>
72160
72161         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72162         ANSI C compliant.
72163
72164 2006-11-03  Bruno Haible  <bruno@clisp.org>
72165
72166         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72167         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72168         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72169         (xnboundedmalloc): New inline function.
72170         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72171         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72172         xmalloc.
72173         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72174         xmalloc.
72175         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72176         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72177         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72178         xmalloc.
72179         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72180         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72181         xmalloc.
72182         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72183         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72184         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72185         xmalloc.
72186         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72187         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72188         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72189         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72190         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72191         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72192         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72193
72194 2006-11-03  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/c-ctype.h [C++]: Define functions without name mangling.
72197         * lib/fwriteerror.h [C++]: Likewise.
72198         * lib/gcd.h [C++]: Likewise.
72199         * lib/linebreak.h [C++]: Likewise.
72200
72201 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72202
72203         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72204         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72205         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72206         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72207         Check for functions and headers just once.
72208         Check for declaration of canonicalize_file_name.
72209         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72210
72211 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72212
72213         * gnulib-tool (func_import): Fix typo in actioncmd.
72214
72215 2006-11-02  Bruno Haible  <bruno@clisp.org>
72216
72217         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72218         newline sequence in the Makefile.am snippet as a space, like "make"
72219         does.
72220         Reported by Roger Persson <perrog@gmail.com>.
72221
72222 2006-11-01  Bruno Haible  <bruno@clisp.org>
72223
72224         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72225         already declared in <string.h>.
72226         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72227
72228 2006-11-01  Bruno Haible  <bruno@clisp.org>
72229
72230         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72231         * lib/strcase.h: Include <string.h>.
72232         (strcasecmp): Define to rpl_strcasecmp here.
72233
72234 2006-11-01  Bruno Haible  <bruno@clisp.org>
72235
72236         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72237
72238 2006-11-01  Eric Blake  <ebb9@byu.net>
72239
72240         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72241
72242         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72243
72244 2006-10-29  Bruno Haible  <bruno@clisp.org>
72245
72246         Make it compile in C++ mode.
72247         * lib/full-write.c (full_rw): Add a cast.
72248
72249 2006-11-01  Bruno Haible  <bruno@clisp.org>
72250
72251         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72252         be POSIX compliant.
72253         Reported by Roger Persson <perrog@gmail.com>.
72254
72255 2006-11-01  Eric Blake  <ebb9@byu.net>
72256
72257         * lib/getopt_.h: Fix comments.
72258
72259 2006-10-31  Eric Blake  <ebb9@byu.net>
72260
72261         * modules/tmpdir (Depends-on): Add sys_stat.
72262         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72263         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72264         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72265         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72266         tempname.
72267
72268 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         Avoid some C++ diagnostics reported by Bruno Haible.
72271         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72272         xmalloc.
72273         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72274         (struct slotvec): Move to top level.
72275         (quotearg_n_options): Rewrite to avoid xmalloc.
72276         * lib/xalloc.h (xcharalloc): New function.
72277         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72278         [defined __cplusplus]: Add function template that provides result
72279         type propagation.  This part of the change is from Bruno Haible.
72280
72281 2006-10-29  Bruno Haible  <bruno@clisp.org>
72282
72283         Make it compile in C++ mode.
72284         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72285         * lib/strnlen1.c (strnlen1): Cast memchr result.
72286         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72287         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72288         (create_temp_dir): Rename local variable 'template'.
72289         (compile_csharp_using_sscli): Add cast.
72290         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72291         * lib/findprog.c (find_in_path): Likewise.
72292         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72293         * lib/wait-process.c (register_slave_subprocess): Likewise.
72294
72295 2006-10-22  Bruno Haible  <bruno@clisp.org>
72296
72297         * modules/tsearch: New file.
72298         * lib/tsearch.h: New file.
72299         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72300         * m4/tsearch.m4: New file.
72301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72302
72303 2006-10-29  Eric Blake  <ebb9@byu.net>
72304
72305         * lib/arcfour.c: Assume config.h.
72306         * lib/arctwo.c: Likewise.
72307         * lib/base64.c: Likewise.
72308         * lib/check-version.c: Likewise.
72309         * lib/crc.c: Likewise.
72310         * lib/des.c: Likewise.
72311         * lib/gc-gnulib.c: Likewise.
72312         * lib/gc-libgcrypt.c: Likewise.
72313         * lib/gc-pbkdf2-sha1.c: Likewise.
72314         * lib/getaddrinfo.c: Likewise.
72315         * lib/getdelim.c: Likewise.
72316         * lib/getline.c: Likewise.
72317         * lib/hmac-md5.c: Likewise.
72318         * lib/hmac-sha1.c: Likewise.
72319         * lib/iconvme.c: Likewise.
72320         * lib/md2.c: Likewise.
72321         * lib/md4.c: Likewise.
72322         * lib/memxor.c: Likewise.
72323         * lib/read-file.c: Likewise.
72324         * lib/readline.c: Likewise.
72325         * lib/rijndael-alg-fst.c: Likewise.
72326         * lib/rijndael-api-fst.c: Likewise.
72327         * lib/xgetdomainname.c: Likewise.
72328
72329 2006-10-28  Eric Blake  <ebb9@byu.net>
72330
72331         * lib/xstrndup.c: Assume config.h.
72332
72333 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72334
72335         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72336         stat-macros.h is now for our own macros, whereas stat_h is for
72337         macros in the <sys/stat.h> name space.
72338         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72339         (STAT_MACROS_H): Remove.
72340         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72341         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72342         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72343         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72344         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72345         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72346         Move these macros to ...
72347         * lib/stat_.h: here.  Don't include stat-macros.h.
72348         * lib/canonicalize.c: Don't include stat-macros.h.
72349         * lib/chown.c: Likewise.
72350         * lib/euidaccess.c: Likewise.
72351         * lib/file-type.c: Likewise.
72352         * lib/filemode.c: Likewise.
72353         * lib/glob.c: Likewise.
72354         * lib/isapipe.c: Likewise.
72355         * lib/lchown.c: Likewise.
72356         * lib/lstat.c: Likewise.
72357         * lib/mkdir-p.c: Likewise.
72358         * lib/rmdir.c: Likewise.
72359         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72361         unless mkdir isn't declared, to speed up 'configure'.
72362         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72363         would define all the S_* symbols.
72364         * modules/canonicalize (Depends-on):
72365         Depend on sys_stat, not stat-macros.
72366         * modules/chown: Likewise.
72367         * modules/euidaccess: Likewise.
72368         * modules/filemode: Likewise.
72369         * modules/file-type: Likewise.
72370         * modules/glob: Likewise.
72371         * modules/isapipe: Likewise.
72372         * modules/lchown: Likewise.
72373         * modules/lstat: Likewise.
72374         * modules/mkancesdirs: Likewise.
72375         * modules/rmdir: Likewise.
72376         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72377         * modules/modechange: Likewise.
72378         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72379         (configure.ac): Remove gl_STAT_MACROS.
72380         * modules/sys_stat (Depends-on): Remove stat-macros.
72381
72382 2006-10-27  Bruno Haible  <bruno@clisp.org>
72383
72384         * m4/signed.m4: Remove file.
72385         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72386         invocation.
72387         * modules/vasnprintf (Files): Remove m4/signed.m4.
72388
72389 2006-10-27  Bruno Haible  <bruno@clisp.org>
72390
72391         Update to GNU gettext 0.16.
72392         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72393         m4/inttypes-h.m4, m4/signed.m4.
72394         * m4/gettext.m4: Update to GNU gettext 0.16.
72395         * m4/intl.m4: New file, from GNU gettext.
72396         * m4/intldir.m4: New file, from GNU gettext.
72397         * config/srclist.txt: Update
72398
72399 2006-10-27  Eric Blake  <ebb9@byu.net>
72400
72401         * MODULES.html.sh: Document tempname.
72402         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72403         dependencies.
72404         (Files): Move lib/tempname.c...
72405         * modules/tempname: ...to this new module.
72406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72407         (gl_PREREQ_TEMPNAME): Move...
72408         * m4/tempname.m4: ...to this new file.
72409         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72410         * modules/sys_stat (Depends-on): Add stat-macros.
72411         * lib/stat_.h (includes): Pick up stat macros.
72412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72413         if stat macros are broken.
72414         * lib/tempname.c (includes): No need to include "stat-macros.h".
72415         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72416         (direxists, __path_search) [!_LIBC]: Don't compile these in
72417         gnulib; the tmpdir module covers that.
72418         * lib/tempname.h: New file.
72419
72420 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * COPYING: Explain how gnulib-tool converts licence headers.
72423         Almost all wording by Eric Blake.
72424
72425 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72426
72427         * lib/mbchar.h (is_basic_table): Make read-only.
72428         * lib/mbchar.c (is_basic_table): Likewise.
72429         Reported by John Darrington.
72430
72431 2006-10-25  Bruno Haible  <bruno@clisp.org>
72432
72433         * lib/progname.h (set_program_name): Undefine before defining.
72434
72435 2006-10-25  Bruno Haible  <bruno@clisp.org>
72436
72437         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72438         false for non-gcc C++ compilers.
72439         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72440
72441 2006-10-24  Bruno Haible  <bruno@clisp.org>
72442
72443         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72444         iconv implementations like Irix iconv.
72445
72446 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * modules/vararrays: New file.
72449         * m4/vararrays.m4: New file, taken from diffutils.
72450         * MODULES.html.sh: New module vararrays.
72451
72452 2006-10-24  Karl Berry  <karl@gnu.org>
72453
72454         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72455         Don't call GNU Unix.
72456
72457 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72458
72459         * users.txt: Add Libtool.
72460
72461         Sync from Libtool:
72462
72463         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72466         to gnulib's policy of including config.h unconditionally.
72467
72468 2006-10-24  Bruno Haible  <bruno@clisp.org>
72469
72470         * modules/wcwidth (Files): Add m4/wint_t.m4.
72471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72472         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72473
72474 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72477         to pacify GCC with some -W flags enabled.  Problem reported by
72478         Bruno Haible.
72479
72480 2006-10-24  Jim Meyering  <jim@meyering.net>
72481
72482         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72483         Reported by Karl Berry.
72484
72485 2006-10-23  Bruno Haible  <bruno@clisp.org>
72486
72487         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72488
72489 2006-10-24  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/gl_list.h: Use C comment style, not C++ comment style.
72492
72493 2006-10-23  Eric Blake  <ebb9@byu.net>
72494
72495         * lib/getaddrinfo.c (includes): Add missing include.
72496
72497 2006-10-23  Bruno Haible  <bruno@clisp.org>
72498             Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         Ability to rename obstack_free.
72501         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72502         obstack_free.
72503         (obstack_free): Invoke the __obstack_free macro.
72504         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72505
72506 2006-10-23  Bruno Haible  <bruno@clisp.org>
72507             Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72510         __argc, __argv from the declaration. (They are defined as macros on
72511         mingw.)
72512
72513 2006-10-22  Bruno Haible  <bruno@clisp.org>
72514
72515         * doc/gnulib-intro.texi: New file.
72516         * doc/gnulib.texi: Include it.
72517
72518 2006-10-21  Bruno Haible  <bruno@clisp.org>
72519
72520         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72521         "Introduction", "Miscellanous Notes", "Particular Modules".
72522
72523 2006-10-21  Bruno Haible  <bruno@clisp.org>
72524
72525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72526         Change mostlyclean-local rule to avoid sh syntax error from bash
72527         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72528
72529 2006-10-23  Jim Meyering  <jim@meyering.net>
72530
72531         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72532         in place of snprintf.
72533
72534         * modules/inttostr (Files): Add lib/uinttostr.c.
72535         * lib/uinttostr.c (inttostr): New file/function.
72536         * lib/inttostr.h (uinttostr): Declare.
72537         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72538         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72539         Add uinttostr.
72540         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72541
72542 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * lib/canonicalize.c (ELOOP): Define if not already defined.
72545         Problem reported by Bruno Haible in
72546         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72547
72548 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72551         Problem reported by Perry Smith and Ville Laurikari.
72552
72553         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72554         uses.
72555
72556 2006-10-19  Bruno Haible  <bruno@clisp.org>
72557
72558         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72559         for mingw.
72560
72561 2006-10-19  Bruno Haible  <bruno@clisp.org>
72562
72563         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72564         Needed for mingw.
72565
72566 2006-10-19  Bruno Haible  <bruno@clisp.org>
72567
72568         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72569
72570 2006-10-19  Bruno Haible  <bruno@clisp.org>
72571
72572         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72573         it.
72574
72575 2006-10-19  Bruno Haible  <bruno@clisp.org>
72576
72577         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72578         invocation.
72579
72580 2006-10-19  Bruno Haible  <bruno@clisp.org>
72581
72582         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72583         mountlist by default.
72584
72585 2006-10-16  Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/c-strstr.c: Include c-strstr.h.
72588
72589 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72590
72591         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72592         in a slash.
72593
72594 2006-10-18  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/lock.h [C++]: Wrap definitions in extern "C".
72597
72598 2006-10-18  Bruno Haible  <bruno@clisp.org>
72599
72600         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72601         gl_LIBOBJS list.
72602
72603 2006-10-18  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72606
72607 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72608
72609         * lib/xstrtol.h: Include gettext.h.
72610         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72611         Problem reported by Eric Blake.
72612         * modules/xstrtol (Depends-on): Add gettext-h.
72613
72614 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72615
72616         * lib/strftime.c (advance): New macro.
72617         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72618         incomplete type, so you can't add 0 to it.  Problem and patch
72619         reported by Eelco Dolstra for dietlibc.
72620
72621 2006-10-18  Jim Meyering  <jim@meyering.net>
72622
72623         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72624         type for a local, and rename it: s/up/user_proc/.
72625
72626 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72627
72628         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72629         READ_UTMP_USER_PROCESS.
72630         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72631
72632 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72635         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72636
72637 2006-10-17  Eric Blake  <ebb9@byu.net>
72638
72639         * lib/sigprocmask.c (sigprocmask): Fix typo.
72640
72641         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72642
72643         * modules/clean-temp (Makefile.am): Don't add to make output...
72644         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72645         config.h.
72646
72647 2006-10-17  Bruno Haible  <bruno@clisp.org>
72648
72649         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72650         differently if DEFAULT_TEXT_DOMAIN is set.
72651
72652 2006-10-16  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/clean-temp.c: Include fwriteerror.h.
72655
72656 2006-10-16  Bruno Haible  <bruno@clisp.org>
72657
72658         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72659
72660 2006-10-16  Bruno Haible  <bruno@clisp.org>
72661
72662         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72663         * lib/sigprocmask.h: Include <sys/types.h>.
72664         (sigset_t): Use the system's definition if present.
72665
72666 2006-10-17  Eric Blake  <ebb9@byu.net>
72667
72668         * lib/xvasprintf.c (includes): Assume config.h.
72669         * lib/xasprintf.c (includes): Likewise.
72670
72671 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72674         at least as wide as intmax_t.
72675
72676 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72677
72678         (Imported from Automake.)
72679         * build-aux/gnupload: Update to version 1.1 of directive file.
72680
72681 2006-10-16  Eric Blake  <ebb9@byu.net>
72682
72683         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72684         match Automake 1.10a.
72685
72686 2006-10-14  Bruno Haible  <bruno@clisp.org>
72687
72688         * modules/sigprocmask: New file.
72689         * lib/sigprocmask.h: New file.
72690         * lib/sigprocmask.c: New file.
72691         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72692         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72693         request sigprocmask.o.
72694         (gl_PREREQ_SIGPROCMASK): New macro.
72695         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72696         (Depends-on): Add sigprocmask.
72697         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72698         gt_SIGNALBLOCKING. Test for 'raise' only once.
72699         * lib/fatal-signal.c: Include sigprocmask.h.
72700         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72701         unblock_fatal_signals): Define always.
72702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72703         sigprocmask.
72704
72705 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         Sync from Automake.
72708         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72709         which incorrectly sets the mode of an existing destination
72710         directory.  In some cases the unpatched install-sh could do the
72711         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72712         system.  We hope this is rare in practice, but it's clearly worth
72713         fixing.  Problem reported by Alex Unleashed in
72714         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72715         Also, don't bother to check for -m bugs unless we're using -m;
72716         suggested by Stepan Kasal.
72717
72718 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72719
72720         Sync from Automake.
72721         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72722         `-c' flag, so they appear at the same position as in %FASTDEP%
72723         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72724         which ignores unknown options only after the first non-option.
72725         Bug report against M4 by Nelson H. F. Beebe.
72726
72727 2006-10-13  Jim Meyering  <jim@meyering.net>
72728
72729         Fix a bug in yesterday's change.
72730         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72731         p->fts_statp->st_dev would be used uninitialized.
72732         Ensures that we always call fts_stat on the very first entry.
72733         Miklos Szeredi reported that find -xdev stopped working.
72734
72735 2006-10-12  Bruno Haible  <bruno@clisp.org>
72736
72737         * gnulib-tool (func_get_automake_snippet): Append an automatically
72738         computed EXTRA_DIST augmentation.
72739         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72740         * modules/alloca-opt (Makefile.am): Likewise.
72741         * modules/allocsa (Makefile.am): Likewise.
72742         * modules/arcfour (Makefile.am): Likewise.
72743         * modules/arctwo (Makefile.am): Likewise.
72744         * modules/argmatch (Makefile.am): Likewise.
72745         * modules/argz (Makefile.am): Likewise.
72746         * modules/atexit (Makefile.am): Likewise.
72747         * modules/backupfile (Makefile.am): Likewise.
72748         * modules/byteswap (Makefile.am): Likewise.
72749         * modules/c-strtod (Makefile.am): Likewise.
72750         * modules/c-strtold (Makefile.am): Likewise.
72751         * modules/calloc (Makefile.am): Likewise.
72752         * modules/canon-host (Makefile.am): Likewise.
72753         * modules/canonicalize (Makefile.am): Likewise.
72754         * modules/chdir-long (Makefile.am): Likewise.
72755         * modules/chdir-safer (Makefile.am): Likewise.
72756         * modules/check-version (Makefile.am): Likewise.
72757         * modules/chown (Makefile.am): Likewise.
72758         * modules/cloexec (Makefile.am): Likewise.
72759         * modules/close-stream (Makefile.am): Likewise.
72760         * modules/closeout (Makefile.am): Likewise.
72761         * modules/crc (Makefile.am): Likewise.
72762         * modules/csharpexec (Makefile.am): Likewise.
72763         * modules/cycle-check (Makefile.am): Likewise.
72764         * modules/des (Makefile.am): Likewise.
72765         * modules/dev-ino (Makefile.am): Likewise.
72766         * modules/dirfd (Makefile.am): Likewise.
72767         * modules/dirname (Makefile.am): Likewise.
72768         * modules/dup2 (Makefile.am): Likewise.
72769         * modules/eealloc (Makefile.am): Likewise.
72770         * modules/error (Makefile.am): Likewise.
72771         * modules/euidaccess (Makefile.am): Likewise.
72772         * modules/exclude (Makefile.am): Likewise.
72773         * modules/exitfail (Makefile.am): Likewise.
72774         * modules/fcntl-safer (Makefile.am): Likewise.
72775         * modules/fcntl (Makefile.am): Likewise.
72776         * modules/file-type (Makefile.am): Likewise.
72777         * modules/fileblocks (Makefile.am): Likewise.
72778         * modules/filemode (Makefile.am): Likewise.
72779         * modules/filenamecat (Makefile.am): Likewise.
72780         * modules/fnmatch (Makefile.am): Likewise.
72781         * modules/fopen-safer (Makefile.am): Likewise.
72782         * modules/fpending (Makefile.am): Likewise.
72783         * modules/fprintftime (Makefile.am): Likewise.
72784         * modules/free (Makefile.am): Likewise.
72785         * modules/fsusage (Makefile.am): Likewise.
72786         * modules/ftruncate (Makefile.am): Likewise.
72787         * modules/fts (Makefile.am): Likewise.
72788         * modules/gc-arcfour (Makefile.am): Likewise.
72789         * modules/gc-des (Makefile.am): Likewise.
72790         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72791         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72792         * modules/gc-md4 (Makefile.am): Likewise.
72793         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72794         * modules/gc-sha1 (Makefile.am): Likewise.
72795         * modules/gc (Makefile.am): Likewise.
72796         * modules/getaddrinfo (Makefile.am): Likewise.
72797         * modules/getcwd (Makefile.am): Likewise.
72798         * modules/getdelim (Makefile.am): Likewise.
72799         * modules/getdomainname (Makefile.am): Likewise.
72800         * modules/getgroups (Makefile.am): Likewise.
72801         * modules/gethostname (Makefile.am): Likewise.
72802         * modules/gethrxtime (Makefile.am): Likewise.
72803         * modules/getline (Makefile.am): Likewise.
72804         * modules/getloadavg (Makefile.am): Likewise.
72805         * modules/getlogin_r (Makefile.am): Likewise.
72806         * modules/getndelim2 (Makefile.am): Likewise.
72807         * modules/getopt (Makefile.am): Likewise.
72808         * modules/getpagesize (Makefile.am): Likewise.
72809         * modules/getpass-gnu (Makefile.am): Likewise.
72810         * modules/getpass (Makefile.am): Likewise.
72811         * modules/getsubopt (Makefile.am): Likewise.
72812         * modules/gettime (Makefile.am): Likewise.
72813         * modules/gettimeofday (Makefile.am): Likewise.
72814         * modules/getugroups (Makefile.am): Likewise.
72815         * modules/getusershell (Makefile.am): Likewise.
72816         * modules/glob (Makefile.am): Likewise.
72817         * modules/group-member (Makefile.am): Likewise.
72818         * modules/hard-locale (Makefile.am): Likewise.
72819         * modules/hash (Makefile.am): Likewise.
72820         * modules/hmac-md5 (Makefile.am): Likewise.
72821         * modules/hmac-sha1 (Makefile.am): Likewise.
72822         * modules/human (Makefile.am): Likewise.
72823         * modules/idcache (Makefile.am): Likewise.
72824         * modules/imaxabs (Makefile.am): Likewise.
72825         * modules/imaxdiv (Makefile.am): Likewise.
72826         * modules/inet_ntop (Makefile.am): Likewise.
72827         * modules/inet_pton (Makefile.am): Likewise.
72828         * modules/intprops (Makefile.am): Likewise.
72829         * modules/inttostr (Makefile.am): Likewise.
72830         * modules/inttypes (Makefile.am): Likewise.
72831         * modules/isapipe (Makefile.am): Likewise.
72832         * modules/javaversion (Makefile.am): Likewise.
72833         * modules/lchmod (Makefile.am): Likewise.
72834         * modules/lchown (Makefile.am): Likewise.
72835         * modules/localcharset (Makefile.am): Likewise.
72836         * modules/long-options (Makefile.am): Likewise.
72837         * modules/lstat (Makefile.am): Likewise.
72838         * modules/malloc (Makefile.am): Likewise.
72839         * modules/mathl (Makefile.am): Likewise.
72840         * modules/mbchar (Makefile.am): Likewise.
72841         * modules/md2 (Makefile.am): Likewise.
72842         * modules/md4 (Makefile.am): Likewise.
72843         * modules/md5 (Makefile.am): Likewise.
72844         * modules/memcasecmp (Makefile.am): Likewise.
72845         * modules/memchr (Makefile.am): Likewise.
72846         * modules/memcmp (Makefile.am): Likewise.
72847         * modules/memcoll (Makefile.am): Likewise.
72848         * modules/memcpy (Makefile.am): Likewise.
72849         * modules/memmem (Makefile.am): Likewise.
72850         * modules/memmove (Makefile.am): Likewise.
72851         * modules/mempcpy (Makefile.am): Likewise.
72852         * modules/memrchr (Makefile.am): Likewise.
72853         * modules/memset (Makefile.am): Likewise.
72854         * modules/memxor (Makefile.am): Likewise.
72855         * modules/mkancesdirs (Makefile.am): Likewise.
72856         * modules/mkdir-p (Makefile.am): Likewise.
72857         * modules/mkdir (Makefile.am): Likewise.
72858         * modules/mkdtemp (Makefile.am): Likewise.
72859         * modules/mkstemp (Makefile.am): Likewise.
72860         * modules/mktime (Makefile.am): Likewise.
72861         * modules/modechange (Makefile.am): Likewise.
72862         * modules/mountlist (Makefile.am): Likewise.
72863         * modules/nanosleep (Makefile.am): Likewise.
72864         * modules/obstack (Makefile.am): Likewise.
72865         * modules/openat (Makefile.am): Likewise.
72866         * modules/pagealign_alloc (Makefile.am): Likewise.
72867         * modules/pathmax (Makefile.am): Likewise.
72868         * modules/physmem (Makefile.am): Likewise.
72869         * modules/poll (Makefile.am): Likewise.
72870         * modules/posixtm (Makefile.am): Likewise.
72871         * modules/posixver (Makefile.am): Likewise.
72872         * modules/putenv (Makefile.am): Likewise.
72873         * modules/quote (Makefile.am): Likewise.
72874         * modules/quotearg (Makefile.am): Likewise.
72875         * modules/raise (Makefile.am): Likewise.
72876         * modules/read-file (Makefile.am): Likewise.
72877         * modules/readline (Makefile.am): Likewise.
72878         * modules/readlink (Makefile.am): Likewise.
72879         * modules/readtokens (Makefile.am): Likewise.
72880         * modules/readutmp (Makefile.am): Likewise.
72881         * modules/realloc (Makefile.am): Likewise.
72882         * modules/regex (Makefile.am): Likewise.
72883         * modules/rename-dest-slash (Makefile.am): Likewise.
72884         * modules/rename (Makefile.am): Likewise.
72885         * modules/rijndael (Makefile.am): Likewise.
72886         * modules/rmdir (Makefile.am): Likewise.
72887         * modules/rpmatch (Makefile.am): Likewise.
72888         * modules/safe-read (Makefile.am): Likewise.
72889         * modules/safe-write (Makefile.am): Likewise.
72890         * modules/same-inode (Makefile.am): Likewise.
72891         * modules/same (Makefile.am): Likewise.
72892         * modules/save-cwd (Makefile.am): Likewise.
72893         * modules/savedir (Makefile.am): Likewise.
72894         * modules/setenv (Makefile.am): Likewise.
72895         * modules/settime (Makefile.am): Likewise.
72896         * modules/sha1 (Makefile.am): Likewise.
72897         * modules/sig2str (Makefile.am): Likewise.
72898         * modules/snprintf (Makefile.am): Likewise.
72899         * modules/stat-macros (Makefile.am): Likewise.
72900         * modules/stat-time (Makefile.am): Likewise.
72901         * modules/stdbool (Makefile.am): Likewise.
72902         * modules/stdint (Makefile.am): Likewise.
72903         * modules/stdlib-safer (Makefile.am): Likewise.
72904         * modules/stpcpy (Makefile.am): Likewise.
72905         * modules/stpncpy (Makefile.am): Likewise.
72906         * modules/strcase (Makefile.am): Likewise.
72907         * modules/strcasestr (Makefile.am): Likewise.
72908         * modules/strchrnul (Makefile.am): Likewise.
72909         * modules/strcspn (Makefile.am): Likewise.
72910         * modules/strdup (Makefile.am): Likewise.
72911         * modules/strerror (Makefile.am): Likewise.
72912         * modules/strftime (Makefile.am): Likewise.
72913         * modules/strndup (Makefile.am): Likewise.
72914         * modules/strnlen (Makefile.am): Likewise.
72915         * modules/strpbrk (Makefile.am): Likewise.
72916         * modules/strsep (Makefile.am): Likewise.
72917         * modules/strstr (Makefile.am): Likewise.
72918         * modules/strtod (Makefile.am): Likewise.
72919         * modules/strtoimax (Makefile.am): Likewise.
72920         * modules/strtok_r (Makefile.am): Likewise.
72921         * modules/strtol (Makefile.am): Likewise.
72922         * modules/strtoll (Makefile.am): Likewise.
72923         * modules/strtoul (Makefile.am): Likewise.
72924         * modules/strtoull (Makefile.am): Likewise.
72925         * modules/strtoumax (Makefile.am): Likewise.
72926         * modules/strverscmp (Makefile.am): Likewise.
72927         * modules/sys_socket (Makefile.am): Likewise.
72928         * modules/sys_stat (Makefile.am): Likewise.
72929         * modules/sysexits (Makefile.am): Likewise.
72930         * modules/time_r (Makefile.am): Likewise.
72931         * modules/timegm (Makefile.am): Likewise.
72932         * modules/timespec (Makefile.am): Likewise.
72933         * modules/tmpfile-safer (Makefile.am): Likewise.
72934         * modules/trim (Makefile.am): Likewise.
72935         * modules/unistd-safer (Makefile.am): Likewise.
72936         * modules/unlinkdir (Makefile.am): Likewise.
72937         * modules/unlocked-io (Makefile.am): Likewise.
72938         * modules/userspec (Makefile.am): Likewise.
72939         * modules/utime (Makefile.am): Likewise.
72940         * modules/utimecmp (Makefile.am): Likewise.
72941         * modules/utimens (Makefile.am): Likewise.
72942         * modules/vasnprintf (Makefile.am): Likewise.
72943         * modules/vasprintf (Makefile.am): Likewise.
72944         * modules/vsnprintf (Makefile.am): Likewise.
72945         * modules/xalloc (Makefile.am): Likewise.
72946         * modules/xgetcwd (Makefile.am): Likewise.
72947         * modules/xnanosleep (Makefile.am): Likewise.
72948         * modules/xreadlink (Makefile.am): Likewise.
72949         * modules/xstrtod (Makefile.am): Likewise.
72950         * modules/xstrtol (Makefile.am): Likewise.
72951         * modules/xstrtold (Makefile.am): Likewise.
72952         * modules/yesno (Makefile.am): Likewise.
72953         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72954
72955 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * modules/error (Makefile.am): Distribute files through
72958         EXTRA_DIST, not lib_SOURCES.
72959
72960 2006-10-12  Eric Blake  <ebb9@byu.net>
72961
72962         * modules/error (Makefile.am): Distribute files in /lib.
72963         * modules/obstack (Makefile.am): Likewise.
72964
72965 2006-10-12  Bruno Haible  <bruno@clisp.org>
72966
72967         * modules/acl (Makefile.am): Distribute all files in lib/ through
72968         EXTRA_DIST.
72969         * modules/arcfour (Makefile.am): Likewise.
72970         * modules/arctwo (Makefile.am): Likewise.
72971         * modules/argmatch (Makefile.am): Likewise.
72972         * modules/argz (Makefile.am): Likewise.
72973         * modules/atexit (Makefile.am): Likewise.
72974         * modules/backupfile (Makefile.am): Likewise.
72975         * modules/c-strtod (Makefile.am): Likewise.
72976         * modules/c-strtold (Makefile.am): Likewise.
72977         * modules/calloc (Makefile.am): Likewise.
72978         * modules/canon-host (Makefile.am): Likewise.
72979         * modules/canonicalize (Makefile.am): Likewise.
72980         * modules/chdir-long (Makefile.am): Likewise.
72981         * modules/chdir-safer (Makefile.am): Likewise.
72982         * modules/check-version (Makefile.am): Likewise.
72983         * modules/chown (Makefile.am): Likewise.
72984         * modules/cloexec (Makefile.am): Likewise.
72985         * modules/close-stream (Makefile.am): Likewise.
72986         * modules/closeout (Makefile.am): Likewise.
72987         * modules/crc (Makefile.am): Likewise.
72988         * modules/cycle-check (Makefile.am): Likewise.
72989         * modules/des (Makefile.am): Likewise.
72990         * modules/dirfd (Makefile.am): Likewise.
72991         * modules/dirname (Makefile.am): Likewise.
72992         * modules/dup2 (Makefile.am): Likewise.
72993         * modules/euidaccess (Makefile.am): Likewise.
72994         * modules/exclude (Makefile.am): Likewise.
72995         * modules/exitfail (Makefile.am): Likewise.
72996         * modules/fcntl-safer (Makefile.am): Likewise.
72997         * modules/file-type (Makefile.am): Likewise.
72998         * modules/fileblocks (Makefile.am): Likewise.
72999         * modules/filemode (Makefile.am): Likewise.
73000         * modules/filenamecat (Makefile.am): Likewise.
73001         * modules/fnmatch (Makefile.am): Likewise.
73002         * modules/fopen-safer (Makefile.am): Likewise.
73003         * modules/fpending (Makefile.am): Likewise.
73004         * modules/fprintftime (Makefile.am): Likewise.
73005         * modules/free (Makefile.am): Likewise.
73006         * modules/fsusage (Makefile.am): Likewise.
73007         * modules/ftruncate (Makefile.am): Likewise.
73008         * modules/fts (Makefile.am): Likewise.
73009         * modules/gc (Makefile.am): Likewise.
73010         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73011         * modules/getaddrinfo (Makefile.am): Likewise.
73012         * modules/getcwd (Makefile.am): Likewise.
73013         * modules/getdelim (Makefile.am): Likewise.
73014         * modules/getdomainname (Makefile.am): Likewise.
73015         * modules/getgroups (Makefile.am): Likewise.
73016         * modules/gethostname (Makefile.am): Likewise.
73017         * modules/gethrxtime (Makefile.am): Likewise.
73018         * modules/getline (Makefile.am): Likewise.
73019         * modules/getloadavg (Makefile.am): Likewise.
73020         * modules/getlogin_r (Makefile.am): Likewise.
73021         * modules/getopt (Makefile.am): Likewise.
73022         * modules/getpass (Makefile.am): Likewise.
73023         * modules/getpass-gnu (Makefile.am): Likewise.
73024         * modules/getsubopt (Makefile.am): Likewise.
73025         * modules/gettime (Makefile.am): Likewise.
73026         * modules/gettimeofday (Makefile.am): Likewise.
73027         * modules/getugroups (Makefile.am): Likewise.
73028         * modules/getusershell (Makefile.am): Likewise.
73029         * modules/glob (Makefile.am): Likewise.
73030         * modules/group-member (Makefile.am): Likewise.
73031         * modules/hard-locale (Makefile.am): Likewise.
73032         * modules/hash (Makefile.am): Likewise.
73033         * modules/hmac-md5 (Makefile.am): Likewise.
73034         * modules/hmac-sha1 (Makefile.am): Likewise.
73035         * modules/human (Makefile.am): Likewise.
73036         * modules/idcache (Makefile.am): Likewise.
73037         * modules/imaxabs (Makefile.am): Likewise.
73038         * modules/imaxdiv (Makefile.am): Likewise.
73039         * modules/inet_ntop (Makefile.am): Likewise.
73040         * modules/inet_pton (Makefile.am): Likewise.
73041         * modules/inttostr (Makefile.am): Likewise.
73042         * modules/isapipe (Makefile.am): Likewise.
73043         * modules/lchown (Makefile.am): Likewise.
73044         * modules/long-options (Makefile.am): Likewise.
73045         * modules/lstat (Makefile.am): Likewise.
73046         * modules/malloc (Makefile.am): Likewise.
73047         * modules/mathl (Makefile.am): Likewise.
73048         * modules/mbchar (Makefile.am): Likewise.
73049         * modules/md2 (Makefile.am): Likewise.
73050         * modules/md4 (Makefile.am): Likewise.
73051         * modules/md5 (Makefile.am): Likewise.
73052         * modules/memcasecmp (Makefile.am): Likewise.
73053         * modules/memchr (Makefile.am): Likewise.
73054         * modules/memcmp (Makefile.am): Likewise.
73055         * modules/memcoll (Makefile.am): Likewise.
73056         * modules/memcpy (Makefile.am): Likewise.
73057         * modules/memmem (Makefile.am): Likewise.
73058         * modules/memmove (Makefile.am): Likewise.
73059         * modules/mempcpy (Makefile.am): Likewise.
73060         * modules/memrchr (Makefile.am): Likewise.
73061         * modules/memset (Makefile.am): Likewise.
73062         * modules/memxor (Makefile.am): Likewise.
73063         * modules/mkancesdirs (Makefile.am): Likewise.
73064         * modules/mkdir (Makefile.am): Likewise.
73065         * modules/mkdir-p (Makefile.am): Likewise.
73066         * modules/mkdtemp (Makefile.am): Likewise.
73067         * modules/mkstemp (Makefile.am): Likewise.
73068         * modules/mktime (Makefile.am): Likewise.
73069         * modules/modechange (Makefile.am): Likewise.
73070         * modules/mountlist (Makefile.am): Likewise.
73071         * modules/nanosleep (Makefile.am): Likewise.
73072         * modules/openat (Makefile.am): Likewise.
73073         * modules/pagealign_alloc (Makefile.am): Likewise.
73074         * modules/physmem (Makefile.am): Likewise.
73075         * modules/poll (Makefile.am): Likewise.
73076         * modules/posixtm (Makefile.am): Likewise.
73077         * modules/posixver (Makefile.am): Likewise.
73078         * modules/putenv (Makefile.am): Likewise.
73079         * modules/quote (Makefile.am): Likewise.
73080         * modules/quotearg (Makefile.am): Likewise.
73081         * modules/raise (Makefile.am): Likewise.
73082         * modules/read-file (Makefile.am): Likewise.
73083         * modules/readline (Makefile.am): Likewise.
73084         * modules/readlink (Makefile.am): Likewise.
73085         * modules/readtokens (Makefile.am): Likewise.
73086         * modules/readutmp (Makefile.am): Likewise.
73087         * modules/realloc (Makefile.am): Likewise.
73088         * modules/regex (Makefile.am): Likewise.
73089         * modules/rename (Makefile.am): Likewise.
73090         * modules/rename-dest-slash (Makefile.am): Likewise.
73091         * modules/rijndael (Makefile.am): Likewise.
73092         * modules/rmdir (Makefile.am): Likewise.
73093         * modules/rpmatch (Makefile.am): Likewise.
73094         * modules/safe-read (Makefile.am): Likewise.
73095         * modules/safe-write (Makefile.am): Likewise.
73096         * modules/same (Makefile.am): Likewise.
73097         * modules/save-cwd (Makefile.am): Likewise.
73098         * modules/savedir (Makefile.am): Likewise.
73099         * modules/setenv (Makefile.am): Likewise.
73100         * modules/settime (Makefile.am): Likewise.
73101         * modules/sha1 (Makefile.am): Likewise.
73102         * modules/sig2str (Makefile.am): Likewise.
73103         * modules/snprintf (Makefile.am): Likewise.
73104         * modules/stdlib-safer (Makefile.am): Likewise.
73105         * modules/stpcpy (Makefile.am): Likewise.
73106         * modules/stpncpy (Makefile.am): Likewise.
73107         * modules/strcase (Makefile.am): Likewise.
73108         * modules/strcasestr (Makefile.am): Likewise.
73109         * modules/strchrnul (Makefile.am): Likewise.
73110         * modules/strcspn (Makefile.am): Likewise.
73111         * modules/strdup (Makefile.am): Likewise.
73112         * modules/strerror (Makefile.am): Likewise.
73113         * modules/strftime (Makefile.am): Likewise.
73114         * modules/strndup (Makefile.am): Likewise.
73115         * modules/strnlen (Makefile.am): Likewise.
73116         * modules/strpbrk (Makefile.am): Likewise.
73117         * modules/strsep (Makefile.am): Likewise.
73118         * modules/strstr (Makefile.am): Likewise.
73119         * modules/strtod (Makefile.am): Likewise.
73120         * modules/strtoimax (Makefile.am): Likewise.
73121         * modules/strtok_r (Makefile.am): Likewise.
73122         * modules/strtol (Makefile.am): Likewise.
73123         * modules/strtoll (Makefile.am): Likewise.
73124         * modules/strtoul (Makefile.am): Likewise.
73125         * modules/strtoull (Makefile.am): Likewise.
73126         * modules/strtoumax (Makefile.am): Likewise.
73127         * modules/strverscmp (Makefile.am): Likewise.
73128         * modules/time_r (Makefile.am): Likewise.
73129         * modules/timegm (Makefile.am): Likewise.
73130         * modules/tmpfile-safer (Makefile.am): Likewise.
73131         * modules/unistd-safer (Makefile.am): Likewise.
73132         * modules/unlinkdir (Makefile.am): Likewise.
73133         * modules/userspec (Makefile.am): Likewise.
73134         * modules/utime (Makefile.am): Likewise.
73135         * modules/utimecmp (Makefile.am): Likewise.
73136         * modules/utimens (Makefile.am): Likewise.
73137         * modules/vasnprintf (Makefile.am): Likewise.
73138         * modules/vasprintf (Makefile.am): Likewise.
73139         * modules/vsnprintf (Makefile.am): Likewise.
73140         * modules/xalloc (Makefile.am): Likewise.
73141         * modules/xgetcwd (Makefile.am): Likewise.
73142         * modules/xnanosleep (Makefile.am): Likewise.
73143         * modules/xreadlink (Makefile.am): Likewise.
73144         * modules/xstrtod (Makefile.am): Likewise.
73145         * modules/xstrtol (Makefile.am): Likewise.
73146         * modules/xstrtold (Makefile.am): Likewise.
73147         * modules/yesno (Makefile.am): Likewise.
73148
73149 2006-10-12  Jim Meyering  <jim@meyering.net>
73150
73151         * m4/getloadavg.m4: Revert the change below.
73152
73153         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73154         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73155         fail with a symlink, which is what coreutils' ./bootstrap now
73156         creates by default.
73157
73158 2006-10-12  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73161         mingw.
73162         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73163         MSVC and mingw explicitly.
73164
73165 2006-10-11  Simon Josefsson  <jas@extundo.com>
73166             Bruno Haible  <bruno@clisp.org>
73167
73168         Add support for multiple gnulib-tool invocations in the scope of a
73169         single configure.ac file.
73170         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73171         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73172         with the same contents as the _LIBADD variable.
73173         (func_emit_initmacro_start, func_emit_initmacro_end,
73174         func_emit_initmacro_done): New functions.
73175         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73176         gl_LIBOBJS and gl_LTLIBOBJS.
73177
73178 2006-10-11  Bruno Haible  <bruno@clisp.org>
73179
73180         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73181         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73182         autoreconf. Instead, invoke autopoint explicitly but move back the
73183         *.m4 files from gnulib.
73184
73185 2006-10-11  Bruno Haible  <bruno@clisp.org>
73186
73187         * gnulib-tool (func_usage): Make module names after --create-testdir
73188         optional.
73189         (func_create_testdir): If no module was specified, use nearly all
73190         modules.
73191
73192 2006-10-12  Jim Meyering  <jim@meyering.net>
73193
73194         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73195         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73196         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73197         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73198         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73199         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73200         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73201         (fts_set_stat_required): New function.
73202         (fts_open): Defer the calls to fts_stat, if possible or requested.
73203         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73204         into fts_stat itself.
73205         (fts_read): Perform any required (deferred) fts_stat call.
73206         (fts_build): Likewise, for the directory we're about to open and read.
73207         In the readdir loop, carefully decide whether each entry will require
73208         an eventual call to fts_stat, using dirent.d_type info if available.
73209         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73210         a command line argument into this function.  Update all callers.
73211         Map a return value of FTS_DOT to FTS_D for a command line argument.
73212         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73213         Thanks to Miklos Szeredi for his tenacity and for the initial
73214         bug report about "find" failing on a FUSE-based file system.
73215
73216         * lib/fts.c (fts_open): Use consistent indentation.
73217
73218 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73221         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73222         reported by Jim Meyering.  All uses of cache variables renamed
73223         to match Autoconf's.
73224         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73225         the other one.
73226
73227         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73228         Fix misspelling in diagnostic.
73229
73230 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73231
73232         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73233         defined.  Problem reported by Matthew Woehlke.
73234
73235         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73236         Add support for Tandem NonStop R series.
73237         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73238         Use new macro.
73239
73240         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73241         (has_trailing_slash): Omit size arg; all callers changed.
73242         Omit 'inline', since it doesn't help performance and we'd
73243         need to configure it.
73244         Don't count //, ///, etc. as having a trailing slash.
73245         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73246         (rpl_rename_dest_slash): On failure, use rename's errno rather
73247         than (in some cases) an incorrect or junk errno.
73248         Simplify code by removing need to compute length; this does
73249         cause it to make two passes instead of one over the file name,
73250         but it's worth it.
73251
73252         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73253         change, since Autoconf's version may no longer be appropriate now
73254         that we are using CVS Autoconf's version.  Add support for Tandem.
73255
73256 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73257             Bruno Haible  <bruno@clisp.org>
73258
73259         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73260         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73261         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73262         gl_AC_TYPE_LONG_LONG.
73263
73264         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73265         instead of HAVE_LONG_LONG.
73266         * lib/printf-args.c (printf_fetchargs): Likewise.
73267         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73268         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73269         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73270         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73271         gl_AC_TYPE_LONG_LONG.
73272
73273 2006-10-11  Bruno Haible  <bruno@clisp.org>
73274
73275         * m4/longlong.m4: Add comments.
73276         * m4/ulonglong.m4: Likewise.
73277
73278 2006-10-10  Bruno Haible  <bruno@clisp.org>
73279
73280         Make it possible to #define stpcpy, strdup to aliases.
73281         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73282         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73283
73284 2006-10-10  Bruno Haible  <bruno@clisp.org>
73285
73286         Make it possible to #define gcd to an alias.
73287         * lib/gcd.c: Include config.h.
73288
73289 2006-10-10  Bruno Haible  <bruno@clisp.org>
73290
73291         Make it possible to #define c_isascii to an alias.
73292         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73293         defined. Undefine the macros before defining them, to avoid gcc
73294         warnings.
73295         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73296         define NO_C_CTYPE_MACROS early.
73297
73298 2006-10-10  Bruno Haible  <bruno@clisp.org>
73299
73300         Make it possible to #define set_program_name to an alias.
73301         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73302         ENABLE_RELOCATABLE early.
73303
73304 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73305
73306         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73307         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73308         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73309         More generally, don't assume that 64-bit signed int is available
73310         if unsigned int is, and vice versa.
73311         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73312         unsigned symbols, not on their signed counterparts.
73313         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73314         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73315         (UINT64_C, UINTMAX_C):
73316         Likewise.
73317         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73318         unsigned counterparts.
73319         (Have_long_long, Unsigned): New macros.
73320         (Int): Renamed from INT.
73321         (strtoimax): Use the new macros.
73322         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73323         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73324         * modules/inttypes (inttypes.h): Substitute
73325         HAVE_UNSIGNED_LONG_LONG_INT.
73326         * modules/stdint (stdint.h): Likewise.
73327         (Files): Add m4/ulonglong.m4.
73328
73329 2006-10-10  Bruno Haible  <bruno@clisp.org>
73330
73331         Fix a gcc -Wshadow warning.
73332         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73333         to 'bucket'.
73334         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73335         gl_linked_indexof_from_to): Likewise.
73336         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73337         Likewise.
73338         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73339         Likewise.
73340         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73341         Reported by Eric Blake.
73342
73343 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73346         for NetBSD.  Problem reported by Bruno Haible.
73347
73348 2006-10-09  Jim Meyering  <jim@meyering.net>
73349
73350         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73351         Patch from Bruno Haible.
73352
73353 2006-10-09  Jim Meyering  <jim@meyering.net>
73354
73355         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73356         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73357         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73358
73359 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         Don't include <config.h> twice; this doesn't work in some cases,
73362         e.g., when config.h has "#define intmax_t long long int" and
73363         we include <config.h>, <inttypes.h>, <config.h> in that order.
73364         Problem reported by Matthew Woehlke in:
73365         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73366         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73367         * lib/fts-cycle.c: Don't include config.h.
73368         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73369         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73370         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73371         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73372         inttypes.h.
73373         * lib/xstrtoumax.c: Likewise.
73374         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73375         __strtol and the like, so that this module is more like its siblings.
73376         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73377         Remove; no longer needed now that we assume gnulib inttypes.h.
73378
73379 2006-10-08  Bruno Haible  <bruno@clisp.org>
73380
73381         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73382         option.
73383
73384 2006-10-07  Jim Meyering  <jim@meyering.net>
73385
73386         * modules/inttypes (inttypes.h): Revert what seems to have been
73387         an inadvertent part of today's change: use "|", not "/" in the
73388         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73389
73390 2006-10-07  Bruno Haible  <bruno@clisp.org>
73391
73392         * modules/sublist: New file.
73393
73394 2006-10-07  Bruno Haible  <bruno@clisp.org>
73395
73396         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73397         * modules/argz (argz.h): Likewise.
73398         * modules/arpa_inet (arpa/inet.h): Likewise.
73399         * modules/byteswap (byteswap.h): Likewise.
73400         * modules/configmake (configmake.h): Likewise.
73401         * modules/fcntl (fcntl.h): Likewise.
73402         * modules/fnmatch (fnmatch.h): Likewise.
73403         * modules/getopt (getopt.h): Likewise.
73404         * modules/glob (glob.h): Likewise.
73405         * modules/inttypes (inttypes.h): Likewise.
73406         * modules/netinet_in (netinet/in.h): Likewise.
73407         * modules/poll (poll.h): Likewise.
73408         * modules/stdbool (stdbool.h): Likewise.
73409         * modules/stdint (stdint.h): Likewise.
73410         * modules/sys_select (sys/select.h): Likewise.
73411         * modules/sys_socket (sys/socket.h): Likewise.
73412         * modules/sys_stat (sys/stat.h): Likewise.
73413         * modules/sysexits (sysexits.h): Likewise.
73414         * modules/unistd (unistd.h): Likewise.
73415         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73416         Add a "DO NOT EDIT" comment to the generated file.
73417         (func_import): Likewise for gnulib-comp.m4.
73418
73419 2006-10-07  Bruno Haible  <bruno@clisp.org>
73420
73421         * lib/gl_sublist.h: New file.
73422         * lib/gl_sublist.c: New file.
73423
73424 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73427         name (relative to the original working directory) and the file
73428         name component (relative to the temporary working directory).  All
73429         callers changed.
73430         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73431         * lib/mkdir-p.c (make_dir_parents): Likewise.
73432         * lib/mkdir-p.h (make_dir_parents): Likewise.
73433
73434 2006-10-06  Eric Blake  <ebb9@byu.net>
73435
73436         Define several macros for use by the clean-temp module.
73437         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73438         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73439         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73440
73441         * lib/clean-temp.h (close_stream_temp): New declaration.
73442         * lib/clean-temp.c (includes): Pull in headers according to what
73443         other modules are in use.
73444         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73445
73446 2006-10-06  Bruno Haible  <bruno@clisp.org>
73447
73448         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73449         instead of fopen, fwriteerror.
73450
73451 2006-10-06  Bruno Haible  <bruno@clisp.org>
73452
73453         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73454         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73455         int.
73456         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73457         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73458         Return an error indicator.
73459         Suggested by Eric Blake.
73460
73461 2006-10-06  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73464         Reported by Eric Blake.
73465
73466 2006-10-06  Bruno Haible  <bruno@clisp.org>
73467
73468         * modules/closeout (Description): Mention stderr too.
73469
73470 2006-10-06  Bruno Haible  <bruno@clisp.org>
73471         and Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * lib/closeout.c (close_stdout): Also close stderr.
73474         * lib/closeout.h: Update comment.
73475
73476 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73479         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73480         * lib/dirchownmod.c: Include lchown.h.
73481         * lib/lchown.c: Don't include files that lchown.h now includes.
73482         Don't declare chown, since lchown.h now does that.
73483         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73484         (lchown): Define to rpl_chown if lchown is declared but
73485         does not exist.  Declare using a prototype if lchown is not
73486         declared.  Add a copyright notice.
73487         * lib/mkstemp.h: Include <unistd.h>.
73488         * lib/openat.c: Include lchown.h.
73489
73490         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73491         we now test for that separately.
73492         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73493         rather than O_NOFOLLOW, when testing whether it's possible to
73494         avoid a race condition reliably.
73495         * lib/savewd.c (savewd_chdir): Likewise.
73496
73497         Remove macros that are no longer needed now that stdint.h is
73498         reliable.
73499         * lib/fsusage.c (UINTMAX_MAX): Remove.
73500         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73501         * lib/utimecmp.c (SIZE_MAX): Remove.
73502
73503         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73504
73505         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73506         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73507         O_NOATIME works.
73508
73509 2006-10-05  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/gl_list.h (gl_sortedlist_search_from_to,
73512         gl_sortedlist_indexof_from_to): New declarations.
73513         (gl_list_implementation): New fields sortedlist_search_from_to,
73514         sortedlist_indexof_from_to.
73515         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73516         inline functions.
73517         * lib/gl_list.c (gl_sortedlist_search_from_to,
73518         gl_sortedlist_indexof_from_to): New functions.
73519         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73520         function.
73521         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73522         (gl_array_sortedlist_search_from_to): New function.
73523         (gl_array_list_implementation): Update.
73524         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73525         function.
73526         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73527         (gl_carray_sortedlist_search_from_to): New function.
73528         (gl_carray_list_implementation): Update.
73529         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73530         gl_linked_sortedlist_indexof_from_to): New functions.
73531         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73532         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73533         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73534         gl_tree_sortedlist_indexof_from_to): New functions.
73535         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73536         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73537         Update.
73538         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73539         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73540         Update.
73541
73542 2006-10-05  Bruno Haible  <bruno@clisp.org>
73543
73544         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73545         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73546         (struct gl_list_implementation): Add fields search_from_to,
73547         indexof_from_to. Remove fields search, indexof.
73548         (gl_list_search): Use the search_from_to method.
73549         (gl_list_search_from, gl_list_search_from_to): New functions.
73550         (gl_list_indexof): Use the indexof_from_to method.
73551         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73552         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73553         (gl_list_search_from, gl_list_search_from_to): New functions.
73554         (gl_list_indexof): Use the indexof_from_to method.
73555         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73556         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73557         gl_array_indexof. Add start_index, end_index arguments.
73558         (gl_array_search_from_to): Renamed from gl_array_search. Add
73559         start_index, end_index arguments.
73560         (gl_array_remove, gl_array_list_implementation): Update.
73561         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73562         gl_carray_indexof. Add start_index, end_index arguments.
73563         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73564         start_index, end_index arguments.
73565         (gl_carray_remove, gl_carray_list_implementation): Update.
73566         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73567         gl_linked_search. Add start_index, end_index arguments.
73568         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73569         start_index, end_index arguments.
73570         (gl_linked_remove): Update.
73571         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73572         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73573         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73574         field to 'size_t'.
73575         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73576         gl_tree_search. Add start_index, end_index arguments.
73577         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73578         start_index, end_index arguments.
73579         (gl_tree_remove): Update.
73580         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73581         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73582         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73583         function.
73584         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73585         gl_tree_search. Add start_index, end_index arguments.
73586         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73587         start_index, end_index arguments.
73588         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73589         Update.
73590         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73591
73592 2006-10-05  Bruno Haible  <bruno@clisp.org>
73593
73594         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73595
73596         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73597         fwriteerror_temp): New declarations.
73598         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73599         (descriptors): New variable.
73600         (cleanup): First, close the descriptors.
73601         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73602         fclose_temp, fwriteerror_temp): New functions.
73603
73604 2006-10-04  Jim Meyering  <jim@meyering.net>
73605
73606         * lib/fts.c (fts_open): Tiny comment change.
73607
73608 2006-10-04  Bruno Haible  <bruno@clisp.org>
73609
73610         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73611         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73612         gl_LOCK_BODY.
73613         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73614         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73615         gl_LOCK_EARLY_BODY.
73616         (gl_LOCK): Require gl_LOCK_BODY.
73617
73618 2006-10-04  Bruno Haible  <bruno@clisp.org>
73619
73620         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73621         (gl_oset_search_atleast): New declaration.
73622         (struct gl_oset_implementation): Add field 'search_atleast'.
73623         (gl_oset_search_atleast): New inline function.
73624         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73625         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73626         (gl_array_oset_implementation): Update.
73627         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73628         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73629         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73630
73631 2006-10-04  Bruno Haible  <bruno@clisp.org>
73632
73633         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73634
73635 2006-10-03  Bruno Haible  <bruno@clisp.org>
73636
73637         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73638         from gl_avltreehash_list_implementation.
73639
73640 2006-10-03  Bruno Haible  <bruno@clisp.org>
73641
73642         * lib/gl_oset.c (gl_oset_add): Fix return type.
73643
73644 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73645
73646         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73647
73648 2006-10-02  Eric Blake  <ebb9@byu.net>
73649
73650         * modules/strnlen (Depends-on): Add extensions.
73651
73652 2006-10-02  Eric Blake  <ebb9@byu.net>
73653
73654         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73655         definition in 2.60+.
73656
73657 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73658
73659         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73660         checks.
73661
73662 2006-10-02  Bruno Haible  <bruno@clisp.org>
73663
73664         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73665         to the AUTOMAKE_OPTIONS.
73666         Reported by Jim Meyering.
73667
73668 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         Work around bug in Solaris 10 /proc file system:
73671         /proc/self/fd/NNN/.. isn't the parent directory of
73672         the directory whose file descriptor is NNN.  This needs to
73673         be worked around at run time, not compile time, since a
73674         program might be built on Solaris 8, where things work, and
73675         run on Solaris 10.
73676         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73677         to use the following interface instead:
73678         (OPENAT_BUFFER_SIZE): New macro.
73679         (openat_proc_name): New function.
73680         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73681         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73682         Likewise.
73683         * lib/openat-proc.c: New file.
73684         * modules/openat (Files): Add lib/openat-proc.c.
73685         (Depends-on): Add same-inode, stdbool.
73686         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73687
73688 2006-09-29  Bruno Haible  <bruno@clisp.org>
73689
73690         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73691         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73692         argument. Set stdout_closed before testing for ferror, not after.
73693         (fwriteerror, fwriteerror_no_ebadf): New functions.
73694
73695 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73696
73697         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73698
73699 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73700
73701         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73702         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73703
73704 2006-09-28  Jim Meyering  <jim@meyering.net>
73705
73706         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73707         Include <unistd.h>.
73708
73709 2006-09-28  Bruno Haible  <bruno@clisp.org>
73710
73711         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73712         * modules/linkedhash-list (Depends-on): Likewise.
73713         * modules/rbtreehash-list (Depends-on): Likewise.
73714
73715 2006-09-28  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/strndup.h: Simplify the redefinition of strndup.
73718         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73719         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73720
73721 2006-09-28  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73724         * lib/gl_linkedhash_list.c: Likewise.
73725         * lib/gl_rbtreehash_list.c: Likewise.
73726
73727 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73728
73729         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73730         getaddrinfo.
73731
73732         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73733         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73734         it causes <stdio_ext.h> to cause a compile-time error.
73735         Problem reported by Nelson H. F. Beebe.
73736         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73737         of HAVE_DECL___PENDING.
73738
73739         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73740         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73741         declaration.
73742
73743 2006-09-27  Jim Meyering  <jim@meyering.net>
73744
73745         This file could end up with a definition for a function
73746         named __strndup, rather than rpl_strndup on a system with
73747         incomplete weak_alias support.
73748         * lib/strndup.c (strndup): Rename from __strndup.
73749         Remove #defines that used to map __strndup to strndup.
73750         Don't use K&R prototypes.
73751         Remove LIBC-related code, since this file is not sync'd with glibc.
73752         * lib/strndup.h: Revamp, accordingly.
73753         * m4/strndup.m4: Modernize.
73754
73755 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * modules/savewd (Depends-on): Add 'raise'.
73758         * lib/savewd.c: Include <signal.h>, for 'raise'.
73759
73760 2006-09-26  Jim Meyering  <jim@meyering.net>
73761
73762         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73763         when we detect Darwin 8.7.0's acl_get_file bug.
73764         Rearrange to perform the new (below) run-test while $LIBS
73765         contains any acl-related library.  Set USE_ACL at the end.
73766         (gl_ACL_GET_FILE): New function.
73767
73768 2006-09-26  Eric Blake  <ebb9@byu.net>
73769
73770         * lib/verror.c: Include <config.h> unconditionally.
73771
73772 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * modules/clock-time (Maintainer): Add self.
73775         * modules/getlogin_r (Depends-on): Add extensions.
73776
73777 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73778
73779         * modules/clock-time: New module.
73780         * modules/nanosleep (Depends-on): Add clock-time.
73781         * modules/gethrxtime (Depends-on): Likewise.
73782         * modules/gettime (Depends-on): Likewise.
73783         * modules/settime (Depends-on): Likewise.
73784
73785         * modules/fts-lgpl: Depend on openat.
73786         * modules/mkancesdirs: Depend on savewd.
73787         * modules/mkdir-p: Likewise.
73788
73789 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73790
73791         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73792
73793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73794         `gl_have_arbitrary_file_name_length_limit' to
73795         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73796         actually works between configure runs.
73797
73798 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73799             Bruno Haible  <bruno@clisp.org>
73800
73801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73802
73803 2006-09-25  Jim Meyering  <jim@meyering.net>
73804
73805         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73806         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73807
73808 2006-09-25  Eric Blake  <ebb9@byu.net>
73809
73810         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73811         exec's in 2006-09-18 patch when shuffling fds.
73812
73813 2006-09-25  Bruno Haible  <bruno@clisp.org>
73814
73815         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73816         Reported by Jim Meyering.
73817
73818 2006-09-24  Jim Meyering  <jim@meyering.net>
73819
73820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73821         compare a pointer against a literal "0".  That caused failures with
73822         at least HP-UX's hpcc.
73823
73824 2006-09-22  Simon Josefsson  <jas@extundo.com>
73825
73826         * modules/gc-sha1:
73827         * modules/gc-md4:
73828         * modules/gc-hmac-sha1:
73829         * modules/gc-hmac-md5:
73830         * modules/gc-des:
73831         * modules/gc-arcfour: Distribute more files.
73832
73833 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73834
73835         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73836         (gl_linked_iterator_from_to): Initialize struct completely.
73837         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73838         (gl_tree_iterator_from_to): Likewise
73839         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73840         * lib/gl_array_list.c [lint] (gl_array_iterator)
73841         (gl_array_iterator_from_to): Likewise.
73842         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73843         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73844         (gl_carray_iterator_from_to): Likewise.
73845
73846         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73847         * lib/md4.c (md4_process_block): Remove unused variable.
73848         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73849         parentheses for clarity.
73850
73851 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73852
73853         * modules/bison-i18n (Depends-on): Add gettext.
73854
73855 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73856
73857         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73858         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73859         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73860         also add missing comma that caused broken test.
73861         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73862         stdlib.h, for `abort'.
73863         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73864         variables.
73865         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73866         include unistd.h if present, for `rmdir'.
73867         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73868         variables.
73869         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73870         in the process include standard headers for prototypes.
73871         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73872         gets declared on GNU/Linux.
73873         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73874         unistd.h, for `rmdir'.
73875         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73876
73877         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73878         always true.
73879         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73880
73881         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73882
73883 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73884
73885         * gnulib-tool (func_version): Create output all at once.  This
73886         may help avoid triggering unnecessary SIGPIPEs, and at any
73887         rate it doesn't hurt.
73888
73889 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73890             Bruno Haible  <bruno@clisp.org>
73891
73892         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73893         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73894         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73895
73896         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73897         (gl_FUNC_VASPRINTF): Invoke it.
73898
73899 2006-09-22  Bruno Haible  <bruno@clisp.org>
73900
73901         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73902         getloadavg.c as first argument.
73903
73904 2006-09-22  Bruno Haible  <bruno@clisp.org>
73905
73906         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73907         at the beginning of the gl_INIT macro.
73908         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73909         gl_GETLOADAVG.
73910
73911 2006-09-22  Bruno Haible  <bruno@clisp.org>
73912
73913         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73914         module.
73915         Suggested by Ralf Wildenhues.
73916
73917 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         Import this patch from libc:
73920
73921         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73922
73923         * lib/regex_internal.c (re_string_reconstruct): Handle
73924         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73925         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73926         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73927         re_string_context_at.
73928
73929         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73930         now requires it.
73931         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73932         gl_REGEX now does it for us.
73933         (gl_REGEX): Add test taken from
73934         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73935
73936         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73937         Check that large offsets work.  Modernize Autoconf usages.
73938         Prefer "yes" to mean a good thing rather than a bad.
73939         Don't put "#define mkstemp" in config.h, as this might interfere
73940         with standard system headers that "#define mkstemp mkstemp64".
73941
73942         * modules/mkstemp (Depends-on): Add extensions, so that
73943         mkstemp is visible on some platforms.
73944         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73945         (Include): Change to "mkstemp.h" from <stdlib.h>.
73946         (Files): Add mkstemp.h.
73947
73948         * lib/mkstemp.h: New file, since some standard headers
73949         #define mkstemp.
73950         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73951         Include "mkstemp.h".
73952         Make the _LIBC code resemble glibc original more,
73953         e.g., use K&R style.
73954         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73955         (mkstemp): Remove, since mkstemp.h does this for us.
73956         * lib/stdlib--.h: Include mkstemp.h.
73957
73958         Import this patch from libc:
73959
73960         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73961
73962         * lib/tempname.c (__gen_tempname): Change attempts_min
73963         into a macro.  Use preprocessor to decide how to initialize
73964         attempts [Coverity CID 67].
73965
73966 2006-09-20  Bruno Haible  <bruno@clisp.org>
73967
73968         * lib/mkdtemp.c: Import from libc.
73969         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73970                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73971                 attempts_min into a macro.  Use preprocessor to decide how to
73972                 initialize attempts [Coverity CID 67].
73973         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73974                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73975                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73976
73977 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73978
73979         * gnulib-tool (func_exit): New function, to allow to pass the
73980         exit status portably through the trap.  Use everywhere.
73981         (--help, --version): Signal a write error.
73982         (trap): catch SIGPIPE, for write errors.
73983         Exit at the end of the trap, with the correct exit status.
73984
73985 2006-09-19  Karl Berry  <karl@gnu.org>
73986
73987         * doc/gnulib.texi: note about the license texinfo files.
73988
73989 2006-09-19  Eric Blake  <ebb9@byu.net>
73990
73991         * gnulib-tool: Avoid space-tab.
73992
73993 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73996         that prevented coreutils 6.1 from building.  Problem reported
73997         by Petter Reinholdtsen.
73998
73999 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74000
74001         * gnulib-tool (avoidlist): Fix typo that broke options like
74002         --avoid=lock that are used by coreutils bootstrap.
74003
74004 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74005
74006         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74007         more systematically.
74008
74009 2006-09-18  Jim Meyering  <jim@meyering.net>
74010
74011         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74012
74013 2006-09-18  Bruno Haible  <bruno@clisp.org>
74014
74015         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74016
74017 2006-09-18  Bruno Haible  <bruno@clisp.org>
74018
74019         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74020         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74021         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74022         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74023         * m4/gettext.m4: Require autoconf >= 2.52.
74024         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74025         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74026         of gl_cv_header_inttypes_h.
74027
74028 2006-09-18  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/javaversion.c: Include configmake.h.
74031
74032 2006-09-18  Bruno Haible  <bruno@clisp.org>
74033
74034         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74035         avoid that the while loops be executed in a subshell.
74036
74037 2006-09-18  Bruno Haible  <bruno@clisp.org>
74038
74039         * MODULES.html.sh (func_module): Break long lines.
74040         Suggested by Bruce Korb <bkorb@gnu.org>.
74041
74042 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74043
74044         Speed up by a factor of 1.12.
74045         * gnulib-tool (nl): New variable.
74046         (func_import): Rewrite include directive extraction to only read each
74047         directive once.
74048
74049 2006-09-17  Bruno Haible  <bruno@clisp.org>
74050
74051         * modules/javaversion (Makefile.am): Remove DEFS setting.
74052         (Depends-on): Add configmake, for PKGDATADIR definition.
74053
74054 2006-09-17  Bruno Haible  <bruno@clisp.org>
74055
74056         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74057
74058 2006-09-17  Bruno Haible  <bruno@clisp.org>
74059
74060         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74061         (func_modules_transitive_closure, func_modules_add_dummy,
74062         func_modules_to_filelist, func_import, func_create_testdir,
74063         func_create_megatestdir, ...): Use it wherever possible.
74064         Suggested by Ralf Wildenhues.
74065
74066 2006-09-16  Karl Berry  <karl@gnu.org>
74067
74068         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74069         to avoid sectioning errors.
74070         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74071         [ifinfo]: blank line after @center-ed titles.
74072         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74073         Spell FSF address consistently with others.
74074         (These changes approved by rms.)
74075
74076 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74077
74078         Speed up by a factor of 1.61.
74079         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74080         already checked module names again.
74081
74082 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74083
74084         Speed up by a factor of 1.13.
74085         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74086         for new_files, and the input to func_add_or_update.
74087
74088 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74089
74090         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74091         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74092
74093 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * modules/mkancesdirs (Depends-on): Add fcntl.
74096         * modules/savewd: New file.
74097         * MODULES.html.sh (File system functions): Add savewd.
74098
74099         * modules/configmake (Makefile.am): Add support for the
74100         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74101
74102 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * m4/savewd.m4: New file.
74105
74106 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74109         (dirchownmod): New arg FD.  All callers changed.
74110         Use FD rather than opening the directory ourself, as opening is
74111         now the caller's responsibility.
74112         * lib/dirchownmod.h: Likewise.
74113         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74114         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74115         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74116         (test_dir): Remove.
74117         (mkancesdirs): Return length of prefix of FILE that has already
74118         been made, or -2 if there is a child doing the work.  Redo
74119         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74120         ".", and treat ".." specially since it might stray back into
74121         already-created areas.  Use a subprocess if necessary.  New arg
74122         WD; all users changed.  MAKE_DIR function should now return 1
74123         if it creates a directory that is not readable.  Return -2 if
74124         a child process is spun off.
74125         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74126         Adjust signature to match code.
74127         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74128         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74129         all users changed.
74130         * lib/savewd.c, lib/savewd.h: New files.
74131
74132 2006-09-15  Jim Meyering  <jim@meyering.net>
74133
74134         * modules/rename-dest-slash: New module.
74135         * MODULES.html.sh (posix_compat): Add it here.
74136
74137         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74138
74139 2006-09-15  Jim Meyering  <jim@meyering.net>
74140
74141         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74142         file.
74143
74144         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74145
74146 2006-09-15  Jim Meyering  <jim@meyering.net>
74147
74148         * lib/rename-dest-slash.c (has_trailing_slash): Use
74149         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74150         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74151         test before testing whether SRC is a directory.
74152         Suggestions from Bruno Haible.
74153
74154         Avoid a warning about an unused variable.
74155         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74156         into the #ifdef block where it's used.
74157
74158         * lib/rename-dest-slash.c: New file.
74159
74160 2006-09-14  Bruno Haible  <bruno@clisp.org>
74161
74162         * lib/allocsa.c: Include <config.h> unconditionally.
74163         * lib/asnprintf.c: Likewise.
74164         * lib/asprintf.c: Likewise.
74165         * lib/c-strcasecmp.c: Likewise.
74166         * lib/c-strcasestr.c: Likewise.
74167         * lib/c-strncasecmp.c: Likewise.
74168         * lib/c-strstr.c: Likewise.
74169         * lib/classpath.c: Likewise.
74170         * lib/clean-temp.c: Likewise.
74171         * lib/concatpath.c: Likewise.
74172         * lib/copy-file.c: Likewise.
74173         * lib/csharpcomp.c: Likewise.
74174         * lib/csharpexec.c: Likewise.
74175         * lib/execute.c: Likewise.
74176         * lib/fatal-signal.c: Likewise.
74177         * lib/findprog.c: Likewise.
74178         * lib/fwriteerror.c: Likewise.
74179         * lib/gl_array_list.c: Likewise.
74180         * lib/gl_array_oset.c: Likewise.
74181         * lib/gl_avltree_list.c: Likewise.
74182         * lib/gl_avltree_oset.c: Likewise.
74183         * lib/gl_avltreehash_list.c: Likewise.
74184         * lib/gl_carray_list.c: Likewise.
74185         * lib/gl_linked_list.c: Likewise.
74186         * lib/gl_linkedhash_list.c: Likewise.
74187         * lib/gl_list.c: Likewise.
74188         * lib/gl_oset.c: Likewise.
74189         * lib/gl_rbtree_list.c: Likewise.
74190         * lib/gl_rbtree_oset.c: Likewise.
74191         * lib/gl_rbtreehash_list.c: Likewise.
74192         * lib/imaxabs.c: Likewise.
74193         * lib/imaxdiv.c: Likewise.
74194         * lib/javacomp.c: Likewise.
74195         * lib/javaexec.c: Likewise.
74196         * lib/javaversion.c: Likewise.
74197         * lib/linebreak.c: Likewise.
74198         * lib/localcharset.c: Likewise.
74199         * lib/lock.c: Likewise.
74200         * lib/mbchar.c: Likewise.
74201         * lib/mbswidth.c: Likewise.
74202         * lib/mkdtemp.c: Likewise.
74203         * lib/pipe.c: Likewise.
74204         * lib/printf-args.c: Likewise.
74205         * lib/printf-parse.c: Likewise.
74206         * lib/progname.c: Likewise.
74207         * lib/progreloc.c: Likewise.
74208         * lib/readlink.c: Likewise.
74209         * lib/sh-quote.c: Likewise.
74210         * lib/stpcpy.c: Likewise.
74211         * lib/stpncpy.c: Likewise.
74212         * lib/strcasecmp.c: Likewise.
74213         * lib/strcasestr.c: Likewise.
74214         * lib/strcspn.c: Likewise.
74215         * lib/striconv.c: Likewise.
74216         * lib/strncasecmp.c: Likewise.
74217         * lib/strnlen1.c: Likewise.
74218         * lib/strstr.c: Likewise.
74219         * lib/strtok_r.c: Likewise.
74220         * lib/tls.c: Likewise.
74221         * lib/tmpdir.c: Likewise.
74222         * lib/unicodeio.c: Likewise.
74223         * lib/unsetenv.c: Likewise.
74224         * lib/vasnprintf.c: Likewise.
74225         * lib/vasprintf.c: Likewise.
74226         * lib/wait-process.c: Likewise.
74227         * lib/xallocsa.c: Likewise.
74228         * lib/xsetenv.c: Likewise.
74229         * lib/xstriconv.c: Likewise.
74230
74231 2006-09-13  Simon Josefsson  <jas@extundo.com>
74232
74233         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74234         that internally, suggested by Ralf Wildenhues
74235         <Ralf.Wildenhues@gmx.de>.
74236
74237 2006-09-13  Simon Josefsson  <jas@extundo.com>
74238
74239         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74240         @LIBOBJS@.
74241         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74242
74243 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74244
74245         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74246         longer worry about uses that don't define HAVE_CONFIG_H.
74247         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74248         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74249         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74250         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74251         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74252         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74253         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74254         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74255         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74256         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74257         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74258         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74259         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74260         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74261         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74262         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74263         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74264         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74265         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74266         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74267         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74268         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74269         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74270         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74271         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74272         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74273         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74274         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74275         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74276         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74277         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74278         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74279         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74280         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74281         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74282         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74283         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74284         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74285         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74286         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74287         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74288         Likewise.
74289
74290 2006-09-13  Eric Blake  <ebb9@byu.net>
74291
74292         * lib/getopt.c: Fix typo in last commit.
74293
74294 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74295
74296         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74297         dgettext.
74298
74299 2006-09-12  Jim Meyering  <jim@meyering.net>
74300
74301         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74302         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74303         Reported by Nelson H. F. Beebe.
74304
74305 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74306
74307         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74308         program_invocation_name and program_invocation_short_name are
74309         initialized.
74310         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74311         and program_invocation_short_name to argp.h, so they are visible
74312         to user programs.
74313         * lib/argp.h: Likewise
74314
74315 2006-09-10  Bruno Haible  <bruno@clisp.org>
74316
74317         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74318         m4/inttypes_h.m4, m4/uintmax_t.m4.
74319
74320 2006-09-10  Bruno Haible  <bruno@clisp.org>
74321
74322         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74323         gl_AC_TYPE_UINTMAX_T.
74324
74325 2006-09-10  Bruno Haible  <bruno@clisp.org>
74326
74327         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74328
74329 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74330
74331         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74332         convention.  Text proposed by Bruno Haible.
74333         (struct argp_option): Document the use of N_() wrappers.
74334
74335         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74336         '\v', and translate the two parts separately, instead of feeding
74337         the whole string to gettext.  This allows to exclude
74338         '\v' from the strings visible to the translator by writing doc
74339         strings as N_("..") "\v" N_("..").
74340
74341 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         * config/srclist.txt: Undo latest change; the bug was fixed.
74344
74345 2006-09-09  Bruno Haible  <bruno@clisp.org>
74346
74347         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74348         assignments if building a library without libtool.
74349         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74350         in func_emit_lib_Makefile_am.
74351         (func_import): When building a static library libfoo.a, arrange to
74352         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74353         (func_create_testdir): Likewise.
74354         * modules/gc (configure.ac, Makefile.am): If building statically,
74355         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74356         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74357         * modules/striconv (configure.ac, Makefile.am): Likewise.
74358         Based on a suggestion by Ralf Wildenhues.
74359
74360 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74361
74362         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74363         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74364         Also:
74365
74366         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74367         Add year_2050_test to catch glibc bug 2821
74368         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74369
74370         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74371         Prefer #ifdef to #if.
74372
74373         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74374         Return from 'main' instead of calling 'exit'.
74375
74376 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74377
74378         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74379         returned the maximum time_t value rather than (time_t) -1.
74380         Problem originally reported by William Bardwell
74381         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74382
74383         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74384         Moved to here ...
74385         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74386         ... from here.
74387
74388 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74391         2821 is fixed.
74392
74393 2006-09-08  Jim Meyering  <jim@meyering.net>
74394
74395         Don't make generated files read-only.  That would bother too many
74396         people.  However, do retain the ability to work when targets are
74397         read-only: remove the destination and temporary files before writing
74398         them (when generated via sed or echo), or by using the -f option for
74399         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74400         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74401         * modules/byteswap, modules/configmake, modules/fcntl:
74402         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74403         * modules/localcharset, modules/netinet_in, modules/poll:
74404         * modules/stdbool, modules/stdint, modules/sys_select:
74405         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74406
74407 2006-09-08  Jim Meyering  <jim@meyering.net>
74408
74409         Avoid new build failure on FreeBSD 6.0.
74410         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74411         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74412         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74413
74414 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74415
74416         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74417
74418 2006-09-07  Jim Meyering  <jim@meyering.net>
74419
74420         Fix global typo in last change: use chmod u-w, not chmod u-x.
74421         Spotted by Paul Eggert and Bruce Korb.
74422         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74423         * modules/byteswap, modules/configmake, modules/fcntl:
74424         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74425         * modules/localcharset, modules/netinet_in, modules/poll:
74426         * modules/stdbool, modules/stdint, modules/sys_select:
74427         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74428
74429 2006-09-06  Jim Meyering  <jim@meyering.net>
74430
74431         Make generated files be read-only.
74432         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74433         Ensure that each generated file is now read-only.
74434         * modules/argz: Likewise.
74435         * modules/arpa_inet: Likewise.
74436         * modules/byteswap: Likewise.
74437         * modules/configmake: Likewise.
74438         * modules/fcntl: Likewise.
74439         * modules/fnmatch: Likewise.
74440         * modules/getopt: Likewise.
74441         * modules/glob: Likewise.
74442         * modules/inttypes: Likewise.
74443         * modules/netinet_in: Likewise.
74444         * modules/poll: Likewise.
74445         * modules/stdbool: Likewise.
74446         * modules/stdint: Likewise.
74447         * modules/sys_select: Likewise.
74448         * modules/sys_socket: Likewise.
74449         * modules/sys_stat: Likewise.
74450         * modules/sysexits: Likewise.
74451         * modules/localcharset: Same as above, but continue using temporary
74452         file named "t-$@" (why different?) rather than the "$@-t" used
74453         everywhere else.
74454
74455         * modules/sysexits (Makefile.am): Replace literal occurrences
74456         of "sysexit.h" more readable, and more consistent, "$@".
74457
74458 2006-09-06  Bruno Haible  <bruno@clisp.org>
74459
74460         * modules/striconv: New file.
74461         * modules/xstriconv: New file.
74462         * MODULES.html.sh (Internationalization functions): Add striconv,
74463         xstriconv.
74464
74465 2006-09-06  Bruno Haible  <bruno@clisp.org>
74466
74467         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74468         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74469         not using libtool correctly.
74470
74471 2006-09-06  Bruno Haible  <bruno@clisp.org>
74472
74473         * lib/striconv.h: New file.
74474         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74475         iconvstring.c.
74476         * lib/xstriconv.h: New file.
74477         * lib/xstriconv.c: New file.
74478
74479 2006-09-06  Bruno Haible  <bruno@clisp.org>
74480
74481         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74482         lib_..._LDFLAGS.
74483
74484 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74485
74486         * lib/argz_.h: Sync from Libtool.
74487
74488         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74489                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74490
74491         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74492
74493 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74494
74495         * modules/trim: New file.
74496
74497 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74498
74499         * lib/trim.h: New file.
74500         * lib/trim.c: New file.
74501
74502 2006-09-05  Bruno Haible  <bruno@clisp.org>
74503
74504         * MODULES.html.sh (String handling): Add trim.
74505
74506 2006-09-04  Karl Berry  <karl@gnu.org>
74507
74508         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74509         until next release.
74510
74511 2006-09-03  Bruno Haible  <bruno@clisp.org>
74512
74513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74514         correctly.
74515
74516 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74517
74518         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74519         not gl_GETLOADAVG.  Omit unneeded semicolons.
74520         Problems reported by Ralf Wildenhues in
74521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74522         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74523         at the end, which is the usual gnulib style.
74524
74525         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74526         of doing all the work ourselves.
74527         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74528         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74529
74530 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74533         Problem reported by Ralf Wildenhues in
74534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74535
74536         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74537         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74538
74539 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74542         yesterday's patch by changing test -n to test -z.
74543
74544 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74547         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74548         the former is now obsolescent.
74549
74550         * modules/chdir-long (Depends-on): Add fcntl.
74551
74552 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74555         obsolescent, and programs should use gnulib instead.
74556         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74557         but with prefixes changed.
74558
74559 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74562         or stdbool.h, because they might not exist while configuring.
74563
74564         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74565         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74566         does that for us.
74567         (O_DIRECTORY): Remove.
74568
74569 2006-08-31  Eric Blake  <ebb9@byu.net>
74570
74571         * gnulib-tool: Don't let emacs change spaces to TAB.
74572
74573 2006-08-31  Bruno Haible  <bruno@clisp.org>
74574
74575         * gnulib-tool: When calling func_import more than once, do it in a
74576         subshell.
74577         Reported by Eric Blake <ebb9@byu.net>.
74578
74579 2006-08-31  Bruno Haible  <bruno@clisp.org>
74580
74581         * gnulib-tool (nl): Remove variable.
74582         (sed_transform_lib_file): Use more robust test for config-h module.
74583         (func_import): Fix typo in 2006-08-25 patch.
74584
74585 2006-08-31  Bruno Haible  <bruno@clisp.org>
74586
74587         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74588         specified, augment Makefile.am variables instead of assigning them.
74589
74590 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74591
74592         Work around a bug in both the Linux and SunOS 64-bit kernels:
74593         nanosleep mishandles sleeps for longer than 2**31 seconds.
74594         Problem reported by Frank v Waveren in
74595         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74597         Check for nanosleep bug.
74598         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74599
74600 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         Work around a bug in both the Linux and SunOS 64-bit kernels:
74603         nanosleep mishandles sleeps for longer than 2**31 seconds.
74604         Problem reported by Frank v Waveren in
74605         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74606         * lib/nanosleep.c (BILLION): New constant.
74607         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74608         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74609         implementation.
74610
74611 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         * modules/nanosleep (Depends-on): Add gettime.
74614
74615 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74616         and Simon Josefsson  <jas@extundo.com>
74617         and Oskar Liljeblad  <oskar@osk.mine.nu>
74618
74619         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74620         * gnulib-tool (func_import): New license type 'unmodifiable license
74621         text'.
74622         * modules/fdl: Use it.  Longer description.
74623         * module/gpl, module/lgpl: New files.
74624
74625 2006-08-30  Jim Meyering  <jim@meyering.net>
74626
74627         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74628         shadowing the parameter.
74629
74630 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74631
74632         Sync from Libtool:
74633
74634         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74635
74636         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74637         sharing with gnulib.  Report by Eric Blake.
74638
74639 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         * modules/isapipe: New file.
74642         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74643
74644 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * modules/configmake (Makefile.am): Add a comment, and omit
74647         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74648         by Bruno Haible.
74649
74650 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * m4/isapipe.m4: New file.
74653
74654 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74655
74656         * lib/isapipe.c, lib/isapipe.h: New files.
74657
74658 2006-08-29  Jim Meyering  <jim@meyering.net>
74659
74660         * modules/configmake (Makefile.am): Make configmake.h depend on
74661         Makefile.  Otherwise, a stale configmake.h could hang around.
74662
74663 2006-08-29  Eric Blake  <ebb9@byu.net>
74664
74665         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74666         resolution of upstream bug 3044.
74667
74668 2006-08-29  Bruno Haible  <bruno@clisp.org>
74669
74670         * modules/localcharset (Depends-on): Add configmake.
74671         (Makefile.am): Remove setting of LIBDIR through DEFS.
74672
74673 2006-08-29  Bruno Haible  <bruno@clisp.org>
74674
74675         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74676         defined.
74677
74678 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * modules/fcntl: New file.
74681         * modules/chdir-safer (Depends-on): Add fcntl.
74682         * modules/fts: Likewise.
74683         * modules/mkdir-p: Likewise.
74684
74685         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74686         This undoes the most recent change, since we're now addressing the
74687         problem in a different way.
74688
74689         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74690         into output, since the output might be called Makefile.am even
74691         if $makefile_name is something different.
74692         (func_import): Use $makefile_am rather than
74693         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74694         empty.
74695
74696         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74697
74698 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74699
74700         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74701         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74702         recent change to stdint.m4, since we're now addressing the problem in a
74703         different way.
74704
74705 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * m4/fcntl_h.m4: New file.
74708
74709 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         * lib/fcntl_.h: New file.
74712         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74713         the fcntl module.
74714         * lib/dirchownmod.c: Likewise.
74715         * lib/fts.c: Likewise.
74716
74717         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74718         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74719         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74720         just before including <inttypes.h>, to avoid circular inclusion.
74721
74722 2006-08-28  Jim Meyering  <jim@meyering.net>
74723
74724         * doc/visibility.texi: Actually read and correct the grammar of the
74725         sentence affected by yesterday's change.
74726
74727 2006-08-28  Eric Blake  <ebb9@byu.net>
74728
74729         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74730         needs wrapper.
74731
74732 2006-08-28  Eric Blake  <ebb9@byu.net>
74733
74734         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74735
74736 2006-08-28  Eric Blake  <ebb9@byu.net>
74737
74738         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74739
74740 2006-08-28  Bruno Haible  <bruno@clisp.org>
74741
74742         * modules/c-strstr: New file, from GNU gettext.
74743         * MODULES.html.sh (String handling): Add c-strstr.
74744
74745 2006-08-28  Bruno Haible  <bruno@clisp.org>
74746
74747         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74748         macros.
74749         Reported by Eric Blake.
74750
74751 2006-08-28  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74754         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74755         * lib/vasprintf.c: Include errno.h, limits.h.
74756         (EOVERFLOW): New fallback definition.
74757         (vasprintf): Test here whether the string length is > INT_MAX.
74758         * lib/vsnprintf.c: Include errno.h, limits.h.
74759         (EOVERFLOW): New fallback definition.
74760         (vsnprintf): Fix bug when generated string was too long for the buffer.
74761         Test here whether the string length is > INT_MAX.
74762
74763 2006-08-28  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/inttypes_.h (SCNX*): Remove definitions.
74766         Reported by Eric Blake.
74767
74768 2006-08-28  Bruno Haible  <bruno@clisp.org>
74769
74770         * lib/c-strstr.h: New file, from GNU gettext.
74771         * lib/c-strstr.c: New file, from GNU gettext.
74772
74773 2006-08-28  Bruno Haible  <bruno@clisp.org>
74774
74775         * gnulib-tool: Reorder some statements.
74776
74777 2006-08-28  Bruno Haible  <bruno@clisp.org>
74778
74779         * gnulib-tool: New option --makefile-name.
74780         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74781         $makefile_name.
74782         (func_import): Write $makefile_name to the cache file, and read it from
74783         there unless explicitly specified. Use $makefile_name as file name
74784         instead of Makefile.am. Adjust the recommendations accordingly.
74785
74786 2006-08-28  Bruno Haible  <bruno@clisp.org>
74787
74788         * gnulib-tool (func_verify_module): Check against misapplying patch.
74789
74790 2006-08-28  Bruno Haible  <bruno@clisp.org>
74791
74792         * gnulib-tool (func_relativize, func_relconcat): New functions.
74793         Give an error if --local-dir is given with --update.
74794         Remove trailing slashes from $local_gnulib_dir.
74795         (func_import): Store the relativized $local_gnulib_dir in
74796         gnulib-cache.m4, and read it from there if not specified explicitly.
74797
74798 2006-08-28  Bruno Haible  <bruno@clisp.org>
74799
74800         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74801         is the current directory. Respect also $local_gnulib_dir.
74802
74803 2006-08-28  Bruno Haible  <bruno@clisp.org>
74804             Simon Josefsson  <jas@extundo.com>
74805
74806         BeOS portability.
74807         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74808
74809 2006-08-27  Jim Meyering  <jim@meyering.net>
74810
74811         * doc/visibility.texi: Remove duplicate word: "pointer".
74812
74813 2006-08-26  Bruno Haible  <bruno@clisp.org>
74814
74815         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74816         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74817         (Makefile.am): Create inttypes.h from inttypes_.h.
74818         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74819
74820         * modules/imaxabs: New file.
74821
74822         * modules/imaxdiv: New file.
74823
74824 2006-08-26  Bruno Haible  <bruno@clisp.org>
74825
74826         * m4/inttypes.m4: New file.
74827         * m4/_inttypes_h.m4: Remove file.
74828         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74829         PRI_MACROS_BROKEN.
74830         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74831
74832         * m4/imaxabs.m4: New file.
74833
74834         * m4/imaxdiv.m4: New file.
74835
74836 2006-08-26  Bruno Haible  <bruno@clisp.org>
74837
74838         * lib/inttypes_.h: New file.
74839         * lib/inttypes.h: Remove file.
74840         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74841
74842         * lib/imaxabs.c: New file.
74843
74844         * lib/imaxdiv.c: New file.
74845
74846 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         New config-h module, so that "make" output needn't be cluttered
74849         by -DHAVE_CONFIG_H.
74850         * MODULES.html.sh (Support for building libraries and executables):
74851         Add config-h.
74852         * modules/config-h: New file.
74853         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74854         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74855         the config-h module is used.
74856
74857         New configmake module, so that "make" output needn't be cluttered
74858         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74859         * MODULES.html.sh (Support for building libraries and executables):
74860         Add configmake.
74861         * modules/configmake: New file.
74862
74863 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         * m4/config-h.m4: New file.
74866
74867 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * config/srclist.txt: Add elisp-comp.
74870
74871 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * MODULES.html.sh (Support for building libraries and executables):
74874         Add elisp-comp.
74875         * build-aux/elisp-comp: New file.
74876         * modules/elisp-comp: New file.
74877
74878 2006-08-24  Bruno Haible  <bruno@clisp.org>
74879
74880         * gnulib-tool (func_create_testdir): Use non-default values of
74881         sourcebase and m4base.
74882
74883 2006-08-24  Bruno Haible  <bruno@clisp.org>
74884
74885         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74886         HTML structure.
74887
74888 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * modules/openat (Depends-on): Add lchown.
74891
74892 2006-08-23  Bruno Haible  <bruno@clisp.org>
74893
74894         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74895         of gl_LOCK_EARLY instead of gl_LOCK.
74896
74897 2006-08-23  Bruno Haible  <bruno@clisp.org>
74898
74899         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74900         on OSF/1 to no.
74901         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74902
74903 2006-08-23  Bruno Haible  <bruno@clisp.org>
74904
74905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74906         as unusable.
74907
74908         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74909         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74910         (gl_LOCK): New macro.
74911
74912 2006-08-22  Simon Josefsson  <jas@extundo.com>
74913
74914         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74915         to md5 module.
74916
74917 2006-08-22  Simon Josefsson  <jas@extundo.com>
74918
74919         * MODULES.html.sh: Add "Support for maintaining and release
74920         projects".
74921
74922         * build-aux/gnupload: New file, from coreutils.
74923
74924 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         Avoid the need for AC_LIBSOURCES in m4 macros.
74927         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74928         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74929         * modules/check-version (EXTRA_DIST): Add check-version.h.
74930         * modules/crc (EXTRA_DIST): Add crc.h.
74931         * modules/des (EXTRA_DIST): Add des.h.
74932         * modules/gc (EXTRA_DIST): Add gc.h.
74933         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74934         * modules/getline (EXTRA_DIST): Add getline.h.
74935         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74936         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74937         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74938         * modules/md2 (EXTRA_DIST): Add md2.h.
74939         * modules/md4 (EXTRA_DIST): Add md4.h.
74940         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74941         * modules/read-file (EXTRA_DIST): Add read-file.h.
74942         * modules/readline (EXTRA_DIST): Add readline.h.
74943         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74944         rijndael-api-fst.h.
74945
74946 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * m4/rijndael.m4 (gl_ARCFOUR):
74949         * m4/arctwo.m4 (gl_ARCTWO):
74950         * m4/check-version.m4 (gl_CHECK_VERSION):
74951         * m4/crc.m4 (gl_CRC):
74952         * m4/des.m4 (gl_DES):
74953         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74954         * m4/gc.m4 (gl_GC):
74955         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74956         * m4/getline.m4 (gl_FUNC_GETLINE):
74957         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74958         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74959         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74960         * m4/md2.m4 (gl_MD2):
74961         * m4/md4.m4 (gl_MD4):
74962         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74963         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74964         * m4/readline.m4 (gl_FUNC_READLINE):
74965         * m4/rijndael.m4 (gl_RIJNDAEL):
74966         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74967         to get the necessary .h files and whatnot.
74968
74969 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74972         gnulib rather than the other way around.
74973         * config/srclistvars.sh (COREUTILS): Remove.
74974
74975 2006-08-22  Jim Meyering  <jim@meyering.net>
74976
74977         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74978
74979         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74980
74981 2006-08-22  Eric Blake  <ebb9@byu.net>
74982
74983         * modules/regexprops-generic: New file.
74984         * MODULES.html.sh (Support for building documentation): List it.
74985
74986 2006-08-22  Eric Blake  <ebb9@byu.net>
74987
74988         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74989         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74991         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74992
74993 2006-08-22  Bruno Haible  <bruno@clisp.org>
74994
74995         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74996         and lib_LTLIBRARIES like the other lib_* variables.
74997
74998 2006-08-22  Bruno Haible  <bruno@clisp.org>
74999
75000         * build-aux/x-to-1.in: New file, from GNU gettext.
75001
75002 2006-08-22  Bruno Haible  <bruno@clisp.org>
75003
75004         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75005         <utmpx.h> exists.
75006
75007 2006-08-22  Bruno Haible  <bruno@clisp.org>
75008
75009         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75010         <utmpx.h> exists.
75011
75012 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         BeOS portability.
75015         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75016         exist.
75017         Problem reported by Bruno Haible.
75018
75019 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         Avoid the need for AC_LIBSOURCES in m4 macros.
75022         * modules/acl (EXTRA_DIST): Add acl.h.
75023         * modules/argmatch (Files): Add m4/argmatch.m4.
75024         (configure.ac): Add gl_ARGMATCH.
75025         (EXTRA_DIST): Renamed from lib_SOURCES, for
75026         consistency with the other modules.  Remove argmatch.c.
75027         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75028         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75029         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75030         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75031         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75032         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75033         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75034         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75035         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75036         * modules/closeout (EXTRA_DIST): Add closeout.h.
75037         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75038         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75039         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75040         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75041         dirname.h; remove basename.c and stripslash.c.
75042         * modules/exclude (EXTRA_DIST): Add exclude.h.
75043         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75044         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75045         * modules/file-type (EXTRA_DIST): Add file-type.h.
75046         * modules/filemode (EXTRA_DIST): Add filemode.h.
75047         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75048         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75049         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75050         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75051         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75052         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75053         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75054         * modules/getdate (EXTRA_DIST): Add getdate.c.
75055         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75056         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75057         * modules/getpass (EXTRA_DIST): Add getpass.h.
75058         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75059         * modules/group-member (EXTRA_DIST): Add group-member.h.
75060         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75061         * modules/hash (EXTRA_DIST): Add hash.h.
75062         * modules/human (EXTRA_DIST): Add human.h.
75063         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75064         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75065         * modules/lchown (EXTRA_DIST): Add lchown.h.
75066         * modules/long-options (EXTRA_DIST): Add long-options.h.
75067         * modules/lstat (EXTRA_DIST): Add lstat.h.
75068         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75069         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75070         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75071         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75072         * modules/memxor (EXTRA_DIST): Add memxor.h.
75073         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75074         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75075         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75076         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75077         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75078         * modules/physmem (EXTRA_DIST): Add physmem.h.
75079         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75080         * modules/posixver (EXTRA_DIST): Add posixver.h.
75081         * modules/quote (EXTRA_DIST): Add quote.h.
75082         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75083         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75084         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75085         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75086         regex_internal.h regexec.c.
75087         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75088         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75089         * modules/same (EXTRA_DIST): Add same.h.
75090         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75091         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75092         * modules/savedir (EXTRA_DIST): Add savedir.h.
75093         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75094         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75095         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75096         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75097         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75098         * modules/strdup (EXTRA_DIST): Add strdup.h.
75099         * modules/strftime (EXTRA_DIST): Add strftime.h.
75100         * modules/strndup (EXTRA_DIST): Add strndup.h.
75101         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75102         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75103         * modules/time_r (EXTRA_DIST): Add time_r.h.
75104         * modules/timespec (EXTRA_DIST): Add timespec.h.
75105         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75106         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75107         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75108         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75109         * modules/userspec (EXTRA_DIST): Add userspec.h.
75110         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75111         * modules/utimens (EXTRA_DIST): Add utimens.h.
75112         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75113         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75114         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75115         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75116         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75117         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75118         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75119         * modules/yesno (EXTRA_DIST): Add yesno.h.
75120
75121 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75124
75125         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75126         * m4/dev-ino.m4, same-inode.m4: Remove.
75127
75128         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75129         * m4/acl.m4 (AC_FUNC_ACL):
75130         * m4/backupfile.m4 (gl_BACKUPFILE):
75131         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75132         * m4/canon-host.m4 (gl_CANON_HOST):
75133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75134         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75135         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75136         * m4/cloexec.m4 (gl_CLOEXEC):
75137         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75138         * m4/closeout.m4 (gl_CLOSEOUT):
75139         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75140         * m4/dirname.m4 (gl_DIRNAME):
75141         * m4/exclude.m4 (gl_EXCLUDE):
75142         * m4/exitfail.m4 (gl_EXITFAIL):
75143         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75144         * m4/file-type.m4 (gl_FILE_TYPE):
75145         * m4/filemode.m4 (gl_FILEMODE):
75146         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75147         * m4/fpending.m4 (gl_FUNC_FPENDING):
75148         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75149         * m4/fts.m4 (gl_FUNC_FTS):
75150         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75151         * m4/getdate.m4 (gl_GETDATE):
75152         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75153         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75154         * m4/getpass.m4 (gl_FUNC_GETPASS):
75155         * m4/gettime.m4 (gl_GETTIME):
75156         * m4/getugroups.m4 (gl_GETUGROUPS):
75157         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75159         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75160         * m4/hash.m4 (gl_HASH):
75161         * m4/idcache.m4 (gl_IDCACHE):
75162         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75163         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75164         * m4/long-options.m4 (gl_LONG_OPTIONS):
75165         * m4/lstat.m4 (gl_FUNC_LSTAT):
75166         * m4/md5.m4 (gl_MD5):
75167         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75168         * m4/memcoll.m4 (gl_MEMCOLL):
75169         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75170         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75171         * m4/memxor.m4 (gl_MEMXOR):
75172         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75173         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75174         * m4/modechange.m4 (gl_MODECHANGE):
75175         * m4/mountlist.m4 (gl_MOUNTLIST):
75176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75177         * m4/openat.m4 (gl_FUNC_OPENAT):
75178         * m4/pathmax.m4 (gl_PATHMAX):
75179         * m4/physmem.m4 (gl_PHYSMEM):
75180         * m4/posixtm.m4 (gl_POSIXTM):
75181         * m4/posixver.m4 (gl_POSIXVER):
75182         * m4/quote.m4 (gl_QUOTE):
75183         * m4/quotearg.m4 (gl_QUOTEARG):
75184         * m4/readtokens.m4 (gl_READTOKENS):
75185         * m4/readutmp.m4 (gl_READUTMP):
75186         * m4/regex.m4 (gl_REGEX):
75187         * m4/safe-read.m4 (gl_SAFE_READ):
75188         * m4/safe-write.m4 (gl_SAFE_WRITE):
75189         * m4/same.m4 (gl_SAME):
75190         * m4/save-cwd.m4 (gl_SAVE_CWD):
75191         * m4/savedir.m4 (gl_SAVEDIR):
75192         * m4/settime.m4 (gl_SETTIME):
75193         * m4/sha1.m4 (gl_SHA1):
75194         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75195         * m4/stat-macros.m4 (gl_STAT_MACROS):
75196         * m4/stat-time.m4 (gl_STAT_TIME):
75197         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75198         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75199         * m4/strdup.m4 (gl_FUNC_STRDUP):
75200         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75201         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75202         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75203         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75204         * m4/time_r.m4 (gl_TIME_R):
75205         * m4/timespec.m4 (gl_TIMESPEC):
75206         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75207         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75208         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75209         * m4/userspec.m4 (gl_USERSPEC):
75210         * m4/utimecmp.m4 (gl_UTIMECMP):
75211         * m4/utimens.m4 (gl_UTIMENS):
75212         * m4/xalloc.m4 (gl_XALLOC):
75213         * m4/xgetcwd.m4 (gl_XGETCWD):
75214         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75215         * m4/xreadlink.m4 (gl_XREADLINK):
75216         * m4/xstrtod.m4 (gl_XSTRTOD):
75217         * m4/yesno.m4 (gl_YESNO):
75218         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75219         to get the necessary .h files and whatnot.
75220
75221 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75222             Bruno Haible  <bruno@clisp.org>
75223
75224         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75225         /bin/sh understanding of '!' conditional negation.
75226
75227 2006-08-21  Jim Meyering  <jim@meyering.net>
75228
75229         * modules/openat (Depends-on): Really alphabetize.
75230
75231         * modules/acl (Depends-on): Add error and quote.
75232
75233         * check-module (find_included_lib_files): Add at-func.c to the
75234         ok-to-include-more-than-once white list.
75235
75236         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75237
75238 2006-08-21  Bruno Haible  <bruno@clisp.org>
75239
75240         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75241         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75242         Reported by Martin Lambers <marlam@marlam.de>.
75243
75244 2006-08-21  Bruno Haible  <bruno@clisp.org>
75245
75246         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75247         specify an installation location, don't emit a noinst_LIBRARIES or
75248         noinst_LTLIBRARIES assignment.
75249
75250 2006-08-21  Bruno Haible  <bruno@clisp.org>
75251
75252         BeOS portability.
75253         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75254         BeOS has mbrtowc() but no <wctype.h>.
75255
75256 2006-08-21  Bruno Haible  <bruno@clisp.org>
75257
75258         BeOS portability.
75259         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75260         exist.
75261
75262 2006-08-21  Bruno Haible  <bruno@clisp.org>
75263
75264         BeOS portability.
75265         * lib/mbchar.h: Include <wctype.h> only if it exists.
75266
75267 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         Remove files that are no longer needed by their respective modules.
75270         * m4/obstack.m4: Remove.
75271         * m4/strerror_r.m4: Remove.
75272         * m4/uint32_t.m4: Remove.
75273         * m4/uintptr_t.m4: Remove.
75274         * m4/ullong_max.m4: Remove.
75275         * m4/xstrtoimax.m4: Remove.
75276         * m4/xstrtoumax.m4: Remove.
75277
75278         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75279         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75280         dependencies now capture this.
75281
75282         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75283         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75284         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75285         * m4/human.m4 (gl_HUMAN): Likewise.
75286         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75287         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75288
75289         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75290
75291         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75292         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75293         stdint.
75294         * m4/human.m4 (gl_HUMAN): Likewise.
75295         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75296         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75297         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75298         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75299         * m4/xstrtol (gl_XSTRTOL): Likewise.
75300
75301         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75302         AC_TYPE_LONG_LONG_INT.
75303         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75304         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75305         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75306         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75307
75308         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75309         on stdbool.
75310
75311         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75312         (gl_PREREQ_XSTRTOUL): Remove.
75313
75314         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75315
75316         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75317         mode.
75318
75319 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         Add and change modules to make it easier for coreutils to use
75322         gnulib-tool.
75323         * modules/backupfile (Files): Remove m4/d-ino.m4.
75324         (Depends-on): Add d-ino.
75325         * modules/cycle-check (Depends-on): Add stdint.
75326         (lib_SOURCES): Add cycle-check.h.
75327         * modules/d-ino: New module.
75328         * modules/d-type: New module.
75329         * modules/error (Files): Remove m4/strerror_r.m4.
75330         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75331         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75332         m4/inttypes_h.m4, m4/uintmax_t.m4.
75333         (Depends-on): Add stdint.
75334         (lib_SOURCES): Add fsusage.h.
75335         * modules/getcwd (Files): Remove d-ino.m4.
75336         (Depends-on): Add d-ino.
75337         * modules/getndelim2 (Depends-on): Add stdint.
75338         * modules/glob (Files): Remove m4/d-type.m4.
75339         (Depends-on): Add d-type.
75340         * modules/host-os: New module.
75341         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75342         m4/inttypes_h.m4, m4/uintmax_t.m4.
75343         * Depends-on: Add stdint.
75344         (lib_SOURCES): Add human.h.
75345         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75346         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75347         m4/uintmax_t.m4, m4/ulonglong.m4.
75348         (Depends-on): Add stdint.
75349         (EXTRA_DIST): Add inttostr.h.
75350         * modules/lchmod: New module.
75351         * modules/link-follow: New module.
75352         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75353         (Depends-on): Add lchmod.
75354         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75355         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75356         (Depends-on): Add stdint.
75357         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75358         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75359         (Depends-on): Add stdint.
75360         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75361         * modules/perl: New module.
75362         * modules/regex (Depends-on): Add stdint.
75363         * modules/rmdir-errno: New module.
75364         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75365         m4/intmax_t.m4.
75366         (Depends-on): Add stdint.
75367         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75368         m4/uintmax_t.m4.
75369         (Depends-on): Add stdint.
75370         * modules/unlink-busy: New module.
75371         * modules/utimecmp (Depends-on): Add stdint.
75372         * modules/uptime: New module.
75373         * modules/winsz-ioctl: New module.
75374         * modules/winsz-termios: New module.
75375         * modules/xnanosleep (Depends-on): Add nanosleep.
75376         * modules/ullong_max: Remove.
75377         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75378         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75379         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75380         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75381         (Depends-on): Add inttypes.
75382         (lib_SOURCES): Add xstrtol.h.
75383         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75384         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75385         * MODULES.html.sh: Move 'assert' into the assert section.
75386         Move 'dummy' into the linking section.
75387         Remove ullong_max.
75388         Add section for compatibility checks for POSIX:2001 functions,
75389         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75390         winsz-ioctl, and winsz-termios into it.
75391         Add lchmod.
75392         Add top-level Misc section and put host-os, perl, and uptime
75393         into it.
75394
75395 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75398         now assume the stdint module.  Do not include inttypes.h.
75399         * lib/fsusage.h: Likewise.
75400         * lib/getndelim2.c: Likewise.
75401         * lib/human.h: Likewise.
75402         * lib/inttostr.h: Likewise.
75403         * lib/obstack.c: Likewise.
75404         * lib/regex_internal.h: Likewise.
75405         * lib/tempname.c: Likewise.
75406         * lib/utimecmp.c: Likewise.
75407         * lib/xstrtol.h: Likewise.
75408
75409         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75410
75411         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75412         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75413         * lib/xtime.h: Likewise.
75414
75415 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75416
75417         * modules/openat (Files): Add lib/fchmodat.c.
75418         Fixes problem reported by Jay Youngman.
75419
75420 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75423         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75424
75425 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75426             Bruno Haible  <bruno@clisp.org>
75427
75428         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75429         and is a script that invokes bison. Tighten the code. Add comments.
75430
75431 2006-08-18  Jim Meyering  <jim@meyering.net>
75432
75433         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75434         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75435         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75436         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75437
75438 2006-08-18  Bruno Haible  <bruno@clisp.org>
75439
75440         * modules/bison-i18n: New file.
75441         * MODULES.html.sh (Internationalization functions): Add it.
75442
75443 2006-08-18  Bruno Haible  <bruno@clisp.org>
75444
75445         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75446         sys/statvfs.h. When getmntinfo was found, check its declaration and
75447         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75448
75449 2006-08-18  Bruno Haible  <bruno@clisp.org>
75450
75451         * m4/bison-i18n.m4: New file, from bison.
75452
75453 2006-08-18  Bruno Haible  <bruno@clisp.org>
75454
75455         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75456         (ME_DUMMY): Treat "kernfs" as a dummy.
75457         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75458
75459 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         Update from coreutils.
75462
75463         2006-08-15  Jim Meyering  <jim@meyering.net>
75464
75465         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75466
75467         2006-01-17  Jim Meyering  <jim@meyering.net>
75468
75469         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75470
75471         2006-01-11  Jim Meyering  <jim@meyering.net>
75472
75473         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75474         Check for the lchmod function.
75475
75476 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75477
75478         Update from coreutils.
75479
75480         * lib/__fpending.h: Add copyright notice.
75481         * lib/fprintftime.h: Likewise.
75482         * lib/savedir.c: Use (C) in copyright notice.
75483         * lib/savedir.h: Likewise.
75484
75485         2006-08-15  Jim Meyering  <jim@meyering.net>
75486
75487         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75488         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75489         in support of the EXPECTED_ERRNO macro.
75490         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75491         definitions.  Instead, define the appropriate symbols and include
75492         "at-func.c".
75493         * lib/mkdirat.c (mkdirat): Likewise.
75494         * lib/fchmodat.c (fchmodat): Likewise.
75495         (ENOSYS): Remove definition.
75496         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75497         it.  Don't include "unistd--.h" -- it wasn't ever used.
75498
75499         2006-01-17  Jim Meyering  <jim@meyering.net>
75500
75501         Rewrite fts.c not to change the current working directory,
75502         by using openat, fstatat, fdopendir, etc..
75503
75504         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75505         (HAVE_OPENAT_SUPPORT): Define.
75506         [_LIBC] (fchdir): Don't undef or define; no longer used.
75507         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75508         Now, this `function' always succeeds, and consumes its file descriptor
75509         parameter -- so callers must not close such FDs.  Update callers.
75510         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75511         (diropen): Add parameter, SP.  Adjust all callers.
75512         Implement using diropen_fd, rather than open.
75513         (fts_open): Initialize new member, fts_cwd_fd.
75514         Remove fts_rft-setting code.
75515         (fts_close): Close fts_cwd_fd, if necessary.
75516         (__opendir2): Define in terms of opendir or opendirat,
75517         depending on whether the FST_NOCHDIR flag is set.
75518         (fts_build): Since fts_safe_changedir consumes its FD, and since
75519         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75520         and close the dup'd file descriptor upon failure.
75521         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75522         (fts_safe_changedir): Tweak semantics to reflect that this function
75523         now calls cwd_advance_fd and hence consumes its FD argument.
75524         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75525         [struct FTS] (fts_rft): Remove now-unused member.
75526         [struct FTS] (fts_cycle.state): Improve comment.
75527
75528         * lib/openat.c (openat_needs_fchdir): New function.
75529         * lib/openat.h (openat_needs_fchdir): Declare it.
75530
75531 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75534         Problem and fix reported by Pádraig Brady in
75535         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75536
75537 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75540
75541 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/memcoll.c (memcoll): Optimize for the common case where the
75544         arguments are bytewise equal.
75545
75546 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * doc/regexprops-generic.texi: Add a copyright notice.
75549
75550 2006-08-15  Bruno Haible  <bruno@clisp.org>
75551
75552         * modules/tmpdir (License): Change to LGPL.
75553
75554 2006-08-15  Bruno Haible  <bruno@clisp.org>
75555
75556         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75557         module.
75558
75559 2006-08-14  Simon Josefsson  <jas@extundo.com>
75560
75561         * config/srclist.txt: Add gnupload.
75562
75563 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         Change copyright notice from LGPL 2 to GPL 2, since that's the
75566         standard form used in the gnulib repository.
75567         * tests/test-lock.c: Likewise.
75568         * tests/test-stdint.c: Likewise.
75569         * tests/test-tls.c: Likewise.
75570
75571         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75572         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75573         Add copyright notice.
75574
75575         * check-module: Add copyright notice.  Output a copyright
75576         notice if "--version" is specified.
75577         * modules/COPYING: New file.
75578         * tests/test-getaddrinfo.c: Add copyright notice.
75579         * tests/test-verify.c: Likewise.
75580
75581 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         Change copyright notice from LGPL 2 to GPL 2, since that's the
75584         standard form used in the gnulib repository.
75585         * lib/lock.c: LGPL -> GPL.
75586         * lib/lock.h: Likewise.
75587         * lib/strnlen1.c: Likewise.
75588         * lib/strnlen1.h: Likewise.
75589         * lib/tls.c: Likewise.
75590         * lib/tls.h: Likewise.
75591         * lib/tmpdir.c: Likewise.
75592
75593         * lib/TODO: Remove; this belongs only in coreutils.
75594
75595 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         Add copyright notices to long-enough files that lack them, since
75598         otherwise the files aren't clearly free.  Use the same notice that
75599         getdate.texi already uses.
75600         * doc/alloca-opt.texi: Add copyright notice.
75601         * doc/alloca.texi: Likewise.
75602         * doc/ctime.texi: Likewise.
75603         * doc/functions.texi: Likewise.
75604         * doc/gcd.texi: Likewise.
75605         * doc/gnulib-tool.texi: Likewise.
75606         * doc/inet_ntoa.texi: Likewise.
75607         * doc/visibility.texi: Likewise.
75608
75609         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75610         * doc/quote.texi: Add copyright notice.
75611
75612         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75613         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75614         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75615         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75616         is now obsolete, and give a pointer to the Sun list.
75617         Add copyright notice.
75618
75619 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * config/srclistvars.sh: Add copyright notice.
75622
75623 2006-08-14  Eric Blake  <ebb9@byu.net>
75624
75625         Import the following change from libc:
75626
75627         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75628
75629         Upstream bug 2997.
75630         * lib/misc/error.c: Add space between program name and message if file
75631         name is missing.
75632
75633 2006-08-12  Karl Berry  <karl@gnu.org>
75634
75635         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75636         remove, these originate in gnulib now.
75637
75638 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75639
75640         * doc/Makefile (standards.info standards.html standards.dvi):
75641         Also depend on make-stds.texi.
75642
75643 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75646         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75647
75648         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75649         in wchar_t.  Problem reported by Eric Blake.
75650
75651         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75652         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75653         Also, help the compiler to keep LEN in a register.
75654
75655 2006-08-11  Eric Blake  <ebb9@byu.net>
75656
75657         * users.txt: Sort.  Add tar.
75658
75659 2006-08-11  Bruno Haible  <bruno@clisp.org>
75660
75661         * users.txt: New file.
75662
75663 2006-08-11  Bruno Haible  <bruno@clisp.org>
75664
75665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75666         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75667
75668 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * modules/snprintf (Depends-on): Remove minmax.
75671         (Maintainer): Add self and Bruno.
75672
75673 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75676         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75677         (EOVERFLOW): Define if the system does not.
75678         Do not include "minmax.h"; it wasn't used.
75679         (snprintf): Don't assume size_t promotes to an unsigned type.
75680         Fix bug when generated string was too long for the buffer: the
75681         buffer's contents are supposed to be the initial prefix of the
75682         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75683         exceeds INT_MAX; do the check ourselves.
75684
75685         Import the following changes from libc:
75686
75687         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75688
75689         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75690         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75691         set wc to the byte which couldn't be converted.
75692         (re_string_reconstruct): Don't clear valid_raw_len before calling
75693         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75694         tip_context using re_string_context_at.
75695
75696         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75697
75698         * lib/posix/regex.h: g++ still cannot handled [restrict].
75699
75700         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75701
75702         * lib/posix/regex.h: Remove special handling for VMS.
75703
75704 2006-08-10  Jim Meyering  <jim@meyering.net>
75705
75706         * modules/same-inode: New module.
75707         * modules/dev-ino: New module.
75708         * modules/cycle-check: Depend on these modules, rather than simply
75709         including their .h files.
75710         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75711         required via m4/cycle-check.m4.
75712         * modules/same: Depend on new same-inode module, rather than
75713         including same-inode.h.
75714         * modules/chdir-safer: New file.
75715
75716         * modules/chown (Depends-on): Add stat-macros.
75717
75718 2006-08-10  Jim Meyering  <jim@meyering.net>
75719
75720         * m4/cycle-check.m4: New file.
75721         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75722         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75723
75724 2006-08-10  Eric Blake  <ebb9@byu.net>
75725
75726         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75727         in from original proposal.
75728
75729 2006-08-10  Eric Blake  <ebb9@byu.net>
75730         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75731
75732         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75733         namespace.
75734
75735 2006-08-10  Bruno Haible  <bruno@clisp.org>
75736
75737         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75738         as well.
75739
75740 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         Sync from coreutils.
75743
75744         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75745
75746         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75747         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75748
75749 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         * modules/restrict: Remove; no longer needed now that we assume
75752         Autoconf 2.59 or later.
75753         * MODULES.html.sh: Remove 'restrict'.
75754         * modules/argp (Depends-on): Remove 'restrict'.
75755         * modules/base64 (Depends-on): Likewise.
75756         * modules/gc (Depends-on): Likewise.
75757         * modules/getaddrinfo (Depends-on): Likewise.
75758         * modules/glob (Depends-on): Likewise.
75759         * modules/inet_ntop (Depends-on): Likewise.
75760         * modules/inet_pton (Depends-on): Likewise.
75761         * modules/memxor (Depends-on): Likewise.
75762         * modules/regex (Depends-on): Likewise.
75763         * modules/strtok_r (Depends-on): Likewise.
75764         * modules/time_r (Depends-on): Likewise.
75765
75766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75769         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75770         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75771         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75772         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75773         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75774         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75775         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75776
75777         Merge from coreutils.
75778         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75779         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75780         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75781         * m4/time_r.m4 (gl_TIME_R): Likewise.
75782
75783 2006-08-09  Karl Berry  <karl@gnu.org>
75784
75785         * config/srclist.txt: no more gettext-tools, per Bruno.
75786
75787 2006-08-08  Eric Blake  <ebb9@byu.net>
75788
75789         * modules/verror: New module.
75790         * MODULES.html.sh: Document it.
75791
75792 2006-08-08  Eric Blake  <ebb9@byu.net>
75793
75794         * lib/verror.h, lib/verror.c: New files.
75795
75796 2006-08-08  Eric Blake  <ebb9@byu.net>
75797
75798         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75799         verror_at_line output complies with GNU Coding Standards even when
75800         file is NULL.
75801
75802 2006-08-07  Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75805         versions of AIX.
75806         Reported by Ralf Wildenhues.
75807
75808 2006-08-07  Bruno Haible  <bruno@clisp.org>
75809
75810         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75811         in an AC_DEFUN. Needed so that the autoconf snippets can use
75812         AC_REQUIRE.
75813
75814 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75815
75816         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75817         Initialize pkgdata_DATA.
75818         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75819         overriding it.
75820
75821 2006-08-06  Eric Blake  <ebb9@byu.net>
75822
75823         * lib/error.h: Fold in some upstream changes from glibc.
75824         * lib/error.c: Likewise.
75825
75826 2006-08-04  Bruno Haible  <bruno@clisp.org>
75827
75828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75829         Make the mostlyclean-local rule depend on mostlyclean-generic.
75830         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75831
75832 2006-07-31  Bruno Haible  <bruno@clisp.org>
75833
75834         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75835         <stdlib.h>, <string.h>.
75836
75837 2006-07-30  Bruno Haible  <bruno@clisp.org>
75838
75839         * modules/readlink (License): Change to LGPL.
75840
75841 2006-07-30  Bruno Haible  <bruno@clisp.org>
75842
75843         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75844         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75845         set PKGDATADIR to point to it.
75846
75847 2006-07-30  Bruno Haible  <bruno@clisp.org>
75848
75849         * modules/csharpexec (configure.ac): Comment out macro invocation.
75850         * modules/javaexec (configure.ac): Likewise.
75851         * modules/javacomp-script (configure.ac): Likewise.
75852
75853         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75854
75855 2006-07-30  Bruno Haible  <bruno@clisp.org>
75856
75857         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75858         linked-list.
75859
75860 2006-07-30  Bruno Haible  <bruno@clisp.org>
75861
75862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75863
75864 2006-07-30  Bruno Haible  <bruno@clisp.org>
75865
75866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75867         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75868         get removed.
75869
75870 2006-07-29  Bruno Haible  <bruno@clisp.org>
75871
75872         Make it possible for gnulib-tool to work with locally modified or
75873         augmented gnulib repositories.
75874         * gnulib-tool (func_usage): Document --local-dir option.
75875         (local_gnulib_dir): New variable.
75876         Handle --local-dir option.
75877         (func_lookup_file): New function.
75878         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75879         (func_get_description, func_get_filelist, func_get_description,
75880         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75881         func_get_automake_snippet, func_get_include_directive,
75882         func_get_license, func_get_maintainer): Use func_lookup_file.
75883         (func_import, func_create_testdir): Use func_lookup_file.
75884
75885 2006-07-29  Bruno Haible  <bruno@clisp.org>
75886
75887         * modules/setenv (Depends-on): Add unistd.
75888
75889 2006-07-29  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75892
75893 2006-07-29  Bruno Haible  <bruno@clisp.org>
75894
75895         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75896
75897 2006-07-29  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (import, update): If there is no Makefile.am, look at
75900         aclocal.m4, instead of bailing out.
75901
75902 2006-07-29  Bruno Haible  <bruno@clisp.org>
75903
75904         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75905         Categorize the options by when they are useful.
75906
75907 2006-07-29  Bruno Haible  <bruno@clisp.org>
75908
75909         * gnulib-tool (func_usage): Document option --no-libtool.
75910         Handle option --no-libtool.
75911         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75912         for changed semantics of $libtool variable.
75913         (func_import): Likewise. If libtool is not used, show this through
75914         an option --no-libtool.
75915         (func_create_testdir): Update.
75916
75917 2006-07-29  Bruno Haible  <bruno@clisp.org>
75918
75919         * gnulib-tool (func_import): Extend error message about missing
75920         --doc-base.
75921
75922 2006-07-29  Bruno Haible  <bruno@clisp.org>
75923
75924         * gnulib-tool (func_import): Don't create the $docbase directory if
75925         there is no file to store there.
75926
75927 2006-07-29  Bruno Haible  <bruno@clisp.org>
75928
75929         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75930         relevant, look for configure.ac there, not in the current directory.
75931         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75932
75933 2006-07-29  Bruno Haible  <bruno@clisp.org>
75934
75935         * gnulib-tool (SORT): New variable.
75936         (func_usage): Undocument --assume-autoconf option.
75937         Remove --assume-autoconf option handling.
75938         (autoconf_minversion): Determine from the contents of configure.ac.
75939         (func_import): Remove autoconf_minversion handling.
75940         Suggested by Eric Blake.
75941
75942 2006-07-29  Bruno Haible  <bruno@clisp.org>
75943
75944         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75945
75946 2006-07-29  Bruno Haible  <bruno@clisp.org>
75947
75948         * config/srclist.txt (*setenv.[ch]): Remove rules.
75949
75950 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75951
75952         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75953
75954 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75955
75956         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75957         arpa/inet.h.
75958
75959 2006-07-28  Simon Josefsson  <jas@extundo.com>
75960
75961         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75962         * modules/inet_pton (Depends-on): Likewise.
75963
75964 2006-07-28  Simon Josefsson  <jas@extundo.com>
75965
75966         * m4/netinet_in_h.m4: New file.
75967
75968 2006-07-28  Simon Josefsson  <jas@extundo.com>
75969
75970         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75971         #include's.
75972
75973 2006-07-28  Simon Josefsson  <jas@extundo.com>
75974
75975         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75976         #include's.
75977
75978 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75981         setgid on directories only if they set these bits.
75982         * lib/modechange.h: Remove obsolete comment about masks.
75983
75984 2006-07-28  Eric Blake  <ebb9@byu.net>
75985
75986         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75987         macro expansion.
75988
75989 2006-07-28  Bruno Haible  <bruno@clisp.org>
75990
75991         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75992
75993 2006-07-28  Bruno Haible  <bruno@clisp.org>
75994
75995         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75996
75997 2006-07-28  Bruno Haible  <bruno@clisp.org>
75998
75999         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76000         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76001         Define fallbacks.
76002         Avoids link error on FreeBSD 4.x.
76003         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76004
76005         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76006         encoding.
76007         * lib/mbswidth.c (iswcntrl): Likewise.
76008
76009 2006-07-27  Bruno Haible  <bruno@clisp.org>
76010
76011         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76012         test.
76013
76014 2006-07-27  Bruno Haible  <bruno@clisp.org>
76015
76016         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76017         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76018         defined.
76019
76020 2006-07-26  Eric Blake  <ebb9@byu.net>
76021
76022         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76023
76024 2006-07-26  Eric Blake  <ebb9@byu.net>
76025
76026         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76027         like mingw that lack mkstemp.
76028         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76029         avoid compilation warning on mingw.
76030
76031 2006-07-26  Bruno Haible  <bruno@clisp.org>
76032
76033         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76034         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76035         INT_FAST*_MIN, INTPTR_MIN.
76036
76037 2006-07-25  Bruno Haible  <bruno@clisp.org>
76038
76039         * modules/version-etc (Depends-on): Add stdarg.
76040
76041 2006-07-25  Bruno Haible  <bruno@clisp.org>
76042
76043         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76044         complex commands.
76045
76046 2006-07-25  Bruno Haible  <bruno@clisp.org>
76047
76048         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76049         defined in <stdarg.h> or config.h.
76050
76051 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76054         (gl_STDIO_SAFER): Remove.
76055
76056 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76057
76058         * MODULES.html.sh (File stream based Input/Output):
76059         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76060         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76061         * modules/fopen-safer, modules/tmpfile-safer: New files.
76062         * modules/stdio-safer: Remove.
76063
76064 2006-07-24  Bruno Haible  <bruno@clisp.org>
76065
76066         * modules/tmpdir: New file.
76067         * MODULES.html.sh (File system functions): Add it.
76068
76069 2006-07-24  Bruno Haible  <bruno@clisp.org>
76070
76071         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76072         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76073
76074 2006-07-24  Bruno Haible  <bruno@clisp.org>
76075
76076         * modules/clean-temp: New file.
76077
76078 2006-07-24  Bruno Haible  <bruno@clisp.org>
76079
76080         * m4/tmpdir.m4: New file, from GNU gettext.
76081
76082 2006-07-24  Bruno Haible  <bruno@clisp.org>
76083
76084         * lib/tmpdir.h: New file, from GNU gettext.
76085         * lib/tmpdir.c: New file, from GNU gettext.
76086
76087 2006-07-24  Bruno Haible  <bruno@clisp.org>
76088
76089         * lib/clean-temp.h: New file, from GNU gettext.
76090         * lib/clean-temp.c: New file, from GNU gettext.
76091
76092 2006-07-23  Eric Blake  <ebb9@byu.net>
76093
76094         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76095         (Depends-on): Add binary-io.
76096
76097 2006-07-23  Eric Blake  <ebb9@byu.net>
76098
76099         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76100
76101 2006-07-23  Eric Blake  <ebb9@byu.net>
76102
76103         * lib/tmpfile-safer.c: New file.
76104         * lib/stdio-safer.h (fopen_safer): Add prototype.
76105         * lib/stdio--.h (tmpfile): Make safer.
76106
76107 2006-07-23  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76110         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76111         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76112         gl_linked_remove_at): Use it.
76113
76114 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76115         and Simon Josefsson <jas@extundo.com>
76116
76117         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76118
76119         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76120
76121 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * modules/close-stream: New file.
76124         * modules/closeout (Description): Make it clear that it exits
76125         with a diagnostic on error.
76126         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76127         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76128
76129 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76130
76131         * m4/close-stream.m4: New file.
76132
76133 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * lib/close-stream.c, lib/close-stream.h: New files.
76136
76137 2006-07-22  Bruno Haible  <bruno@clisp.org>
76138
76139         Merge from GNU gettext 0.15.
76140
76141         2006-05-01  Bruno Haible  <bruno@clisp.org>
76142
76143                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76144
76145         2006-07-22  Bruno Haible  <bruno@clisp.org>
76146
76147                 * modules/javaversion: New file.
76148                 * MODULES.html.sh (Java): Add javaversion.
76149
76150         2006-03-12  Bruno Haible  <bruno@clisp.org>
76151
76152                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76153
76154         2005-12-04  Bruno Haible  <bruno@clisp.org>
76155
76156                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76157                 (untested).
76158
76159         2006-06-21  Bruno Haible  <bruno@clisp.org>
76160
76161                 Avoid warnings from recent versions of mcs.
76162                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76163                 -o, -L, -r any more. Use options documented since mcs-1.0
76164                 instead. Similarly for -g.
76165
76166         2005-12-04  Bruno Haible  <bruno@clisp.org>
76167
76168                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76169                 .resources, not .resource.
76170
76171         2005-07-09  Bruno Haible  <bruno@clisp.org>
76172
76173                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76174                 add a .dll suffix.
76175                 Reported by Mark Junker <mjscod@gmx.de>.
76176
76177         2006-07-22  Bruno Haible  <bruno@clisp.org>
76178
76179                 * modules/gettext: Upgrade to gettext-0.15.
76180                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76181                 m4/visibility.m4.
76182                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76183
76184 2006-07-22  Bruno Haible  <bruno@clisp.org>
76185
76186         Merge from GNU gettext 0.15.
76187
76188         2006-03-25  Bruno Haible  <bruno@clisp.org>
76189
76190                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76191
76192         2006-07-21  Bruno Haible  <bruno@clisp.org>
76193
76194                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76195                 "1.1".
76196
76197         2006-05-09  Bruno Haible  <bruno@clisp.org>
76198
76199                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76200                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76201                 for the conftestver execution.
76202
76203         2006-05-01  Bruno Haible  <bruno@clisp.org>
76204
76205                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76206                 optional target-version argument. Verify that the compiler
76207                 groks source of the specified source-version, or add -source
76208                 option as necessary. Verify that the compiler produces
76209                 bytecode in the specified target-version, or add -target and
76210                 -source options as necessary. Make the result of the test
76211                 available as variable CONF_JAVAC. Also log error output in
76212                 config.log.
76213
76214         2006-03-11  Bruno Haible  <bruno@clisp.org>
76215
76216                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76217
76218         2006-05-09  Bruno Haible  <bruno@clisp.org>
76219
76220                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76221                 CLASSPATH_SEPARATOR to a semicolon.
76222
76223         2006-03-12  Bruno Haible  <bruno@clisp.org>
76224
76225                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76226                 available as variable CONF_JAVA, for subsequent autoconf
76227                 tests. Also log error output in config.log.
76228
76229         2006-07-19  Bruno Haible  <bruno@clisp.org>
76230
76231                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76232                 that getline works on glibc2 systems. Needed to avoid trouble
76233                 in relocatable.c.
76234                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76235
76236         2005-12-04  Bruno Haible  <bruno@clisp.org>
76237
76238                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76239                 launcher (untested).
76240
76241         2005-12-04  Bruno Haible  <bruno@clisp.org>
76242
76243                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76244
76245         2006-07-22  Bruno Haible  <bruno@clisp.org>
76246
76247                 * gettext.m4: Update from GNU gettext-0.15.
76248                 * nls.m4: Likewise.
76249                 * po.m4: Likewise.
76250                 * inttypes-pri.m4: Likewise.
76251                 * inttypes-h.m4: Renamed from inttypes.m4.
76252                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76253
76254 2006-07-22  Bruno Haible  <bruno@clisp.org>
76255
76256         Merge from GNU gettext 0.15.
76257
76258         2005-07-05  Bruno Haible  <bruno@clisp.org>
76259
76260                 * printf-args.c (printf_fetchargs): Work around broken
76261                 definition of wint_t on mingw.
76262
76263         2005-02-12  Bruno Haible  <bruno@clisp.org>
76264
76265                 * xallocsa.h: Add extern "C" for C++.
76266
76267         2006-05-17  Bruno Haible  <bruno@clisp.org>
76268
76269                 Cygwin portability.
76270                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76271
76272         2006-04-30  Bruno Haible  <bruno@clisp.org>
76273
76274                 * progreloc.c: Include <mach-o/dyld.h> if available.
76275                 (find_executable): Use _NSGetExecutablePath when possible.
76276
76277         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76278
76279                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76280                 function.
76281
76282         2005-12-29  Bruno Haible  <bruno@clisp.org>
76283
76284                 * progreloc.c (set_program_name_and_installdir): Fix
76285                 compilation error.
76286
76287         2005-12-04  Bruno Haible  <bruno@clisp.org>
76288
76289                 Cygwin portability.
76290                 * progreloc.c: Include <windows.h> also on Cygwin.
76291                 (find_executable): Add support for Cygwin.
76292                 (set_program_name_and_installdir): Handle also platforms with
76293                 nonempty EXEEXT.
76294
76295         2006-07-11  Bruno Haible  <bruno@clisp.org>
76296
76297                 * javacomp.c: Fix a comment.
76298                 Reported by Jim Meyering.
76299
76300         2006-04-30  Bruno Haible  <bruno@clisp.org>
76301
76302                 * javacomp.h (compile_java_class): Add source_version,
76303                 target_version arguments.
76304                 * javacomp.c: Rewritten to choose only a compiler that
76305                 respects the specified source_version and target_version.
76306
76307         2006-06-27  Bruno Haible  <bruno@clisp.org>
76308
76309                 Assume correct S_ISDIR macro.
76310                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76311
76312         2006-07-22  Bruno Haible  <bruno@clisp.org>
76313
76314                 * javaversion.h: New file, from GNU gettext.
76315                 * javaversion.c: New file, from GNU gettext.
76316                 * javaversion.java: New file, from GNU gettext.
76317                 * javaversion.class: New file, from GNU gettext.
76318
76319         2006-05-17  Bruno Haible  <bruno@clisp.org>
76320
76321                 Cygwin portability.
76322                 * javaexec.c (execute_java_class): Test for jview program
76323                 also on Cygwin.
76324
76325         2006-04-09  Bruno Haible  <bruno@clisp.org>
76326
76327                 * fatal-signal.c: Don't include string.h.
76328                 (at_fatal_signal): Use a copying loop instead of memcpy.
76329
76330         2005-12-04  Bruno Haible  <bruno@clisp.org>
76331
76332                 * csharpexec.c: Add support for 'clix' launcher (untested).
76333                 (execute_csharp_using_sscli): New function.
76334                 (execute_csharp_program): Call it.
76335
76336         2006-06-21  Bruno Haible  <bruno@clisp.org>
76337
76338                 Avoid warnings from recent versions of mcs.
76339                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76340                 -o, -L, -r any more. Use options documented since mcs-1.0
76341                 instead. Similarly for -g.
76342
76343         2005-07-09  Bruno Haible  <bruno@clisp.org>
76344
76345                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76346                 add a .dll suffix.
76347                 Reported by Mark Junker <mjscod@gmx.de>.
76348
76349         2006-06-17  Bruno Haible  <bruno@clisp.org>
76350
76351                 * config.charset: Update for NetBSD 3.0.
76352
76353         2006-05-17  Bruno Haible  <bruno@clisp.org>
76354
76355                 Cygwin portability.
76356                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76357
76358         2006-05-16  Bruno Haible  <bruno@clisp.org>
76359
76360                 * localcharset.c [CYGWIN]: Include <windows.h>.
76361                 (get_charset_aliases): For Cygwin, return the same CPxxx
76362                 aliases list as under WIN32.
76363                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76364                 the environment variables. Fall back to GetACP().
76365
76366         2006-04-05  Bruno Haible  <bruno@clisp.org>
76367
76368                 * config.charset: Update Juan Manuel Guerrero's address.
76369
76370         2005-02-12  Bruno Haible  <bruno@clisp.org>
76371
76372                 * allocsa.h: Add extern "C" for C++.
76373
76374         2005-02-10  Bruno Haible  <bruno@clisp.org>
76375
76376                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76377                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76378
76379         2006-07-22  Bruno Haible  <bruno@clisp.org>
76380
76381                 * gettext.h: Update to GNU gettext-0.15.
76382
76383 2006-07-22  Bruno Haible  <bruno@clisp.org>
76384
76385         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76386         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76387         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76388
76389 2006-07-21  Eric Blake  <ebb9@byu.net>
76390
76391         * modules/stdlib-safer: New file.
76392         * MODULES.html.sh (File stream based Input/Output): Add
76393         stdlib-safer.
76394
76395 2006-07-21  Eric Blake  <ebb9@byu.net>
76396
76397         * lib/stdlib-safer.h: New file from coreutils, required by
76398         stdlib--.h.
76399
76400 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76403
76404 2006-07-20  Bruno Haible  <bruno@clisp.org>
76405
76406         * gnulib-tool: Recognize new option --assume-autoconf.
76407         (autoconf_minversion): New variable.
76408         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76409
76410 2006-07-20  Bruno Haible  <bruno@clisp.org>
76411
76412         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76413
76414 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76415
76416         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76417         Reindent and repaginate.
76418
76419 2006-07-19  Derek Price  <derek@ximbiot.com>
76420
76421         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76422         Correct grammar.
76423
76424 2006-07-17  Bruno Haible  <bruno@clisp.org>
76425
76426         * modules/list: New file.
76427         * modules/array-list: New file.
76428         * modules/carray-list, modules/carray-list-tests: New files.
76429         * modules/linked-list, modules/linked-list-tests: New files.
76430         * modules/avltree-list, modules/avltree-list-tests: New files.
76431         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76432         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76433         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76434         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76435         * modules/oset: New file.
76436         * modules/array-oset: New file.
76437         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76438         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76439         * tests/test-carray_list.c: New file.
76440         * tests/test-linked_list.c: New file.
76441         * tests/test-avltree_list.c: New file.
76442         * tests/test-rbtree_list.c: New file.
76443         * tests/test-linkedhash_list.c: New file.
76444         * tests/test-avltreehash_list.c: New file.
76445         * tests/test-rbtreehash_list.c: New file.
76446         * tests/test-avltree_oset.c: New file.
76447         * tests/test-rbtree_oset.c: New file.
76448         * MODULES.html.sh (Container data structures): New section.
76449
76450 2006-07-17  Bruno Haible  <bruno@clisp.org>
76451
76452         * m4/gl_list.m4: New file.
76453
76454 2006-07-17  Bruno Haible  <bruno@clisp.org>
76455
76456         * lib/gl_list.h: New file.
76457         * lib/gl_list.c: New file.
76458         * lib/gl_array_list.h: New file.
76459         * lib/gl_array_list.c: New file.
76460         * lib/gl_carray_list.h: New file.
76461         * lib/gl_carray_list.c: New file.
76462         * lib/gl_linked_list.h: New file.
76463         * lib/gl_linked_list.c: New file.
76464         * lib/gl_anylinked_list1.h: New file.
76465         * lib/gl_anylinked_list2.h: New file.
76466         * lib/gl_avltree_list.h: New file.
76467         * lib/gl_avltree_list.c: New file.
76468         * lib/gl_anyavltree_list1.h: New file.
76469         * lib/gl_anyavltree_list2.h: New file.
76470         * lib/gl_rbtree_list.h: New file.
76471         * lib/gl_rbtree_list.c: New file.
76472         * lib/gl_anyrbtree_list1.h: New file.
76473         * lib/gl_anyrbtree_list2.h: New file.
76474         * lib/gl_anytree_list1.h: New file.
76475         * lib/gl_anytree_list2.h: New file.
76476         * lib/gl_linkedhash_list.h: New file.
76477         * lib/gl_linkedhash_list.c: New file.
76478         * lib/gl_anyhash_list1.h: New file.
76479         * lib/gl_anyhash_list2.h: New file.
76480         * lib/gl_avltreehash_list.h: New file.
76481         * lib/gl_avltreehash_list.c: New file.
76482         * lib/gl_rbtreehash_list.h: New file.
76483         * lib/gl_rbtreehash_list.c: New file.
76484         * lib/gl_anytreehash_list1.h: New file.
76485         * lib/gl_anytreehash_list2.h: New file.
76486
76487         * lib/gl_oset.h: New file.
76488         * lib/gl_oset.c: New file.
76489         * lib/gl_array_oset.h: New file.
76490         * lib/gl_array_oset.c: New file.
76491         * lib/gl_avltree_oset.h: New file.
76492         * lib/gl_avltree_oset.c: New file.
76493         * lib/gl_rbtree_oset.h: New file.
76494         * lib/gl_rbtree_oset.c: New file.
76495         * lib/gl_anytree_oset.h: New file.
76496
76497 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76498
76499         * m4/mkancesdirs.m4: New file.
76500         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76501         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76502         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76503         it.
76504
76505 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76508         * lib/mkancesdirs.h: New files.
76509         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76510         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76511         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76512         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76513         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76514         callers changed.  Revamp internals significantly, by not
76515         attempting to create directories that are temporarily more
76516         permissive than the final results.  Do not attempt to use
76517         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76518         This removes some race conditions, fixes some bugs, and simplifies
76519         things.  Use new dirchownmod function to do owner and mode changes.
76520         * lib/mkdir-p.h: Likewise.
76521         * lib/modechange.c (octal_to_mode): New function.
76522         (struct mode_change): New member mentioned.
76523         (make_node_op_equals): New arg mentioned.  All callers changed.
76524         (mode_compile): Keep track of which mode bits the user has explicitly
76525         mentioned.
76526         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76527         New arg PMODE_BITS, to keep track of which mode bits the user
76528         mentioned; it treats S_ISUID and S_ISGID speciall.
76529         All callers changed.
76530         * lib/modechange.h: Likewise.
76531
76532 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         * MODULES.html.sh: Add mkancestors.
76535         * modules/mkancesdirs: New module.
76536         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76537         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76538         The chdir-safer and afs files are now orphans; I'll remove them
76539         unless someone speaks up.
76540         Add lib/dirchownmod.c, lib/dirchownmod.h.
76541         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76542         Add lchown, mkancesdirs.
76543         (Maintainer): Add self.
76544
76545 2006-07-15  Karl Berry  <karl@gnu.org>
76546
76547         * gnulib-tool: help message wording/arrangement.
76548
76549 2006-07-14  Simon Josefsson  <jas@extundo.com>
76550
76551         * doc/gnulib.texi (Libtool and Windows): New section.
76552
76553 2006-07-12  Simon Josefsson  <jas@extundo.com>
76554
76555         * modules/gendocs (License): Fix license, approved by Karl.
76556
76557 2006-07-12  Eric Blake  <ebb9@byu.net>
76558
76559         * MODULES.html.sh: Add gendocs.
76560
76561 2006-07-11  Eric Blake  <ebb9@byu.net>
76562
76563         * modules/fdl: New module, to install doc/fdl.texi.
76564         * MODULES.html.sh: Add new section for documentation modules.
76565         * gnulib-tool: Avoid space-tab.
76566         (--doc-base): New option, to manage files from doc.
76567
76568 2006-07-11  Eric Blake  <ebb9@byu.net>
76569
76570         * m4/absolute-header.m4: Fix comments to match recent change.
76571
76572 2006-07-11  Eric Blake  <ebb9@byu.net>
76573
76574         * gnulib-tool: List --doc-base before --tests-base.
76575
76576 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76577
76578         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76579
76580 2006-07-11  Bruno Haible  <bruno@clisp.org>
76581
76582         * README: Mention where to put documentation.
76583
76584 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76585
76586         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76587
76588 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76591         to stdint.m4.
76592
76593 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76596         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76597         "no/such/file/stdint.h" when there is no such file, so that
76598         the resulting C code can be parsed by dodgy compilers.
76599         Problems reported by Bob Proulx.
76600
76601 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76602
76603         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76604         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76605         macros into the GNU _D_EXACT_NAMLEN.
76606         * lib/savedir.c:  Likewise.
76607         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76608
76609 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76610         and Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76613         * m4/savedir.m4:
76614         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76615         macros into the GNU _D_EXACT_NAMLEN.
76616
76617 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76620         around the absolute name, to work around a problem with the HP-UX
76621         11.23 native C compiler, reported by Bob Proulx.
76622
76623 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * doc/maintain.texi, make-stds.texi: Sync from
76626         <http://savannah.gnu.org/projects/gnustandards>.
76627
76628 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76629
76630         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76631
76632 2006-07-09  Jim Meyering  <jim@meyering.net>
76633
76634         * m4/glob.m4: Remove a doubled word in a comment.
76635
76636 2006-07-09  Jim Meyering  <jim@meyering.net>
76637
76638         * lib/argp-pv.c: Remove a doubled word in a comment.
76639         * lib/check-version.c (check_version): Likewise.
76640         * lib/javacomp.c (compile_java_class): Likewise.
76641
76642 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76645         for the benefit of people using Autoconf 2.60.  If you want to
76646         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76647         (or m4/onceonly.m4, if pre-2.57) manually.
76648
76649 2006-07-08  Jim Meyering  <jim@meyering.net>
76650
76651         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76652         comment.
76653         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76654         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76655         comment.
76656
76657 2006-07-08  Jim Meyering  <jim@meyering.net>
76658
76659         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76660
76661 2006-07-07  Simon Josefsson  <jas@extundo.com>
76662
76663         * tests/test-crc.c: Change expected crc value, the test vector
76664         were probably computed using the old broken crc.c?
76665
76666 2006-07-06  Simon Josefsson  <jas@extundo.com>
76667
76668         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76669         now the canonical place for the M4 file).
76670
76671         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76672         from the sys_socket dependency now.
76673
76674         * modules/inet_pton (Files): Ditto.
76675
76676         * modules/inet_ntop (Files): Ditto.
76677
76678 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76679
76680         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76681         not gl_PREREQ_GETUSERSHELL.
76682
76683 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76684
76685         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76686         with only one argument, for Autoconf 2.60.
76687         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76688         expand to nothing, so add a shell command to avoid syntax error.
76689         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76690
76691 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76692
76693         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76694
76695 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76698         no longer needed.  Check for isblank decl.
76699         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76700         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76701         of existence.
76702
76703 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         * lib/getloadavg.c: Use __VMS, not VMS.
76706         * lib/getopt.c: Likewise.
76707         * lib/getpagesize.h: Likewise.
76708         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76709         and probably does not work.
76710
76711 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         * lib/.cppi-disable: Add wcwidth.
76714         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76715         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76716         (ISGRAPH): Remove.  All uses changed to isgraph.
76717         (FOLD) [!defined _LIBC]: Remove special case.
76718         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76719         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76720         HAVE_ISBLANK.
76721         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76722         case.
76723
76724 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76725
76726         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76727         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76728         brackets.  Other minor changes to suppress some compiler
76729         warnings.
76730
76731 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76732         and Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76735         of invoking obsolescent AC_HEADER_DIRENT macro.
76736         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76737         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76738         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76739         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76740         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76741         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76742         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76743         * m4/readdir.m4: Remove; no longer needed.
76744
76745 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76746         and Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76749         Don't worry about this obsolete case any more.
76750         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76751         directories.
76752         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76753         worry about this obsolete case any more.
76754         * lib/fts.c: Likewise.
76755         * lib/getcwd.c: Likewise.
76756         * lib/glob.h: Likewise.
76757         * lib/savedir.c: Likewise.
76758
76759 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76762         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76763         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76764         needed.
76765         All uses removed.
76766         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76767         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76768         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76769         needed.
76770         * m4/getdate.m4 (gl_GETDATE): Likewise.
76771         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76772         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76773         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76774         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76775         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76777         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76778         needed.
76779
76780 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * lib/memcasecmp.c: Include <limits.h>.
76783         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76784         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76785         Don't assume isdigit succeeds only on '0' through '9'.
76786
76787 2006-07-05  Eric Blake  <ebb9@byu.net>
76788
76789         * modules/getaddrinfo (Depends-on): Add snprintf.
76790
76791 2006-07-05  Eric Blake  <ebb9@byu.net>
76792
76793         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76794         to avoid 'header present but could not be compiled' on cygwin.
76795
76796 2006-07-05  Eric Blake  <ebb9@byu.net>
76797
76798         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76799         missing from netdb.h.
76800         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76801
76802 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76803
76804         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76805         no longer needed.
76806         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76807         * m4/getdate.m4 (gl_GETDATE): Likewise.
76808         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76809         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76810         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76811         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76812         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76813
76814 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76815
76816         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76817         All uses of is_space replaced by isspace.
76818         * lib/exit.h: Don't talk about STDC_HEADERS.
76819         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76820         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76821         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76822         replaced by isprint etc.
76823         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76824         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76825         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76826         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76827         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76828         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76829
76830 2006-07-05  Bruno Haible  <bruno@clisp.org>
76831
76832         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76833         the function exists, before testing against AIX.
76834         Reported by Martin Lambers <marlam@marlam.de>.
76835
76836 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76837
76838         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76839         From Mark D. Baushke.
76840
76841 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76842
76843         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76844         to the absolute name, not just one, to bypass Sun C 5.8's
76845         "warning: #include of /usr/include/... may be non-portable".
76846
76847 2006-07-04  Eric Blake  <ebb9@byu.net>
76848
76849         * modules/dirname-tests: New test module.
76850         * tests/test-dirname.c: New file, replacing dirname.c
76851         TEST_DIRNAME section that was recently deleted.
76852
76853 2006-07-04  Bruno Haible  <bruno@clisp.org>
76854
76855         Assume ANSI C header files and <ctype.h> functions.
76856         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76857         (mbsnwidth): Use isprint, iscntrl instead.
76858
76859 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         Merge from coreutils.
76862         * MODULES.html.sh: Add xstrtold.
76863         * modules/xstrtold: New file.
76864         * modules/cycle-check (Files): Add lib/same-inode.h.
76865         * modules/dirname (Files): Add m4/double-slash-root.m4.
76866         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76867         * modules/mkdir-p (Files): Add lib/same-inode.h.
76868         * modules/same (Files): Add lib/same-inode.h.
76869
76870 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76873         This is to keep the terminology clean; POSIX talks about
76874         "absolute pathnames", not "full pathnames", but the GNU
76875         Coding Standards say to use "path" for something else;
76876         so use "absolute" to keep both sides happy.
76877         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76878         Set gl_absolute_header, not gl_full_header_path.
76879         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76880         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76881         All uses changed.
76882
76883         Merge from coreutils.
76884
76885         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76888         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76889         want to require the building of c-strtod.o.
76890         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76891         needs -lm directly.
76892         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76893
76894         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76895
76896         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76897         --as-needed option if available.  Problem reported by Albert Chin in
76898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76899         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76900         cc merely issues a bunch of annoying warnings for --as-needed
76901         (this problem was reported by Bob Proulx).  Also, try linking with
76902         -lm to detect a bug in binutils 2.16 (this problem was reported
76903         by Ralf Wildenhues).
76904
76905         2006-06-18  Jim Meyering  <jim@meyering.net>
76906
76907         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76908         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76909         macro.
76910         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76911         also check for glibc-2.4's abort-inducing bug.
76912
76913         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76914         Low-probability clean-up should be to use rmdir to get rid of
76915         the just-created directory, not unlink.
76916
76917         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76918         configure fail, and request a bug report to inform us about it.
76919         Add a comment that, barring reports to the contrary, in 2007 we'll
76920         assume ftruncate is universally available.
76921
76922         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76925
76926         2006-03-12  Jim Meyering  <jim@meyering.net>
76927
76928         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76929         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76930         * m4/same.m4 (gl_SAME): Likewise.
76931         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76932
76933         2006-03-11  Eric Blake  <ebb9@byu.net>
76934
76935         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76936         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76937         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76938         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76939
76940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76943         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76944         reported by Mark D. Baushke, one in
76945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76946
76947         Merge from coreutils.
76948
76949         * lib/.cppi-disable: Add stdint_.h.
76950         * lib/.cvsignore: Add stdint.h.
76951
76952         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76955         both double and long double versions.
76956         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76957         * lib/xstrtold.c: New file.
76958         * lib/xstrtod.h (xstrtold): New decl.
76959
76960         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * lib/filemode.c (setst): Remove.
76963         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76964         (arguably) clearer, and the generated code is a bit smaller on my
76965         Debian GNU/Linux stable x86 host.
76966
76967         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76970         Assume that filemode.h includes sys/types.h and sys/stat.h.
76971         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76972         (ftypelet): Reorder to put common cases first, for efficiency.
76973         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76974         to do 'M'.
76975         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76976         of 10, for compatibility with FreeBSD.  All callers changed.
76977         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76978         types that can't be deduced solely from st_mode.  First arg is now a
76979         const pointer.
76980         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76981         (strmode): Renamed from mode_string.
76982         (filemodestring): New decl.
76983         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76984         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76985         needed.
76986         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76987
76988         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76991         fsusage.h now does that.  Include fsusage.h first, to test interface.
76992         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76993         at most one method (the old code could have generated decls that
76994         didn't conform to C89, not that this was ever exercised).
76995         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76996
76997         2006-03-19  Jim Meyering  <jim@meyering.net>
76998
76999         Work even in a chroot where d_ino values for entries in "/"
77000         don't match the stat.st_ino values for the same names.
77001         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77002         number, iterate through all entries again, using lstat instead.
77003         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77004         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77005
77006         * lib/getcwd.c (__getcwd): Clarify a comment.
77007         Use memcpy in place of a call to strcpy.
77008
77009         2006-03-12  Jim Meyering  <jim@meyering.net>
77010
77011         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77012         matches that of the current directory (which we're about to chdir ".."
77013         out of), then save the dev-ino of the parent, instead.
77014
77015         * lib/same-inode.h (SAME_INODE): New file/macro.
77016         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77017         Include "same-inode.h", instead.
77018         * lib/same.c: Likewise.
77019         * lib/cycle-check.h: Include "same-inode.h".
77020         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77021         * lib/cycle-check.c (SAME_INODE): Remove definition.
77022         * lib/root-dev-ino.h: Include "same-inode.h".
77023
77024         2006-03-11  Eric Blake  <ebb9@byu.net>
77025
77026         * lib/same.c (same_name): s/base_name/last_component/
77027         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77028         * lib/filenamecat.c (file_name_concat): Likewise.
77029
77030         2006-03-11  Eric Blake  <ebb9@byu.net>,
77031                     Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77034         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77035         drive prefix.
77036         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77037         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77038         (last_component): New method.
77039         * lib/dirname.c (dir_len): Determine when drive letters need a
77040         subsequent slash.  Preserve // when it is special.
77041         (dir_name): Don't append dot when drive letter is absolute.
77042         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77043         * lib/basename.c (base_name): New semantics - malloc the result.
77044         Preserve // when it is special.  Preserve relative files that look
77045         like drive letters.
77046         (base_len): Preserve // when it is special.
77047         (last_component): New method, similar to old base_name semantics.
77048         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77049         base_name.  Strip redundant slashes from ///.
77050
77051 2006-07-03  Jim Meyering  <jim@meyering.net>
77052
77053         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77054         macro is used before the first cycle_check call.
77055
77056 2006-07-03  Eric Blake  <ebb9@byu.net>
77057
77058         * modules/dirname (Depends-on): Add xstrndup.
77059
77060 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77063         test cases, so that config.log is a bit easier to follow.
77064
77065 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77068         both are 64 bits, since this seems to be the tradition, and this
77069         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77070         we ever run into a host that prefers long long to long in this
77071         case, we'll need another configure-time test.  Problem reported by
77072         Jim Meyering.
77073
77074 2006-07-02  Eric Blake  <ebb9@byu.net>
77075
77076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77077
77078 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77079
77080         * modules/inttypes (Depends-on): No longer depends on stdint.
77081         * modules/stdint (Description): Say more about assumptions.
77082         Say that the fast types might differ.  Say macros are used.
77083         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77084         (Makefile.am): Revise list of substituted symbols to match
77085         new stdint.m4.
77086         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77087         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77088         * tests/test-stdint.c (verify_same_types)
77089         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77090         the code conforms to C99/C89.
77091         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77092         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77093
77094 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77097         but fix a bug, by requiring at least 64 bits.
77098         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77099         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77100         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77101         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77102
77103         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77104         changes.  Make 2.59 a prerequisite.  Check and substitute for
77105         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77106         inttypes.h.  Do not use special include files; just use the
77107         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77108         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77109         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77110         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77111         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77112         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77113         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77114         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77115         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77116         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77117         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77118         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77119         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77120         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77121         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77122         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77123         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77124         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77125         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77126         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77127         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77128         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77129         not check for things that C99 does not require, e.g., int8_t.  If
77130         a test isn't needed unless <stdint.h> isn't working, and is
77131         unlikely to be needed for any other reason, then don't do it
77132         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77133         size_t, since we assume C89 freestanding at least.  Do not check
77134         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77135         the right thing even if the types are not defined.  Instead use:
77136         (gl_STDINT_TYPE_PROPERTIES): New macro.
77137         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77138         testing whether <sys/types.h> clashes, as Autoconf does this for
77139         us now.  All uses removed.
77140         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77141         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77142         (gl_CHECK_TYPE_SAME):
77143         Remove; no longer needed.
77144         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77145         exists, since we'll return 0 anyway in that case.
77146         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77147
77148 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77151         possible collision with system files.
77152         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77153         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77154         WCHAR_MIN and WCHAR_MAX in this case.
77155         (<stddef.h>): Do not include; no longer needed.
77156         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77157         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77158         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77159         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77160         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77161         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77162         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77163         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77164         !defined(__c99))]: Include in this case too, since it's harmless
77165         now.
77166         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77167         dangerous to do so.
77168         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77169         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77170         (_STDINT_MIN, _STDINT_MAX): New macros.
77171         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77172         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77173         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77174         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77175         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77176         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77177         macros, not typedefs; this simplifies things quite a bit.
77178         Use long int for all types narrower than int64_t.
77179         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77180         Define in terms of long long int or int64_t or long int,
77181         not int64_t or int32_t.  This saves some compile-time testing.
77182         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77183         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77184         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77185         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77186         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77187         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77188         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77189         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77190         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77191         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77192         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77193         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77194         undef any previous version and define our own version, for
77195         simplicity and consistency with the new macros for types.
77196         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77197         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77198         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77199         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77200         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77201         @WINT_T_SUFFIX@ to keep things simple here.
77202         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77203         Simplify by assuming typical 8/16/32/64 host, since we're
77204         already doing that elsewhere anyway.
77205         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77206         and assume long long int is 64 bits if available.  This
77207         speeds up 'configure'.
77208
77209 2006-07-01  Eric Blake  <ebb9@byu.net>
77210
77211         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77212         Reported by Andreas Buening.
77213
77214 2006-07-01  Eric Blake  <ebb9@byu.net>
77215
77216         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77217
77218 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77219
77220         * lib/getaddrinfo.c: fixed typo
77221
77222 2006-06-29  Jim Meyering  <jim@meyering.net>
77223
77224         * modules/strftime (Maintainer): Add my name, since with the
77225         FPRINTFTIME changes strftime.c has forked from glibc.
77226
77227 2006-06-29  Eric Blake  <ebb9@byu.net>
77228
77229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77230
77231 2006-06-29  Eric Blake  <ebb9@byu.net>
77232
77233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77234
77235 2006-06-29  Eric Blake  <ebb9@byu.net>
77236
77237         * lib/stat_.h: New file.
77238
77239 2006-06-29  Eric Blake  <ebb9@byu.net>
77240
77241         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77242         unused static function.
77243
77244 2006-06-29  Eric Blake  <ebb9@byu.net>
77245
77246         * doc/functions.texi (Function Portability): Document missing lstat
77247         on mingw.
77248
77249 2006-06-29  Eric Blake  <ebb9@byu.net>
77250
77251         * MODULES.html.sh: Add sys_stat.
77252         * modules/sys_stat: New module.
77253         * modules/mkstemp (Depends-on): Add sys_stat.
77254
77255 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77256
77257         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77258
77259 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77260
77261         * m4/c-bs-a.m4: Removed.
77262
77263 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77264
77265         * lib/strftime.c: Assume strftime() exists.
77266
77267 2006-06-29  Derek Price  <derek@ximbiot.com>
77268
77269         * modules/c-bs-a: Removed - \a is C89.
77270         * MODULES.html.sh: Remove c-bs-a.
77271
77272 2006-06-29  Bruno Haible  <bruno@clisp.org>
77273
77274         * modules/wcwidth (License): Change to LGPL.
77275
77276 2006-06-28  Simon Josefsson  <jas@extundo.com>
77277
77278         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77279         on _WIN32.
77280
77281         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77282         getnameinfo.
77283
77284 2006-06-28  Simon Josefsson  <jas@extundo.com>
77285
77286         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77287
77288 2006-06-28  Simon Josefsson  <jas@extundo.com>
77289
77290         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77291         functions there.  It will succeed on Windows XP, but on Windows
77292         2000 and (presumably) earlier, it will fail, and use the internal
77293         re-implementation.
77294         (use_win32_p): New function.
77295         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77296         Support AI_NUMERICSERV to disable getservbyname.
77297         (getnameinfo): New function, only supports
77298         NI_NUMERICHOST|NI_NUMERICSERV for now.
77299
77300         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77301         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77302         getnameinfo.
77303
77304 2006-06-28  Eric Blake  <ebb9@byu.net>
77305
77306         * modules/wcwidth: New file.
77307         * modules/mbchar (Depends-on): Add wcwidth.
77308         * modules/mbswidth (Depends-on): Add wcwidth.
77309         * MODULES.html.sh: Add wcwidth.
77310
77311 2006-06-28  Eric Blake  <ebb9@byu.net>
77312
77313         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77315
77316 2006-06-28  Eric Blake  <ebb9@byu.net>
77317
77318         * lib/xvasprintf.h: Fix comments.
77319
77320 2006-06-28  Eric Blake  <ebb9@byu.net>
77321
77322         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77323         * lib/mbswidth.c (wcwidth): Move from here...
77324         * lib/wcwidth.h: ...to this new file.
77325
77326 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77327
77328         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77329
77330         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77331         it's obsolete.
77332         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77333
77334 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77335
77336         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77337         Autoconf 2.60 says this stuff was obsolete.
77338
77339 2006-06-28  Bruno Haible  <bruno@clisp.org>
77340
77341         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77342
77343 2006-06-28  Bruno Haible  <bruno@clisp.org>
77344
77345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77346         gt_TYPE_WCHAR_T.
77347
77348 2006-06-28  Bruno Haible  <bruno@clisp.org>
77349
77350         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77351         declaration for wcwidth.
77352         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77353
77354 2006-06-28  Bruno Haible  <bruno@clisp.org>
77355
77356         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77357         (mkdir): Define using _mkdir.
77358
77359 2006-06-28  Bruno Haible  <bruno@clisp.org>
77360
77361         * lib/getaddrinfo.h: Fix POSIX URL.
77362         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77363         _WIN32.
77364         (use_win32_p): Make static.
77365         (getaddrinfo): Reject service name if it is empty or does not consist
77366         solely of decimal digits, or if its value is > 65535.
77367         (getnameinfo): Remove useless casts.
77368
77369 2006-06-27  Simon Josefsson  <jas@extundo.com>
77370
77371         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77372         Eggert and Martin Lambers.
77373
77374 2006-06-27  Simon Josefsson  <jas@extundo.com>
77375
77376         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77377         Eggert and Martin Lambers.
77378
77379 2006-06-27  Bruno Haible  <bruno@clisp.org>
77380
77381         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77382         result to 0, not to empty.
77383         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77384
77385 2006-06-27  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77388
77389 2006-06-26  Simon Josefsson  <jas@extundo.com>
77390
77391         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77392         present.
77393
77394 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77397         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77399
77400 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77401
77402         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77403
77404 2006-06-26  Bruno Haible  <bruno@clisp.org>
77405
77406         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77407
77408 2006-06-26  Bruno Haible  <bruno@clisp.org>
77409
77410         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77411
77412 2006-06-26  Bruno Haible  <bruno@clisp.org>
77413
77414         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77415         SGI C compiler in pre-C99 mode.
77416         Suggested by Mark D. Baushke and Larry Jones.
77417
77418 2006-06-26  Bruno Haible  <bruno@clisp.org>
77419
77420         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77421         WCHAR_MAX.
77422         Reported by Mark D. Baushke and Larry Jones.
77423
77424 2006-06-26  Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77427         in pre-C99 mode.
77428         Suggested by Mark D. Baushke and Larry Jones.
77429
77430 2006-06-23  Simon Josefsson  <jas@extundo.com>
77431             Bruno Haible  <bruno@clisp.org>
77432
77433         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77434         Emit mostlyclean-local rule.
77435         (func_emit_tests_Makefile_am): Likewise.
77436         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77437
77438 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77439
77440         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77441
77442 2006-06-23  Bruno Haible  <bruno@clisp.org>
77443
77444         * tests/test-stdint.c: Update to match ISO C 99 Technical
77445         Corrigendum 1.
77446
77447 2006-06-23  Bruno Haible  <bruno@clisp.org>
77448
77449         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77450
77451 2006-06-23  Bruno Haible  <bruno@clisp.org>
77452
77453         * lib/stdint_.h: Treat IRIX like OpenBSD.
77454
77455 2006-06-23  Bruno Haible  <bruno@clisp.org>
77456
77457         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77458         ISO C 99 Technical Corrigendum 1.
77459
77460 2006-06-22  Simon Josefsson  <jas@extundo.com>
77461
77462         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77463         MinGW.
77464
77465 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77468         needed.  Some compiler complained about some of them.  Problem reported
77469         by Larry Jones in
77470         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77471
77472 2006-06-21  Simon Josefsson  <jas@extundo.com>
77473
77474         * tests/test-getaddrinfo.c: New file.
77475
77476         * modules/getaddrinfo-tests: New file.
77477
77478         * MODULES.html.sh: Add inet_pton.
77479
77480         * modules/inet_pton: New file.
77481
77482 2006-06-21  Simon Josefsson  <jas@extundo.com>
77483
77484         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77485         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77486         of using the (limited) gnulib implementation on Windows XP.
77487
77488         * m4/inet_pton.m4: New file.
77489
77490 2006-06-21  Simon Josefsson  <jas@extundo.com>
77491
77492         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77493         variable.
77494
77495         * lib/socket_.h: Don't define WINVER.
77496
77497         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77498         slightly modified to work in gnulib.
77499
77500 2006-06-21  Simon Josefsson  <jas@extundo.com>
77501
77502         * doc/gnulib.texi (Windows sockets): Add.
77503
77504 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         * lib/read-file.c (fread_file): Start with buffer allocation of
77507         0 bytes rather than 1 byte; this simplifies the code.
77508         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77509         code to free buffer and save/restore errno.
77510         (internal_read_file): Remove unused local.
77511
77512 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77513
77514         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77515         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77516         Problem reported by Denis Excoffier in
77517         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77518
77519 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77520
77521         * modules/sys_socket, modules/socklen: Include sys/types since
77522         FreeBSD 4.x's sys/socket.h needs it.
77523
77524 2006-06-19  Simon Josefsson  <jas@extundo.com>
77525
77526         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77527
77528 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77531
77532 2006-06-19  Bruno Haible  <bruno@clisp.org>
77533
77534         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77535         and FULL_PATH_INTTYPES_H in angle brackets.
77536         Reported by Mark D. Baushke <mdb@gnu.org>.
77537
77538 2006-06-17  Eric Blake  <ebb9@byu.net>
77539
77540         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77541         errno.
77542
77543 2006-06-17  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77546         <sys/inttypes.h>.
77547
77548 2006-06-17  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77551         whether errno is declared. Assume <errno.h> declares errno.
77552
77553 2006-06-17  Bruno Haible  <bruno@clisp.org>
77554
77555         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77556
77557 2006-06-17  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77560         problem on Solaris 2.5.1.
77561
77562 2006-06-16  Eric Blake  <ebb9@byu.net>
77563
77564         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77565         * lib/unicodeio.c [!defined errno]: Likewise.
77566         * lib/strtol.c [!defined errno]: Likewise.
77567         * lib/strtod.c [!defined errno]: Likewise.
77568
77569 2006-06-15  Eric Blake  <ebb9@byu.net>
77570
77571         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77572
77573 2006-06-15  Eric Blake  <ebb9@byu.net>
77574
77575         * config/srclist.txt (ssize_t.m4): Lose sync.
77576
77577 2006-06-15  Bruno Haible  <bruno@clisp.org>
77578
77579         * modules/stdint (Files): Include m4/full-header-path.m4,
77580         m4/size_max.m4, m4/wchar_t.m4.
77581         (Makefile.am): Many more substitutions.
77582         * modules/stdint-tests: New file.
77583         * tests/test-stdint.c: New file.
77584
77585 2006-06-15  Bruno Haible  <bruno@clisp.org>
77586
77587         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77588         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77589         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77590         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77591         gl_CHECK_TYPE_SAME): New macros.
77592
77593 2006-06-15  Bruno Haible  <bruno@clisp.org>
77594
77595         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77596
77597 2006-06-15  Bruno Haible  <bruno@clisp.org>
77598
77599         * lib/stdint_.h: Rewritten to be fully auto-configured.
77600         Fixes bug on HP-UX/IA64.
77601
77602 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77603
77604         * lib/getdate.y (__attribute__): Don't define if already defined.
77605         Problem reported by Larry Jones.
77606         * lib/utimens.c (__attribute__): Likewise.
77607
77608 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77611         reported by Andreas Schwab.
77612
77613 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77614             Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77617         check for the declaration of strnlen and a run test that exposes the
77618         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77619         rpl_strndup.
77620
77621 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77622             Bruno Haible  <bruno@clisp.org>
77623
77624         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77625
77626 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77627
77628         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77629         compile test, for Tru64 4.0D.
77630
77631 2006-05-28  Karl Berry  <karl@gnu.org>
77632
77633         * config/srclist.txt (printf-args.c): lose sync.
77634
77635 2006-05-26  Martin Lambers  <marlam@marlam.de>
77636
77637         * lib/getpass.c: Updates the test for the native W32 API, and adds
77638         missing includes, thus fixing compilation warnings.
77639
77640 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77641
77642         * lib/exclude.c (exclude_fnmatch): New function.
77643         (excluded_file_name): Call exclude_fnmatch.
77644         * lib/exclude.h (excluded_file_name): New prototype
77645
77646 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77647
77648         * lib/tempname.c (small_open, large_open): New macros.
77649         (__open, __open64) [!_LIBC]: Remove.
77650         (__gen_tempname): Use small_open and large_open instead of __open
77651         and __open64.  This fixes a portability bug on HP-UX 11.11i
77652         reported by Simon Wing-Tang in
77653         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77654
77655 2006-05-24  Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77658         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77659         Reported by Thorsten Maerz <torte@netztorte.de> via
77660         Aaron Stone <aaron@serendipity.cx>.
77661
77662 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77663
77664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77665         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77666         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77667         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77668         not really conditional on the cache.
77669         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77670
77671 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77674         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77675         (my_usleep): Don't mishandle maximum value.
77676
77677 2006-05-19  Jim Meyering  <jim@meyering.net>
77678
77679         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77680
77681 2006-05-17  Bruno Haible  <bruno@clisp.org>
77682
77683         Cygwin portability.
77684         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77685
77686 2006-05-17  Bruno Haible  <bruno@clisp.org>
77687
77688         * lib/stdint_.h: Fix recognition of Cygwin.
77689
77690 2006-05-15  Bruno Haible  <bruno@clisp.org>
77691
77692         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77693         on libtool patch by Ralf Wildenhues.
77694
77695 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77698         test for C99 conformance; (bool) 0.5 is an integer constant
77699         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77700         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77701
77702 2006-05-11  Simon Josefsson  <jas@extundo.com>
77703
77704         * m4/xvasprintf.m4: Fix obvious typo.
77705
77706 2006-05-11  Jim Meyering  <jim@meyering.net>
77707
77708         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77709         James Lemley.
77710
77711 2006-05-10  Simon Josefsson  <jas@extundo.com>
77712
77713         * lib/md4.c: Typo fix, update copyright years.
77714         (K1, K2): Don't use L because it turn computations into 64-bit on
77715         64-bit platforms.
77716
77717 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77720         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77721         unwanted sign propagation, e.g., on hosts with 64-bit int.
77722         There still are some problems with reeelly weird theoretical hosts
77723         (e.g., 33-bit int) but it's not worth worrying about now.
77724         * lib/sha1.c (rol): Likewise.
77725         (K1, K2, K3, K4): Remove unnecessary L suffix.
77726
77727 2006-05-10  Bruno Haible  <bruno@clisp.org>
77728
77729         * lib/des.c: Cast to avoid warnings.
77730
77731 2006-05-09  Bruno Haible  <bruno@clisp.org>
77732
77733         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77734         (Depends-on): Depend also on xsize, stdarg.
77735         (configure.ac): Add gl_XVASPRINTF.
77736
77737 2006-05-09  Bruno Haible  <bruno@clisp.org>
77738
77739         * m4/xvasprintf.m4: New file.
77740
77741 2006-05-09  Bruno Haible  <bruno@clisp.org>
77742
77743         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77744         (EOVERFLOW): Define fallback value.
77745         (xstrcat): New function.
77746         (xvasprintf): Recognize the special case of a string concatenation.
77747
77748 2006-05-08  Eric Blake  <ebb9@byu.net>
77749
77750         * gnulib-tool (func_version): Base copyright year on CVS date.
77751         (func_emit_copyright_notice): New function.
77752         (func_emit_lib_Makefile_am): Use it.
77753         (func_emit_tests_Makefile_am): Likewise.
77754         (func_import): Likewise.
77755
77756 2006-05-08  Bruno Haible  <bruno@clisp.org>
77757
77758         * modules/stdarg: New file.
77759         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77760
77761 2006-05-08  Bruno Haible  <bruno@clisp.org>
77762
77763         * m4/stdarg.m4: New file, from GNU gettext.
77764
77765 2006-05-08  Bruno Haible  <bruno@clisp.org>
77766
77767         * config/srclist.txt (build-aux/config.rpath): different from latest
77768         release.
77769
77770 2006-05-08  Bruno Haible  <bruno@clisp.org>
77771
77772         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77773
77774 2006-05-05  Jim Meyering  <jim@meyering.net>
77775
77776         * m4/warning.m4: New file, derived from bison's file by the same name.
77777
77778 2006-05-03  Bruno Haible  <bruno@clisp.org>
77779
77780         * lib/stdint_.h: Shorter URL.
77781         * lib/inttypes.h: Likewise.
77782
77783 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77786
77787 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * lib/verify.h: Document the internals better.  Most of this change
77790         was written by Bruno Haible.
77791
77792 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         * doc/verify.texi: New file, partly based on a proposal by
77795         Bruno Haible.
77796
77797 2006-05-02  Bruno Haible  <bruno@clisp.org>
77798
77799         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77800         test from here...
77801         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77802
77803 2006-04-29  Bruno Haible  <bruno@clisp.org>
77804
77805         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77806         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77807
77808 2006-04-29  Bruno Haible  <bruno@clisp.org>
77809
77810         * gnulib-tool: Make --update option actually work.
77811
77812 2006-04-29  Bruno Haible  <bruno@clisp.org>
77813
77814         * doc/gcd.texi: New file.
77815         * doc/gnulib.texi: Include it.
77816
77817 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * lib/getdate.y (get_date): When adding relative date, start with the
77820         initial time, not with the result of the first mktime call.
77821
77822 2006-04-25  Bruno Haible  <bruno@clisp.org>
77823
77824         * gnulib-tool (func_import): Output the include directives in three
77825         blocks, sorted separately.
77826         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77827
77828 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77831         to define main with arguments, for C++.  Reported by Eric Blake.
77832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77833         Prefer 'int main ()' to 'int main (void)', for C++.
77834         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77835         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77836         for 'main', for C99 and C++.
77837
77838 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77839
77840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77841         Don't assume that exit status -1 is valid.
77842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77843         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77844         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77845         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77846         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77847         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77848         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77849         functions can be used without declaring them, or that you can
77850         exit with status -1.
77851         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77852
77853 2006-04-24  Karl Berry  <karl@gnu.org>
77854
77855         * config/srclist.txt (longdouble.m4): sync lost.
77856
77857 2006-04-24  Eric Blake  <ebb9@byu.net>
77858
77859         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77860
77861 2006-04-24  Bruno Haible  <bruno@clisp.org>
77862
77863         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77864         poll() implementation in AIX.
77865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77866
77867 2006-04-24  Bruno Haible  <bruno@clisp.org>
77868
77869         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77870         assigned exactly once.
77871
77872 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77873             Bruno Haible  <bruno@clisp.org>
77874
77875         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77876         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77877         for AM_CPPFLAGS.
77878
77879 2006-04-23  Bruno Haible  <bruno@clisp.org>
77880
77881         * modules/copy-file: Depend on unistd.
77882         * modules/execute: Likewise.
77883         * modules/fatal-signal: Likewise.
77884         * modules/findprog: Likewise.
77885         * modules/mkdtemp : Likewise.
77886         * modules/pipe: Likewise.
77887         * modules/wait-process: Likewise.
77888
77889 2006-04-23  Bruno Haible  <bruno@clisp.org>
77890
77891         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77892         condition was already detected.
77893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77894
77895 2006-04-23  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/copy-file.c: Include <unistd.h> unconditionally.
77898         * lib/execute.c: Likewise.
77899         * lib/fatal-signal.c: Likewise.
77900         * lib/findprog.c: Likewise.
77901         * lib/mkdtemp.c: Likewise.
77902         * lib/pipe.h: Likewise.
77903         * lib/pipe.c: Likewise.
77904         * lib/wait-process.h: Likewise.
77905
77906 2006-04-23  Bruno Haible  <bruno@clisp.org>
77907
77908         * gnulib-tool (func_usage): Fix --import description. Document
77909         --update.
77910         (func_import): Create temporary file in a temporary directory, if
77911         --dry-run is specified. Silence errors from 'grep' when there are no
77912         m4 files in $m4dir.
77913         (func_create_testdir): Silence errors from 'grep' when there are no
77914         m4 files in $m4dir.
77915         Reported by Karl Berry <karl@freefriends.org>.
77916
77917 2006-04-20  Bruno Haible  <bruno@clisp.org>
77918
77919         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77920         one argument, so that the code will be portable to Autoconf 2.60.
77921         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77922         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77923         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77924
77925 2006-04-19  Derek Price  <derek@ximbiot.com>
77926             Eric Blake  <ebb9@byu.net>
77927
77928         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77929         rather than "/full/path.h".  Update comment to match.  Shorten &
77930         generalize m4_translit call via AS_TR_CPP.
77931
77932 2006-04-19  Derek Price  <derek@ximbiot.com>
77933             Eric Blake  <ebb9@byu.net>
77934
77935         * lib/inttypes.h: Correct grammar in comment.
77936
77937 2006-04-18  Derek Price  <derek@ximbiot.com>
77938             Paul Eggert  <eggert@cs.ucla.edu>
77939
77940         * modules/inttypes: New file.
77941         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77942
77943 2006-04-18  Derek Price  <derek@ximbiot.com>
77944             Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77947         New files.
77948
77949 2006-04-18  Derek Price  <derek@ximbiot.com>
77950             Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * lib/inttypes.h: New file.
77953         * lib/strtoimax.c: Assume <inttypes.h>.
77954
77955 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77958         isn't mounted.  Problem reported by Kir Kolyshkin.
77959
77960 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77963         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77964         Derek R. Price.
77965         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77966         implementation.
77967
77968 2006-04-12  Eric Blake  <ebb9@byu.net>
77969
77970         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77971         is now done automatically by the corresponding Autoconf macro.
77972
77973 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77974
77975         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77976         time_r.h.
77977
77978 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77979
77980         Merge regex changes from libc, removing some of our
77981         POSIX-conformance changes that were rejected and redoing them in a
77982         less-intrusive way.
77983
77984         * lib/regcomp.c (re_compile_internal, init_dfa):
77985         Length arg is now size_t, not Idx.  All uses changed.
77986         (peek_token): Forward decl now says internal_function.
77987         (__re_error_msgid, __re_error_msgid_idx):
77988         Now static rather than extern with attribute_hidden.
77989         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77990         For some reason libc prefers K&R style defns for external functions.
77991         (regerror) [!defined _LIBC]: Likewise.
77992         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77993         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77994         (build_range_exp, build_collating_symbol):
77995         Use K&R-style defn.
77996         (re_compile_fastmap): Use '\0' to memset, not 0.
77997         (utf8_sb_map): Make the calculations more obvious.
77998         (init_dfa, parse_bracket_exp, build_charclass_op):
77999         Call calloc and cast result, as glibc does.
78000         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78001         (build_range_exp, build_collating_symbol):
78002         Now internal functions.
78003
78004         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78005
78006         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78007         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78008         Don't depend on VMS; depend on __VMS instead, for POSIX
78009         namespace cleanness.
78010         (regoff_t): Define to ssize_t, not long int.
78011
78012         Remove the REG_ macros named below.  Instead, make the old names
78013         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78014         __USE_GNU_REGEX.
78015         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78016         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78017         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78018         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78019         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78020         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78021         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78022         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78023         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78024         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78025         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78026         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78027         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78028         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78029         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78030         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78031         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78032         (REG_NREGS):
78033         Remove.  All uses replaced by the old RE_* names.
78034         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78035         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78036         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78037         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78038         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78039         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78040         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78041         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78042         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78043         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78044         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78045         Don't bother having these macros be independent of each others'
78046         values, since they no longer exist in the POSIX name space.
78047
78048         Rename the following member names back to their old names,
78049         unless !__USE_GNU_REGEX.  All uses changed back.
78050         (buffer): Renamed from re_buffer.
78051         (allocated): Renamed from re_allocated.
78052         (used): Renamed from re_used.
78053         (syntax): Renamed from re_syntax.
78054         (fastmap): Renamed from re_fastmap.
78055         (translate): Renamed from re_translate.
78056         (can_be_null): Renamed from re_can_be_null.
78057         (regs_allocated): Renamed from re_regs_allocated.
78058         (fastmap_accurate): Renamed from re_fastmap_accurate.
78059         (no_sub): Renamed from re_no_sub.
78060         (not_bol): Renamed from re_not_bol.
78061         (not_eol): Renamed from re_not_eol.
78062         (newline_anchor): Renamed from re_newline_anchor.
78063         (num_regs): Renamed from rm_num_regs.
78064         (start): Renamed from rm_start.
78065         (end): Renamed from rm_end.
78066
78067         (free_state): Move up a bit.
78068
78069         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78070         #define to be empty.
78071         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78072         when that is what is intended.
78073         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78074         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78075         (MAX): New macro.
78076         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78077         All uses changed back to re_malloc, etc.  It's now the caller's
78078         responsibility to check for overflow; all callers changed.
78079         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78080         (re_x2nrealloc): Remove.
78081         (free_state): Remove decl.
78082
78083         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78084         (re_set_registers, re_exec):
78085         Use K&R-style defn.
78086
78087         2006-01-31  Roland McGrath  <roland@redhat.com>
78088
78089         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78090         Reported by Mike Frysinger <vapier@gentoo.org>.
78091
78092         2006-01-15  Andreas Jaeger  <aj@suse.de>
78093
78094         [BZ #1950]
78095         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78096         build_wcs_upper_buffer change.
78097         (build_wcs_upper_buffer): Change return type.
78098
78099         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78100
78101         * lib/regex_internal.h: Include <stdint.h> if available.
78102
78103         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78104
78105         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78106
78107         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78108
78109         * lib/regcomp.c: Adjust for changed secondary hash function.
78110
78111         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78112
78113         * lib/regex.h: Pretty printing.
78114         Clean up namespace a bit.
78115
78116         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78117
78118         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78119         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78120
78121         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78122                     Ulrich Drepper  <drepper@redhat.com>
78123
78124         [BZ #1302]
78125         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78126         changed.
78127         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78128
78129         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78130
78131         [BZ #281]
78132         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78133         * lib/regcomp.c: Remove unnecessary uses of
78134         unsigned RE_TRANSLATE_TYPE.
78135         * lib/regex_internal.h: Likewise.
78136         * lib/regex_internal.c: Likewise.
78137         * lib/regexec.c: Likewise.
78138         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78139
78140         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78141
78142         * lib/regexec.c (find_recover_state): Remove unnecessary
78143         initialization.
78144         (transit_state_bkref): Make DFA a const pointer.
78145         (get_subexp): Likewise.
78146         (check_arrival): Likewise.
78147         (update_cur_sifted_state): Likewise.
78148         (re_search_internal): Likewise.
78149         (prune_impossible_nodes): Likewise.
78150         (acquire_init_state_context): Likewise.
78151         (proceed_next_node): Likewise.
78152         (set_regs): Likewise.
78153         (free_fail_stack_return): Likewise.
78154         (check_arrival_expand_ecl): Mark DFA parameter as const.
78155         (check_arrival_expand_ecl_sub): Likewise.
78156         (check_subexp_limits): Likewise.
78157         (sub_epsilon_src_nodes):  Likewise.
78158         (add_epsilon_src_nodes):  Likewise.
78159         (merge_state_array): Likewise.
78160         (update_regs): Likewise.
78161         (build_trtable): Likewise.
78162         (sift_states_backward): Mark MCTX parameter as const.
78163         (build_sifted_states): Likewise.
78164         (update_cur_sifted_state): Likewise.
78165         (sift_states_mkref): Likewise.
78166         (check_arrival_expand_ecl): Mark eclosure as const.
78167         (check_dst_limits_calc_pos_1): Likewise.
78168         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78169         pointer.
78170
78171         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78172
78173         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78174         (transit_state_sb): Likewise.
78175         (transit_state_mb): Likewise.
78176         (sift_states_iter_mb): Likewise.
78177         (check_arrival_add_next_nodes): Likewise.
78178         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78179         [_LIBC] (re_search_2_stub): Use mempcpy.
78180
78181         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78182         mbrtowc for very simple UTF-8 case.
78183
78184         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78185         a pointer-to-const.
78186         (re_acquire_state_context): Likewise.
78187         * lib/regex_internal.h: Adjust prototypes.
78188
78189         * lib/regex.c: Prevent using C++ compilers.
78190
78191         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78192         (re_acquire_state_context): Likewise.
78193
78194 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * modules/regex (Depends-on): Add ssize_t.
78197
78198 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78201         translation table.
78202
78203 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78206
78207 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78208             Bruno Haible  <bruno@clisp.org>
78209
78210         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78211         <sys/types.h> and <inttypes.h>.
78212
78213 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78214
78215         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78216         `__error_t_defined', so argp.h will not typedef the former.
78217
78218 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78221         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78222         glibc names.  Even if glibc is changed to conform to POSIX, the
78223         traditional names will be available anyway, since regex depends on
78224         the extensions module.  Also, fix a longstanding typo in the
78225         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78226         reported by Emanuele Giaquinta.  Also, change sense of cached
78227         variable, so that the message makes sense.
78228
78229 2006-03-24  Simon Josefsson  <jas@extundo.com>
78230
78231         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78232         including some doc fixes.
78233         (base64_encode_alloc): Fix +1 bug on allocation failures.
78234
78235 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78236
78237         * lib/base64.c (base64_encode): Do not read past end of array with
78238         unsanitized input on systems with CHAR_BIT > 8.
78239
78240 2006-03-24  Eric Blake  <ebb9@byu.net>
78241
78242         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78243
78244 2006-03-22  Karl Berry  <karl@gnu.org>
78245
78246         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78247         * config/srclistvars.sh (COREUTILS): new var.
78248
78249 2006-03-17  Jim Meyering  <jim@meyering.net>
78250
78251         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78252         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78253
78254 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78257         no longer needs it.  Instead, check that regoff_t is as least
78258         as wide as ptrdiff_t.
78259
78260         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78261         so that our regex.h stays compatible with the installed regex.
78262         This is helpful for installers who configure --without-included-regex.
78263         Problem reported by Emanuele Giaquinta.
78264
78265 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78266
78267         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78268         Typedef to long int, not to off_, as POSIX will likely change
78269         in that direction.
78270
78271 2006-03-15  Eric Blake  <ebb9@byu.net>
78272
78273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78274
78275 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78276
78277         * lib/argp-help.c (validate_uparams): Fix typo
78278         * lib/argp-parse.c (argp_default_options): Consistently begin help
78279         messages with a lowercase letter.
78280
78281 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78282
78283         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78284         overrun buffers and shouldn't be used (much as gets shouldn't be
78285         used).
78286         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78287
78288 2006-03-08  Simon Josefsson  <jas@extundo.com>
78289
78290         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78291         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78292
78293 2006-03-08  Simon Josefsson  <jas@extundo.com>
78294
78295         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78296         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78297
78298 2006-03-08  Simon Josefsson  <jas@extundo.com>
78299
78300         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78301         signal that configure disabled the device.
78302
78303 2006-03-08  Simon Josefsson  <jas@extundo.com>
78304
78305         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78306         languages.
78307
78308 2006-03-07  Simon Josefsson  <jas@extundo.com>
78309
78310         * modules/getopt (Depends-on): Add unistd.
78311
78312         * modules/unistd: New file.
78313
78314 2006-03-07  Simon Josefsson  <jas@extundo.com>
78315
78316         * modules/gc-random: New file.
78317
78318 2006-03-07  Simon Josefsson  <jas@extundo.com>
78319
78320         * m4/unistd_h.m4: New file.
78321
78322 2006-03-07  Simon Josefsson  <jas@extundo.com>
78323
78324         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78325         test to be side-effect free by storing the result in the cache
78326         variable gl_cv_lib_readline, and moving the assignment of
78327         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78328         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78329
78330 2006-03-07  Simon Josefsson  <jas@extundo.com>
78331
78332         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78333         error on missing devices (the functions will return an error).
78334
78335         * m4/gc.m4: Move random stuff to gc-random.m4
78336
78337 2006-03-07  Simon Josefsson  <jas@extundo.com>
78338
78339         * lib/unistd_.h: New file.
78340
78341 2006-03-07  Simon Josefsson  <jas@extundo.com>
78342
78343         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78344
78345 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78348         Problem reported by Juan Manuel Guerrero.
78349
78350 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78353         the unistd module.
78354         * lib/getlogin_r.c: Likewise.
78355         * lib/getlogin_r.h: Likewise.
78356         * lib/glob.c: Likewise.
78357         * lib/pagealign_alloc.c: Likewise.
78358         * lib/unistd_.h: Remove; no longer needed.
78359
78360 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78361
78362         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78363         Add unistd.
78364         * modules/c-stack (Depends-on): Add unistd.
78365         * modules/getlogin_r: Likewise.
78366         * modules/glob: Likewise.
78367         * modules/pagealign_alloc: Likewise.
78368         * modules/unistd (Files): Remove lib/unistd_.h.
78369         (EXTRA_DIST): Remove.
78370         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78371         need unistd_.h.
78372         (MOSTLYCLEANFILES): Remove unistd.h-t.
78373
78374 2006-03-03  Simon Josefsson  <jas@extundo.com>
78375
78376         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78377
78378 2006-03-03  Simon Josefsson  <jas@extundo.com>
78379
78380         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78381         libidn and bison.
78382
78383 2006-03-03  Simon Josefsson  <jas@extundo.com>
78384
78385         * build-aux/maint.mk: Add indent target.
78386
78387 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78388
78389         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78390         our replacement poll.h in any case, to avoid a differing
78391         declaration from a system header.  Seen on AIX.
78392
78393 2006-03-01  Simon Josefsson  <jas@extundo.com>
78394
78395         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78396         <kasal@ucw.cz>.
78397
78398 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * modules/gettime (Depends-on): Add extensions module.
78401         * modules/nanosleep (Depends-on): Likewise.
78402         * modules/settime (Depends-on): Likewise.
78403
78404 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78407         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78408         pedantically.
78409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78410         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78411
78412         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78413         not "==".  Reported by Ralf Wildenhues.
78414
78415 2006-03-01  Karl Berry  <karl@gnu.org>
78416
78417         * doc/Copyright/request-*: new files, synced from gnuorg.
78418
78419 2006-03-01  Karl Berry  <karl@gnu.org>
78420
78421         * config/srclist.txt (Copyright/*): new entries.
78422
78423 2006-02-28  Simon Josefsson  <jas@extundo.com>
78424
78425         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78426
78427 2006-02-27  Simon Josefsson  <jas@extundo.com>
78428
78429         * lib/base64.h: Indent #define's.  From Jim Meyering
78430         <jim@meyering.net>.
78431
78432 2006-02-27  Jim Meyering  <jim@meyering.net>
78433
78434         Revert the change of 2006-02-24, so these files can continue
78435         to be sync'd from gettext.
78436         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78437         of `config.h'.
78438
78439 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * modules/intprops: New file.
78442         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78443         Add intprops.
78444         * modules/getloadavg (Files): Remove lib/intprops.h.
78445         (Depends-on): Add intprops.
78446         * modules/human: Likewise.
78447         * modules/inttostr: Likewise.
78448         * modules/openat: Likewise.
78449         * modules/sig2str: Likewise.
78450         * modules/userspec: Likewise.
78451         * modules/utimecmp: Likewise.
78452         * modules/xnanosleep: Likewise.
78453         * modules/xstrtol: Likewise.
78454
78455 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78456
78457         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78458         * modules/lock-tests (TESTS): Use $(EXEEXT).
78459         * modules/tls-tests: Likewise.
78460         * modules/argp-tests: Likewise.
78461         (check_PROGRAMS): New var, replacing...
78462         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78463
78464 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78465
78466         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78467         `config.h'.
78468
78469 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78472
78473 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78474
78475         Sync from coreutils.
78476         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78477         gl_CHDIR_SAFER.
78478
78479 2006-02-22  Jim Meyering  <jim@meyering.net>
78480
78481         Sync from coreutils.
78482         * m4/chdir-safer.m4: New file.
78483
78484 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78487         AT_FDCWD exceeds INT_MAX.
78488         * lib/openat.h (AT_FDCWD): Likewise.
78489
78490 2006-02-17  Eric Blake  <address@hidden>
78491
78492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78493
78494 2006-02-16  Simon Josefsson  <jas@extundo.com>
78495
78496         * modules/getaddrinfo (Depends-on): Add sys_socket.
78497
78498 2006-02-15  Simon Josefsson  <jas@extundo.com>
78499
78500         * build-aux/maint.mk: Add dsyntax-check rule.
78501
78502 2006-02-15  Eric Blake  <ebb9@byu.net>
78503
78504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78505         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78506         'present but cannot compile' warnings on cygwin.
78507         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78508         use ws2tcpip.h if sys/socket.h works.
78509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78510         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78511
78512 2006-02-14  Simon Josefsson  <jas@extundo.com>
78513
78514         * modules/maintainer-makefile (Files): Rename.
78515
78516         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78517         and (the local) Makefile.cfg to maint-cfg.mk.
78518
78519         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78520         to the latter.
78521
78522         * modules/maintainer-makefile: New module.
78523
78524         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78525         severaly stripped to make it possible to build it up from scratch
78526         with reliable tests.
78527
78528         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78529         fixes to permit overriding the default actions when configure and
78530         makefile are not available.
78531
78532 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         Sync from coreutils.
78535         * modules/lstat (Depends-on): Don't depend on xalloc.
78536         (License): Change from GPL to LGPL, since this is now simply a
78537         replacement for a libc function.
78538
78539 2006-02-14  Jim Meyering  <jim@meyering.net>
78540
78541         Sync from coreutils.
78542
78543         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78544         failure on deficient systems, and simplify gnulib lgpl dependencies.
78545         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78546         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78547
78548         * lib/xalloc-die.c: Remove unused definition of N_.
78549
78550 2006-02-14  Jim Meyering  <jim@meyering.net>
78551
78552         Sync from coreutils.
78553         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78554         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78555         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78556         double-quote uses of that variable, to accommodate the rare case in
78557         which getmntent is available in none of the libraries checked.  This
78558         happens at least on FreeBSD 5.0.
78559
78560 2006-02-13  Simon Josefsson  <jas@extundo.com>
78561
78562         * gnulib-tool (Usage): Fix --import, from
78563         karl@freefriends.org (Karl Berry).
78564
78565 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78566
78567         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78568
78569 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78570
78571         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78572         "autoupdate" on 2005-12-12.
78573
78574 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * modules/closeout (Depends-on): Remove atexit.
78577
78578 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78581         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78582
78583 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78586         __EXTENSIONS__ if this causes compilation to fail.  Problem
78587         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78588         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78589
78590 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78593         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78595         All uses changed.
78596
78597 2006-01-26  Simon Josefsson  <jas@extundo.com>
78598
78599         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78600         prototype is visible on mingw32.
78601
78602         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78603         for mingw32.
78604
78605         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78606         mingw32).
78607
78608 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78609
78610         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78611         attempt to open for write; this always fails, at least on POSIX
78612         hosts.  This reinstates the 2006-01-09 change, which was
78613         inadvertently removed.
78614
78615 2006-01-26  Bruno Haible  <bruno@clisp.org>
78616
78617         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78618         Reported by Paul Eggert.
78619
78620 2006-01-26  Bruno Haible  <bruno@clisp.org>
78621             Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * lib/stdbool_.h (_Bool)
78624         [(! (defined __cplusplus || defined __BEOS__)
78625           && !defined __GNUC__
78626           && !(defined __HP_cc || defined __xlc__
78627                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78628                || defined __sgi))]:
78629         #define to signed char in these cases too; this simplifies
78630         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78631         etc., separately) and makes it more conservative.
78632
78633 2006-01-25  Simon Josefsson  <jas@extundo.com>
78634
78635         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78636         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78637         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78638
78639 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78640
78641         * lib/argp-namefrob.h: Bugfix. Remove stray #
78642
78643 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78646         so that we test the test.
78647         Check for yet another HP-UX cc bug involving *bool |= bool.
78648
78649 2006-01-25  Karl Berry  <karl@gnu.org>
78650
78651         * config/srclist.txt (vasnprintf.c): sync lost.
78652
78653 2006-01-25  Jim Meyering  <jim@meyering.net>
78654
78655         Sync from the stable (b5) branch of coreutils:
78656
78657         * lib/fts.c (fts_children): Don't let close() clobber errno from
78658         failed fchdir().
78659
78660         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78661         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78662         a dangling symlink.  That can also happen at least for ELOOP.
78663         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78664         FYI, this bug predates the inclusion of fts.c in coreutils.
78665
78666         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78667         in their own block, so pre-c99 compilers don't object.
78668
78669         Avoid the double-free (first in fts_read, second in fts_close) that
78670         would occur when an `active' directory is made inaccessible (e.g.,
78671         via chmod a-x) during a traversal.
78672         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78673         before returning.  Reproduce this failure by
78674         mkdir -p a/b; cd a; chmod a-x . b
78675         Reported by Stavros Passas.
78676
78677 2006-01-25  Jim Meyering  <jim@meyering.net>
78678
78679         * lib/fileblocks.c: Remove more useless parentheses.
78680         * lib/readutmp.h: Likewise.
78681
78682 2006-01-25  Bruno Haible  <bruno@clisp.org>
78683
78684         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78685         warnings.
78686         Reported by Paul Eggert.
78687
78688 2006-01-25  Bruno Haible  <bruno@clisp.org>
78689
78690         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78691         rid of a trap command. For Solaris sh.
78692         Reported by Mark D. Baushke <mdb@gnu.org>.
78693
78694 2006-01-24  Simon Josefsson  <jas@extundo.com>
78695
78696         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78697         Bruno.
78698
78699 2006-01-24  Karl Berry  <karl@gnu.org>
78700
78701         * config/srclist.txt (argp-namefrob.h): sync lost.
78702
78703 2006-01-24  Jim Meyering  <jim@meyering.net>
78704
78705         * modules/openat (Files): Add lib/intprops.h.
78706         From Mark D. Baushke.
78707
78708 2006-01-24  Jim Meyering  <jim@meyering.net>
78709
78710         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78711         Reported by Mark D. Baushke.
78712
78713 2006-01-24  Jim Meyering  <jim@meyering.net>
78714
78715         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78716
78717 2006-01-24  Bruno Haible  <bruno@clisp.org>
78718
78719         * modules/strnlen (Maintainer): Change from glibc to all.
78720
78721 2006-01-24  Bruno Haible  <bruno@clisp.org>
78722
78723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78724         Patch by Paul Eggert.
78725
78726 2006-01-24  Bruno Haible  <bruno@clisp.org>
78727
78728         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78729         already has it.
78730         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78731         2005-11-26.
78732
78733         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78734         'signed char' to avoid problems with the built-in _Bool type.
78735         Reported by Paul Eggert on 2005-11-26.
78736
78737 2006-01-24  Bruno Haible  <bruno@clisp.org>
78738
78739         * gnulib-tool (func_import): Avoid constructing complicated sed
78740         expressions inside backquote.
78741         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78742
78743 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78744
78745         These changes imported from libc.
78746         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78747         test and two separate function calls.
78748         * lib/strndup.c (__strndup): Add libc_hidden_def.
78749
78750 2006-01-23  Simon Josefsson  <jas@extundo.com>
78751
78752         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78753         Remove the test_*_SOURCES variable: automake infers it by default.
78754         * modules/tls-tests: Likewise.
78755
78756 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         Work around porting bugs reported by Dieter in
78759         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78760         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78761         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78762         Include "getopt.h" first, to check interface.
78763         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78764         !HAVE_DECL_GETENV.
78765         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78766         (__strndup): Revert to K&R-style function dfns, the glibc style.
78767         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78768         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78769         Include strnlen.h first, to get prototype properly.
78770         (strnlen): Renamed from __strnlen.
78771         Remove weak alias.
78772
78773 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78776
78777 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * config/srclist.txt: Adjust to reflect glibc reorganization.
78780         This affects only comments.
78781
78782 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78783
78784          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78785          Reported by Bruce Korb <bkorb@gnu.org>.
78786
78787 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78790         to pacify gcc -Wswitch-default.
78791
78792 2006-01-22  Bruno Haible  <bruno@clisp.org>
78793
78794         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78795         temporary buffer for sprintf, take into account the precision also
78796         for 'd', 'i', 'u', 'o', 'x', 'X'.
78797
78798 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78799
78800         * modules/argp-tests: New module
78801         * tests/test-argp.c: New file
78802         * tests/test-argp-2.sh: New file
78803
78804 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78805
78806         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78807         (__argp_base_name): Removed
78808         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78809         typo.
78810         (__argp_base_name): Provide macro definition or extern declaration
78811         depending on the configuration
78812
78813 2006-01-20  Simon Josefsson  <jas@extundo.com>
78814
78815         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78816
78817 2006-01-20  Simon Josefsson  <jas@extundo.com>
78818
78819         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78820
78821 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78824         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78825         Suggested by Bruno Haible.
78826
78827 2006-01-20  Karl Berry  <karl@gnu.org>
78828
78829         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78830         until changes propagate, I guess.
78831
78832 2006-01-19  Simon Josefsson  <jas@extundo.com>
78833
78834         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78835
78836 2006-01-19  Simon Josefsson  <jas@extundo.com>
78837
78838         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78839
78840 2006-01-19  Simon Josefsson  <jas@extundo.com>
78841
78842         * gnulib-tool: Set check_PROGRAMS.
78843
78844         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78845         modules/des-tests, modules/gc-arcfour-tests,
78846         modules/gc-arctwo-tests, modules/gc-des-tests,
78847         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78848         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78849         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78850         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78851         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78852         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78853         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78854         test_*_SOURCES.
78855
78856 2006-01-18  Simon Josefsson  <jas@extundo.com>
78857
78858         * modules/socklen (Depends-on): Depend on sys_socket.
78859
78860 2006-01-18  Simon Josefsson  <jas@extundo.com>
78861
78862         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78863         modules/des-tests, modules/gc-arcfour-tests,
78864         modules/gc-arctwo-tests, modules/gc-des-tests,
78865         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78866         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78867         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78868         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78869         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78870         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78871         $(EXEEXT) to automake TESTS variable, for mingw32.
78872
78873 2006-01-17  Simon Josefsson  <jas@extundo.com>
78874
78875         * modules/socklen (Include): Need sys/socket.h.
78876
78877 2006-01-17  Bruno Haible  <bruno@clisp.org>
78878
78879         * modules/ssize_t (Include): Add <sys/types.h>.
78880
78881 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78884         it's not portable and it doesn't work with cross-compiles.
78885         Problem reported by Bruno Haible.  Fix missing-$ typo in
78886         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78887         -zignore from being used with Sun's C compiler.
78888
78889 2006-01-12  Simon Josefsson  <jas@extundo.com>
78890
78891         * lib/base64.c: Fix warning, reported by Bruno Haible
78892         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78893
78894 2006-01-12  Bruno Haible  <bruno@clisp.org>
78895
78896         * modules/ldd: New file.
78897         * build-aux/ldd.sh.in: New file.
78898         * MODULES.html.sh (Support for building libraries and executables): Add
78899         ldd.
78900
78901 2006-01-12  Bruno Haible  <bruno@clisp.org>
78902
78903         * m4/ldd.m4: New file.
78904
78905 2006-01-12  Bruno Haible  <bruno@clisp.org>
78906
78907         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78908         endless loop while replacing $auxdir with build-aux.
78909
78910 2006-01-11  Simon Josefsson  <jas@extundo.com>
78911
78912         * lib/stdint_.h (SIZE_MAX): Add missing (.
78913
78914 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         Sync from coreutils.
78917         * lib/md5.c: Fix commentary typos.
78918         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78919         * lib/md5.h (__attribute__): Remove; unused.
78920         * lib/sha1.c: Fix commentary to match md5 better.
78921         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78922         so that we don't need to worry about alignment.  All uses changed.
78923         This merges the 2005-10-28 md5 change into sha1.
78924
78925 2006-01-11  Jim Meyering  <jim@meyering.net>
78926
78927         Sync from coreutils.
78928         * lib/md5.c (OP): Fix spacing.
78929
78930 2006-01-11  Bruno Haible  <bruno@clisp.org>
78931
78932         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78933         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78934         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78935
78936 2006-01-11  Bruno Haible  <bruno@clisp.org>
78937
78938         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78939         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78940         the "early" section as well.
78941
78942 2006-01-11  Bruno Haible  <bruno@clisp.org>
78943
78944         Avoid "ar: no archive members specified" error on MacOS X.
78945         * gnulib-tool (func_modules_add_dummy): New function.
78946         (func_import, func_create_testdir): Invoke it.
78947
78948 2006-01-11  Bruno Haible  <bruno@clisp.org>
78949
78950         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78951         with $auxdir in AC_CONFIG_FILES statements.
78952
78953 2006-01-11  Bruno Haible  <bruno@clisp.org>
78954
78955         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78956         Initialize also noinst_HEADERS to empty.
78957
78958 2006-01-11  Bruno Haible  <bruno@clisp.org>
78959
78960         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78961         variables.
78962         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78963         autoreconf.
78964
78965 2006-01-11  Bruno Haible  <bruno@clisp.org>
78966
78967         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78968         overridable by the user.
78969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78970
78971 2006-01-10  Simon Josefsson  <jas@extundo.com>
78972
78973         * modules/sys_socket: New file.
78974
78975 2006-01-10  Simon Josefsson  <jas@extundo.com>
78976
78977         * m4/sys_socket_h.m4: New file.
78978
78979 2006-01-10  Simon Josefsson  <jas@extundo.com>
78980
78981         * lib/socket_.h: New file.
78982
78983 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78984
78985         * modules/readutmp (Maintainer): Add myself.
78986
78987 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78990         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78991         People who are still concerned with buggy memcmp implementations
78992         can invoke gl_FUNC_MEMCMP themselves.
78993
78994 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * lib/regex_internal.h (BITSET_WORD_BITS):
78997         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78998         preprocessor mishandles large unsigned values as if they were signed.
78999         Problem reported by Claudio Fontana in
79000         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79001
79002 2006-01-10  Jim Meyering  <jim@meyering.net>
79003
79004         Avoid the double-free (first in fts_read, second in fts_close) that
79005         would occur when an `active' directory is made inaccessible (e.g.,
79006         via chmod a-x) during a traversal.
79007         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79008         before returning.  Reproduce this failure by
79009         mkdir -p a/b; cd a; chmod a-x . b
79010         Reported by Stavros Passas.
79011
79012         Sync from coreutils.
79013         * lib/sha1.c: Tweak grammar in a comment.
79014
79015 2006-01-10  Jim Meyering  <jim@meyering.net>
79016
79017         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79018         Patch by Joerg Sonnenberger.
79019
79020 2006-01-10  Bruno Haible  <bruno@clisp.org>
79021
79022         * modules/readutmp: Depend on module free.
79023         * modules/strtok_r: Depend on module restrict.
79024
79025 2006-01-10  Bruno Haible  <bruno@clisp.org>
79026
79027         * modules/gettext (configure.ac): Add an invocation of
79028         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79029
79030 2006-01-10  Bruno Haible  <bruno@clisp.org>
79031
79032         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79033         Reported by Werner Lemberg <wl@gnu.org>.
79034
79035 2006-01-10  Bruno Haible  <bruno@clisp.org>
79036
79037         * lib/localcharset.c: Update from GNU gettext.
79038
79039 2006-01-10  Bruno Haible  <bruno@clisp.org>
79040
79041         * lib/argp.h (__const): Remove macro. Use const instead.
79042         * lib/argp-fmtstream.h (__const): Likewise.
79043         * lib/glob_.h (__const): Remove macro.
79044         * lib/glob-libc.h: Use const instead of __const.
79045
79046 2006-01-10  Bruno Haible  <bruno@clisp.org>
79047
79048         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79049         variable.
79050         Needed to avoid an automake error regarding the 'gettext' module.
79051
79052 2006-01-09  Simon Josefsson  <jas@extundo.com>
79053
79054         * modules/inet_ntop (Depends-on): Add restrict.
79055
79056 2006-01-09  Simon Josefsson  <jas@extundo.com>
79057
79058         * modules/gc-rijndael-tests (License): Put under LGPL.
79059
79060         * modules/gc-des-tests (License): Likewise.
79061
79062         * modules/gc-arcfour-tests (License): Likewise.
79063
79064         * modules/gc-arctwo-tests (License): Likewise.
79065
79066         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79067
79068         * modules/gc-hmac-sha1-tests (Files): Likewise.
79069
79070         * modules/gc-hmac-md5-tests (License): Likewise.
79071
79072         * modules/gc-sha1-tests (License): Likewise.
79073
79074         * modules/gc-md5-tests (License): Likewise.
79075
79076         * modules/gc-md4-tests (License): Likewise.
79077
79078         * modules/gc-md2-tests (License): Likewise.
79079
79080         * modules/gc-tests (License): Likewise.
79081
79082         * modules/des-tests (License): Likewise.
79083
79084         * modules/md4-tests (License): Likewise.
79085
79086         * modules/md2-tests (License): Likewise.
79087
79088 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         Sync from coreutils:
79091
79092         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79093         * modules/lib-ignore: New file.
79094         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79095         chdir-safer.m4, lchmod.m4.
79096         * modules/openat: Add mkdirat.c, openat-priv.h.
79097
79098 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         Sync from coreutils.
79101         * m4/lib-ignore.m4: New file.
79102         * m4/lchmod.m4: New file.
79103
79104 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         Sync from coreutils.
79107         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79108         for write access: POSIX says that must fail.
79109         * lib/fts.c (diropen): Likewise.
79110         * lib/save-cwd.c (save_cwd): Likewise.
79111         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79112         well, for minor improvements on hosts that lack O_DIRECTORY.
79113         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79114         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79115         Fall back on chown if open failed with EACCES.
79116
79117         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79118         Report an error at compile-time if only a 1-second nominal clock
79119         resolution is found.
79120
79121         * lib/lchmod.h: New file.
79122         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79123         (make_dir_parents): Use lchown rather than chown, and
79124         lchmod rather than chmod.
79125
79126         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79127         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79128         "proc" reported by n0dalus.
79129
79130         * lib/mountlist.c: Include <limits.h>.
79131         (dev_from_mount_options)
79132         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79133         New function.  It no longer assumes "dev=" has the System V meaning
79134         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79135         (read_file_system_list)
79136         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79137         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79138         dev= in that case.
79139
79140         * lib/posixtm.h (PDS_PRE_2000): New macro.
79141         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79142         allow_century.  All usages changed.  Reject dates outside the range
79143         1969-1999 if PDS_PRE_2000 is used.
79144
79145 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         Sync from coreutils.
79148         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79149         (Time of day items): Mention the possibility of leap seconds.
79150         Problem reported by Dr. David Alan Gilbert.
79151
79152 2006-01-09  Jim Meyering  <jim@meyering.net>
79153
79154         Sync from coreutils.
79155
79156         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79157
79158         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79159
79160         * lib/modechange.c (mode_compile): Reject an invalid mode string
79161         that starts with an octal digit.  From Andreas Gruenbacher.
79162
79163         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79164         and dup to open_safer and dup_safer, respectively.
79165         (openat_permissive): Fix typo in comment.
79166
79167         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79168         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79169         (_): Remove; no longer needed.
79170         (openat): Renamed from rpl_openat; no need for rpl_openat
79171         since openat.h renames openat for us.
79172         Replace most of the body with a call to openat_permissive,
79173         to avoid duplicate code.
79174         Port to (probably hypothetical) environments were mode_t is
79175         wider than int.
79176         (openat_permissive): Require mode arg, so that we can check
79177         types better.  Put it just after flags.  Change cwd failure
79178         indicator from pointer-to-bool to pointer-to-errno-value.
79179         All callers changed.
79180         Invoke openat_save_fail and/or openat_restore_fail if
79181         cwd_errno is null, so that openat can call us.
79182         (openat_permissive, fdopendir, fstatat, unlinkat):
79183         Simplify errno handling to avoid some duplicate code,
79184         as it's OK to set errno on success.
79185         * lib/openat.h: Revamp code so that function macros depend on
79186         __OPENAT_PREFIX only, not also on AT_FDCWD.
79187         (openat_ro): Remove.  Caller changed to use openat_permissive.
79188         (openat_permissive): Now a macro, if not a function.
79189         (openat_restore_fail, openat_save_fail): Now always functions,
79190         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79191
79192         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79193         and openat.c.
79194         * lib/mkdirat.c: Include openat-priv.h.
79195         Remove definitions of macros defined therein.
79196         * lib/openat.c: Likewise.
79197
79198         * lib/mkdirat.c (mkdirat): New file and function.
79199         * lib/openat.h (mkdirat): Declare.
79200
79201         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79202
79203         * lib/openat.h (openat_permissive): Declare.
79204         (openat_ro): Define.
79205
79206         * lib/openat.c (EXPECTED_ERRNO): New macro.
79207         (openat_permissive): New function -- used in remove.c rewrite.
79208         (all functions): Set errno just before returning, only if there
79209         was an actual failure.
79210         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79211
79212         Emulate openat-family functions using Linux's procfs, if possible.
79213         Idea and some code based on Ulrich Drepper's glibc changes.
79214
79215         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79216         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79217         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79218         before falling back on save_cwd and restore_cwd.
79219         (fdopendir, fstatat, unlinkat): Likewise.
79220
79221         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79222         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79223
79224         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79225         as second argument to va_arg.  Otherwise, some versions of gcc
79226         warn that `if this code is reached, the program will abort'.
79227
79228 2006-01-09  Jim Meyering  <jim@meyering.net>
79229
79230         Sync from coreutils.
79231         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79232         Require openat-priv.h.
79233
79234 2006-01-09  Bruno Haible  <bruno@clisp.org>
79235
79236         * modules/strnlen (Include): Use strnlen.h.
79237
79238 2006-01-09  Bruno Haible  <bruno@clisp.org>
79239
79240         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79241
79242 2006-01-09  Bruno Haible  <bruno@clisp.org>
79243
79244         * lib/sysexit_.h (EX_OK): New macro.
79245         Suggested by Martin Lambers <marlam@marlam.de>.
79246
79247 2006-01-09  Bruno Haible  <bruno@clisp.org>
79248
79249         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79250         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79251
79252 2006-01-09  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79255         numbers.
79256
79257 2006-01-09  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79260         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79261         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79262         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79263
79264 2006-01-09  Bruno Haible  <bruno@clisp.org>
79265
79266         * build-aux/javacomp.sh.in: New file, moved from lib/.
79267         * modules/javacomp-script (Files): Update.
79268         (configure.ac): Add AC_CONFIG_FILES invocation.
79269         (EXTRA_DIST): Remove variable.
79270
79271         * build-aux/javaexec.sh.in: New file, moved from lib/.
79272         * modules/javaexec (Files): Update.
79273         (configure.ac): Add AC_CONFIG_FILES invocation.
79274         (EXTRA_DIST): Remove javaexec.sh.in.
79275
79276         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79277         * modules/csharpcomp-script (Files): Update.
79278         (configure.ac): Add AC_CONFIG_FILES invocation.
79279         (EXTRA_DIST): Remove variable.
79280
79281         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79282         * modules/csharpexec (Files): Update.
79283         (configure.ac): Add AC_CONFIG_FILES invocation.
79284         (EXTRA_DIST): Remove csharpexec.sh.in.
79285
79286 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79287
79288         Sync from coreutils.
79289
79290         Add POSIX ACL support
79291         * lib/acl.h (copy_acl, set_acl): Add declarations.
79292         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79293         systems other than Linux.
79294         (chmod_or_fchmod): New function: use fchmod when possible,
79295         and chmod otherwise.
79296         (file_has_acl): Add a POSIX ACL implementation, with a
79297         Linux-specific subcase.
79298         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79299         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79300         acls are unsupported.
79301         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79302         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79303         are unsupported.
79304
79305 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79306
79307         Sync from coreutils.
79308         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79309
79310 2006-01-07  Bruno Haible  <bruno@clisp.org>
79311
79312         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79313         gl_EARLY.
79314
79315 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79316
79317         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79318         Problem reported for Mingw by Mark Junker.
79319
79320 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * README: Gnulib normally doesn't generate a tarball.
79323
79324 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79327         long int, not int, for nanosecond counts, so that people who are
79328         used to POSIX struct timespec won't be surprised.  Reported by Jim
79329         Meyering.
79330
79331 2005-12-28  Bruno Haible  <bruno@clisp.org>
79332
79333         * build-aux/config.rpath: Update from GNU gettext.
79334
79335 2005-12-16  Jim Meyering  <jim@meyering.net>
79336
79337         * modules/fprintftime: New module.
79338         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79339
79340 2005-12-16  Jim Meyering  <jim@meyering.net>
79341
79342         * m4/fprintftime.m4: New file.
79343
79344 2005-12-16  Jim Meyering  <jim@meyering.net>
79345
79346         * lib/fprintftime.c, lib/fprintftime.h: New files.
79347
79348 2005-12-15  Simon Josefsson  <jas@extundo.com>
79349
79350         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79351         new m4/socklen.m4.
79352
79353 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79354
79355         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79356         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79357
79358 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79359
79360         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79361         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79362         struct uparams is valid. Fall back to the default values if it is
79363         not.
79364
79365 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79366
79367         * modules/argp (Files): Add argp-pin.c
79368         (Depends-on): dirname
79369         (lib_SOURCES): Add argp-pin.c
79370
79371 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79372
79373         * m4/argp.m4:  Check if program_invocation_name and
79374         program_invocation_short_name are declared and define appropriate
79375         macros if they are not.
79376
79377 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79378
79379         * lib/argp-help.c (__argp_base_name): New function
79380         (__argp_short_program_name): Rewrite using __argp_base_name
79381         * lib/argp-namefrob.h: Define program_invocation_name and
79382         program_invocation_short_name if requested
79383         (__argp_base_name): Add prototype
79384         * lib/argp-parse.c (argp_def): Use gettext wrappers
79385         (argp_default_parser): Use __argp_base_name
79386         * lib/argp-pin.c: New file. Defines program_invocation_name and
79387         program_invocation_short_name on systems that lack them.
79388
79389 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * m4/stat-time.m4 (gl_STAT_TIME): 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-07  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79399         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79400         porting problem reported by Georg Schwarz in
79401         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79402
79403 2005-12-05  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79406         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79407         Reported by Mark Junker <mjscod@gmx.de>.
79408
79409 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79412         Use implementation from Albert Chin, with some
79413         comments/corrections by Stepan Kasal and myself.
79414
79415 2005-12-02  Bruno Haible  <bruno@clisp.org>
79416
79417         * gnulib-tool (func_import): Accept GPLed build tool modules when
79418         --lgpl is given.
79419         * modules/csharpcomp-script: New file.
79420         * modules/csharpcomp: Depend on it.
79421         * modules/javacomp-script: New file.
79422         * modules/javacomp: Depend on it.
79423         Suggested by Simon Josefsson.
79424
79425 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79428         statement, to work around an HP-UX 10.20 compiler bug reported by
79429         Peter O'Gorman.
79430
79431 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         * modules/savedir (Depends-on): Add openat.
79434
79435 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79438         (uintmax_t) [defined uintmax_t]: Do not declare.
79439         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79440         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79441         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79442         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79443         sake of portability to weird hosts that C allows (though we don't
79444         know of any practical examples).
79445
79446         * lib/savedir.h (fdsavedir): New decl.
79447         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79448         contains most of the former guts of savedir.
79449         (savedir): Use savedirstream.
79450         Include "openat.h".
79451
79452 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         * modules/obstack (Files): Add m4/ulonglong.m4.
79455         Problem reported by Davide Angelocola.
79456
79457 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79460         coreutils no longer futzes with rounding modes.
79461
79462 2005-11-14  Jim Meyering  <jim@meyering.net>
79463
79464         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79465         replacement of mkstemp.
79466
79467 2005-11-10  Simon Josefsson  <jas@extundo.com>
79468
79469         * lib/readline.c: Remove EOL.
79470
79471 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * modules/gethrxtime (Depends-on): Add gettime.
79474
79475 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79478         or gettimeofday; no longer needed.
79479
79480 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79483         time business.
79484         (gethrxtime) [! (HAVE_NANOUPTIME
79485         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79486         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79487         our own approximation.
79488
79489 2005-11-08  Eric Blake  <ebb9@byu.net>
79490
79491         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79492
79493 2005-11-08  Eric Blake  <ebb9@byu.net>
79494
79495         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79496
79497 2005-11-04  Bruno Haible  <bruno@clisp.org>
79498
79499         * gnulib-tool: Implement --update mode.
79500
79501 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         Fix porting problem reported by Theodoros V. Kalamatianos.
79504         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79505         Don't assume that futimes failing means we must fail.
79506
79507 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79510         variables to suggest the intended function of the PATH_MAX check.
79511
79512 2005-10-30  Kean Johnston  <jkj@sco.com>
79513
79514         Trivial changes to support SCO systems.
79515         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79516         as PATH_MAX.
79517         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79518         where __ptr is null when no I/O is pending.
79519
79520 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79523         leave errno alone.  Problem reported by Dmitry V. Levin.
79524
79525 2005-10-28  Simon Josefsson  <jas@extundo.com>
79526
79527         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79528         Test more.
79529
79530         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79531
79532         * modules/md2, modules/md2-tests: New files.
79533
79534 2005-10-28  Simon Josefsson  <jas@extundo.com>
79535
79536         * m4/inet_ntop.m4: More tests.
79537
79538         * m4/gc-md2.m4, md2.m4: New file.
79539
79540 2005-10-28  Simon Josefsson  <jas@extundo.com>
79541
79542         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79543         "restrict" keywords, as per POSIX.  Protect the function
79544         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79545         Don't use K&R prototypes.  Check the sprintf return values.
79546         Re-define EAFNOSUPPORT if not present.  Indent.
79547
79548         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79549         suggested by Bruno Haible <bruno@clisp.org>.
79550
79551         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79552
79553         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79554
79555         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79556         libgcrypt).
79557
79558         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79559
79560         * lib/md2.h, lib/md2.c: New files.
79561
79562 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79565         errno alone.  Problem reported by Frederic Jolliton.
79566
79567 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * modules/verify (License): Change from GPL to LGPL.  This is a
79570         tiny module and there are apparently near-equivalents that are
79571         under the BSD license.
79572
79573 2005-10-24  Simon Josefsson  <jas@extundo.com>
79574
79575         * modules/sha1: Relicense to LGPL.
79576
79577 2005-10-24  Simon Josefsson  <jas@extundo.com>
79578
79579         * lib/md4.h: Shrink buffer size, now that we changed the type.
79580
79581 2005-10-23  Simon Josefsson  <jas@extundo.com>
79582
79583         * gnulib-tool (func_import): Fix --tests-base.
79584
79585 2005-10-22  Simon Josefsson  <jas@extundo.com>
79586
79587         * modules/arcfour (Depends-on): Need stdint.
79588
79589 2005-10-22  Simon Josefsson  <jas@extundo.com>
79590
79591         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79592         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79593
79594 2005-10-22  Simon Josefsson  <jas@extundo.com>
79595
79596         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79597         suggested by Bruno Haible <bruno@clisp.org>.
79598
79599 2005-10-22  Simon Josefsson  <jas@extundo.com>
79600
79601         * lib/crc.h: Include stddef.h, for size_t.
79602
79603 2005-10-22  Simon Josefsson  <jas@extundo.com>
79604
79605         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79606         arcfour_context struct (simplify test vector testing in GNU
79607         Shishi).
79608
79609 2005-10-21  Simon Josefsson  <jas@extundo.com>
79610
79611         * modules/des, modules/des-tests: New files.
79612
79613         * modules/gc-des, modules/gc-des-tests: New files.
79614
79615         * tests/test-des.c, tests/test-gc-des.c: New file.
79616
79617 2005-10-21  Simon Josefsson  <jas@extundo.com>
79618
79619         * modules/arctwo, modules/arctwo-tests: New files.
79620
79621         * tests/test-arctwo.c: New file.
79622
79623         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79624
79625         * tests/test-gc-arctwo.c: New file.
79626
79627 2005-10-21  Simon Josefsson  <jas@extundo.com>
79628
79629         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79630         Bruno Haible <bruno@clisp.org>.
79631
79632         * m4/gc-des.m4: New file.
79633
79634 2005-10-21  Simon Josefsson  <jas@extundo.com>
79635
79636         * m4/arctwo.m4: New file.
79637
79638         * m4/gc-arctwo.m4: New file.
79639
79640 2005-10-21  Simon Josefsson  <jas@extundo.com>
79641
79642         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79643         block.
79644
79645 2005-10-21  Simon Josefsson  <jas@extundo.com>
79646
79647         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79648         <bruno@clisp.org>.
79649
79650         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79651
79652         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79653         Bruno Haible <bruno@clisp.org>.
79654
79655         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79656         <bruno@clisp.org>.
79657
79658 2005-10-21  Simon Josefsson  <jas@extundo.com>
79659
79660         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79661
79662 2005-10-21  Simon Josefsson  <jas@extundo.com>
79663
79664         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79665
79666 2005-10-21  Simon Josefsson  <jas@extundo.com>
79667
79668         * lib/des.h, lib/des.c: New files.
79669
79670         * lib/gc-gnulib.c: Support DES.c
79671
79672 2005-10-21  Simon Josefsson  <jas@extundo.com>
79673
79674         * lib/arctwo.h, lib/arctwo.c: New files.
79675
79676         * lib/gc-gnulib.c: Support ARCTWO.
79677
79678 2005-10-21  Simon Josefsson  <jas@extundo.com>
79679
79680         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79681         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79682
79683 2005-10-21  Simon Josefsson  <jas@extundo.com>
79684
79685         * gnulib-tool (func_import, func_create_testdir): Define automake
79686         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79687         Makefile.am snippet),
79688         suggested by Bruno Haible <bruno@clisp.org>.
79689
79690         * modules/gc (Makefile.am): Use it.
79691
79692 2005-10-21  Bruno Haible  <bruno@clisp.org>
79693
79694         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79695         patch.
79696
79697 2005-10-19  Simon Josefsson  <jas@extundo.com>
79698
79699         * tests/test-gc-rijndael.c: New file.
79700
79701         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79702
79703 2005-10-19  Simon Josefsson  <jas@extundo.com>
79704
79705         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79706         interface too.
79707
79708 2005-10-19  Simon Josefsson  <jas@extundo.com>
79709
79710         * tests/test-gc-arcfour.c: New file.
79711
79712         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79713
79714 2005-10-19  Simon Josefsson  <jas@extundo.com>
79715
79716         * modules/gc-md4, modules/gc-md4-tests: New file.
79717
79718         * tests/test-gc-md4.c: New file.
79719
79720 2005-10-19  Simon Josefsson  <jas@extundo.com>
79721
79722         * m4/gc-md4.m4: New file.
79723
79724 2005-10-19  Simon Josefsson  <jas@extundo.com>
79725
79726         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79727         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79728         <kasal@ucw.cz>.
79729
79730 2005-10-19  Simon Josefsson  <jas@extundo.com>
79731
79732         * m4/gc-arcfour.m4: New file.
79733
79734         * m4/gc-rijndael.m4: New file.
79735
79736 2005-10-19  Simon Josefsson  <jas@extundo.com>
79737
79738         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79739
79740 2005-10-19  Simon Josefsson  <jas@extundo.com>
79741
79742         * lib/gc-gnulib.c: Support ARCFOUR.
79743
79744 2005-10-19  Simon Josefsson  <jas@extundo.com>
79745
79746         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79747         support.
79748
79749         * lib/gc.h: Add ECB enum type.
79750
79751         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79752
79753 2005-10-18  Simon Josefsson  <jas@extundo.com>
79754
79755         * tests/test-md5.c: New file.
79756
79757         * modules/md5-tests: New file.
79758
79759 2005-10-18  Simon Josefsson  <jas@extundo.com>
79760
79761         * tests/test-md4.c: New file.
79762
79763         * modules/md4, modules/md4-tests: New files.
79764
79765 2005-10-18  Simon Josefsson  <jas@extundo.com>
79766
79767         * m4/md4.m4: New file.
79768
79769 2005-10-18  Simon Josefsson  <jas@extundo.com>
79770
79771         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79772
79773 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79774
79775         * gnulib-tool (func_create_testdir): Omit the second check whether
79776         BUILT_SOURCES in nonempty.
79777
79778 2005-10-17  Simon Josefsson  <jas@extundo.com>
79779
79780         * tests/test-rijndael.c: New file.
79781
79782 2005-10-17  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/sha1: Depend on stdint instead of md5.
79785
79786         * modules/md5: Depend on stdint, remove uint32_t.
79787
79788 2005-10-17  Simon Josefsson  <jas@extundo.com>
79789
79790         * modules/gc-sha1-tests: New file.
79791
79792         * tests/test-gc-sha1.c: New file.
79793
79794 2005-10-17  Simon Josefsson  <jas@extundo.com>
79795
79796         * m4/md5.m4: Remove call to uint32_t.m4.
79797
79798 2005-10-17  Simon Josefsson  <jas@extundo.com>
79799
79800         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79801
79802         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79803         md5.h.
79804
79805         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79806
79807         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79808
79809 2005-10-17  Simon Josefsson  <jas@extundo.com>
79810
79811         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79812
79813 2005-10-17  Simon Josefsson  <jas@extundo.com>
79814
79815         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79816
79817 2005-10-17  Simon Josefsson  <jas@extundo.com>
79818
79819         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79820
79821         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79822
79823 2005-10-17  Bruno Haible  <bruno@clisp.org>
79824
79825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79826         that it can also be used in a test.
79827
79828 2005-10-16  Bruno Haible  <bruno@clisp.org>
79829
79830         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79831         TESTS_ENVIRONMENT, so that individual tests can augment it.
79832
79833         * gnulib-tool (func_create_testdir): Use an intermediate target for
79834         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79835         macros, like $(ALLOCA_H), which cannot be passed through the command
79836         line.
79837
79838 2005-10-15  Simon Josefsson  <jas@extundo.com>
79839
79840         * modules/rijndael-tests: New file.
79841
79842         * modules/rijndael: New file.
79843
79844 2005-10-15  Simon Josefsson  <jas@extundo.com>
79845
79846         * m4/rijndael.m4: New file.
79847
79848 2005-10-15  Simon Josefsson  <jas@extundo.com>
79849
79850         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79851
79852         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79853
79854 2005-10-14  Simon Josefsson  <jas@extundo.com>
79855
79856         * tests/test-arcfour.c: New file.
79857
79858         * modules/arcfour, modules/arcfour-tests: New files.
79859
79860 2005-10-14  Simon Josefsson  <jas@extundo.com>
79861
79862         * m4/arcfour.m4: New file.
79863
79864 2005-10-14  Simon Josefsson  <jas@extundo.com>
79865
79866         * lib/arcfour.h, lib/arcfour.c: New files.
79867
79868 2005-10-14  Roland McGrath  <roland@redhat.com>
79869
79870         Import from libc.  [BZ #1331]
79871         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79872         macro argument.
79873         Reported by Matej Vela <vela@debian.org>.
79874
79875 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79878         include <wchar.h>; no longer needed.
79879
79880 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79883
79884 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79885         and  Ulrich Drepper  <drepper@redhat.com>
79886
79887         Import from libc.
79888         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79889         instead of inline stream orientation test and two separate
79890         function calls.  Pay no attention to USE_IN_LIBIO.
79891
79892 2005-10-13  Simon Josefsson  <jas@extundo.com>
79893
79894         * modules/gc-hmac-md5-tests: New file.
79895
79896         * tests/test-gc-hmac-sha1.c: New file.
79897
79898         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79899
79900         * modules/gc-hmac-md5-tests: New file.
79901
79902         * tests/test-gc-md5.c: New file.
79903
79904         * modules/gc-md5-tests: New file.
79905
79906 2005-10-13  Simon Josefsson  <jas@extundo.com>
79907
79908         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79909         Move memory allocation outside of loop.
79910
79911 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79912
79913         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79914         intermediate directory is in a read-only file system.  Problem
79915         reported by Eric Blake.
79916
79917 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79918
79919         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79920
79921 2005-10-12  Simon Josefsson  <jas@extundo.com>
79922
79923         * tests/test-hmac-sha1.c: New file.
79924
79925         * modules/hmac-sha1-tests: New file.
79926
79927         * modules/hmac-sha1: New file.
79928
79929 2005-10-12  Simon Josefsson  <jas@extundo.com>
79930
79931         * modules/gc-sha1: New file.
79932
79933 2005-10-12  Simon Josefsson  <jas@extundo.com>
79934
79935         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79936
79937         * tests/test-gc-pbkdf2-sha1.c: New file.
79938
79939 2005-10-12  Simon Josefsson  <jas@extundo.com>
79940
79941         * modules/gc-md5, modules/gc-hmac-md5: New files.
79942
79943         * modules/gc (Files): Remove md5, memxor and hmac files.
79944
79945 2005-10-12  Simon Josefsson  <jas@extundo.com>
79946
79947         * m4/gc-pbkdf2-sha1.m4: New file.
79948
79949         * m4/gc-hmac-sha1.m4: New file.
79950
79951         * m4/gc-sha1: New file.
79952
79953         * m4/hmac-sha1.m4: New file.
79954
79955 2005-10-12  Simon Josefsson  <jas@extundo.com>
79956
79957         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79958
79959         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79960
79961 2005-10-12  Simon Josefsson  <jas@extundo.com>
79962
79963         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79964         suggested by Bruno Haible <bruno@clisp.org>.
79965
79966 2005-10-12  Simon Josefsson  <jas@extundo.com>
79967
79968         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79969
79970 2005-10-12  Simon Josefsson  <jas@extundo.com>
79971
79972         * lib/gc-pbkdf2-sha1.c: New file.
79973
79974         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79975
79976 2005-10-12  Simon Josefsson  <jas@extundo.com>
79977
79978         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79979
79980         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79981
79982 2005-10-12  Simon Josefsson  <jas@extundo.com>
79983
79984         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79985         GC_USE_HMAC_MD5, respectively.
79986
79987         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79988         (gc_md5): Fix typo.
79989
79990         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79991
79992         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79993
79994         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79995
79996 2005-10-12  Bruno Haible  <bruno@clisp.org>
79997
79998         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79999         Reported by Stepan Kasal <kasal@ucw.cz>.
80000
80001 2005-10-11  Simon Josefsson  <jas@extundo.com>
80002
80003         * tests/test-crc.c: New file.
80004
80005         * modules/crc, modules/crc-tests: New files.
80006
80007 2005-10-11  Simon Josefsson  <jas@extundo.com>
80008
80009         * m4/crc.m4: New file.
80010
80011 2005-10-11  Simon Josefsson  <jas@extundo.com>
80012
80013         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80014
80015         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80016
80017         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80018
80019 2005-10-11  Simon Josefsson  <jas@extundo.com>
80020
80021         * lib/crc.h, lib/crc.c: New files.
80022
80023         * lib/gc.h (gc_hash_buffer): Add doc.
80024
80025 2005-10-11  Bruno Haible  <bruno@clisp.org>
80026
80027         * modules/c-strcasestr: New file.
80028         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80029
80030 2005-10-11  Bruno Haible  <bruno@clisp.org>
80031
80032         * modules/c-strcase: New file.
80033         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80034
80035 2005-10-11  Bruno Haible  <bruno@clisp.org>
80036
80037         * lib/strcasecmp.c: Include limits.h.
80038         (strcasecmp): Avoid integer overflow on exotic platforms.
80039         * lib/strncasecmp.c: Include limits.h.
80040         (strncasecmp): Avoid integer overflow on exotic platforms.
80041         Reported by Paul Eggert.
80042
80043 2005-10-11  Bruno Haible  <bruno@clisp.org>
80044
80045         * lib/c-strcasestr.h: New file, from GNU gettext.
80046         * lib/c-strcasestr.c: New file, from GNU gettext.
80047
80048 2005-10-11  Bruno Haible  <bruno@clisp.org>
80049
80050         * lib/c-strcase.h: New file, from GNU gettext.
80051         * lib/c-strcasecmp.c: New file, from GNU gettext.
80052         * lib/c-strncasecmp.c: New file, from GNU gettext.
80053
80054 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * modules/mempcpy (License): GPL -> LGPL.
80057         * modules/strchrnul (License): Likewise.
80058         * modules/sysexits (License): Likewise.
80059
80060 2005-10-08  Simon Josefsson  <jas@extundo.com>
80061
80062         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80063
80064 2005-10-07  Simon Josefsson  <jas@extundo.com>
80065
80066         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80067
80068 2005-10-06  Simon Josefsson  <jas@extundo.com>
80069
80070         * tests/test-hmac-md5.c: New file.
80071
80072         * modules/hmac-md5-tests: New file.
80073
80074         * modules/hmac-md5: New file.
80075
80076 2005-10-06  Simon Josefsson  <jas@extundo.com>
80077
80078         * m4/hmac-md5.m4: New file.
80079
80080         * m4/memxor.m4: Require gl_C_RESTRICT.
80081
80082 2005-10-06  Simon Josefsson  <jas@extundo.com>
80083
80084         * lib/memxor.c (memxor): Avoid casts and warnings.
80085
80086 2005-10-06  Simon Josefsson  <jas@extundo.com>
80087
80088         * lib/hmac-md5.c: New file.
80089
80090         * lib/hmac.h: New file.
80091
80092 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80095         promotes to int, not unsigned int, to catch the AIX 5.3
80096         compiler bug.
80097
80098 2005-10-05  Simon Josefsson  <jas@extundo.com>
80099
80100         * modules/memxor: New file.
80101
80102         * modules/iconv (Files): Move config.rpath to havelib, it is used
80103         there.
80104
80105         * modules/havelib (Files): Add config.rpath.
80106
80107 2005-10-05  Simon Josefsson  <jas@extundo.com>
80108
80109         * m4/memxor.m4: New file.
80110
80111 2005-10-05  Simon Josefsson  <jas@extundo.com>
80112
80113         * lib/memxor.c (memxor): Fix compiler error.
80114
80115         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80116         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80117
80118         * lib/memxor.h, lib/memxor.c: New files.
80119
80120         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80121         we assume all systems have it, suggested by Jim Meyering
80122         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80123         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80124         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80125         same reasons.
80126
80127 2005-10-05  Simon Josefsson  <jas@extundo.com>
80128
80129         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80130
80131 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80134         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80135         needed, since the source code now assumes these .h files.
80136
80137 2005-10-05  Derek Price  <derek@ximbiot.com>
80138
80139         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80140
80141 2005-10-05  Bruno Haible  <bruno@clisp.org>
80142
80143         * modules/stdint (License): Change to LGPL.
80144
80145 2005-10-04  Simon Josefsson  <jas@extundo.com>
80146
80147         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80148         D. Baushke" <mdb@gnu.org>.
80149
80150 2005-10-04  Bruno Haible  <bruno@clisp.org>
80151
80152         * lib/verify.h (verify_true): Provide alternative definition for C++.
80153
80154 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80157         (SSIZE_MAX): New macro, if not already defined.
80158         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80159         than 2 GiB.
80160
80161 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         Sync from coreutils.
80164         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80165         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80166         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80167         ULLONG_MAX doesn't work with 2.7.2.1.
80168
80169 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80172         From Ben Pfaff.
80173
80174         * modules/exclude (Depends-on): Depend on verify.
80175         * modules/strtoimax (Depends-on): Likewise.
80176         * modules/utimecmp (Depends-on): Likewise.
80177
80178 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * lib/exclude.c: Include verify.h.
80181         (verify): Remove.  All callers changed to use verify.h's version.
80182         * lib/strtoimax.c: Likewise.
80183         * lib/utimecmp.c: Likewis.e
80184
80185         Sync from coreutils.
80186         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80187         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80188         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80189         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80190         bother returning ENOSYS if settimeofday or stime fails; just let
80191         them return whatever errno they want to return.
80192         * lib/utimens.c: Include unistd.h, for dup2.
80193         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80194         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80195
80196 2005-10-02  Jim Meyering  <jim@meyering.net>
80197
80198         Sync from coreutils.
80199         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80200         from glibc-2.2.5 that fails for read-only files.
80201
80202 2005-10-02  Jim Meyering  <jim@meyering.net>
80203
80204         Sync from coreutils.
80205         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80206         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80207         `#if HAVE_CONFIG_H'.
80208         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80209         Remove AT_FDCWD test.
80210         Do not consume the fd unless successful.
80211         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80212         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80213         block, so that we don't even try to compile it if settimeofday is
80214         available.  This works around a compilation failure on OSF1 V5.1,
80215         due to stime requiring a `long int*' while tv_sec is `int'.
80216
80217 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80218
80219         Sync from coreutils.
80220         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80221         against `yes', rather than just testing for nonempty.
80222
80223 2005-10-01  Simon Josefsson  <jas@extundo.com>
80224
80225         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80226         and Darwin.
80227
80228         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80229         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80230         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80231         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80232         Check if struct addrinfo is declared.
80233
80234 2005-10-01  Simon Josefsson  <jas@extundo.com>
80235
80236         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80237         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80238         AI_* and EAI_* definitions.  Protect function declarations.
80239
80240 2005-10-01  Jim Meyering  <jim@meyering.net>
80241
80242         Sync from coreutils.
80243
80244         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80245         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80246         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80248         in the inet and nsl libraries.  Required on Solaris 5.7.
80249
80250 2005-10-01  Jim Meyering  <jim@meyering.net>
80251
80252         Sync from coreutils.
80253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80254         in the inet and nsl libraries.  Required on Solaris 5.7.
80255
80256 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80257
80258         * lib/getdelim.c (getdelim): Remove unused variables.
80259
80260 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80263         so that the code works even with ancient cpp.  Portability problem
80264         with GCC 2.7.2.1 reported by Thomas M.Ott.
80265
80266 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * modules/regex (Depends-on): Add strcase.
80269
80270         * modules/gethostname (Licence): Change from GPL to LGPL, since
80271         gethostname.c is a trivial implementation of a standard library
80272         function.
80273         * modules/poll (License): Change from GPL to LGPL, since it's
80274         derived from LGPL code.
80275
80276 2005-09-27  Jim Meyering  <jim@meyering.net>
80277
80278         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80279         HAVE_CONFIG_H.
80280
80281         * lib/intprops.h (signed_type_or_expr__): Define.
80282         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80283         for unsigned types.
80284
80285 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80286
80287         * lib/verify.h (verify_expr): Remove, replacing with:
80288         (verify_true): New macro that returns true instead of void.
80289         (verify_type__): Remove.
80290         (verify): Use verify_true rather than verify_type__.
80291
80292 2005-09-26  Bruno Haible  <bruno@clisp.org>
80293
80294         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80295         is necessary.
80296         (lib_SOURCES): Remove mbchar.c.
80297         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80298         (Files): Add m4/mbrtowc.m4.
80299         * modules/mbiter: Likewise.
80300         * modules/mbuiter: Likewise.
80301
80302 2005-09-26  Bruno Haible  <bruno@clisp.org>
80303
80304         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80305         compile mbchar.c if they are not both present.
80306         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80307         * m4/mbiter.m4 (gl_MBITER): Likewise.
80308         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80309         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80310         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80311
80312 2005-09-25  Jim Meyering  <jim@meyering.net>
80313
80314         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80315         also uses socklen_t.
80316
80317 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * lib/utimens.c (ENOSYS): Define if not already defined.
80320         (futimens): Support having a null PATH if the file descriptor
80321         is nonnegative.
80322
80323         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80324         Remove.
80325         (__attribute): Define to empty unless GCC 3.1 or later.
80326         This works around a core dump on OpenBSD 3.4, which has GCC
80327         2.95.3, which dumps core when given __attribute__(()).  It also
80328         simplifies other tests, since we really don't want to bother with
80329         worrying about which ancient version of GCC supported what.
80330         Original problem reported by Yoann Vandoorselaere, with part of
80331         the fix suggested by Derek Price.
80332
80333 2005-09-24  Jim Meyering  <jim@meyering.net>
80334
80335         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80336         so we can once again use a positive bitfield width of 1 -- now we
80337         don't have to explain why we were using a bitfield width of 2.
80338
80339 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80342         and similarly for the other external symbols.  Problem reported
80343         by James Gallager.
80344
80345         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80346         bug reported by Jim Meyering.
80347
80348         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80349         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80350         not needed, since socklen is a prerequisite module.
80351
80352 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80355         Problem reported by Eric Blake.
80356         (getaddrinfo): Initialize se so that it's not garbage.
80357         Redo internal storage allocation so that it doesn't make unportable
80358         assumptions about alignment.
80359         Fix a memory leak.
80360
80361         * lib/utimens.c (futimens): Use futimesat if available.
80362         Prefer it to futimes since it doesn't have the futimes bug.
80363
80364         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80365         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80366         Instead, declare a function that returns a pointer to an array,
80367         and use verify_type__ to declare the size of the array.
80368         Problem and germ of a solution reported by Bruno Haible.
80369         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80370         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80371
80372 2005-09-23  Jim Meyering  <jim@meyering.net>
80373
80374         Sync from coreutils.
80375         Correct build failure (socklen_t not defined) on at least
80376         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80377         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80378
80379 2005-09-23  Jim Meyering  <jim@meyering.net>
80380
80381         * modules/getaddrinfo (Depends-on): Add socklen.
80382
80383 2005-09-23  Bruno Haible  <bruno@clisp.org>
80384
80385         * tests/test-verify.c: New file.
80386
80387 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         Sync from coreutils.
80390
80391         * modules/argmatch (Depends-on): Add verify.
80392         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80393         unistd-safer.
80394         * modules/save-cwd (Depends-on): Likewise.
80395
80396         * modules/openat (Files): Add lib/openat-die.c.
80397         (Depends-on): Remove error, exitfail.
80398         Add dirname.
80399
80400         * modules/verify: New file.
80401         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80402         with "verify" module.
80403
80404 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         Sync from coreutils.
80407
80408         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80409         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80410         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80411         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80412         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80413         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80414         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80415         Don't bother checking for string.h, stdlib.h, unistd.h.
80416         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80417         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80418         module's job.
80419         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80420         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80421
80422         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80423         (gl_GETDATE): Use it.
80424
80425         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80426
80427 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80428
80429         Sync from coreutils.
80430
80431         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80432         stat-time.h.
80433         * lib/argmatch.h: Include verify.h
80434         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80435         (ARGMATCH_ASSERT): Remove; unused.
80436         * lib/canonicalize.c: Assume STDC_HEADERS.
80437         * lib/exclude.c: Include "strcase.h".
80438         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80439         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80440         and stdio-safer.h.
80441         (getusershell): Call fopen, not fopen_safer.
80442         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80443         Do not include unistd-safer.h.
80444         (save_cwd): Don't call fd_safer; no longer needed
80445         now that we include fcntl--.h.
80446
80447         * lib/getdate.y (relative_time): New type.
80448         (RELATIVE_TIME_0): New constant.
80449         (parser_control): Use relative_time instead of doing it ourselves.
80450         (%union): Add new relative_time rel member.
80451         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80452         Now typeless.
80453         (relunit, relunit_snumber): Now of type rel.
80454         (zone, rel, relunit, get_date): Adjust to above changes.
80455
80456         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80457         Do not include unistd-safer.h.
80458         (getloadavg): Don't call fd_safer; no longer needed
80459         now that we include fcntl--.h.
80460
80461         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80462         (make_dir_parents): Treat ENOSYS like EEXIST.
80463
80464         Improve quality of diagnostics on restore_cwd failure.
80465         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80466         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80467         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80468         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80469         each time through the loop.  Do not diagnose restore_cwd failure;
80470         that is the caller's job (and perhaps the caller does not care).
80471
80472         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80473         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80474         If the file already exists but is not a directory, don't bother
80475         to try to make its parents.
80476         Close potential file descriptor leak if we can't chdir("/") (!).
80477         Don't always return true if chdir($PWD) fails; return true only
80478         if the requested action was done successfully (except for the
80479         chdir($PWD)).
80480         Don't log final directory unless we actually made it.
80481         Refactor to avoid duplicate code to fix up permissions.
80482         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80483
80484         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80485         to make it a bit faster and (I hope) clearer.
80486         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80487         Fix bug in formats like %2N.
80488
80489         * lib/verify.h: New file.
80490
80491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80492
80493         Sync from coreutils.
80494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80495
80496 2005-09-22  Jim Meyering  <jim@meyering.net>
80497
80498         Sync from coreutils.
80499
80500         * m4/lstat.m4 (gl_FUNC_LSTAT):
80501         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80502         Remove obsolete comment.
80503         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80504         * m4/xstrtod.m4: Likewise.
80505
80506         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80507
80508 2005-09-22  Jim Meyering  <jim@meyering.net>
80509
80510         Sync from coreutils.
80511
80512         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80513
80514         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80515         the .tm_year member, since otherwise gcc-4.0 would now warn about
80516         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80517
80518         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80519         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80520
80521         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80522         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80523         when run in a time zone for which daylight savings time is in effect
80524         for the starting date.
80525
80526         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80527         stop us from restricting permissions of just-created absolute-named
80528         directories.
80529         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80530         to restore initial working directory.
80531         * lib/mkdir-p.c (make_dir_parents): New parameter:
80532         different_working_dir, to tell caller if/when we change the working
80533         directory and are unable to return to the initial one.
80534         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80535         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80536         `return false'.  This fixes a bug introduced on 2004-07-30.
80537
80538         * lib/openat.c (fdopendir): Be sure to close the supplied
80539         file descriptor before returning.  This makes our replacement
80540         implementation a little closer to Solaris's, where fdopendir
80541         ties the file descriptor to the returned DIR* pointer.
80542         * lib/openat.c (unlinkat): New function.
80543         * lib/openat.h (unlinkat): Add prototype.
80544         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80545         (openat_restore_fail): Rename from openat_restore_die.
80546         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80547
80548         Provide an alternative to exiting immediately upon save_cwd or
80549         restore_cwd failure.  Now, an application can arrange e.g.,
80550         to perform a longjump in that case.
80551         * lib/openat.c: Include dirname.h.
80552         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80553         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80554         and openat_restore_die rather than calling error directly.
80555         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80556
80557         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80558         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80559         define.
80560
80561         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80562         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80563                             int utc, int nanoseconds);
80564         Background:
80565         date should not have to allocate a megabyte of virtual memory to
80566         handle a format argument like +%1048575T.  When implemented with
80567         strftime, it must allocate such a buffer, use strftime to fill it
80568         in, print it, then free it.
80569         With fprintftime, it simply prints everything and exits.
80570         With no need for memory allocation, that's one fewer way to fail.
80571         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80572         optional field width, not before, so we accept %9:z, not %:9z.
80573         (my_strftime): Be sure to use L_('x') for literals.
80574
80575         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80576         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80577         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80578         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80579         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80580         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80581         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80582         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80583         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80584         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80585         * lib/xgethostname.c, lib/xreadlink.c:
80586         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80587
80588         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80589         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80590         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80591         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80592         and don't include <sys/file.h>).
80593
80594 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80595
80596         Sync from coreutils.
80597
80598         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80599         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80600         [!LDAV_DONE]: Avoid unused variable warning.
80601
80602 2005-09-21  Bruno Haible  <bruno@clisp.org>
80603
80604         * lib/unicodeio.h (unicode_to_mb): New declaration.
80605
80606 2005-09-20  Derek Price  <derek@ximbiot.com>
80607
80608         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80609         getaddrinfo.h.
80610
80611 2005-09-20  Bruno Haible  <bruno@clisp.org>
80612
80613         * gnulib-tool: Remove trailing slashes from the values specified for
80614         --source-base, --m4-base, --tests-base, --aux-dir.
80615         Suggested by Simon Josefsson <jas@extundo.com>.
80616
80617 2005-09-20  Bruno Haible  <bruno@clisp.org>
80618
80619         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80620         func_modules_to_filelist, func_import, func_create_testdir): Make all
80621         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80622         change when gnulib-tool is invoked in a different locale.
80623
80624 2005-09-19  Simon Josefsson  <jas@extundo.com>
80625
80626         * m4/socklen.m4: Fix typo.
80627
80628 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80629
80630         Use a consistent style for including <config.h>.
80631         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80632         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80633         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80634         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80635         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80636         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80637         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80638         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80639         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80640         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80641         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80642         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80643         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80644         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80645         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80646         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80647         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80648         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80649         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80650         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80651         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80652         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80653         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80654         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80655         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80656         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80657         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80658         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80659         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80660         lib/xstrtoumax.c, lib/yesno.c:
80661         Standardize inclusion of config.h.
80662         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80663         lib/inttostr.h:  Removed inclusion of config.h from header files.
80664         * lib/inttostr.c:  Adjusted in-tree users.
80665         * lib/timespec.h: Remove superfluous warning to include config.h.
80666         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80667         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80668         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80669         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80670         config.h with HAVE_CONFIG_H.
80671
80672 2005-09-19  Jim Meyering  <jim@meyering.net>
80673
80674         * modules/pathmax (License): Change to LGPL.
80675
80676 2005-09-19  Derek Price  <derek@ximbiot.com>
80677
80678         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80679
80680 2005-09-19  Bruno Haible  <bruno@clisp.org>
80681
80682         * gnulib-tool (import): Provide default for --tests-base.
80683
80684 2005-09-19  Bruno Haible  <bruno@clisp.org>
80685
80686         * doc/quote.texi: New file, extracted from gnulib.texi.
80687         * doc/ctime.texi: New file, extracted from gnulib.texi.
80688         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80689         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80690         * doc/gnulib.texi: Include them.
80691
80692 2005-09-18  Bruno Haible  <bruno@clisp.org>
80693
80694         Portability fix.
80695         * gnulib-tool (func_readlink): New function.
80696         (func_ln_if_changed): Use it.
80697
80698 2005-09-18  Bruno Haible  <bruno@clisp.org>
80699
80700         * gnulib-tool: Support --with-tests also with --import.
80701         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80702         (func_import): Use variables $testsbase and $inctests. Emit a
80703         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80704         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80705         SUBDIRS += $testsdir.
80706         (func_create_testdir): Update.
80707
80708 2005-09-18  Bruno Haible  <bruno@clisp.org>
80709
80710         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80711         instead of $dry_run.
80712         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80713         (func_ln_if_changed): Don't handle dry-run here.
80714         (func_import): In dry-run mode, detect more precisely which actions
80715         would be performed, and don't use "...ing" verbs.
80716
80717 2005-09-18  Bruno Haible  <bruno@clisp.org>
80718
80719         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80720         (func_import): Use join on two temporary files instead of three nested
80721         loops, in order to determine which files are new or old.
80722
80723 2005-09-18  Bruno Haible  <bruno@clisp.org>
80724
80725         * gnulib-tool (func_import): Comment out code that spits out the
80726         new files with --dry-run.
80727
80728 2005-09-18  Bruno Haible  <bruno@clisp.org>
80729
80730         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80731
80732 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * lib/stat-time.h: New file.
80735         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80736         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80737         in a different way.
80738         (timespec_cmp): New function.
80739         * lib/utimecmp.c: Include stat-time.h.
80740         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80741         members exist, not on the obsolescent ST_MTIM_NSEC.
80742         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80743
80744 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80745
80746         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80747
80748 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * MODULES.html.sh (File system functions): Add stat-time.
80751         * modules/stat-time: New file.
80752         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80753         is now done in a different way, by the stat-time module.
80754         * modules/utimecmp (Depends-on): Add stat-time.
80755
80756 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * m4/st_mtim.m4: Remove.  Superseded by...
80759         * m4/stat-time.m4: New file.
80760         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80761         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80762
80763 2005-09-15  Derek Price  <derek@ximbiot.com>
80764
80765         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80766
80767 2005-09-15  Derek Price  <derek@ximbiot.com>
80768
80769         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80770         * lib/regex_internal.c: Ditto, using this...
80771         (__GNUC_PREREQ): ...new macro.
80772         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80773         using...
80774         (__GNUC_PREREQ): ...this new macro.
80775
80776         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80777
80778 2005-09-15  Derek Price  <derek@ximbiot.com>
80779             Paul Eggert  <eggert@cs.ucla.edu>
80780
80781         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80782         changes, consolidating in...
80783         * lib/regex_internal.h: ...this file.
80784
80785 2005-09-13  Jim Meyering  <jim@meyering.net>
80786
80787         * lib/canon-host.c: Filter through gnu indent and reword comments
80788         slightly.
80789         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80790
80791 2005-09-13  Derek Price  <derek@ximbiot.com>
80792
80793         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80794         failure.
80795         Reported by Jim Meyering  <jim@meyering.net>.
80796
80797 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80798
80799         * lib/base64.c: Typo.
80800         (base64_encode): Put b64str in initialized data section.
80801
80802 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80803
80804         Merge glibc and coreutils changes into gnulib, plus a few
80805         extra fixes.
80806         * lib/md5.c: Use #error rather than a string.
80807         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80808         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80809         (__attribute__): Define to empty for non recent-GCC.
80810         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80811         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80812         Renamed from their non-__ counterparts, with new macros replacing
80813         them if not _LIBC.  Add __THROW attribute.
80814         (rol): Remove.
80815         (struct md5_ctx): Align buffer if using GCC.
80816         * lib/sha1.h (struct sha1_ctx): Likewise.
80817         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80818         The old name was backwards.
80819         (NOTSWAP): Remove; not used.
80820         (rol): New macro, moved here from md5.h.
80821         (sha1_process_block): Remove a FIXME that doesn't make sense.
80822
80823 2005-09-12  Derek Price  <derek@ximbiot.com>
80824
80825         Return usable errors from canon-host.
80826         * lib/canon-host.h: New file.
80827         * lib/canon-host.c (canon_host): Wrap...
80828         (canon_host_r): ...this new function, which now relies exclusively on
80829         getaddrinfo.
80830         (ch_strerror): New function.
80831         (last_cherror): New global.
80832         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80833         interface.
80834         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80835         void *.
80836         (freeaddrinfo): Free ai->ai_canonname when set.
80837
80838 2005-09-12  Derek Price  <derek@ximbiot.com>
80839
80840         Make canon-host require getaddrinfo.
80841         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80842         AC_LIBSOURCE canon-host.h.  Call...
80843         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80844         gl_GETADDRINFO.
80845         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80846
80847 2005-09-12  Derek Price  <derek@ximbiot.com>
80848
80849         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80850         LGPL.
80851         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80852
80853 2005-09-12  Derek Price  <derek@ximbiot.com>
80854
80855         * lib/gai_strerror.c: Include config.h when available.  Include
80856         getaddrinfo.h before other headers to test interface.
80857         Reported by Larry Jones <lawrence.jones@ugs.com>.
80858
80859 2005-09-12  Derek Price  <derek@ximbiot.com>
80860             Paul Eggert  <eggert@cs.ucla.edu>
80861
80862         * modules/glob (Files): Add glob-libc.h.
80863
80864 2005-09-12  Derek Price  <derek@ximbiot.com>
80865             Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80868         glob_.h, glob-libc.h.
80869         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80870
80871 2005-09-12  Derek Price  <derek@ximbiot.com>
80872             Paul Eggert  <eggert@cs.ucla.edu>
80873
80874         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80875         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80876         protecting things that should be done only in gnulib contexts.
80877         * lib/glob_.h: New file, containing only the glob things needed for
80878         gnulib.
80879         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80880         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80881         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80882         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80883         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80884         and to respect the namespace rules better.
80885
80886 2005-09-08  Simon Josefsson  <jas@extundo.com>
80887
80888         * modules/socklen: New file.
80889
80890 2005-09-08  Simon Josefsson  <jas@extundo.com>
80891
80892         * m4/socklen.m4: New file.
80893
80894 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * modules/utimens (Files): Add m4/utimbuf.m4, since
80897         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80898         Reported by Sergey Poznyakoff.
80899
80900 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80903         definitions, since that's the preferred style in glibc.
80904         Fix a minor spacing issue, and update copyright notice to match
80905         glibc's.
80906
80907 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80910
80911 2005-09-06  Simon Josefsson  <jas@extundo.com>
80912
80913         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80914         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80915
80916 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80919         warning.
80920
80921 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         * config/srclist.txt: Add glibc bug 1302.
80924
80925 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         Change bitset word type from unsigned int to unsigned long int,
80928         as this has better performance on typical 64-bit hosts.
80929         Port bitset code to hosts with unusual word sizes.
80930         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80931         (build_collating_symbol):
80932         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80933         argument is a bitset.  This is merely a style issue, but it makes
80934         it clearer that an entire array is expected.
80935         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80936         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80937         Port to the case where bitset_word is not the same as unsigned int.
80938         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80939         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80940         Likewise.
80941         * lib/regexec.c (check_dst_limits_calc_pos_1,
80942         check_subexp_matching_top):
80943         (build_trtable, group_nodes_into_DFAstates):
80944         Likewise.
80945         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80946         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80947         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80948         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80949         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80950         * lib/regcomp.c (optimize_subexps, lower_subexp):
80951         Work even if bitset_word has holes in its bitwise representation.
80952         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80953         * lib/regexec.c (check_dst_limits_calc_pos_1,
80954         check_subexp_matching_top):
80955         Likewise.
80956         * lib/regex_internal.c (re_string_reconstruct):
80957         Don't assume UCHAR_MAX == 255.
80958         * lib/regex_internal.h (bitset_set_all): Likewise.
80959         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80960         All uses changed.
80961         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80962         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80963         All uses changed.
80964         (BITSET_WORD_MAX): New macro.
80965         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80966         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80967         (bitset_empty, bitset_copy):
80968         Prefer sizeof (bitset) to multiplying it out ourselves.
80969         (bitset_not_merge): Remove; unused.
80970         (bitset_contain): Return bool, not unsigned int with one bit on.
80971         All callers changed.
80972         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80973         alignment than re_node_set; do this by defining a new internal
80974         type struct dests_alloc and using it to allocate memory.
80975
80976 2005-09-05  Bruno Haible  <bruno@clisp.org>
80977
80978         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80979         links.
80980
80981 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80982
80983         * modules/size_max (Makefile.am): Add size_max.h
80984
80985 2005-09-04  Derek Price  <derek@ximbiot.com>
80986
80987         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80988
80989 2005-09-03  Simon Josefsson  <jas@extundo.com>
80990
80991         * gnulib-tool: Fix typo.
80992
80993 2005-09-03  Simon Josefsson  <jas@extundo.com>
80994
80995         * config/srclist.txt: Add glibc bug 1293.
80996
80997 2005-09-03  Derek Price  <derek@ximbiot.com>
80998
80999         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81000         From Larry Jones <lawrence.jones@ugs.com>.
81001
81002 2005-09-02  Simon Josefsson  <jas@extundo.com>
81003
81004         * modules/socklen: New file.
81005
81006 2005-09-02  Simon Josefsson  <jas@extundo.com>
81007
81008         * modules/havelib: New module.
81009
81010         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81011         Use havelib.
81012
81013 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81014
81015         Check for arithmetic overflow when calculating sizes, to prevent
81016         some buffer-overflow issues.  These patches are conservative, in the
81017         sense that when I couldn't determine whether an overflow was possible,
81018         I inserted a run-time check.
81019         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81020         macros.
81021         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81022         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81023         (re_xnrealloc, re_x2nrealloc): New inline functions.
81024         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81025         parse_bracket_exp):
81026         (build_equiv_class, build_charclass): Check for arithmetic overflow
81027         in size expression calculations.
81028         * lib/regex_internal.c (re_string_realloc_buffers):
81029         (build_wcs_upper_buffer, re_node_set_add_intersect):
81030         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81031         (re_dfa_add_node, register_state): Likewise.
81032         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81033         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81034         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81035         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81036
81037 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81040         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81041
81042 2005-09-02  Bruno Haible  <bruno@clisp.org>
81043
81044         Support for lib vs. lib64 distinction on biarch platforms.
81045         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81046         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81048
81049 2005-09-02  Bruno Haible  <bruno@clisp.org>
81050
81051         * gnulib-tool (import): In the other first-use case, provide defaults
81052         as well.
81053
81054 2005-09-02  Bruno Haible  <bruno@clisp.org>
81055
81056         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81057         patches not yet found in the latest gettext release.
81058
81059 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81060
81061         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81062         to avoid a collision with bits/local_lim.h in glibc.
81063         All uses changed.  Problem reported by Dmitry V. Levin in
81064         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81065
81066         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81067         bugs in int versus size_t comparisons.
81068         (re_string_context_at): Fix bug where the code assumed that
81069         Idx is signed.
81070
81071         Use bool where appropriate.
81072         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81073         All callers changed.
81074         (calc_eclosure_iter): Likewise, for ROOT arg.
81075         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81076         (build_charclass_op): Likewise, for NON_MATCH arg.
81077         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81078         (re_string_construct_common): Likewise, for ICASE arg.
81079         * lib/regexec.c (re_search_2_stub, re_search_stub):
81080         Likewise, for RET_LEN arg.
81081         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81082         (set_regs): Likewise, for FL_BACKTRACK arg.
81083         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81084         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81085         (calc_eclosure_iter, parse_bracket_exp):
81086         Use bool for internal variables that are booleans.
81087         * lib/regexec.c (re_search_internal, check_matching,
81088         proceed_next_node):
81089         (set_regs, build_sifted_states, sift_states_bkref):
81090         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81091         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81092         (find_collation_sequence_value):
81093         Likewise.
81094         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81095         (re_node_set_compare):
81096         Return bool, not int. All callers changed.
81097         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81098         (build_trtable, check_node_accept): Likewise.
81099         * lib/regex_internal.h: Include stdbool.h.
81100
81101         Fix bugs uncovered when converting to bool.
81102         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81103         failure instead of charging ahead blindly.
81104         * lib/regex_internal.c (register_state): Likewise.
81105         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81106         for freeing internal storage.
81107         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81108         bitset pieces used as boolean, to avoid undefined behavior
81109         on hosts that do int overflow checking.
81110
81111 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81112
81113         * config/srclist.txt: Add glibc bugs 1285-1287.
81114
81115 2005-09-01  Jim Meyering  <jim@meyering.net>
81116
81117         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81118         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81119         Require gl_STAT_MACROS, too.
81120
81121 2005-09-01  Bruno Haible  <bruno@clisp.org>
81122
81123         * gnulib-tool (import): In the first-use case, provide defaults.
81124
81125 2005-09-01  Bruno Haible  <bruno@clisp.org>
81126
81127         * gnulib-tool (func_import): Remove the .tmp files.
81128
81129 2005-09-01  Bruno Haible  <bruno@clisp.org>
81130
81131         * gnulib-tool (func_import): Fix handling of symbolic links.
81132
81133 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81134
81135         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81136         old glibc regex code mishandles strings longer than 2**31 bytes.
81137         This patch fixes this when the regex code is used in gnulib
81138         (i.e., outside glibc).
81139
81140         This patch should not affect the use of the regex code inside
81141         glibc.  No doubt this problem also needs to be handled for glibc
81142         as well, but the result will be an incompatible change to the
81143         glibc ABI, and the old ABI will have to be supported too.  That
81144         can be the the subject for another patch.
81145
81146         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81147         governing whether the rest of this patch is active.  By default,
81148         the macro is disabled and the patch has no effect.
81149         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81150         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81151         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81152         (re_match_2, re_set_registers): Use the new types.
81153         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81154         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81155         New macros.
81156         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81157         (re_string_context_at, bin_tree_t, re_dfastate_t):
81158         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81159         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81160         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81161         (re_string_char_size_at, re_string_wchar_at):
81162         (re_string_elem_size_at):
81163         Use the new types and macros to port to 64-bit hosts.
81164         Use unsigned types for internal values, so that the code
81165         mostly works even for arrays larger than SSIZE_MAX.
81166         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81167         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81168         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81169         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81170         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81171         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81172         (calc_inveclosure, parse_dup_op, build_range_exp):
81173         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81174         (fetch_number, create_token_tree, mark_opt_subexp):
81175         Likewise.
81176         * lib/regex_internal.c (re_string_construct_common,
81177         create_ci_newstate):
81178         (create_cd_newstate, re_string_allocate, re_string_construct):
81179         (re_string_realloc_buffers, build_wcs_upper_buffer):
81180         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81181         (re_string_reconstruct, re_string_peek_byte_case):
81182         (re_string_fetch_byte_case, re_string_context_at):
81183         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81184         (re_node_set_init_copy, re_node_set_add_intersect):
81185         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81186         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81187         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81188         (re_acquire_state, re_acquire_state_context, register_state):
81189         Likewise.
81190         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81191         search_cur_bkref_entry):
81192         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81193         (re_search_internal, re_search_2_stub, re_search_stub)
81194         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81195         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81196         (update_cur_sifted_state, check_dst_limits):
81197         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81198         (check_subexp_limits, sift_states_bkref, merge_state_array):
81199         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81200         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81201         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81202         (expand_bkref_cache, check_node_accept_bytes):
81203         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81204         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81205         (acquire_init_state_context, check_halt_node_context):
81206         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81207         (sift_states_backward, clean_state_log_if_needed):
81208         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81209         (find_recover_state, transit_state_sb, transit_state_mb):
81210         (transit_state_bkref, build_trtable, match_ctx_clean):
81211         Likewise.
81212         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81213         to work around an assumption that REG_MISSING is negative.
81214
81215         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81216         (seek_collating_symbol_entry) [defined _LIBC]:
81217         (lookup_collation_sequence_value) [defined _LIBC]:
81218         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81219         Use prototypes rather than old-style function definitions.
81220         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81221         (transit_state_sb) [0]:
81222         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81223
81224         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81225         rm_eo.
81226
81227         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81228         (optimize_subexps, lower_subexp):
81229         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81230         since the signed shift might overflow.  Use 1u<<31 instead.
81231         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81232         Likewise.
81233         * lib/regexec.c (check_dst_limits_calc_pos_1,
81234         check_subexp_matching_top): Likewise.
81235
81236         * lib/regcomp.c (optimize_subexps, lower_subexp):
81237         Use CHAR_BIT rather than 8, for clarity.
81238         * lib/regexec.c (check_dst_limits_calc_pos_1):
81239         (check_subexp_matching_top): Likewise.
81240         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81241         have to worry about portability issues when shifting it left.
81242         Remove no-longer-needed test for table_size > 0.
81243         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81244         in a word, as the resulting behavior is undefined.
81245         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81246         in one case, a <= should have been an <, and in another case the
81247         whole test was missing.
81248         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81249         the standard name CHAR_BIT.
81250         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81251         this is not true on one's complement and signed-magnitude hosts.
81252
81253         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81254         next_last_offset.
81255         (struct re_dfa_t): Remove unused member states_alloc.
81256         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81257
81258 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81261         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81262         and large-file glibc and in 32-bit large-file Solaris.
81263
81264 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81265
81266         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81267         lengths fit in regoff_t; this isn't true if regoff_t is the same
81268         width as size_t.
81269         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81270         (= START + RANGE) instead of RANGE.  This avoids overflow
81271         problems when regoff_t is the same width as size_t.
81272         All callers changed.
81273         (re_search_2_stub): Check for overflow when adding the
81274         sizes of the two strings.
81275         (re_search_stub): Check for overflow when adding START
81276         to RANGE; if it occurs, substitute the extreme value.
81277
81278 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81281
81282 2005-08-31  Jim Meyering  <jim@meyering.net>
81283
81284         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81285         a pointer-to-const.
81286         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81287         (register_state): Likewise.
81288         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81289         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81290         (group_nodes_into_DFAstates): Likewise.
81291
81292 2005-08-31  Jim Meyering  <jim@meyering.net>
81293
81294         * check-module: Add a FIXME comment.
81295
81296 2005-08-31  Eric Blake  <ebb9@byu.net>
81297
81298         * modules/unistd-safer (Files): Add unistd--.h.
81299         * modules/stdio-safer (Files): Add stdio--.h.
81300
81301 2005-08-31  Derek Price  <derek@ximbiot.com>
81302
81303         * lib/getdelim.c (getdelim): Return EOF on EOF.
81304         Reported by Larry Jones <lawrence.jones@ugs.com>.
81305
81306 2005-08-31  Bruno Haible  <bruno@clisp.org>
81307
81308         Avoid unnecessary diffs in the generated lib/Makefile.am.
81309         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81310         the generated files.
81311         (func_import): Don't set cmd.
81312
81313 2005-08-31  Bruno Haible  <bruno@clisp.org>
81314
81315         * lib/strstr.c: Include <stddef.h>, for NULL.
81316         * lib/strcasestr.c: Likewise.
81317         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81318
81319 2005-08-31  Bruno Haible  <bruno@clisp.org>
81320
81321         * gnulib-tool: New option --macro-prefix.
81322         (func_import): Use macro_prefix.
81323         (import): Handle option --macro-prefix.
81324
81325 2005-08-31  Bruno Haible  <bruno@clisp.org>
81326
81327         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81328         Also use new variables cached_lgpl, cached_libtool.
81329
81330 2005-08-31  Bruno Haible  <bruno@clisp.org>
81331
81332         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81333         always instantiating them.
81334
81335 2005-08-31  Bruno Haible  <bruno@clisp.org>
81336
81337         * gnulib-tool (func_import): Read the previous cached settings
81338         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81339         earlier added by gnulib but are now dropped. Warn when a gnulib file
81340         overwrites a non-gnulib file.
81341
81342 2005-08-31  Bruno Haible  <bruno@clisp.org>
81343
81344         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81345         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81346         projects that don't keep autogenerated files in CVS. Put into
81347         actioncmd only the specified modules, not the transitive closure.
81348
81349 2005-08-31  Bruno Haible  <bruno@clisp.org>
81350
81351         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81352         Create directories that shall be filled.
81353         (import): Don't look for gl_* macros in configure.ac. Recurse across
81354         all directories containing a gnulib-cache.m4 files, if meaningful.
81355
81356 2005-08-31  Bruno Haible  <bruno@clisp.org>
81357
81358         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81359         (import): Set seen_libtool when we see gl_LIBTOOL.
81360
81361 2005-08-31  Bruno Haible  <bruno@clisp.org>
81362
81363         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81364         declaration macro definitions from generated gnulib.m4.
81365
81366 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81367
81368         * lib/iconvme.h: Add prototype for iconv_alloc.
81369
81370 2005-08-29  Simon Josefsson  <jas@extundo.com>
81371
81372         * lib/iconvme.c: Fix errno.
81373
81374 2005-08-29  Bruno Haible  <bruno@clisp.org>
81375
81376         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81377         that it works when the directory contains spaces.
81378
81379 2005-08-29  Bruno Haible  <bruno@clisp.org>
81380
81381         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81382
81383 2005-08-29  Bruno Haible  <bruno@clisp.org>
81384
81385         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81386         Emit more advice.
81387
81388 2005-08-29  Bruno Haible  <bruno@clisp.org>
81389         and Stepan Kasal  <kasal@ucw.cz>
81390
81391         * check-module: If more parameters are given, check each of them
81392         separately; add more exceptions, as noted by Jim Meyering.
81393         (check_module): New procedure.
81394         (%exempt_header): Now contains all exceptions.
81395
81396 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81397
81398         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81399
81400 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81401
81402         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81403
81404 2005-08-28  Bruno Haible  <bruno@clisp.org>
81405
81406         * m4/gnulib-tool.m4: New file.
81407
81408 2005-08-27  Jim Meyering  <jim@meyering.net>
81409
81410         * modules/unistd-safer (Files): Add pipe-safer.c.
81411         * modules/fcntl-safer (Files): Add creat-safer.c.
81412
81413 2005-08-27  Jim Meyering  <jim@meyering.net>
81414
81415         * m4/stdlib-safer.m4: New file.  From coreutils.
81416         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81417         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81418         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81419         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81420         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81421
81422 2005-08-27  Jim Meyering  <jim@meyering.net>
81423
81424         * lib/fopen-safer.c: Merge minor changes from coreutils.
81425         * lib/dup-safer.c: Likewise.
81426         * lib/fd-safer.c: Likewise.
81427
81428         Merge from coreutils.
81429         * lib/stdio--.h: New file.
81430         * lib/stdlib--.h: New file.
81431         * lib/mkstemp-safer.c: New file.
81432
81433         GNU tar needs these.
81434         * lib/pipe-safer.c: New file.
81435         * lib/creat-safer.c: New file.
81436         * lib/fcntl--.h (creat): Define to creat_safer.
81437         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81438         * lib/unistd--.h (pipe): Define to pipe_safer.
81439         * lib/unistd-safer.h: Declare pipe_safer.
81440
81441 2005-08-26  Simon Josefsson  <jas@extundo.com>
81442
81443         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81444         Haible <bruno@clisp.org>.
81445
81446 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81447
81448         * lib/regex_internal.h: Remove all references to
81449         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81450         or better.
81451         (bitset_not, bitset_merge, bitset_not_merge):
81452         (bitset_mask, re_string_allocate, re_string_construct):
81453         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81454         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81455         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81456         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81457         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81458         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81459         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81460         (re_acquire_state_context):
81461         Remove unnecessary forward decls.
81462         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81463         Put __attribute at function definition,
81464         now that the function decl has been removed.
81465         * lib/regex_internal.c (re_string_peek_byte_case):
81466         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81467         Likewise.
81468
81469 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81470
81471         * m4/regex.m4: Add AC_PREREQ(2.50).
81472         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81473
81474 2005-08-25  Simon Josefsson  <jas@extundo.com>
81475
81476         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81477         __fsetlocking.
81478
81479 2005-08-25  Simon Josefsson  <jas@extundo.com>
81480
81481         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81482         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81483         GLIBC specific code.
81484
81485 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81486
81487         Make regex safe for g++.  This fixes one real bug (an "err"
81488         that should have been "*err").  g++ problem reported by
81489         Sam Steingold.
81490         * lib/regex_internal.h (re_calloc): New macro, consistent with
81491         re_malloc etc.  All callers of calloc changed to use re_calloc.
81492         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81493         not int.  All callers changed.
81494         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81495         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81496         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81497         (find_recover_state): Change "err" to "*err"; this fixes what
81498         appears to be a real bug.
81499         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81500         versus int.
81501
81502 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * modules/regex (Depends-on): Add malloc, since the code
81505         assumes that !malloc(0) means failure.
81506
81507 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81510
81511         alloca modernization/simplification for regex.
81512         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81513         needs to be at the start of the file, and can be moved into
81514         regex_internal.h and simplified.
81515         * lib/regex_internal.h: Include <alloca.h>.
81516         (__libc_use_alloca) [!defined _LIBC]: New macro.
81517         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81518         now works outside glibc.
81519
81520 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81521
81522         * config/srclist.txt: Add glibc bugs 1241, 1245.
81523
81524 2005-08-25  Jim Meyering  <jim@meyering.net>
81525
81526         * lib/open-safer.c: Include <config.h>.
81527         Otherwise, we'd lose LARGEFILE support in any file using
81528         e.g. "fcntl--.h"
81529
81530 2005-08-25  Bruno Haible  <bruno@clisp.org>
81531
81532         * m4/minmax.m4: Require autoconf 2.52.
81533         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81534         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81535         alternatives of translit over the alphabet.
81536         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81537
81538 2005-08-24  Simon Josefsson  <jas@extundo.com>
81539
81540         * tests/test-getpass.c: New file.
81541
81542 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81545         for GNU regex features.
81546
81547 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81550         * lib/regex.h (regerror): Likewise.
81551
81552         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81553         requires this.  (The code never needed it.)
81554
81555         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81556         All uses of recently-renamed identifiers changed to use the new,
81557         POSIX-compliant names.  The code will build and run just fine
81558         without these changes, but it's better to eat our own dog food
81559         and use the standard-conforming names.
81560
81561         * lib/regex.h: Fix a multitude of POSIX name space violations.
81562         These changes have an effect only for programs that define
81563         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81564         do not change anything for programs compiled in the normal way.
81565         Also, there is no effect on the ABI.
81566
81567         (_REGEX_SOURCE): New macro.
81568         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81569         defined and _GNU_SOURCE is not; this fixes a name space violation.
81570
81571         Rename the following macros to obey POSIX requirements.
81572         The old names are still visible as macros if _REGEX_SOURCE is defined.
81573         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81574         RE_BACKSLASH_ESCAPE_IN_LISTS.
81575         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81576         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81577         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81578         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81579         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81580         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81581         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81582         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81583         (REG_INTERVALS): renamed from RE_INTERVALS.
81584         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81585         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81586         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81587         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81588         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81589         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81590         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81591         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81592         RE_UNMATCHED_RIGHT_PAREN_ORD.
81593         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81594         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81595         (REG_DEBUG): renamed from RE_DEBUG.
81596         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81597         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81598         unusual, since we can't clash with the POSIX REG_ICASE.
81599         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81600         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81601         (REG_NO_SUB): renamed from RE_NO_SUB.
81602         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81603         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81604         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81605         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81606         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81607         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81608         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81609         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81610         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81611         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81612         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81613         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81614         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81615         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81616         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81617         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81618         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81619         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81620         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81621         (REG_FIXED): Renamed from REGS_FIXED.
81622         (REG_NREGS): Renamed from RE_NREGS.
81623
81624         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81625         of other REG_* macros, since POSIX says the user is allowed to
81626         #undef these macros selectively.
81627
81628         (reg_errcode_t): Update comment stating what other tables need
81629         to be consistent.
81630
81631         Rename the following enum values to obey POSIX requirements.
81632         The old names are still visible as macros.
81633         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81634         is not defined, since GNU is supposed to be a superset of POSIX as
81635         much as possible, and since we want reg_errcode_t to be a signed
81636         type for implementation consistency.
81637         (_REG_NOERROR): Renamed from REG_NOERROR.
81638         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81639         (_REG_BADPAT): Renamed from REG_BADPAT.
81640         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81641         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81642         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81643         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81644         (_REG_EBRACK): Renamed from REG_EBRACK.
81645         (_REG_EPAREN): Renamed from REG_EPAREN.
81646         (_REG_EBRACE): Renamed from REG_EBRACE.
81647         (_REG_BADBR): Renamed from REG_BADBR.
81648         (_REG_ERANGE): Renamed from REG_ERANGE.
81649         (_REG_ESPACE): Renamed from REG_ESPACE.
81650         (_REG_BADRPT): Renamed from REG_BADRPT.
81651         (_REG_EEND): Renamed from REG_EEND.
81652         (_REG_ESIZE): Renamed from REG_ESIZE.
81653         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81654         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81655         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81656         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81657         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81658
81659         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81660         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81661         changed.  But support the old name if the new one is not defined
81662         and if _REGEX_SOURCE.
81663
81664         Change the following member names in struct re_pattern_buffer.
81665         The old names are still supported if !_REGEX_SOURCE.
81666         The new names are always supported, regardless of _REGEX_SOURCE.
81667         (re_buffer): Renamed from buffer.
81668         (re_allocated): Renamed from allocated.
81669         (re_used): Renamed from used.
81670         (re_syntax): Renamed from syntax.
81671         (re_fastmap): Renamed from fastmap.
81672         (re_translate): Renamed from translate.
81673         (re_can_be_null): Renamed from can_be_null.
81674         (re_regs_allocated): Renamed from regs_allocated.
81675         (re_fastmap_accurate): Renamed from fastmap_accurate.
81676         (re_no_sub): Renamed from no_sub.
81677         (re_not_bol): Renamed from not_bol.
81678         (re_not_eol): Renamed from not_eol.
81679         (re_newline_anchor): Renamed from newline_anchor.
81680
81681         Change the following member names in struct re_registers.
81682         The old names are still supported if !_REGEX_SOURCE.
81683         The new names are always supported, regardless of _REGEX_SOURCE.
81684         (rm_num_regs): Renamed from num_regs.
81685         (rm_start): Renamed from start.
81686         (rm_end): Renamed from end.
81687
81688         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81689         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81690         Prepend __ to parameter names.
81691
81692         Undo yesterday's changes.
81693
81694 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81697         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81698         lib/regex.c.
81699
81700 2005-08-24  Jim Meyering  <jim@meyering.net>
81701
81702         Sync from coreutils.
81703         * m4/fcntl-safer.m4: New file.
81704
81705         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81706         and object files for this module.
81707
81708 2005-08-24  Jim Meyering  <jim@meyering.net>
81709
81710         Sync from coreutils.
81711         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81712
81713 2005-08-24  Jim Meyering  <jim@meyering.net>
81714
81715         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81716         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81717
81718 2005-08-24  Jim Meyering  <jim@meyering.net>
81719
81720         * modules/fcntl-safer: New module.
81721         * modules/fts (Depends-on): Add fcntl-safer.
81722         * MODULES.html.sh (File descriptor based Input/Output):
81723         Add fcntl-safer.
81724
81725 2005-08-24  Bruno Haible  <bruno@clisp.org>
81726
81727         Support for unit test modules.
81728         * modules/README: Mention tests modules.
81729         * modules/TEMPLATE-TESTS: New file.
81730         * gnulib-tool: New options --extract-tests-module, --with-tests and
81731         --tests-base (unused for the moment).
81732         (testsbase, inctests): New variables.
81733         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81734         (func_verify_module): Exclude TEMPLATE-TESTS.
81735         (func_verify_nontests_module, func_verify_tests_module): New functions.
81736         (func_get_dependencies): Add implicit dependency for tests modules.
81737         (func_get_tests_module): New function.
81738         (func_modules_transitive_closure): When --with-tests was specified,
81739         include the unit tests as well, unless explicitly avoided.
81740         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81741         (func_emit_tests_Makefile_am): New function.
81742         (func_create_testdir): When --with-tests was specified, emit a
81743         tests/ directory.
81744         * MODULES.html.sh (Future developments): Update.
81745
81746 2005-08-24  Bruno Haible  <bruno@clisp.org>
81747
81748         * modules/tls-tests: New file.
81749         * tests/test-tls.c: New file, from GNU gettext.
81750
81751 2005-08-24  Bruno Haible  <bruno@clisp.org>
81752
81753         * modules/lock-tests: New file.
81754         * tests/test-lock.c: New file, from GNU gettext.
81755
81756 2005-08-24  Bruno Haible  <bruno@clisp.org>
81757
81758         * lib/lock.h: Add multiple inclusion guard.
81759         * lib/tls.h: Add multiple inclusion guard.
81760
81761 2005-08-24  Bruno Haible  <bruno@clisp.org>
81762
81763         * gnulib-tool: Add support for the --aux-dir option to
81764         --create-testdir, --create-megatestdir, --test, --megatest.
81765         (func_create_testdir, func_create_megatestdir): Optionally emit a
81766         AC_CONFIG_AUX_DIR directive.
81767         (create-testdir, create-megatestdir, test, megatest): Provide a
81768         default value for $auxdir.
81769
81770 2005-08-24  Bruno Haible  <bruno@clisp.org>
81771
81772         * gnulib-tool (import): Use compound statement instead of subshell
81773         where possible.
81774
81775 2005-08-24  Bruno Haible  <bruno@clisp.org>
81776
81777         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81778
81779 2005-08-24  Bruno Haible  <bruno@clisp.org>
81780
81781         * gnulib-tool (func_version): Update.
81782
81783 2005-08-24  Bruno Haible  <bruno@clisp.org>
81784
81785         * gnulib-tool (func_import, func_create_testdir,
81786         func_create_megatestdir): Quote all autoconf macro arguments.
81787
81788 2005-08-24  Bruno Haible  <bruno@clisp.org>
81789
81790         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81791         option --force, because --force causes the aclocal.m4 of each
81792         subdirectory to be newer than the corresponding config.h.in.
81793
81794 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81795
81796         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81797         All contents moved to gl_REGEX.
81798         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81799         assume that it does.
81800
81801 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81802
81803         * lib/regex.h (REG_NOSYS)
81804         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81805         Define, since POSIX requires it as of 2001.
81806         (_REG_ENOSYS)
81807         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81808         New private symbol, used to keep the enum signed in all cases.
81809         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81810         Youngman in
81811         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81812
81813         * lib/regex_internal.c (re_string_skip_chars, register_state):
81814         (calc_state_hash):
81815         Remove forward decls; no longer needed now that we use prototypes.
81816         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81817         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81818         (clean_state_log_if_needed): Likewise.
81819
81820 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81821
81822         * config/srclist.txt: Add glibc bugs 1231-1233.
81823
81824 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81825
81826         Fix problems reported by Sam Steingold in
81827         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81828         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81829         assumed that reg_errcode_t is a signed type, which is not
81830         necessarily true if _XOPEN_SOURCE is not defined.
81831         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81832         since some compilers warn about it otherwise.
81833
81834 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81837         (init_word_char, create_initial_state, duplicate_node_closure):
81838         (fetch_token, peek_token_bracket, build_range_exp):
81839         (build_collating_symbol): Remove forward decls; no longer needed
81840         now that we use prototypes.
81841
81842         * lib/regcomp.c:
81843         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81844         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81845         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81846         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81847         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81848         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81849         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81850         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81851         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81852         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81853         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81854         (build_charclass, build_charclass_op, fetch_number, create_tree):
81855         (create_token_tree, mark_opt_subexp, duplicate_tree):
81856         Use prototypes rather than old-style definitions.
81857
81858         * lib/regex_internal.c:
81859         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81860         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81861         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81862         (re_string_reconstruct, re_string_peek_byte_case):
81863         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81864         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81865         (re_node_set_init_copy, re_node_set_add_intersect):
81866         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81867         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81868         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81869         (re_acquire_state, re_acquire_state_context, register_state):
81870         (create_ci_newstate, create_cd_newstate, free_state):
81871         Likewise.
81872         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81873         re_search_2):
81874         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81875         (re_search_internal, prune_impossible_nodes):
81876         (acquire_init_state_context, check_matching, static):
81877         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81878         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81879         (update_regs, sift_states_backward, build_sifted_states):
81880         (clean_state_log_if_needed, merge_state_array):
81881         (update_cur_sifted_state, add_epsilon_src_nodes):
81882         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81883         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81884         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81885         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81886         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81887         (check_arrival, check_arrival_add_next_nodes):
81888         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81889         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81890         (check_node_accept_bytes, check_node_accept, extend_buffers):
81891         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81892         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81893         (sift_ctx_init):
81894         Likewise.
81895
81896         * lib/regex_internal.h:
81897         (re_string_allocate, re_string_construct, re_string_reconstruct):
81898         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81899         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81900         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81901         (re_string_context_at, re_string_peek_byte_case):
81902         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81903         is defined, since we now use prototypes always.
81904
81905         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81906         C89 or better.  All uses removed.
81907
81908 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         * config/srclist.txt: Add glibc bugs 1220-1227.
81911
81912 2005-08-20  Jim Meyering  <jim@meyering.net>
81913
81914         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81915         of unused local, dfa.
81916
81917 2005-08-20  Bruno Haible  <bruno@clisp.org>
81918
81919         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81920
81921 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81924         (re_node_set_insert_last, re_dfa_add_node):
81925         Rename local variables to avoid GCC shadowing warnings.
81926
81927 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81930         [defined lint]: Suppress bogus uninitialized-variable warnings.
81931
81932         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81933         and let the caller return REG_ESPACE if out of space.  This
81934         removes an uninitialied-variable warning with GCC 4.0.1, and also
81935         avoids taking the address of a local variable.  All callers
81936         changed.
81937
81938 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81941         $LIBCSRC/posix/regexec.c.
81942         Add glibc bug 1217 for regcomp.c.
81943
81944 2005-08-19  Jim Meyering  <jim@meyering.net>
81945
81946         * lib/regexec.c (proceed_next_node): Redo local variables to
81947         avoid GCC shadowing warnings.
81948
81949 2005-08-18  Bruno Haible  <bruno@clisp.org>
81950
81951         * lib/strstr.c (strstr): Fix return value in multibyte case.
81952         * lib/strcasestr.c (strcasestr): Likewise.
81953
81954 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81955
81956         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81957
81958 2005-08-17  Jim Meyering  <jim@meyering.net>
81959
81960         Make the %s format (seconds since the epoch) work for a negative
81961         number and when used with a zero-padded field width, e.g. %015s.
81962
81963         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81964         label so that it precedes the code to set `digits'.  Otherwise,
81965         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81966         print `00-22'.  Now, it prints `-0022', as it should.
81967
81968 2005-08-17  Bruno Haible  <bruno@clisp.org>
81969
81970         * modules/strstr (Files): Add m4/mbrtowc.m4.
81971         (Depends-on): Add mbuiter.
81972
81973 2005-08-17  Bruno Haible  <bruno@clisp.org>
81974
81975         * modules/strcasestr: New file.
81976         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81977         strcasestr.
81978
81979 2005-08-17  Bruno Haible  <bruno@clisp.org>
81980
81981         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81982
81983 2005-08-17  Bruno Haible  <bruno@clisp.org>
81984
81985         * modules/mbuiter: New file.
81986         * MODULES.html.sh (Extended multibyte and wide character utilities):
81987         Add mbuiter.
81988
81989 2005-08-17  Bruno Haible  <bruno@clisp.org>
81990
81991         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81992         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81993
81994 2005-08-17  Bruno Haible  <bruno@clisp.org>
81995
81996         * m4/strcasestr.m4: New file.
81997
81998 2005-08-17  Bruno Haible  <bruno@clisp.org>
81999
82000         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82001         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82002
82003 2005-08-17  Bruno Haible  <bruno@clisp.org>
82004
82005         * lib/strcasestr.h: New file.
82006         * lib/strcasestr.c: New file.
82007
82008 2005-08-17  Bruno Haible  <bruno@clisp.org>
82009
82010         * lib/strcasecmp.c: Use mbuiter.h.
82011
82012 2005-08-17  Bruno Haible  <bruno@clisp.org>
82013
82014         * lib/mbuiter.h: New file.
82015
82016 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82019         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82020         and gl_GETOPT are both invoked via different paths (as happens
82021         with GNU tar CVS because it uses both argp and getopt), the former
82022         wins.
82023
82024 2005-08-16  Bruno Haible  <bruno@clisp.org>
82025
82026         * modules/tls: New file.
82027         * MODULES.html.sh (Multithreading): Add tls.
82028
82029 2005-08-16  Bruno Haible  <bruno@clisp.org>
82030
82031         * modules/strnlen1: New file.
82032         * MODULES.html.sh (String handling): Add strnlen1.
82033
82034 2005-08-16  Bruno Haible  <bruno@clisp.org>
82035
82036         * modules/strcase (Files): Add m4/mbrtowc.m4.
82037         (Depends-on): Add strnlen1, mbchar.
82038
82039 2005-08-16  Bruno Haible  <bruno@clisp.org>
82040
82041         * modules/mbiter: New file.
82042         * MODULES.html.sh (Extended multibyte and wide character utilities):
82043         Add mbiter.
82044
82045 2005-08-16  Bruno Haible  <bruno@clisp.org>
82046
82047         * modules/mbfile: New file.
82048         * MODULES.html.sh (Extended multibyte and wide character utilities):
82049         Add mbfile.
82050
82051 2005-08-16  Bruno Haible  <bruno@clisp.org>
82052
82053         * modules/mbchar: New file.
82054         * MODULES.html.sh (Extended multibyte and wide character utilities):
82055         New section.
82056
82057 2005-08-16  Bruno Haible  <bruno@clisp.org>
82058
82059         * m4/tls.m4: New file, from GNU gettext.
82060
82061 2005-08-16  Bruno Haible  <bruno@clisp.org>
82062
82063         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82064         always.
82065         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82066
82067 2005-08-16  Bruno Haible  <bruno@clisp.org>
82068
82069         * m4/mbiter.m4: New file.
82070
82071 2005-08-16  Bruno Haible  <bruno@clisp.org>
82072
82073         * m4/mbfile.m4: New file.
82074
82075 2005-08-16  Bruno Haible  <bruno@clisp.org>
82076
82077         * m4/mbchar.m4: New file.
82078
82079 2005-08-16  Bruno Haible  <bruno@clisp.org>
82080
82081         * lib/tls.h: New file, from GNU gettext.
82082         * lib/tls.c: New file, from GNU gettext.
82083
82084 2005-08-16  Bruno Haible  <bruno@clisp.org>
82085
82086         * lib/strnlen1.h: New file.
82087         * lib/strnlen1.c: New file.
82088
82089 2005-08-16  Bruno Haible  <bruno@clisp.org>
82090
82091         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82092         (mbi_init): Update.
82093         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82094         NUL byte, not after it.
82095
82096 2005-08-16  Bruno Haible  <bruno@clisp.org>
82097
82098         * lib/strcase.h (strcasecmp): Add note in comments.
82099         * lib/strncasecmp.c: Use code from strcasecmp.c.
82100         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82101         (strcasecmp): Work correctly in multibyte locales.
82102
82103 2005-08-16  Bruno Haible  <bruno@clisp.org>
82104
82105         * lib/mbiter.h: New file.
82106
82107 2005-08-16  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/mbfile.h: New file.
82110
82111 2005-08-16  Bruno Haible  <bruno@clisp.org>
82112
82113         * lib/mbchar.h: New file.
82114         * lib/mbchar.c: New file.
82115
82116 2005-08-16  Bruno Haible  <bruno@clisp.org>
82117
82118         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82119         the valid ones. Makes the comparison operations transitive:
82120         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82121         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82122
82123 2005-08-15  Simon Josefsson  <jas@extundo.com>
82124
82125         * modules/ssize_t (License): Change to 'unlimited'.
82126
82127         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82128
82129 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82132         Add comments for each pending glibc patch.
82133
82134 2005-08-15  Bruno Haible  <bruno@clisp.org>
82135
82136         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82137         __cplusplus is defined.
82138
82139 2005-08-14  Jim Meyering  <jim@meyering.net>
82140
82141         Sync from coreutils.
82142
82143         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82144         Use the hash-table-based cycle-detection code not just when
82145         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82146         Reported by James Youngman in
82147         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82148         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82149         FTS_TIGHT_CYCLE_CHECK.
82150         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82151         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82152         once again.
82153         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82154         * lib/fts.c (fd_safer): Remove decl.
82155         Include fcntl--.h rather than unistd-safer.h
82156         (fts_safe_changedir): Don't call fd_safer; no longer needed
82157         now that we include fcntl--.h.
82158
82159 2005-08-12  Simon Josefsson  <jas@extundo.com>
82160
82161         * modules/getndelim2: Use ssize_t module.
82162         * modules/getnline: Likewise.
82163         * modules/safe-read: Likewise.
82164         * modules/xreadlink: Likewise.
82165
82166         * modules/ssize_t: New file.
82167
82168 2005-08-12  Simon Josefsson  <jas@extundo.com>
82169
82170         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82171
82172 2005-08-12  Simon Josefsson  <jas@extundo.com>
82173
82174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82175         ssize_t.
82176
82177 2005-08-12  Simon Josefsson  <jas@extundo.com>
82178
82179         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82180         readline, getdelim and check_version.
82181         (Support for systems lacking ISO C 99: Sizes of integer types):
82182         Add size_max.
82183
82184 2005-08-12  Bruno Haible  <bruno@clisp.org>
82185
82186         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82187
82188 2005-08-11  Simon Josefsson  <jas@extundo.com>
82189
82190         * modules/readline: New file.
82191
82192         * modules/strnlen (Files): Add strnlen.h.
82193
82194 2005-08-11  Simon Josefsson  <jas@extundo.com>
82195
82196         * m4/readline.m4: New file.
82197
82198 2005-08-11  Simon Josefsson  <jas@extundo.com>
82199
82200         * lib/readline.h, readline.c: New file.
82201
82202 2005-08-11  Simon Josefsson  <jas@extundo.com>
82203
82204         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82205         gl_AVOID.
82206
82207 2005-08-11  Bruno Haible  <bruno@clisp.org>
82208
82209         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82210
82211 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82212
82213         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82214
82215 2005-08-10  Simon Josefsson  <jas@extundo.com>
82216
82217         * tests/test-iconvme.c: New file.
82218
82219 2005-08-10  Simon Josefsson  <jas@extundo.com>
82220
82221         * m4/strnlen.m4: New file.
82222
82223         * m4/strndup.m4: Don't check for strnlen declaration, done in
82224         strnlen.m4.
82225
82226 2005-08-10  Simon Josefsson  <jas@extundo.com>
82227
82228         * lib/strndup.c: Use strnlen.h.
82229
82230         * lib/strnlen.h: New file.
82231
82232 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82233
82234         * README: Typos.
82235
82236 2005-08-02  Simon Josefsson  <jas@extundo.com>
82237
82238         * modules/readline: New file.
82239
82240 2005-08-02  Simon Josefsson  <jas@extundo.com>
82241
82242         * modules/getdelim: New file.
82243
82244         * modules/getline: Rewrite, don't use getndelim2.
82245
82246 2005-08-02  Simon Josefsson  <jas@extundo.com>
82247
82248         * m4/getline.m4: Separate out getdelim stuff into separate module.
82249
82250         * m4/getdelim.m4: New file.
82251
82252 2005-08-02  Simon Josefsson  <jas@extundo.com>
82253
82254         * lib/getline.h, getline.c: Rewrite.
82255
82256         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82257
82258 2005-07-31  Bruno Haible  <bruno@clisp.org>
82259
82260         * lib/lock.h (gl_lock_initializer): New macro.
82261         (gl_lock_define_initialized): Use it.
82262         (gl_rwlock_initializer): New macro.
82263         (gl_rwlock_define_initialized): Use it.
82264         (gl_recursive_lock_initializer): New macro.
82265         (gl_recursive_lock_define_initialized): Use it.
82266
82267 2005-07-30  Karl Berry  <karl@gnu.org>
82268
82269         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82270         Report from Ben Pfaff, regarding getopt.
82271
82272 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82275         normal way.
82276         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82277         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82278         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82279         (gl_GETOPT): Use the new macros.  Most of the implementation
82280         is moved to the new macros.  This is for programs like Emacs
82281         that don't want all the functionality of gl_GETOPT.
82282
82283 2005-07-26  Bruno Haible  <bruno@clisp.org>
82284
82285         * m4/lock.m4: Update from GNU gettext.
82286
82287 2005-07-26  Bruno Haible  <bruno@clisp.org>
82288
82289         * lib/lock.h: Update from GNU gettext.
82290         * lib/lock.c: Update from GNU gettext.
82291
82292 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82293
82294         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82295         obsolescent AC_TRY_RUN.  Include the default includes files, for
82296         'exit'.
82297
82298 2005-07-24  Bruno Haible  <bruno@clisp.org>
82299
82300         * modules/visibility: New file.
82301         * MODULES.html.sh (Misc): Add visibility.
82302
82303 2005-07-24  Bruno Haible  <bruno@clisp.org>
82304
82305         * m4/visibility.m4: New file.
82306
82307 2005-07-24  Bruno Haible  <bruno@clisp.org>
82308
82309         * doc/visibility.texi: New file.
82310
82311 2005-07-22  Bruno Haible  <bruno@clisp.org>
82312
82313         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82314         $(ALLOCA_H), redundant through BUILT_SOURCES.
82315         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82316         redundant through BUILT_SOURCES.
82317         * modules/byteswap (Makefile.am): Remove explicit dependency on
82318         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82319         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82320         $(FNMATCH_H), redundant through BUILT_SOURCES.
82321         * modules/getopt (Makefile.am): Remove explicit dependency on
82322         $(GETOPT_H), redundant through BUILT_SOURCES.
82323         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82324         redundant through BUILT_SOURCES.
82325         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82326         redundant through BUILT_SOURCES.
82327         * modules/stdbool (Makefile.am): Remove explicit dependency on
82328         $(STDBOOL_H), redundant through BUILT_SOURCES.
82329         * modules/stdint (Makefile.am): Remove explicit dependency on
82330         $(STDINT_H), redundant through BUILT_SOURCES.
82331         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82332         Remove explicit dependency on $(SYSEXITS_H).
82333         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82334
82335 2005-07-18  Simon Josefsson  <jas@extundo.com>
82336
82337         * lib/check-version.c (check_version): Accept identical versions too.
82338
82339 2005-07-18  Bruno Haible  <bruno@clisp.org>
82340
82341         * modules/lock: New file.
82342         * MODULES.html.sh (Multithreading): New section.
82343
82344 2005-07-18  Bruno Haible  <bruno@clisp.org>
82345
82346         * m4/lock.m4: New file, from GNU gettext.
82347
82348 2005-07-18  Bruno Haible  <bruno@clisp.org>
82349
82350         * lib/lock.h: New file, from GNU gettext.
82351         * lib/lock.c: New file, from GNU gettext.
82352
82353 2005-07-18  Bruno Haible  <bruno@clisp.org>
82354
82355         * lib/lock.h (gl_once_t): New type.
82356         (gl_once_define, gl_once): New macros.
82357         * lib/lock.c (fresh_once): New variable.
82358         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82359         functions.
82360
82361 2005-07-16  Simon Josefsson  <jas@extundo.com>
82362
82363         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82364         workaround, suggested by Bruno.
82365
82366 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * modules/xalloc (Depends-on): Add xalloc-die.
82369         * modules/xvasprintf (Depends-on): Add xalloc-die.
82370
82371 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82372
82373         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82374         with a minor change.
82375
82376 2005-07-15  Bruno Haible  <bruno@clisp.org>
82377
82378         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82379         When using lib/poll.c, define poll as rpl_poll.
82380
82381 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * modules/argp (Depends-on): Remove unlocked-io.
82384
82385 2005-07-14  Derek Price  <derek@ximbiot.com>
82386
82387         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82388         for glob symlink bug.
82389
82390 2005-07-14  Bruno Haible  <bruno@clisp.org>
82391
82392         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82393         Instead, test for *_unlocked function declarations directly.
82394
82395 2005-07-11  Simon Josefsson  <jas@extundo.com>
82396
82397         * modules/size_max: New file.
82398
82399         * modules/xsize: Depend on size_max module for size_max.m4.
82400
82401 2005-07-11  Simon Josefsson  <jas@extundo.com>
82402
82403         * lib/size_max.h: New file.
82404
82405 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82406
82407         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82408         copyright symbol and the year.
82409         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82410         (version_etc_va): Use parameterized copyright notice.
82411         Reword to conform to the current GNU coding standards.
82412
82413 2005-07-11  Karl Berry  <karl@gnu.org>
82414
82415         * doc/gnulib.texi (Quoting): new node.
82416         (Initial import): more info, from Patrice.
82417
82418 2005-07-11  Bruno Haible  <bruno@clisp.org>
82419
82420         * gnulib-tool (func_usage): Document option --avoid.
82421         (Command line options): Handle --avoid.
82422         (func_acceptable): New function.
82423         (func_modules_transitive_closure): Use it.
82424
82425 2005-07-11  Bruno Haible  <bruno@clisp.org>
82426
82427         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82428         Reported by Jim Meyering.
82429
82430 2005-07-10  Bruno Haible  <bruno@clisp.org>
82431
82432         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82433         Needed when size_t is smaller than 'unsigned int'.
82434         Reported by Paul Eggert.
82435
82436 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82437
82438         * modules/argp (Depends-on): Add unlocked-io
82439
82440 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82441
82442         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82443         block of defines.
82444
82445 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82446
82447         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82448         fix now.
82449
82450 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82451         and Paul Eggert  <eggert@cs.ucla.edu>
82452
82453         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82454         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82455
82456 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * modules/regex (Files): Add lib/regex_internal.c,
82459         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82460         (Depends-on): Add extensions.
82461         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82462
82463 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82464
82465         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82466         pathconf.
82467         * m4/same.m4 (gl_SAME): Likewise.
82468         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82469
82470         * m4/regex.m4: Adjust to new libc regex implementation.
82471         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82472         all the .c and .h parts of (the new) regex.
82473         Quote the m4 stuff better.
82474         Check for RE_ICASE bug of old gnulib.
82475         Check for REG_STARTEND of recent libc.
82476         Rename local variables from jm_* to gl_*.
82477         Quote operand of "test -f".
82478         Say "recent enough" version of libc, not "version 2".
82479         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82480         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82481         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82482         Remove check for btowc, isascii.
82483         Require AM_LANGINFO_CODESET.
82484
82485 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82486
82487         * lib/regex.c, regex.h: Sync from libc.
82488         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82489         * lib/regexec.c:
82490         New files, synced from libc, except that regex_internal.h
82491         currently has a small porting fix.
82492
82493 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82496         regex_internal.c, regexec.c.
82497         Add regex_internal.h too, but as a comment, since the libc version
82498         is currently broken in gnulib mode.
82499
82500 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82501
82502         Support programs like Emacs that use gnulib but not gettext.
82503         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82504         * modules/gettext-h: New file.
82505         * modules/gettext (Files): Remove lib/gettext.h.
82506         (Depends-on): Add gettext-h.
82507         (Makefile.am): Remove lib_SOURCES.
82508         * modules/argmatch, modules/c-stack, modules/closeout:
82509         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82510         * modules/execute, modules/file-type, modules/getaddrinfo:
82511         * modules/getopt, modules/human, modules/javacomp:
82512         * modules/javaexec, modules/mkdir-p, modules/obstack:
82513         * modules/openat, modules/pagealign_alloc, modules/pipe:
82514         * modules/quotearg, modules/regex, modules/rpmatch:
82515         * modules/unicodeio, modules/userspec, modules/version-etc:
82516         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82517         * modules/xsetenv:
82518         Depend on gettext-h, not gettext.
82519
82520 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * gnulib-tool (func_import): Add support for 'public domain' license.
82523         * modules/alloca, modules/atexit, modules/memmove:
82524         Now public domain, not GPL.
82525         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82526         * modules/realloc, modules/strerror, modules/strtod:
82527         Now LGPL, not GPL.
82528
82529 2005-07-05  Bruno Haible  <bruno@clisp.org>
82530
82531         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82532         autoconf CVS. Needed for mingw.
82533
82534 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82535
82536         Remove the dependency of the strftime module on the tzset module.
82537         * modules/strftime (Depends-on): Remove dependency on tzset.
82538
82539 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         Remove the dependency of the strftime module on the tzset module.
82542         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82543         gl_FUNC_TZSET_CLOBBER.
82544
82545 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82546
82547         Remove the dependency of the strftime module on the tzset module.
82548         * lib/strftime.c (my_strftime)
82549         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82550         Copy the input structure, to work around some of the bug with
82551         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82552         Solaris releases, you should also use the tzset module, but we won't
82553         require it as a dependency any more since we don't want LGPLed code
82554         to depend on GPLed code.
82555
82556 2005-07-02  Jim Meyering  <jim@meyering.net>
82557
82558         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82559         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82560         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82561         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82562
82563 2005-07-02  Jim Meyering  <jim@meyering.net>
82564
82565         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82566
82567 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82570         declares only 'struct timespec;' (!).
82571
82572 2005-07-01  Jim Meyering  <jim@meyering.net>
82573
82574         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82575         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82576         * lib/save-cwd.c, tempname.c:
82577         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82578         and don't include <sys/file.h>).
82579
82580 2005-06-29  Jim Meyering  <jim@meyering.net>
82581
82582         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82583         type name.  Use the variable name instead.
82584         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82585         Likewise.
82586
82587 2005-06-28  Simon Josefsson  <jas@extundo.com>
82588
82589         * modules/check-version (Files): Add check-version.m4.
82590
82591 2005-06-28  Simon Josefsson  <jas@extundo.com>
82592
82593         * m4/check-version.m4: New file, suggested by Jim Meyering
82594         <jim@meyering.net>.
82595
82596 2005-06-28  Simon Josefsson  <jas@extundo.com>
82597
82598         * lib/check-version.h, lib/check-version.c: New files.
82599
82600 2005-06-28  Simon Josefsson  <jas@extundo.com>
82601
82602         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82603         collision with global variable.  Better indentation.  Don't
82604         increment buffer pointer beyond buffer end.  Based on comments
82605         from Paul Eggert <eggert@cs.ucla.edu>.
82606
82607         * lib/base64.h: Indent.
82608
82609 2005-06-28  Simon Josefsson  <jas@extundo.com>
82610
82611         * doc/gnulib.texi (Library version handling): New section.
82612
82613 2005-06-28  Jim Meyering  <jim@meyering.net>
82614
82615         * check-module (find_included_lib_files): Hard-code another
82616         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82617         but modules/fts-lgpl (correctly) does not list those files.
82618
82619         * modules/canonicalize (Files): Add lib/pathmax.h.
82620
82621 2005-06-25  Simon Josefsson  <jas@extundo.com>
82622
82623         * modules/check-version: New file.
82624
82625 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82626
82627         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82628         initializer of struct addrinfo, as an indication that we don't
82629         care how many members the structure has.
82630
82631 2005-06-24  Derek Price  <derek@ximbiot.com>
82632         and Bruno Haible  <bruno@clisp.org>
82633
82634         Remove stat module & update lstat.
82635         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82636         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82637         * m4/stat.m4: Remove this file.
82638
82639 2005-06-24  Derek Price  <derek@ximbiot.com>
82640         and Bruno Haible  <bruno@clisp.org>
82641
82642         Remove stat module & update lstat.
82643         * lib/stat.c: Remove this file...
82644         (slash_aware_lstat): ...moving this content and its support...
82645         * lib/lstat.c (rpl_lstat): ...into here.
82646         * lib/lstat.h: New file.
82647
82648 2005-06-24  Derek Price  <derek@ximbiot.com>
82649         and Bruno Haible  <bruno@clisp.org>
82650
82651         Remove stat module & update lstat.
82652         * config/srclist.txt (libc sources): Remove stat.
82653
82654 2005-06-24  Derek Price  <derek@ximbiot.com>
82655         and Bruno Haible  <bruno@clisp.org>
82656
82657         Remove stat module & update lstat.
82658         * MODULES.html.sh (stat): Remove.
82659         * MODULES.html: Regenerated.
82660         * modules/lstat (Description): Correct function name.
82661         (Files): Add "lstat.h".
82662         (Depends-on): Remove stat, add xalloc, stat-macros.
82663         * modules/stat: Remove this file.
82664         (Include): Add "lstat.h", remove <sys/stat.h>.
82665
82666 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82669         (ranged_convert): Don't save conversion in a temporary struct.
82670         This causes a warning with GCC 4.0.0, and anyway in the typical
82671         case it's not worth the extra 100 bytes or so of code.
82672         (ranged_convert, __mktime_internal): When calling a function via a
82673         pointer P, use P () rather than (*P) (), as we now assume C89 or
82674         better.
82675
82676 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82677
82678         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82679         "who -r" failed to give output.  Problem reported by Tim Waugh.
82680
82681         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82682         (xcalloc): Use it to avoid needless tests.
82683         Problem reported by Jim Meyering.
82684
82685 2005-06-20  Derek Price  <derek@ximbiot.com>
82686
82687         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82688         unnecessary for Autoconfs > 2.59c.
82689
82690 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82691
82692         * lib/argp.h (__option_is_short): Check upper limit of
82693         __key. Isprint() requires its argument to have the value
82694         of an unsigned char or EOF.
82695
82696 2005-06-16  Jim Meyering  <jim@meyering.net>
82697
82698         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82699         when either N or S is zero.
82700
82701 2005-06-16  Derek Price  <derek@ximbiot.com>
82702
82703         * m4/bison.m4: Declare YACC & YFLAGS precious.
82704
82705 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82706
82707         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82708         multibyte string or pattern, fall back on unibyte matching.
82709         Problem reported by James Youngman.
82710
82711 2005-06-08  Bruno Haible  <bruno@clisp.org>
82712
82713         * modules/csharpcomp: New file.
82714         * MODULES.html.sh (C#): Add csharpcomp.
82715
82716 2005-06-08  Bruno Haible  <bruno@clisp.org>
82717
82718         * m4/csharpcomp.m4: New file, from GNU gettext.
82719
82720 2005-06-08  Bruno Haible  <bruno@clisp.org>
82721
82722         * lib/csharpcomp.h: New file, from GNU gettext.
82723         * lib/csharpcomp.c: New file, from GNU gettext.
82724         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82725
82726 2005-06-08  Bruno Haible  <bruno@clisp.org>
82727
82728         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82729         warning on mingw.
82730
82731 2005-06-07  Derek Price  <derek@ximbiot.com>
82732
82733         Sync from CVS.
82734         * lib/glob_.h: Indent nested #ifdef.
82735
82736 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82737
82738         Sync from coreutils.
82739         Use "file name" when talking about file names, instead of "filename"
82740         or "path", as per the GNU coding standards.
82741         * lib/mkdir-p.c: Renamed from makepath.c.
82742         (make_dir_parents): Renamed from make_path.  All callers changed.
82743         * lib/mkdir-p.h: Likewise.  All includers changed.
82744         * lib/filenamecat.c: Renamed from path-concat.c.
82745         (file_name_concat): Renamed from path_concat.  All callers changed.
82746         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82747         * lib/filenamecat.h: Likewise.  All includers changed.
82748         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82749         in comments or local variable names.
82750         * lib/basename.c: Likewise.
82751         * lib/canonicalize.c, canonicalize.h: Likewise.
82752         * lib/dirname.c, dirname.h: Likewise.
82753         * lib/euidaccess.c: Likewise.
82754         * lib/exclude.c: Likewise
82755         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82756         * lib/fsusage.c, fsuage.h: Likewise.
82757         * lib/fts.c, fts_.h: Likewise.
82758         * lib/getcwd.c: Likewise.
82759         * lib/getloadavg.c: Likewise.
82760         * lib/mkstemp.c: Likewise.
82761         * lib/mountlist.c, mountlist.h: Likewise.
82762         * lib/openat.c, openat.h: Likewise.
82763         * lib/readlink-stub.c: Likewise.
82764         * lib/readutmp.c, readutmp.h: Likewise.
82765         * lib/rename.c: Likewise.
82766         * lib/rmdir.c: Likewise.
82767         * lib/same.c: Likewise.
82768         * lib/savedir.c: Likewise.
82769         * lib/stripslash.c: Likewise.
82770         * lib/tempname.c: Likewise.
82771         * lib/xreadlink.c: Likewise.
82772         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82773         All uses changed.
82774         * lib/exclude.h: Likewise.
82775
82776         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82777         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82778         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82779         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82780         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82781         files have been getting away with it for years (MORE/BSD 4.3
82782         is extinct now).
82783         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82784         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82785
82786         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82787         Define to 256, not 255, as per modern POSIX.
82788
82789 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         Sync from coreutils.
82792         Use "file name" when talking about file names, instead of "filename"
82793         or "path", as per the GNU coding standards.
82794         * MODULES.html.sh: mkdir-p renamed from makepath.
82795         filenamecat renamed from path-concat.
82796         * modules/filenamecat: Renamed from modules/path-concat.
82797         (Files): filenamecat.h and filenamecat.c renamed from
82798         path-concat.h and path-concat.c.
82799         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82800         (Include): filenamecat.h, not path-concat.h.
82801         * modules/mkdir-p: Renamed from modules/makepath.
82802         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82803         makepath.c.
82804         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82805         (Include): mkdir-p.h, not makepath.h.
82806
82807 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         Sync from coreutils.
82810         * m4/mkdir-p.m4: Renamed from makepath.m4.
82811         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82812         Rename files from makepath.c to mkdir-p.c, and from
82813         makepath.h to mkdir-p.h.
82814         * m4/filenamecat.m4: Renamed from path-concat.m4.
82815         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82816         Rename files from path-concat.c to filenamecat.c,
82817         and from path-concat.h to filenamecat.h.
82818         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82819         "file name" in local variables or comments.
82820         * m4/rename.m4: Likewise.
82821
82822 2005-06-01  Bruno Haible  <bruno@clisp.org>
82823
82824         * modules/csharpexec: New file.
82825         * MODULES.html.sh (C#): New section.
82826
82827 2005-06-01  Bruno Haible  <bruno@clisp.org>
82828
82829         * m4/csharp.m4: New file, from GNU gettext.
82830         * m4/csharpexec.m4: New file, from GNU gettext.
82831
82832 2005-06-01  Bruno Haible  <bruno@clisp.org>
82833
82834         * lib/csharpexec.h: New file, from GNU gettext.
82835         * lib/csharpexec.c: New file, from GNU gettext.
82836         * lib/csharpexec.sh.in: New file, from GNU gettext.
82837
82838 2005-05-31  Derek Price  <derek@ximbiot.com>
82839             Paul Eggert  <eggert@cs.ucla.edu>
82840
82841         Sync from cvs.
82842         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82843
82844 2005-05-31  Derek Price  <derek@ximbiot.com>
82845             Paul Eggert  <eggert@cs.ucla.edu>
82846
82847         Sync from cvs.
82848         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82849
82850 2005-05-29  Derek Price  <derek@ximbiot.com>
82851
82852         * config/srclist.txt (glob_.h, glob.c): Add these files.
82853
82854 2005-05-29  Derek Price  <derek@ximbiot.com>
82855
82856         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82857         * modules/glob: New file.
82858         * modules/getlogin_r: Add link to POSIX spec in description.
82859
82860 2005-05-29  Derek Price  <derek@ximbiot.com>
82861             Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         * m4/glob.m4: New file.
82864
82865 2005-05-29  Derek Price  <derek@ximbiot.com>
82866             Paul Eggert  <eggert@cs.ucla.edu>
82867
82868         * lib/glob_.h, lib/glob.c: New files.
82869
82870 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82871
82872         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82873         * modules/fts-lgpl (Depends-on): Remove gettext.
82874
82875 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82878         and don't require gt_INTTYPES_PRI.
82879
82880 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82881
82882         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82883
82884         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82885         the configuration hassle isn't worth it.
82886         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82887         (LONGEST_MODIFIER, PRIuMAX): Remove.
82888
82889 2005-05-27  Bruno Haible  <bruno@clisp.org>
82890
82891         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82892
82893 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82894
82895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82896         _POSIX_PTHREAD_SEMANTICS for Solaris.
82897
82898 2005-05-25  Derek Price  <derek@ximbiot.com>
82899
82900         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82901
82902 2005-05-25  Derek Price  <derek@ximbiot.com>
82903             Paul Eggert  <eggert@cs.ucla.edu>
82904
82905         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82906         * lib/getlogin_r.c, getlogin_r.h: New files.
82907
82908 2005-05-25  Bruno Haible  <bruno@clisp.org>
82909             Derek Price  <derek@ximbiot.com>
82910
82911         * lib/getlogin_r.h: Simplify API documentation.
82912
82913 2005-05-23  Derek Price  <derek@ximbiot.com>
82914
82915         * modules/minmax (Files): Add m4/minmax.m4.
82916         (configure.ac): Add gl_MINMAX.
82917
82918 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82921         so that unistd-safer.h (GPL'ed code) need not be included.
82922
82923 2005-05-22  Bruno Haible  <bruno@clisp.org>
82924
82925         * m4/minmax.m4: New file.
82926         Based on a patch by Derek Price <derek@ximbiot.com>.
82927
82928 2005-05-22  Bruno Haible  <bruno@clisp.org>
82929
82930         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82931         (INT64_MIN): Fix definition.
82932         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82933
82934         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82935         NEED_SIGNED_INT_TYPES.
82936
82937         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82938         HAVE_SYSTEM_INTTYPES.
82939
82940 2005-05-22  Bruno Haible  <bruno@clisp.org>
82941
82942         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82943         Also include <sys/param.h> if it defines MIN, MAX.
82944         Based on a patch by Derek Price <derek@ximbiot.com>.
82945
82946 2005-05-21  Jim Meyering  <jim@meyering.net>
82947
82948         * modules/fts (Files): Add m4/inttypes-pri.m4.
82949         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82950
82951 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         New fts module.
82954         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82955         (setup_dir, free_dir): New functions.
82956         (enter_dir, leave_dir): Define trivial
82957         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82958         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82959         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82960         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82961         Move to fts-cycle.c.
82962         (fts_open): Use setup_dir.
82963         (fts_close): Use free_dir.
82964         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82965         This adds a label and some gotos, but the alternatives were messier.
82966         Check for memory allocation failure when entering a dir.
82967         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82968         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82969         (FTS): New member fts_cycle, that is a union that contains the
82970         old active_dir_ht and cycle_state.  All uses changed to mention
82971         fts_cycle.ht and fts_cycle.state.
82972         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82973         fts.c, with the following changes:
82974         (setup_dir, free_dir): New functions.
82975         (enter_dir): Now returns bool.  Return true if successful, false
82976         if memory exhausted.  All callers changed.
82977         Do not bother partly cleaning up on
82978         memory allocation failure; that is free_dir's job.
82979         However, free ad if hash_insert fails, to avoid memory leak.
82980         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82981         fts->fts_options to see which union member to use.
82982
82983 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82986         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82987
82988 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82989
82990         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82991
82992 2005-05-20  Jim Meyering  <jim@meyering.net>
82993
82994         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82995         Now a macro, to pacify GCC.
82996
82997 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82998
82999         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83000         of -1.
83001
83002 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83003
83004         * lib/chown.c (rpl_chown): Return -1 on failure.
83005
83006 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83009         Don't check for stddef.h.
83010         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83011         don't use its results.
83012         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83013         since we include them unconditionally.  Don't require
83014         AM_STDBOOL_H, since stdbool is a prerequisite.
83015         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83016         since we assume C89 or better.
83017         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83018         as we don't use their results.
83019         Don't check for fchdir, memmove, memset, strrchr, as we use
83020         them unconditionally.
83021         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83022         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83023
83024 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83025
83026         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83027         Include <stddef.h> unconditionally, since we assume C89 now.
83028         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83029         * lib/fts.c: Include fts_.h first, to check interface.
83030         Do not include intprops.h; no longer needed.
83031         Include cycle-check.h and hash.h, since fts_.h no longer does.
83032         Remove unnecessary casts of closedir to void.
83033         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83034         decide whether to decrement nlinks.
83035         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83036         (FTS): Use struct hash_table * instead of Hash_table, so that
83037         we no longer need to include hash.h here.
83038
83039 2005-05-18  Jim Meyering  <jim@meyering.net>
83040
83041         * modules/dirfd (License): Change to LGPL.  Most of the code
83042         is already in the public domain.
83043
83044 2005-05-18  Jim Meyering  <jim@meyering.net>
83045
83046         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83047         Reported by Yoann Vandoorselaere.
83048
83049 2005-05-17  Jim Meyering  <jim@meyering.net>
83050
83051         * m4/fts.m4: New file, from coreutils.
83052
83053 2005-05-17  Jim Meyering  <jim@meyering.net>
83054
83055         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83056
83057 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         Sync from coreutils.
83060         * m4/unlinkdir.m4: New file.
83061
83062 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83063
83064         Sync from coreutils.
83065         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83066         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83067         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83068         White space changes only.
83069         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83070         special.
83071         * lib/yesno.c: Include getline.h, not ctype.h.
83072         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83073         Use getline to remove arbitrary restriction on response length.
83074
83075 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83076
83077         * config/srclist-update: Spell out "Street" in FSF postal
83078         mail address; this is the style the FSF seems to prefer.
83079
83080         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83081         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83082         this updates FSF postal mail address.
83083
83084         Sync from coreutils.
83085         * modules/unlinkdir: New file.
83086         * modules/yesno (Depends-on): Add getline.
83087         * MODULES.html.sh (File system functions): Add unlinkdir.
83088
83089 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83092         lib/strsep.h:
83093         Change the initial comment to refer to GPL, not LGPL.
83094         gnulib-tool will change it to LGPL as needed.
83095
83096         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83097         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83098         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83099         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83100         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83101         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83102         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83103         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83104         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83105         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83106         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83107         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83108         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83109         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83110         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83111         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83112         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83113         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83114         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83115         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83116         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83117         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83118         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83119         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83120         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83121         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83122         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83123         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83124         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83125         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83126         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83127         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83128         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83129         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83130         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83131         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83132         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83133         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83134         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83135         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83136         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83137         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83138         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83139         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83140         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83141         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83142         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83143         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83144         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83145         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83146         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83147         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83148         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83149         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83150         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83151         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83152         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83153         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83154         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83155         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83156         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83157         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83158         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83159         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83160         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83161         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83162         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83163         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83164         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83165         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83166         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83167         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83168         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83169         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83170         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83171         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83172         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83173         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83174         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83175         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83176         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83177         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83178         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83179         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83180         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83181         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83182         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83183         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83184         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83185         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83186         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83187         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83188         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83189         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83190         lib/yesno.c, lib/yesno.h:
83191         Update FSF postal mail address.
83192
83193 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83196         tests/test-memmem.c, tests/test-stpncpy.c:
83197         Update FSF postal mail address.
83198
83199 2005-05-13  Bruno Haible  <bruno@clisp.org>
83200
83201         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83202         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83203         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83204         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83205         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83206         Add support for 64-bit integers in the MSVC compiler.
83207
83208 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83209
83210         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83211
83212 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83213
83214         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83215
83216 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83217
83218         * doc/getdate.texi (General date syntax): Don't say that date
83219         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83220         Problem reported by Nic Ferrier.
83221
83222 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83223
83224         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83225         specified in ai_socktype. Fix invalid ai_protocol
83226         check. ai_protocol is usually set to 0 or depending on
83227         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83228         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83229         ai_socktype / ai_protocol in the returned addrinfo structure.
83230
83231 2005-05-10  Simon Josefsson  <jas@extundo.com>
83232
83233         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83234         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83235
83236 2005-05-10  Karl Berry  <karl@gnu.org>
83237
83238         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83239         (from http://www.gnu.org/licenses).
83240         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83241         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83242         fdl.texi suffices.
83243
83244 2005-05-10  Karl Berry  <karl@gnu.org>
83245
83246         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83247         (COPYING.DOC): remove.
83248
83249         * config/srclist-update: new FSF address.
83250
83251 2005-05-10  Derek Price  <derek@ximbiot.com>
83252
83253         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83254         possible.
83255
83256 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83257             Bruno Haible  <bruno@clisp.org>
83258
83259         * modules/inet_ntop: New file.
83260         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83261         inet_ntop.
83262
83263 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83264             Bruno Haible  <bruno@clisp.org>
83265
83266         * m4/inet_ntop.m4: New file.
83267
83268 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83269             Bruno Haible  <bruno@clisp.org>
83270
83271         * lib/inet_ntop.h: New file.
83272         * lib/inet_ntop.c: New file, from glibc with modifications.
83273
83274 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83275
83276         * modules/time_r (License): Change to LGPL.
83277         * modules/extensions (License): Change to LGPL.  Actually,
83278         the license is more permissive than that, but currently gnulib-tool
83279         doesn't know how to handle more-permissive licenses.
83280
83281         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83282         Problem reported by Dave Love.
83283
83284 2005-05-08  Jim Meyering  <jim@meyering.net>
83285
83286         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83287         blank.
83288
83289 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83290
83291         * modules/argmatch (Depends-on): Add stdbool.
83292         * modules/backupfile (Depends-on): Likewise.
83293         * modules/chdir-long (Depends-on): Likewise.
83294         * modules/closeout (Depends-on): Likewise.
83295         * modules/cycle-check (Depends-on): Likewise.
83296         * modules/dirname (Depends-on): Likewise.
83297         * modules/fnmatch (Depends-on): Likewise.
83298         * modules/fsusage (Depends-on): Likewise.
83299         * modules/fwriteerror (Depends-on): Likewise.
83300         * modules/getcwd (Depends-on): Likewise.
83301         * modules/getloadavg (Depends-on): Likewise.
83302         * modules/hard-locale (Depends-on): Likewise.
83303         * modules/makepath (Depends-on): Likewise.
83304         * modules/mountlist (Depends-on): Likewise.
83305         * modules/nanosleep (Depends-on): Likewise.
83306         * modules/posixtm (Depends-on): Likewise.
83307         * modules/quotearg (Depends-on): Likewise.
83308         * modules/readtokens (Depends-on): Likewise.
83309         * modules/readtokens0 (Depends-on): Likewise.
83310         * modules/readutmp (Depends-on): Likewise.
83311         * modules/save-cwd (Depends-on): Likewise.
83312         * modules/strftime (Depends-on): Likewise.
83313         * modules/userspec (Depends-on): Likewise.
83314         * modules/utimecmp (Depends-on): Likewise.
83315         * modules/xgetcwd (Depends-on): Likewise.
83316         * modules/xnanosleep (Depends-on): Likewise.
83317         * modules/xstrtod (Depends-on): Likewise.
83318         * modules/yesno (Depends-on): Likewise.
83319
83320 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83323         needless checks.
83324
83325 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83326
83327         Merge from coreutils.  Among other things,
83328         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83329         * lib/fd-safer.c: New file.
83330         * lib/fcntl-safer.h, open-safer.c: Remove.
83331         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83332         * lib/dup-safer.c: Include unistd-safer.h first.
83333         Don't include errno.h.
83334         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83335         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83336         * lib/file-type.c: Rely on file-type.h change.
83337         * lib/getloadavg.c: Include unistd-safer.h.
83338         (getloadavg): Use safer open.
83339         * lib/getusershell.c: Include "stdio-safer.h".
83340         (getusershell): Use safer fopen.
83341         * lib/long-options.c (long_options): Use NULL rather than 0.
83342         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83343         'free'.
83344         * lib/modechange.c: Likewise.
83345         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83346         (MODE_DONE): New constant.
83347         (struct mode_change): Remove 'next' member.
83348         (make_node_op_equals): New function; like the old one of the
83349         same name, except it allocates an array.
83350         (mode_compile, mode_create_from_ref): Use it.
83351         (mode_compile): Allocate result as an array, not a linked list.
83352         Parse octal string ourself, so that we catch mistakes like "+0".
83353         (mode_adjust): Arg is an array, not a linked list.
83354         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83355         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83356         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83357         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83358         Remove.  This is now stat-macros.h's job.
83359         (talloc): Remove.  All callers replaced by xalloc, so that
83360         our invokers don't have to worry about reporting memory failures.
83361         (make_node_op_equals): Remove.
83362         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83363         New constants.
83364         (struct mode_change): Moved here from modechange.h.
83365         (mode_append_entry): Remove.
83366         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83367         apps to have incorrect behavior.  Use simpler algorithm for head
83368         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83369         Detect more invalid usages rather than having somewhat-random behavior.
83370         Don't insert an "a=" action, as that leads to incorrect behavior.
83371         (mode_compile, mode_create_from_ref): Return NULL on error instead
83372         of an enum, since now there's only one way to have an error.  All
83373         callers changed.
83374         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83375         at the correct time.  Simplify calculation of "+u" and its ilk.
83376         Don't mishandle "+X".
83377         (mode_free): Remove "register" and localize decls.
83378         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83379         (struct mode_change): Move to modechange.c; callers don't
83380         need to see this stuff.
83381         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83382         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83383         (mode_change, mode_adjust): Reflect the new signatures noted above.
83384         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83385         that might redefine system include files.
83386         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83387         (my_usleep): Use NULL rather than (void *) 0.
83388         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83389         Use siginterrupt to specify that system calls should be interrupted.
83390         (rpl_nanosleep): Move initialization of suspended closer to call of
83391         my_usleep.
83392         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83393         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83394         (desirable_utmp_entry): New function.
83395         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83396         using x2nrealloc, to simplify logic.
83397         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83398         size calculation.  Do not assume utmp file is a regular file.
83399         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83400         (READ_UTMP_CHECK_PIDS): New constant.
83401         * lib/save-cwd.c: Include unistd-safer.h.
83402         (save_cwd): Use fd_safer.
83403         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83404         [!_LIBC] Include "stat-macros.h" instead.
83405         * lib/unistd-safer.h (fd_safer): New decl.
83406
83407 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83408
83409         * modules/getloadavg (Depends-on): Add unistd-safer.
83410         * modules/getusershell (Depends-on): Add stdio-safer.
83411         * modules/lstat (Depends-on): Remove xalloc.
83412         * modules/mkstemp (Depends-on): Add stat-macros.
83413         * modules/modechange (Depends-on): Remove xstrtol.
83414         Add stat-macros, xalloc.
83415         * modules/save-cwd (Depends-on): Add unistd-safer.
83416         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83417         * modules/unistd-safer (Files): Add lib/fd-safer.c
83418         (Makefile.am): Remove lib_SOURCES.
83419
83420         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83421         Remove fcntl-safer; unistd-safer supersedes it.
83422
83423 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83426         AC_HEADER_STAT.
83427         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83428         (gl_PREREQ_CHOWN): Remove.
83429         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83430         it.  Don't require AC_HEADER_STAT.
83431         (gl_PREREQ_LSTAT): Remove.
83432         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83433         Don't require AC_HEADER_STAT.
83434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83435         (gl_PREREQ_RMDIR): Remove.
83436         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83437         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83438         the stat-macros module a prerequisite.
83439         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83440         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83441         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83442         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83443         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83444         variable names.
83445         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83446         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83447         variable prefixes.
83448         * m4/fcntl-safer.m4: Remove.
83449         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83450         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83451         Invoke gl_PREREQ_FD_SAFER.
83452         (gl_PREREQ_FD_SAFER): New macro.
83453         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83454         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83455         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83456         Remove duplicate call to AC_LIBOBJ(readutmp).
83457         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83458
83459         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83460         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83461
83462 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83463
83464         * MODULES.html.sh (Misc): Add byteswap.
83465
83466 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83467
83468         * modules/getcwd (Depends-on): Add extensions.
83469         * modules/openat (Depends-on): Likewise.
83470
83471 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83472
83473         * modules/byteswap: New file.
83474
83475 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83476
83477         * m4/byteswap.m4: New file.
83478
83479 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83480
83481         * lib/byteswap_.h: New file.
83482
83483 2005-04-25  Karl Berry  <karl@gnu.org>
83484
83485         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83486
83487 2005-04-25  Albert Chin  <china@thewrittenword.com>
83488
83489         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83490         Toolkit C bug.
83491
83492 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83493
83494         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83495         (func_ln_if_changed): Remove forcibly for no error message
83496         in case file does not exist.
83497
83498 2005-04-19  Simon Josefsson  <jas@extundo.com>
83499
83500         * gnulib-tool (Options): Make --symlink mean --symbolic.
83501
83502 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83503
83504         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83505
83506 2005-04-16  Simon Josefsson  <jas@extundo.com>
83507
83508         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83509
83510 2005-04-15  Simon Josefsson  <jas@extundo.com>
83511
83512         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83513
83514 2005-04-15  Simon Josefsson  <jas@extundo.com>
83515
83516         * gnulib-tool: Rename --symlink to --symbolic.
83517
83518 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83519
83520         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83521         symbolic links to files instead of copying/moving.  Add --aux-dir,
83522         specifying directory relative --dir where auxiliary build tools
83523         are placed.
83524
83525 2005-04-14  Bruno Haible  <bruno@clisp.org>
83526
83527         * modules/allocsa (License): Change to LGPL.
83528         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83529
83530 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83533         that "UTC +1 second" continues to work.  Problem reported
83534         by Dmitry V. Levin.
83535         (relunit_snumber): New rule.
83536         (relunit): Use it.
83537
83538 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83539
83540         * lib/getdate.y (universal_time_zone_table): New constant.
83541         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83542         universal_time_zone_table.
83543         (lookup_zone): Prefer universal_time_zone_table to
83544         local_time_zone_table, so that "GMT" time stamps are allowed in
83545         London during the summer.  Problem reported by Ian Abbott.
83546
83547 2005-04-12  Jim Meyering  <jim@meyering.net>
83548
83549         * lib/human.c (humblock): Set *options even when returning due to
83550         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83551         warning from gcc-4.
83552
83553 2005-04-09  Jim Meyering  <jim@meyering.net>
83554
83555         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83556         -Wuninitialized: initialize tm0.tm_year.
83557
83558 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83559
83560         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83561         count, since there's no maximum.  All uses changed.
83562         Add member dsts_seen.
83563         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83564         not being INT_MAX.
83565         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83566         Use pc_rels_seen to decide whther a date is absolute.
83567
83568         * lib/getdate.y (number): Don't overwrite year.
83569         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83570         check.
83571
83572 2005-04-02  Simon Josefsson  <jas@extundo.com>
83573
83574         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83575         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83576
83577 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83578
83579         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83580         where no absolute path name can be longer than PATH_MAX.
83581
83582 2005-03-27  Jim Meyering  <jim@meyering.net>
83583
83584         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83585
83586 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83587
83588         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83589         "one's complement" -> "ones' complement" in comment, as per Knuth.
83590         "value of type" -> "type or expression" in comment.
83591         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83592
83593 2005-03-26  Jim Meyering  <jim@meyering.net>
83594
83595         Comment nits.
83596         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83597         Correct typos: s/or/of/.
83598
83599 2005-03-26  Jim Meyering  <jim@meyering.net>
83600
83601         * modules/check-include-files: Move to ../ and rename to...
83602         * check-module: ...this.
83603
83604 2005-03-25  Jim Meyering  <jim@meyering.net>
83605
83606         * modules/xvasprintf (Files): Add xalloc.h.
83607
83608 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         * modules/gettext (Files): config/config.rpath ->
83611         build-aux/config.rpath
83612         * modules/iconv (Files): Likewise.
83613         Problem reported by Oskar Liljeblad.
83614
83615 2005-03-23  Jim Meyering  <jim@meyering.net>
83616
83617         * modules/check-include-files: New script to check for
83618         missing dependencies, multiple includes, etc.
83619
83620         * modules/c-strtold (Depends-on): Add xalloc.
83621         * modules/c-strtod (Depends-on): Add xalloc.
83622         * modules/hash (Depends-on): Add xalloc.
83623         (Files): Remove lib/xalloc.h.
83624
83625         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83626         * modules/userspec (Files): Add lib/inttostr.h.
83627
83628 2005-03-23  Jim Meyering  <jim@meyering.net>
83629
83630         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83631
83632 2005-03-22  Jim Meyering  <jim@meyering.net>
83633
83634         * modules/stat-macros: New module.
83635         * modules/canonicalize, modules/euidaccess, modules/file-type,
83636         * modules/filemode, modules/lchown, modules/makepath,
83637         * modules/rmdir, modules/stat: Depend on new stat-macros module
83638         rather than listing lib/stat-macros.h manually.
83639         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83640
83641 2005-03-22  Jim Meyering  <jim@meyering.net>
83642
83643         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83644
83645 2005-03-22  Bruno Haible  <bruno@clisp.org>
83646
83647         * config/srclist.txt: Replace target directory 'config' with
83648         'build-aux'.
83649         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83650         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83651         ../build-aux/.
83652
83653 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * modules/chdir-long (Depends-on): Add mempcpy.
83656
83657         * modules/acl, modules/backupfile, modules/c-strtod,
83658         modules/c-strtold, modules/canon-host, modules/canonicalize,
83659         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83660         modules/exclude, modules/exitfail, modules/file-type,
83661         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83662         modules/getdate, modules/getline, modules/getpagesize,
83663         modules/getpass, modules/getugroups, modules/group-member,
83664         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83665         modules/inttostr, modules/long-options, modules/makepath,
83666         modules/md5, modules/memcasecmp, modules/memcoll,
83667         modules/modechange, modules/mountlist, modules/path-concat,
83668         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83669         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83670         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83671         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83672         modules/strftime, modules/strndup, modules/strverscmp,
83673         modules/timespec, modules/unlocked-io, modules/userspec,
83674         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83675         modules/yesno:
83676         Remove lib_SOURCES line from Makefile.am section, as this is now
83677         done automatically by the corresponding Autoconf macro.
83678
83679 2005-03-21  Jim Meyering  <jim@meyering.net>
83680
83681         Changes imported from coreutils.
83682
83683         * lib/cycle-check.c: Don't include xalloc.h.
83684
83685         * lib/path-concat.c: Don't include assert.h.
83686         (path_concat): Remove assertion that would have triggered
83687         for ABASE starting with more than one slash.
83688         Reported by Andreas Schwab.
83689
83690         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83691         properly when ABASE is an absolute file name.
83692         Correct the description of this function.
83693         Include <assert.h>.
83694         Add an assertion and a test driver.
83695         This fixes a bug introduced on 2004-07-02.
83696         Andreas Schwab reported the resulting failure of cp --parents:
83697         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83698
83699 2005-03-21  Jim Meyering  <jim@meyering.net>
83700
83701         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83702         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83703
83704 2005-03-21  Jim Meyering  <jim@meyering.net>
83705         and  Paul Eggert  <eggert@cs.ucla.edu>
83706
83707         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83708         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83709         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83710         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83711         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83712         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83713         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83714         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83715         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83716         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83717         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83718         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83719         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83720         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83721         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83722         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83723         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83724         for these modules.
83725
83726 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83727
83728         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83729         (which shouldn't happen), generate nothing instead of returning 0
83730         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83731
83732 2005-03-16  Bruno Haible  <bruno@clisp.org>
83733
83734         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83735         HAVE_LONGLONG_64BIT.
83736
83737 2005-03-16  Bruno Haible  <bruno@clisp.org>
83738
83739         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83740         HAVE_LONGLONG_64BIT.
83741
83742 2005-03-16  Bruno Haible  <bruno@clisp.org>
83743
83744         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83745         HAVE_LONGLONG_64BIT.
83746
83747 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83748
83749         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83750         reliably distinguish strftime failure from empty output on POSIX
83751         hosts.
83752
83753 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83756         (iconv_string): Don't guess a size-zero buffer, as that might cause
83757         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83758         result would be 'too large', where 'too large' is (heuristically)
83759         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83760         overflow concerns.  This will prevent some unwanted malloc failures
83761         when the inputs are very large.
83762
83763 2005-03-15  Karl Berry  <karl@gnu.org>
83764
83765         * config/srclist.txt (config.rpath): from gettext.
83766         * config/config.rpath: update.
83767
83768 2005-03-15  Bruno Haible  <bruno@clisp.org>
83769
83770         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83771         to 'negate'.
83772
83773         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83774         variable.
83775
83776         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83777         results.
83778
83779 2005-03-14  Simon Josefsson  <jas@extundo.com>
83780
83781         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83782         <fx@gnu.org>.
83783
83784 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83787         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83788         intprops.h.
83789         * lib/strtol.c: Likewise.
83790
83791 2005-03-14  Jim Meyering  <jim@meyering.net>
83792
83793         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83794         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83795         to be nonzero so that we (and caller) can detect the difference
83796         between a valid zero-length expansion and an error return, even
83797         when the underlying strftime fails before writing anything into
83798         that location.
83799
83800 2005-03-14  Bruno Haible  <bruno@clisp.org>
83801
83802         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83803         Update from GNU gettext 0.14.3.
83804
83805 2005-03-10  Jim Meyering  <jim@meyering.net>
83806
83807         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83808
83809 2005-03-10  Jim Meyering  <jim@meyering.net>
83810
83811         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83812         so that this module works on systems without fchdir.
83813
83814 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         Factor int-properties macros into a single file, except for
83817         glibc-related files.
83818         * lib/intprops.h: New file.
83819         * lib/getloadavg.c: Include it instead of limits.h.
83820         (INT_STRLEN_BOUND): Remove.
83821         * lib/human.c: Include intprops.h.
83822         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83823         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83824         302/1000.
83825         * lib/inttostr.h: Include intprops.h instead of limits.h.
83826         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83827         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83828         for consistency with intprops.h.
83829         (time_t_is_integer, twos_complement_arithmetic): Use them.
83830         * lib/sig2str.h: Include <signal.h>, intprops.h.
83831         (INT_STRLEN_BOUND): Remove.
83832         * lib/strftime.c (TYPE_SIGNED): Remove.
83833         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83834         * lib/strtol.c: Adjust comments to match intprops.h.
83835         * lib/userspec.c: Include intprops.h.
83836         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83837         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83838         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83839         instead of rolling our own expressions.
83840         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83841
83842         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83843         instead of int.
83844         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83845         the right thing even if adding 1900 would overflow.  Similarly
83846         for tm_mon + 1 and tm_yday + 1.
83847         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83848         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83849         (DO_SIGNED_NUMBER): New macro.
83850         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83851
83852 2005-03-07  Bruno Haible  <bruno@clisp.org>
83853
83854         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83855
83856 2005-03-07  Bruno Haible  <bruno@clisp.org>
83857
83858         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83859
83860 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83861
83862         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83863         (func_import): Only replace files via --import when they have actually
83864         changed.
83865
83866 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83867
83868         * m4/mmap-anon.m4: New file.
83869         * m4/pagealign_alloc.m4: New file.
83870
83871 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83872             Bruno Haible  <bruno@clisp.org>
83873
83874         * modules/pagealign_alloc: New file.
83875         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83876
83877 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83878             Bruno Haible  <bruno@clisp.org>
83879
83880         * lib/pagealign_alloc.h: New file.
83881         * lib/pagealign_alloc.c: New file.
83882
83883 2005-03-03  Bruno Haible  <bruno@clisp.org>
83884
83885         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83886         Use an all-permissive copyright notice, recommended by RMS.
83887
83888 2005-03-02  Bruno Haible  <bruno@clisp.org>
83889
83890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83891         of AIX, the replacement has to be done only after <string.h> is
83892         included, therefore not in config.h. stpncpy.h does the replacement,
83893         and stpncpy.c uses it.
83894
83895 2005-03-02  Bruno Haible  <bruno@clisp.org>
83896
83897         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83898         stpncpy.c uses it.
83899
83900 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83901
83902         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83903         The workaround isn't strictly needed for POSIX conformance, and
83904         it's too much of a pain to configure and maintain.  We'll ask
83905         people to fix their kernels instead.
83906         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83907         (NANOSLEEP_BUG_WORKAROUND): Remove.
83908         (xnanosleep): Remove the workaround.
83909
83910 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83913         Reported by Derek Price.
83914         (Include): Add "timespec.h".
83915
83916         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83917
83918 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83919
83920         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83921         to detect nanosleep bug.
83922
83923 2005-03-01  Bruno Haible  <bruno@clisp.org>
83924
83925         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83926
83927 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83928
83929         * modules/gethrxtime: New file.
83930         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83931         (Depends-on): Add gethrxtime.
83932         (configure.ac): Add gl_XNANOSLEEP.
83933         (Makefile.am): Remove lib_SOURCES line.
83934
83935 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83936
83937         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83938         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83939
83940 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83941
83942         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83943         * lib/timespec.h (gettime): Return void, since it always
83944         succeeds now.  All uses changed.
83945         * lib/gettime.c (gettime): Likewise.
83946         [HAVE_NANOTIME]: Prefer nanotime.
83947         Assume gettimeofday succeeds, as POSIX requires.
83948         Assime time () succeeds, since other code already does.
83949         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83950         (timespec_subtract): Remove.
83951         (NANOSLEEP_BUG_WORKAROUND): New constant.
83952         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83953         things considerably.  Use it only on GNU/Linux hosts, since the
83954         workaround shouldn't be needed elsewhere.
83955
83956 2005-02-24  Bruno Haible  <bruno@clisp.org>
83957
83958         * modules/gettext (Files): Add m4/glibc2.m4.
83959
83960 2005-02-24  Bruno Haible  <bruno@clisp.org>
83961
83962         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83963         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83964         * m4/progtest.m4:
83965         Update from GNU gettext 0.14.2.
83966         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83967
83968 2005-02-24  Bruno Haible  <bruno@clisp.org>
83969
83970         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83971         * lib/config.charset: Update from GNU gettext 0.14.2.
83972
83973 2005-02-24  Bruno Haible  <bruno@clisp.org>
83974
83975         * lib/gettext.h: Update from GNU gettext 0.14.2.
83976
83977 2005-02-23  Simon Josefsson  <jas@extundo.com>
83978
83979         * m4/iconvme.m4: New file.
83980
83981 2005-02-23  Jim Meyering  <jim@meyering.net>
83982
83983         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83984         change.
83985         Thanks to Bruno Haible for catching it.
83986
83987 2005-02-22  Simon Josefsson  <jas@extundo.com>
83988
83989         * modules/iconvme: New file.
83990
83991         * MODULES.html.sh: Add iconvme.
83992
83993 2005-02-22  Simon Josefsson  <jas@extundo.com>
83994
83995         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83996
83997 2005-02-22  Simon Josefsson  <jas@extundo.com>
83998
83999         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84000
84001 2005-02-22  Jim Meyering  <jim@meyering.net>
84002
84003         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84004         s/ifndef/ifdef/.
84005
84006 2005-02-20  Neil Conway  <neilc@samurai.com>
84007
84008         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84009         returned by OSX/Darwin if the specified buffer is not large
84010         enough for the hostname.
84011
84012 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84013
84014         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84015         pass it to _help, otherwise the latter coredumps trying to
84016         dereference state.root_argp.
84017
84018 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84019
84020         * modules/chdir-long (Depends-on): Add memrchr.
84021         * modules/memrchr (Files): Add lib/memrchr.h.
84022         (Include): "memrchr.h".
84023
84024 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84025
84026         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84027
84028 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * lib/memrchr.h: New file.
84031         * lib/chdir-long.c: Include it.
84032         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84033         Don't bother including stddef.h.
84034
84035 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84036
84037         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84038         inclusion.
84039         Include <sys/types.h>, for dev_t.
84040         (ME_DUMMY, ME_REMOTE): Move from here....
84041         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84042         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84043         Dmitry V. Levin.
84044         Include mountlist.h first, to test the interface.
84045
84046 2005-01-29  Bruno Haible  <bruno@clisp.org>
84047
84048         * lib/progname.c (program_name): Initialize.
84049         Needed when linking statically on MacOS X.
84050
84051 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         Sync from coreutils.
84054         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84055         (Depends-on): Add c-strtod.
84056         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84057
84058 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         Sync from coreutils.
84061         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84062
84063         Remove files that are specific to coreutils.
84064         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84065
84066 2005-01-28  Bruno Haible  <bruno@clisp.org>
84067
84068         * modules/javacomp: New file.
84069         * MODULES.html.sh (Java): Add javacomp.
84070
84071 2005-01-28  Bruno Haible  <bruno@clisp.org>
84072
84073         * m4/javacomp.m4: New file, from GNU gettext.
84074
84075 2005-01-28  Bruno Haible  <bruno@clisp.org>
84076
84077         * lib/javacomp.sh.in: New file, from GNU gettext.
84078         * lib/javacomp.h: New file, from GNU gettext.
84079         * lib/javacomp.c: New file, from GNU gettext.
84080
84081 2005-01-26  Simon Josefsson  <jas@extundo.com>
84082
84083         * lib/gai_strerror.c: Use GPL in header.
84084
84085 2005-01-26  Bruno Haible  <bruno@clisp.org>
84086
84087         * modules/javaexec: New file.
84088         * MODULES.html.sh (Java): Add javaexec.
84089
84090 2005-01-26  Bruno Haible  <bruno@clisp.org>
84091
84092         * m4/javaexec.m4: New file, from GNU gettext.
84093
84094 2005-01-26  Bruno Haible  <bruno@clisp.org>
84095
84096         * lib/javaexec.sh.in: New file, from GNU gettext.
84097         * lib/javaexec.h: New file, from GNU gettext.
84098         * lib/javaexec.c: New file, from GNU gettext.
84099
84100 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84101
84102         * modules/lchown (Depends-on): Remove lchown.h
84103
84104 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84105
84106         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84107         must be defined if the header file was not found, in order
84108         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84109
84110 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84111
84112         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84113         initializers for struct pentry_state.
84114         (__argp_error): Check return value of __asprintf
84115         (__argp_failure): Translate error message
84116
84117         * lib/argp-parse.c: Removed braces around the expansion of N_()
84118
84119 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84122         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84123         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84124         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84125         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84126         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84127         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84128         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84129         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84130         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84131         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84132         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84133         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84134         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84135         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84136         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84137         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84138         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84139         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84140         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84141         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84142         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84143         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84144         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84145         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84146         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84147         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84148         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84149         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84150         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84151         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84152         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84153         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84154         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84155         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84156         Use an all-permissive copyright notice, recommended by RMS.
84157
84158 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         * modules/chdir-long (Depends-on): Remove mempcpy.
84161
84162 2005-01-21  Jim Meyering  <jim@meyering.net>
84163
84164         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84165         same value as for Solaris 9.
84166
84167         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84168         component length.  This included changing the parameter to be
84169         of type `char *' rather than `char const *'.
84170         * lib/chdir-long.h (chdir_long): Update prototype.
84171
84172         * lib/openat.c (fdopendir, fstatat): New functions.
84173         * lib/openat.h: Include headers required for use of DIR and struct
84174         stat.
84175         [AT_SYMLINK_NOFOLLOW]: Define.
84176         (fdopendir, fstatat): Add prototypes.
84177
84178 2005-01-21  Bruno Haible  <bruno@clisp.org>
84179
84180         * modules/classpath: New file.
84181         * MODULES.html.sh (Java): Add classpath.
84182
84183 2005-01-21  Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/classpath.h: New file, from GNU gettext.
84186         * lib/classpath.c: New file, from GNU gettext.
84187
84188 2005-01-20  Simon Josefsson  <jas@extundo.com>
84189
84190         * modules/version-etc-fsf: New file.
84191
84192 2005-01-20  Simon Josefsson  <jas@extundo.com>
84193
84194         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84195         * lib/version-etc.c: Remove version_etc_copyright.
84196         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84197         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84198
84199 2005-01-20  Simon Josefsson  <jas@extundo.com>
84200
84201         * lib/base64.h (isbase64): Add.
84202
84203         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84204         using a unsigned prototype, don't inline.
84205         (base64_decode): Use it.
84206
84207 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84208
84209         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84210         it.
84211
84212 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84213
84214         * lib/save-cwd.c (save_cwd): Remove code to support the case
84215         where fchdir is missing or flaky.
84216
84217 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84220
84221 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84222
84223         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84224         AC_LIBSOURCES now does this.
84225         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84226         with new ullong_max module.
84227
84228 2005-01-19  Bruno Haible  <bruno@clisp.org>
84229
84230         * modules/sh-quote: New file.
84231         * MODULES.html.sh (Executing programs): Add sh-quote.
84232
84233 2005-01-19  Bruno Haible  <bruno@clisp.org>
84234
84235         * lib/sh-quote.h: New file, from GNU gettext.
84236         * lib/sh-quote.c: New file, from GNU gettext.
84237
84238 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         Merge from coreutils.
84241         * m4/ullong_max.m4: New file.
84242         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84243         (gl_MACROS): Assume localeconv exists.
84244
84245 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         Merge changes from coreutils, as described below in several
84248         changelogs dated today.
84249
84250         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84251         (O_DIRECTORY): Remove; not needed here, since "." must be
84252         a directory.  All uses removed.
84253         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84254         universal on Suns, and we also need to test for IRIX.
84255         Revamp code to use 'if' rather than '#if'.
84256         Avoid unnecessary comparison of cwd->desc to 0.
84257
84258         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84259         for known valid error numbers rather than observed invalid ones.
84260
84261 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84262
84263         * modules/ullong_max: New file.
84264
84265         * modules/chdir-long, modules/openat: New files.
84266         * modules/save-cwd (Depends-on): Depend on chdir-long.
84267         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84268
84269 2005-01-18  Jim Meyering  <jim@meyering.net>
84270
84271         Merge from coreutils.
84272         * m4/chdir-long.m4, m4/openat.m4: New files.
84273         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84274         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84275         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84276         is sane and DOES follow symlinks.  Besides, testing 20 different
84277         systems found no broken chown implementations.
84278         Prompted by a change in rsync's copy of this macro.
84279         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84280
84281         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84282
84283         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84284         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84285         NULL-means-set-to-current-time semantics.
84286         Remove temporary file immediately, rather than waiting
84287         for configure's at-exit trap code to do it.
84288
84289 2005-01-18  Jim Meyering  <jim@meyering.net>
84290
84291         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84292
84293         * lib/utimens.c (futimens): Account for the fact that futimes
84294         can also fail with errno == ENOSYS or errno == ENOENT.
84295         Patch from Dmitry V. Levin.
84296
84297         Change the name of the robust chdir function from chdir to chdir_long.
84298         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84299         (restore_cwd): Use chdir_long, not chdir.
84300         * lib/chdir-long.c: Renamed from chdir.c.
84301         * lib/chdir-long.h: Renamed from chdir.h.
84302         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84303         Hurd.
84304
84305 2005-01-18  Bruno Haible  <bruno@clisp.org>
84306
84307         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84308         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84309         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84310         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84311         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84312         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84313         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84314         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84315         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84316         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84317         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84318         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84319         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84320         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84321         Use an all-permissive copyright notice, recommended by RMS.
84322
84323 2005-01-18  Bob Proulx  <bob@proulx.com>
84324
84325         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84326         simplify offsetof() macro construct to avoid compile failure with
84327         native HP-UX 11.0 ANSI C compiler.
84328
84329 2005-01-17  Bruno Haible  <bruno@clisp.org>
84330
84331         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84332         redundant because stpncpy.m4 takes care of it.
84333
84334 2005-01-17  Bruno Haible  <bruno@clisp.org>
84335
84336         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84337
84338 2005-01-17  Bruno Haible  <bruno@clisp.org>
84339
84340         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84341         used.
84342
84343 2005-01-17  Bruno Haible  <bruno@clisp.org>
84344
84345         * lib/fwriteerror.h (fwriteerror): Change specification to include
84346         fclose.
84347         * lib/fwriteerror.c: Include <stdbool.h>.
84348         (fwriteerror): At the end, close the file stream. Record whether
84349         stdout was already closed.
84350
84351 2005-01-17  Bruno Haible  <bruno@clisp.org>
84352
84353         * lib/execute.c (environ): Declare if needed.
84354         * lib/pipe.c (environ): Likewise.
84355         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84356
84357 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84358
84359         * modules/argp: Depend on vsnprintf
84360
84361 2005-01-10  Jim Meyering  <jim@meyering.net>
84362
84363         * modules/closeout (Depends-on): Add atexit.
84364
84365 2005-01-06  Bruno Haible  <bruno@clisp.org>
84366
84367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84368
84369 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84370
84371         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84372         definitions to be after all include files, to avoid collisions.
84373         Problem reported by Bob Proulx.
84374
84375 2005-01-04  Jim Meyering  <jim@meyering.net>
84376
84377         Changes imported from coreutils.
84378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84379         as the mkstemp template, use a temporary directory and an
84380         8.3-friendly template to avoid trouble on systems like DJGPP.
84381         Reported by Juan M. Guerrero via Stepan Kasal.
84382         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84383         close. Remove the temporary directory right away, rather than waiting
84384         for configure's at-exit trap code to do it.
84385         Suggestion from Stepan Kasal.
84386
84387 2005-01-01  Simon Josefsson  <jas@extundo.com>
84388
84389         * gnulib-tool: Print #include directives when --import'ing.
84390
84391 2004-12-28  Simon Josefsson  <jas@extundo.com>
84392
84393         * tests/test-base64.c: Include required header files.  Remove
84394         unused variables.
84395
84396 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * modules/error (Depends-on): Remove gettext.
84399
84400 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84403         not needed.  This removes a dependency on the gettext module.
84404         [defined _LIBC]: Do not include <libintl.h>; not needed.
84405
84406 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84407
84408         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84409         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84410
84411 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84414         HAVE_DECL_STRTOLD.
84415
84416 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * modules/getdate (Depends-on): Remove alloca-opt.
84419
84420 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84421
84422         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84423
84424 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * lib/argp-parse.c: Include <stddef.h>.
84427         (alignof, alignto): New macros.
84428         (parser_init): Don't assume that void * is aligned sufficiently
84429         for struct option.
84430
84431         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84432         need to extend the stack.
84433         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84434         large.
84435
84436 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84437
84438         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84439
84440 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84443         (2004-10-24) change.  Apparently this was a false alarm.
84444
84445         * modules/getdate: Depend on alloca-opt, not alloca.
84446
84447 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84450         Remove now-obsolete comment about AIX.
84451         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84452         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84453         (YYMAXDEPTH): New macro.
84454
84455 2004-12-18  Simon Josefsson  <jas@extundo.com>
84456
84457         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84458
84459 2004-12-18  Bruno Haible  <bruno@clisp.org>
84460
84461         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84462
84463 2004-12-18  Bruno Haible  <bruno@clisp.org>
84464
84465         * lib/fatal-signal.c (fatal_signals): Make non-const.
84466         (init_fatal_signals): New function.
84467         (uninstall_handlers, install_handlers): Ignore signals that were set to
84468         SIG_IGN.
84469         (at_fatal_signal): Call init_fatal_signals.
84470         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84471         SIG_IGN.
84472         Reported by Paul Eggert.
84473
84474 2004-12-18  Bruno Haible  <bruno@clisp.org>
84475
84476         * doc/alloca.texi: New file.
84477         * doc/alloca-opt.texi: New file.
84478
84479 2004-12-17  Jim Meyering  <jim@meyering.net>
84480
84481         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84482         Otherwise, install-sh could exit with improper exit status when
84483         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84484
84485 2004-12-16  Simon Josefsson  <jas@extundo.com>
84486
84487         * tests/test-base64.c: Add license.
84488
84489 2004-12-15  Stepan Kasal  <address@hidden>
84490
84491         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84492
84493 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         * modules/getcwd (Files): Add m4/d-ino.m4.
84496         Suggested by Mark D. Baushke.
84497
84498 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84499
84500         * lib/getdate.y (textint): New member "negative".
84501         (time_zone_hhmm): New function.
84502         Expect 14 shift-reduce conflicts, not 13.
84503         (o_colon_minutes): New rule.
84504         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84505         (yylex): Set the "negative" member of signed numbers.
84506
84507 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84508
84509         * doc/getdate.texi (Time of day items, Time zone items):
84510         Describe new formats +00:00, UTC+00:00.
84511
84512 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84515         spurious "-l"s.  Problem reported by Stepan Kasal.
84516
84517 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84518
84519         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84520         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84521
84522 2004-12-04  Simon Josefsson  <jas@extundo.com>
84523
84524         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84525         Vandoorselaere <yoann@prelude-ids.org>.
84526
84527 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         Changes imported from coreutils.
84530         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84531         exist.
84532         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84533
84534 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84535
84536         Changes imported from coreutils.
84537         * lib/hard-locale.c: Assume <locale.h> exists.
84538         Include "strdup.h".
84539         (GLIBC_VERSION): New macro.
84540         (hard_locale): Assume setlocale exists.
84541         Rewrite to avoid #ifdef.
84542         Use strdup rather than malloc + strcpy.
84543         * lib/human.c: Assume <locale.h> exists.
84544         (human_readable): Assume localeconv exists.
84545
84546 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84547
84548         * modules/hard-locale (Depends-on): Add strdup.
84549
84550 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84551
84552         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84553         convert T2, not T.  (Imported from libc.)
84554
84555 2004-11-30  Simon Josefsson  <jas@extundo.com>
84556
84557         * modules/restrict (License): Change to LGPL.
84558
84559 2004-11-30  Simon Josefsson  <jas@extundo.com>
84560
84561         * m4/restrict.m4: Add copyright and copying conditions.
84562
84563 2004-11-30  Simon Josefsson  <jas@extundo.com>
84564
84565         * m4/base64.m4: New file.
84566
84567 2004-11-30  Simon Josefsson  <jas@extundo.com>
84568
84569         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84570         base64.
84571
84572         * tests/test-base64.c: New file.
84573
84574         * modules/base64: New file.
84575
84576 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84577
84578         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84579         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84580
84581         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84582
84583 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84584
84585         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84586         (__getcwd.c): Don't restore errno; glibc doesn't.
84587         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84588         first, falling back to our code only if its results look suspicious.
84589         Ensure that the resulting buffer is only as large as necessary.
84590
84591         * lib/readutmp.c: Include readutmp.h first.
84592         Include <errno.h>, since readutmp.h no longer does that.
84593         * lib/readutmp.h: Don't include <errno.h>,
84594         <sys/param.h>, <time.h>; not needed to establish interface.
84595         (errno): Remove decl.
84596         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84597         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84598         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84599
84600 2004-11-28  Simon Josefsson  <jas@extundo.com>
84601
84602         * lib/base64.h, base64.c: New file.
84603
84604 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84607
84608 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84611         (Depends-on): Remove pathmax, same.  Add mempcpy.
84612         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84613         (Makefile.am): Append getcwd.h to lib_SOURCES.
84614         (Include): Add getcwd.h.
84615         (Maintainer): Change from Jim Meyering to "all, glibc",
84616         since getdate now uses intended-for-glibc code.
84617         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84618         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84619
84620 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84621
84622         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84623         HP's ANSI C compiler.
84624         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84625         Declaring int functions causes warnings on some modern systems and
84626         shouldn't be needed to compile on ancient ones.
84627         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84628         defined.
84629
84630         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84631         with the following changes.
84632         (__set_errno): Parenthesize properly.
84633         Include <stdbool.h>.
84634         (MIN, MAX, MATCHING_INO): New macros.
84635         (__getcwd): Define with prototype, not K&R form.
84636         Use heuristics to allocate default buffer on stack if possible.
84637         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84638         behavior, and to avoid the PATH_MAX limit when computing
84639         ../../../../...
84640         Use MATCHING_INO to compare inode number to file.
84641         Check for arithmetic overflow in size calculations.
84642         Fix bug in reallocation of dot array that caused getcwd to fail
84643         on directories nested deeper than 75.
84644         Be more careful about saving errno on error.
84645         Do not use realloc; use only free+malloc, as this is a bit
84646         more flexible and avoids a needless copy operation.
84647         Do not inspect st_dev and st_ino for symbolic links; POSIX
84648         doesn't specify the latter.
84649         Check for closedir errors.
84650         Avoid needless casts.
84651         Use "#ifdef weak_alias" around weak_alias, to be like other
84652         glibc code.
84653         The following changes to getcwd.c have effect only when used in
84654         gnulib; they have no effect inside glibc proper.
84655         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84656         as alloca isn't used.
84657         (alloca, __alloca): Likewise.
84658         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84659         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84660         unconditionally, as gnulib assumes C89 or better.
84661         Do not include <sys/param.h>.
84662         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84663         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84664         better.
84665         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84666         Include <dirent.h> in a way that is compatible with modern Autoconf.
84667         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84668         New macros, if not already defined.
84669         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84670         Use "_LIBC", not "defined _LIBC", for consistency.
84671         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84672         a mempcpy module.
84673         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84674         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84675         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84676         credit only to Jim Meyering and adjust the copyright dates.
84677         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84678         <stdlib.h>, <unistd.h>, "pathmax.h".
84679         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84680         (INITIAL_BUFFER_SIZE): Remove.
84681         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84682
84683 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84684
84685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84686         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84687         Use the _ONCE methods, for efficiency.
84688         Check for fcntl.h.  In test program, include <errno.h>
84689         and <fcntl.h> if available.  Remove old K&R cruft from
84690         test program.  Check for common errors in GNU/Linux,
84691         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84692         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84693         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84694         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84695         name accordingly.
84696         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84697         accommodate new getcwd.c.
84698         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84699         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84700         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84701         that's all we need now.
84702
84703 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84704
84705         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84706         argp-parse.c depends on getopt internals, that means we should
84707         always use our getopt, to be on the safe side.
84708         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84709         order not to spoil the result of an eventual previous invocation
84710         of gl_GETOPT_SUBSTITUTE.
84711
84712 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84713
84714         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84715         redefinition warnings. To avoid them, include the defines
84716         in `#if !defined __need_getopt ... #endif'. The only place
84717         where __getopt_argv_const is used is in definitions
84718         of getopt_long and getopt_long_only below, which are as well
84719         protected by `#ifndef __need_getopt'.
84720         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84721         __need_getopt after including <stdio.h> and <unistd.h> These
84722         headers might have defined it.
84723
84724 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84727
84728 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84729
84730         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84731         (futimens): New function, which uses futimes if available.
84732         (futimens, utimens): Support timespec==NULL, with same semantics
84733         as utime and utimens.
84734         * lib/utimens.h (futimens): New decl.
84735
84736 2004-11-23  Jim Meyering  <jim@meyering.net>
84737
84738         * lib/getopt_.h: Remove trailing blanks.
84739
84740 2004-11-23  Jim Meyering  <jim@meyering.net>
84741
84742         * lib/__fpending.c: Add comment.
84743
84744 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * modules/canonicalize (Depends-on): Add xreadlink.
84747         Problem reported by James Youngman.
84748
84749 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84752         New macros.
84753         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84754         optopt): Use them instead of invoking ## directly; otherwise, the
84755         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84756
84757 2004-11-19  Bruno Haible  <bruno@clisp.org>
84758
84759         * lib/strtok_r.c: Move comments from here...
84760         * lib/strtok_r.h: ... to here.
84761
84762 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84765         implementations that mishandle size_t overflow.
84766
84767 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84768
84769         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84770         might fail.  Problem reported by Yoann Vandoorselaere.
84771         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84772         implementations that mishandle size_t overflow.
84773
84774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84775
84776         * modules/canon-host (Depends-on): Add strdup.
84777
84778 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84781
84782 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * lib/canon-host.c: Include "strdup.h".
84785         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84786         Use strdup instead of malloc/strcpy to duplicate strings.
84787
84788         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84789         (human_space_before_unit): New constant.
84790         * lib/human.c (human_readable): Support it.
84791
84792         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84793         (xgetcwd): Set errno correctly when failing.
84794         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84795         the failure is actually due to a PATH_MAX problem.
84796
84797         Further getopt changes to make it more likely that glibc will
84798         buy the changes back.
84799         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84800         (getopt): Use it, so to preserve glibc semantic
84801         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84802         when compiling for libc.
84803         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84804         (getopt_long, getopt_long_only): Use it.
84805
84806         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84807         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84808         (getopt): Argv is now char * const *, as per standard.
84809         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84810         not char *__getopt_argv_const *.
84811         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84812         _getopt_long_only_r): Likewise.
84813         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84814         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84815         _getopt_long_r, _getopt_long_only_r): Likewise.
84816         * lib/getopt_.h (__getopt_argv_const): Remove.
84817         (getopt): Argv is now char * const *, as per standard.
84818
84819         * lib/getdate.y (tORDINAL): New token.
84820         (day, relunit): Allow it for relative times.
84821         (relative_time_table): Use tORDINAL for ordinals.
84822
84823 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84826         Document that "second" isn't allowed as an ordinal number.
84827
84828 2004-11-16  Jim Meyering  <jim@meyering.net>
84829
84830         * modules/closeout (Depends-on): Add fpending.
84831
84832 2004-11-15  Jim Meyering  <jim@meyering.net>
84833
84834         * lib/closeout.c: Include "__fpending.h" once again.
84835         Include <stdbool.h>.
84836         (close_stdout): Don't fail just because stdout was closed initially,
84837         since some programs don't write to stdout in the normal course of
84838         operation (other than --version and --help), and we don't want this
84839         function to make e.g. `touch file >&-' fail.
84840         But do fail if it was closed and someone has tried to write to it.
84841         E.g., `printf foo >&-' must fail.
84842
84843 2004-11-13  Jim Meyering  <jim@meyering.net>
84844
84845         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84846
84847 2004-11-12  Simon Josefsson  <jas@extundo.com>
84848
84849         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84850         small doc fix is still pending.
84851
84852 2004-11-11  Simon Josefsson  <jas@extundo.com>
84853
84854         * modules/strtok_r: New file.
84855
84856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84857         strtok_r.
84858
84859 2004-11-11  Simon Josefsson  <jas@extundo.com>
84860
84861         * m4/strtok_r.m4: New file.
84862
84863         * m4/getopt.m4: Replace opterr.
84864
84865 2004-11-11  Simon Josefsson  <jas@extundo.com>
84866
84867         * lib/strtok_r.h, strtok_r.c: New file.
84868
84869 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84872         of replacing opterr, getopt, etc.  This should handle the
84873         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84874
84875 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84876
84877         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84878         we can stop lying to compilers about the constness of argv when we
84879         are compiled outside glibc.
84880         (getopt, getopt_long, getopt_long_only): Use it.
84881         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84882         _getopt_internal, getopt): Likewise.
84883         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84884         _getopt_long_only_r): Likewise.
84885         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84886         _getopt_long_r, _getopt_long_only_r): Likewise.
84887
84888         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84889         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84890         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84891         the other external symbols.
84892         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84893         declaration, since the above renaming now works around collisions.
84894
84895 2004-11-11  Jim Meyering  <jim@meyering.net>
84896
84897         * lib/linebreak.c: Remove trailing blanks.
84898         * lib/alloca_.h: Likewise.
84899         * lib/acosl.c: Likewise.
84900         * lib/euidaccess.c: Likewise.
84901         * lib/allocsa.h: Likewise.
84902
84903 2004-11-10  Simon Josefsson  <jas@extundo.com>
84904
84905         * m4/getaddrinfo.m4: New file.
84906
84907 2004-11-10  Simon Josefsson  <jas@extundo.com>
84908
84909         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84910
84911 2004-11-10  Simon Josefsson  <jas@extundo.com>
84912
84913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84914         getaddrinfo.
84915
84916         * modules/getaddrinfo: New file.
84917
84918 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84921
84922 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84923
84924         * lib/mktime.c (SHR): New macro, which is a portable
84925         substitute for >> that should work even on Crays.
84926         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84927         Problem reported by Mark D. Baushke in
84928         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84929         * lib/getdate.y (SHR): Likewise.
84930         (tm_diff): Use it.
84931         * lib/strftime.c (SHR): Likewise.
84932         (tm_diff): Use it.
84933         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84934         quote_these_too, so that right shifts are well defined.  All uses
84935         changed.
84936
84937 2004-11-10  Jim Meyering  <jim@meyering.net>
84938
84939         Ensure that no close failure goes unreported.
84940         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84941         return early when it seems there's nothing to flush.
84942         Don't include __fpending.h.
84943
84944 2004-11-10  Jim Meyering  <jim@meyering.net>
84945
84946         * modules/closeout (Depends-on): Remove fpending.
84947
84948 2004-11-10  Jim Meyering  <jim@meyering.net>
84949
84950         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84951
84952 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84955         gl_FUNC_STRFTIME.
84956         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84957         and AC_REQUIRE when possible, to avoid duplicate checks.
84958         Check for <wchar.h>.
84959
84960 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84961
84962         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84963
84964 2004-11-09  Bruno Haible  <bruno@clisp.org>
84965
84966         * m4/sockpfaf.m4: New file.
84967
84968 2004-11-05  Bruno Haible  <bruno@clisp.org>
84969
84970         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84971         Reported by Mark D. Baushke <mdb@cvshome.org>.
84972
84973 2004-11-04  Bruno Haible  <bruno@clisp.org>
84974
84975         2004-09-11  Bruno Haible  <bruno@clisp.org>
84976                 * allocsa.valgrind: New file.
84977         2004-02-06  Bruno Haible  <bruno@clisp.org>
84978                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84979                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84980                 Reported by Christopher Seip <chris.seip@hp.com>.
84981
84982 2004-11-04  Bruno Haible  <bruno@clisp.org>
84983
84984         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84985         (Makefile.am): Distribute it.
84986
84987 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84988
84989         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84990         with errno == ERANGE if the buffer is too small.
84991         Problem reported by Mark D. Baushke.
84992
84993 2004-11-03  Albert Chin  <china@thewrittenword.com>
84994             Paul Eggert  <eggert@cs.ucla.edu>
84995
84996         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84997         equivalent, substitute $ac_type for equivalent type rather than
84998         blindly using uint32_t *always* which won't work if uint32_t is not
84999         available.  Define _UINT32_T to work around typedef of uint32_t if
85000         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85001         2.5.1.
85002
85003 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85004
85005         * m4/jm-macros.m4: Sync from coreutils.
85006         (gl_MACROS): Check for mbrlen, for pathchk.
85007         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85008
85009 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * lib/xreadlink.c (MAXSIZE): New macro.
85012         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85013         size does not exceed MAXSIZE.  Avoid cast.
85014         As suggested by Mark D. Baushke in
85015         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85016         if readlink fails with buffer size just under MAXSIZE, try again
85017         with MAXSIZE.
85018
85019 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85022
85023 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85024         and  Paul Eggert  <eggert@cs.ucla.edu>
85025
85026         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85027         (get_date): Overparenthesize to avoid GCC warning.
85028
85029 2004-11-02  Bruno Haible  <bruno@clisp.org>
85030
85031         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85032         returns void.
85033
85034 2004-11-02  Bruno Haible  <bruno@clisp.org>
85035
85036         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85037         function returns void.
85038
85039 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85040
85041         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85042         fflush_unlocked, flockfile, funlockfile, funlockfile,
85043         fputs_unlocked, putc_unlocked.
85044
85045 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85048         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85049         already declared.
85050
85051 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85052
85053         * modules/getdate (Files): Add doc/getdate.texi.
85054         (Depends-on): Add setenv, xalloc.
85055
85056 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85057
85058         * lib/getdate.y: Add support for TZ="foo" within a date string.
85059         Fix some bugs near time_t boundaries.  Reject dates with
85060         out-of-range components, e.g., "Sept 31".
85061         Include <stdlib.h>, "setenv.h", "xalloc.h".
85062         (ISDIGIT_LOCALE): Remove; unused.
85063         Note that the TZ and time functions used here are not reentrant.
85064         (mktime_ok, get_tz): New functions.
85065         (TZBUFSIZE): New constant.
85066         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85067         This requires that we sometimes generate our own TZ="XXX..." setting.
85068
85069 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         * doc/getdate.texi: New file, from coreutils with modifications for
85072         the new TZ parsing.
85073
85074 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85075
85076         * lib/mktime.c (not_equal_tm): Remove redundant check.
85077
85078 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85079
85080         * modules/regex (lib_SOURCES): Add regex.c.
85081         Reported by James Youngman in
85082         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85083
85084 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * lib/getdate.y: Use Bison 1.875 features, and some minor
85087         code cleanups.  This change does not affect semantics.
85088         Don't include <stdlib.h>; no longer needed.
85089         Don't include unlocked-io.h; only the "#if TEST" code uses
85090         stdio, and performance isn't crucial there.
85091         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85092         Bison 1.875 features as described below.
85093         All uses of "PC." replaced by "pc->".
85094         (YYSTYPE): Add a forward declaration.
85095         (yylex, yyerror): Use full prototypes in forward decls.
85096         Use "%pure-parser" rather than obsolescent "%pure_parser".
85097         Use %parse-param and %lex-param instead of obsolescent
85098         YYPARSE_PARAM and YYLEX_PARAM.
85099         (meridian_table, month_and_day_table, time_units_table,
85100         relative_time_table, time_zone_table, military_table,
85101         lookup_zone, lookup_word, get_date):
85102         Use NULL instead of 0 where appropriate.
85103         (to_hour): Avoid abort (), to avoid a dependency on
85104         stdlib.h.
85105         (yyerror, yylex): Now accepts parser_control * arg.
85106         (main) [TEST]: Use '\0' rather than 0 for char.
85107
85108 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85109
85110         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85111
85112 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85113
85114         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85115         It's now the caller's responsibility to handle the case where
85116         !HAVE_GETPAGESIZE && !defined getpagesize.
85117
85118         * lib/mktime.c (leapyear): Arg is long int, not int.
85119
85120 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85123
85124 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85127         missing.  Problem reported by James Youngman.
85128
85129 2004-10-16  Simon Josefsson  <jas@extundo.com>
85130
85131         * gnulib-tool: Fix comments.  Fix parse problem.
85132         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85133
85134 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85135
85136         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85137         implementation of getopt_long.  Problem reported by Alexander Taler in:
85138         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85139
85140 2004-10-15  Bruno Haible  <bruno@clisp.org>
85141
85142         * gnulib-tool: Untabify. Initialize supplied_libname.
85143         (func_usage): More homogenous output.
85144         (func_modules_transitive_closure, func_modules_to_filelist,
85145         func_emit_lib_Makefile_am): New functions.
85146         (func_import): New function, extracted from big case statement. Use
85147         func_get_license, func_modules_transitive_closure,
85148         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85149         opt_lgpl. Don't use test -a, as it's not portable.
85150         (func_create_testdir): Use func_modules_transitive_closure,
85151         func_modules_to_filelist, func_emit_lib_Makefile_am.
85152
85153 2004-10-15  Bruno Haible  <bruno@clisp.org>
85154
85155         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85156
85157 2004-10-15  Bruno Haible  <bruno@clisp.org>
85158
85159         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85160         the portions belonging to each module.
85161         Suggested by Derek Robert Price <derek@ximbiot.com>.
85162
85163 2004-10-12  Simon Josefsson  <jas@extundo.com>
85164
85165         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85166         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85167         to real functions.
85168
85169 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85170
85171         * modules/vsnprintf: New file.
85172
85173 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85174
85175         * m4/vsnprintf.m4: New file.
85176
85177 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85178
85179         * lib/vsnprintf.h: New file.
85180         * lib/vsnprintf.c: New file.
85181
85182 2004-10-11  Bruno Haible  <bruno@clisp.org>
85183
85184         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85185         vsnprintf.
85186
85187 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85190
85191 2004-10-07  Bruno Haible  <bruno@clisp.org>
85192
85193         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85194         fits into the provided buffer.
85195
85196 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         * lib/diacrit.c, diacrit.h: Add GPL notice.
85199
85200         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85201         notice.
85202         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85203         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85204         This avoids a potential constant-folding bug.
85205
85206 2004-10-05  Bruno Haible  <bruno@clisp.org>
85207
85208         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85209         for the declaration of strsep.
85210
85211 2004-10-05  Bruno Haible  <bruno@clisp.org>
85212
85213         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85214
85215 2004-10-04  Simon Josefsson  <jas@extundo.com>
85216
85217         * modules/memmem: New file.
85218         * tests/test-memmem.c: New file.
85219         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85220
85221 2004-10-04  Simon Josefsson  <jas@extundo.com>
85222
85223         * m4/memmem.m4: New file.
85224
85225 2004-10-04  Simon Josefsson  <jas@extundo.com>
85226
85227         * lib/memmem.h: New file.
85228         * lib/memmem.c: New file, taken from glibc.
85229
85230 2004-10-04  Simon Josefsson  <jas@extundo.com>
85231
85232         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85233         '#ifdef USE_UNLOCKED_IO'.
85234
85235 2004-10-04  Simon Josefsson  <jas@extundo.com>
85236
85237         * config/srclist.txt: Add memmem from glibc.
85238
85239 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85240
85241         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85242
85243         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85244         modules/exclude, modules/getdate, modules/getline,
85245         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85246         modules/getusershell, modules/linebuffer, modules/md5,
85247         modules/mountlist, modules/posixtm, modules/readtokens,
85248         modules/readutmp, modules/regex, modules/sha1,
85249         modules/version-etc, modules/yesno:
85250         Remove dependency on unlocked-io.
85251
85252 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85255
85256         * m4/unlocked-io.m4: Add copyright notice.
85257         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85258
85259 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85260
85261         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85262         * lib/xmalloc.c (xmemdup): Likewise.
85263         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85264         XFREE): Remove these long-obsolescent macros.
85265         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85266         * lib/xstrdup.c: Remove.
85267
85268         * lib/regex.c (re_comp): Cast gettext return value to char *,
85269         Problem reported by Martin Neitzel via Mark D. Baushke.
85270
85271 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85274         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85275         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85276         regex.c, sha1.c, version-etc.c, yesno.c:
85277         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85278         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85279         the includer's responsibility.
85280
85281         Sync from coreutils.
85282
85283         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85284         points to the start of a string, as the C Standard says the
85285         resulting behavior is undefined.
85286
85287         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85288         simple -> simple_backups, numbered_existing ->
85289         numbered_existing_backups, numbered -> numbered_backups
85290         to avoid shadowing problems.  All uses changed.
85291         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85292         * lib/backupfile.c (check_extension, numbered_backup):
85293         Rename locals to avoid shadowing 'basename'.
85294         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85295         once.
85296
85297         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85298         * lib/.cvsignore: Add getopt.h.
85299
85300 2004-10-04  Bruno Haible  <bruno@clisp.org>
85301
85302         * modules/README: New file.
85303         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85304         not a module.
85305
85306 2004-10-02  Jim Meyering  <jim@meyering.net>
85307
85308         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85309
85310 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85311
85312         * modules/strsep: New file.
85313
85314 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85315
85316         * m4/strsep.m4: New file.
85317
85318 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85319
85320         * lib/strsep.h: New file.
85321         * lib/strsep.c: New file.
85322
85323 2004-10-01  Simon Josefsson  <jas@extundo.com>
85324
85325         * lib/snprintf.c (snprintf): Handle size==0.
85326
85327 2004-10-01  Simon Josefsson  <jas@extundo.com>
85328             Bruno Haible  <bruno@clisp.org>
85329
85330         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85331         (snprintf): Declare 'args'.
85332
85333 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85334
85335         * lib/snprintf.c: Remove comments as to why each header is needed.
85336
85337 2004-10-01  Bruno Haible  <bruno@clisp.org>
85338
85339         * MODULES.html.sh: Add strsep.
85340
85341 2004-09-30  Simon Josefsson  <jas@extundo.com>
85342
85343         * modules/snprintf: New file.
85344
85345 2004-09-30  Simon Josefsson  <jas@extundo.com>
85346
85347         * m4/snprintf.m4: New file.
85348
85349 2004-09-30  Simon Josefsson  <jas@extundo.com>
85350
85351         * lib/snprintf.h, lib/snprintf.c: New files.
85352
85353 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85354
85355         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85356         (hol_entry_help): Never translate an empty string.
85357         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85358         * lib/argp.h (OPTION_NO_TRANS): New option.
85359
85360 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85361
85362         * modules/argp (Maintainer): Replace Simon Josefsson
85363         by Sergey Poznyakoff.
85364
85365 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85368         changes merged back into glibc.
85369
85370 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85373
85374 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85375
85376         * lib/xvasprintf.c: Include xalloc.h.
85377         (xvasprintf): Use xalloc_die, not xmalloc_die.
85378
85379 2004-09-29  Bruno Haible  <bruno@clisp.org>
85380
85381         * modules/alloca-opt: New file, derived from modules/alloca.
85382         * modules/allocsa: Depend on alloca-opt instead of alloca.
85383         * modules/setenv: Likewise.
85384         * modules/vasnprintf: Likewise.
85385         * MODULES.html.sh: Add alloca-opt.
85386
85387 2004-09-28  Simon Josefsson  <jas@extundo.com>
85388
85389         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85390         LGPL, and to replace license template from GPL to LGPL.
85391
85392 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85393
85394         * modules/dummy: Change license to LGPL.
85395
85396 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85399
85400 2004-09-24  Simon Josefsson  <jas@extundo.com>
85401
85402         * modules/minmax (License): Change from GPL to LGPL.
85403
85404 2004-09-23  Simon Josefsson  <jas@extundo.com>
85405
85406         * gnulib-tool (--import): Typo.
85407
85408 2004-09-23  Simon Josefsson  <jas@extundo.com>
85409
85410         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85411
85412 2004-09-22  Bruno Haible  <bruno@clisp.org>
85413
85414         * modules/*: Add 'License' field.
85415         * gnulib-tool: Accept --extract-license option.
85416         (func_get_license): New function.
85417
85418 2004-09-21  Bruno Haible  <bruno@clisp.org>
85419
85420         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85421         Reported by Simon Josefsson.
85422
85423 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85426         gl_AC_TYPE_LONG_LONG.
85427
85428 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85429
85430         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85431
85432 2004-09-18  Simon Josefsson  <jas@extundo.com>
85433         and  Paul Eggert  <eggert@cs.ucla.edu>
85434
85435         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85436         calls with autoreconf.  Define GL_LIB.
85437
85438 2004-09-14  Karl Berry  <karl@gnu.org>
85439
85440         * config/srclist.txt: unsync setenv.c, sigh.
85441
85442 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85445         Problem reported by Bruno Haible in:
85446         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85447
85448 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85449
85450         * config/srclist.txt: Comment out argp-pvh.c.
85451
85452 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85453
85454         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85455         in case some system header has #define'd it.  Problem reported by
85456         Soeren D. Schulze in
85457         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85458
85459 2004-09-09  Karl Berry  <karl@gnu.org>
85460
85461         * regex.[ch]: delete from the root.  These were supposed to be
85462                 synced with emacs cvs, but this has not happened for about
85463                 a year, and anyway nothing else uses emacs regex.[ch].
85464                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85465                 lib/regex[.ch] is untouched.
85466
85467 2004-09-09  Bruno Haible  <bruno@clisp.org>
85468
85469         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85470
85471 2004-09-09  Bruno Haible  <bruno@clisp.org>
85472
85473         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85474         modifications.
85475         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85476
85477 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85478
85479         * modules/xvasprintf: New file.
85480         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85481
85482 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85483
85484         * lib/xvasprintf.h: New file.
85485         * lib/xvasprintf.c: New file.
85486         * lib/xasprintf.c: New file.
85487
85488 2004-09-08  Bruno Haible  <bruno@clisp.org>
85489
85490         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85491
85492 2004-09-08  Bruno Haible  <bruno@clisp.org>
85493
85494         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85495         length is > INT_MAX.
85496         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85497         more.
85498
85499 2004-09-08  Bruno Haible  <bruno@clisp.org>
85500
85501         * lib/stdint_.h: New file, taken from GNU clisp.
85502
85503 2004-09-08  Bruno Haible  <bruno@clisp.org>
85504             Oskar Liljeblad  <oskar@osk.mine.nu>
85505
85506         * modules/stdint: New file.
85507         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85508
85509 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85510
85511         Import from coreutils.
85512         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85513         strings on unbounded length.  alloca's performance benefits aren't
85514         that important here.
85515         (V_STRDUP): Remove.
85516         (parse_with_separator): New function, with most of the internals
85517         of the old parse_user_spec.  Allow user to omit both user and group,
85518         for compatibility with FreeBSD.
85519         Clone only the user name, not the entire spec.
85520         Do not set *uid, *gid unless entirely successful.
85521         Avoid memory leak in some failing cases.
85522         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85523         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85524         (parse_user_spec): Rewrite to use parse_with_separator.
85525
85526 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85527
85528         * modules/userspec: Don't depend on alloca.
85529
85530 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85533
85534 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85537         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85538         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85539
85540 2004-08-16  Simon Josefsson  <jas@extundo.com>
85541
85542         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85543         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85544         Add --dry-run for --import.
85545         Let user provided command line parameters override configure.ac
85546         settings.
85547
85548 2004-08-12  Simon Josefsson  <jas@extundo.com>
85549
85550         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85551         as discussed with Paul Eggert in threads rooted at
85552         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85553         and
85554         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85555         Before, the test was empty, and relied on ELIDE_CODE in source
85556         code.)
85557         (gl_PREREQ_GETOPT): New macro.
85558         (gl_GETOPT): Use them.
85559
85560 2004-08-12  Simon Josefsson  <jas@extundo.com>
85561
85562         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85563         * lib/getopt_.h: Renamed from getopt.h.
85564
85565 2004-08-12  Simon Josefsson  <jas@extundo.com>
85566
85567         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85568         Change default library name from libfoo to libgnu.
85569         Now, if you have a configure.ac that says:
85570                 gl_SOURCE_BASE(gl)
85571                 gl_M4_BASE(gl/m4)
85572                 gl_MODULES(error getopt etcetera)
85573                 gl_INIT
85574         you can import all you need by running:
85575                 ../gnulib/gnulib-tool --import
85576
85577         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85578         (Makefile.am): Rewrite, use logic from argz.
85579         (Include): Use <getopt.h> instead of "getopt.h".
85580
85581 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85582
85583         * modules/argp (Files): Add m4/unlocked-io.m4.
85584         (Depends-on): Add extensions.
85585
85586 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85587
85588         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85589         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85590         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85591         Check for program_invocation_name, program_invocation_short_name,
85592         flockfile, funlockfile, features.h, _getopt_long_only_r.
85593
85594 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85595
85596         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85597         its complicated substitute.
85598         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85599         and program_invocation_name.
85600         (__argp_basename) [!_LIBC]: Remove; the only use was
85601         replaced by its body.
85602         (__argp_short_program_name): Change condition from
85603         !defined __argp_short_program_name to
85604         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85605         to match argp-namefrob.h.
85606         (__argp_failure): Don't assume strerror_r returns char *.
85607         * lib/argp-parse.c (N_): Define unconditionally.
85608         (argp_default_options): Fill out initializers with 0 to avoid
85609         gcc warnings.
85610
85611 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85612
85613         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85614         getopt1.c.
85615
85616 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         Merge from coreutils.
85619
85620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85621
85622         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85623         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85624
85625 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85626
85627         Merge from coreutils.
85628
85629         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85630         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85631         for Reliant Unix 5.43.
85632
85633         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85634         (union fooround): Use uintmax_t, not long int.
85635         The rest is a merge from libc:
85636         [defined _LIBC]: Include <shlib-compat.h>.
85637         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85638
85639         * lib/settime.c (settime): Recode to avoid warning with
85640         Sun Forte C 6U2.
85641
85642         * lib/strverscmp.c: Convert to UTF-8.
85643
85644 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85645
85646         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85647         m4/uintmax_t.m4.
85648
85649 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85650
85651         * modules/xalloc-die: New file.
85652         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85653
85654         * modules/md5 (Files): Add m4/uint32_t.m4.
85655         * modules/sha1: Renamed from modules/sha.
85656         (Files):
85657         Rename lib/sha.h to lib/sha1.h.
85658         Rename lib/sha.c to lib/sha1.c.
85659         Rename m4/sha.m4 to m4/sha1.m4.
85660         (lib_SOURCES): Likewise.
85661         (configure.ac): Rename gl_SHA to gl_SHA1.
85662         (Include): sha.h -> sha1.h.
85663
85664 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85665
85666         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85667         * m4/sha1.m4: Renamed from sha.m4.
85668         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85669
85670 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85671
85672         * lib/obstack.h (obstack_empty_p):
85673         Don't assume that chunk->contents is suitably aligned.
85674         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85675         Likewise. Problem reported by Benno in
85676         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85677
85678         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85679         readable.  This could be improved further but it'd take some work.
85680
85681 2004-08-08  Simon Josefsson  <jas@extundo.com>
85682
85683         * modules/xgethostname (Depends-on): Remove exit and error (not
85684         used).
85685
85686         * modules/getpass-gnu: Add getpass.h.
85687         (Depends-on): Add stdbool.
85688         * modules/getpass: Add getpass.h.
85689
85690 2004-08-08  Simon Josefsson  <jas@extundo.com>
85691
85692         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85693         Check getpass declaration.
85694
85695 2004-08-08  Simon Josefsson  <jas@extundo.com>
85696
85697         * lib/xgethostname.c: Don't include error.h (not used).
85698
85699         * lib/getpass.h: Add.
85700         * lib/getpass.c: Include getpass.h first.
85701
85702 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85703
85704         * lib/xalloc-die.c: New file.
85705         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85706         All uses removed.
85707         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85708         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85709         xalloc-die.c.
85710         (_, N_, xalloc_die): Move to xalloc-die.c.
85711         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85712         so that we needn't mess with xalloc_msg_memory_exhausted.
85713
85714         * lib/sha1.h: Renamed from sha.h.
85715         (SHA1_H): Renamed from _SHA_H.
85716         (sha1_ctx): Renamed from sha_ctx.
85717         (sha1_init_ctx): Renamed from sha_init_ctx.
85718         (sha1_process_block): Renamed from sha_process_block.
85719         (sha1_process_bytes): Renamed from sha_process_bytes.
85720         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85721         (sha1_read_ctx): Renamed from sha_read_ctx.
85722         (sha1_stream): Renamed from sha_stream.
85723         (sha1_buffer): Renamed from sha_buffer.
85724         * lib/sha1.c: Likewise; renamed from sha.c.
85725         Do not include <sys/types.h>.
85726         Include <stddef.h> rather than <stdlib.h>.
85727
85728 2004-08-08  Bruno Haible  <bruno@clisp.org>
85729
85730         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85731         FILESYSTEM_PREFIX_LEN.
85732         * lib/progreloc.c: Likewise.
85733         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85734
85735 2004-08-06  Simon Josefsson  <jas@extundo.com>
85736
85737         * modules/progname (Depends-on): Don't depend on stdbool.
85738
85739 2004-08-06  Simon Josefsson  <jas@extundo.com>
85740
85741         * modules/getsubopt: New file.
85742         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85743         getsubopt.
85744
85745 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         More merge from coreutils.
85748
85749         * m4/utimens.m4, m4/utimecmp.m4: New files.
85750         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85751         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85752         prereq.m4, sha.m4: Import changes from coreutils.
85753
85754 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85755
85756         More merge from coreutils.
85757         * modules/raise, modules/readtokens0, modules/utimens:
85758         * modules/utimecmp, module/xnanosleep: New files.
85759         * modules/strftime: Add lib/strftime.h.
85760         Change include from <time.h> to "strftime.h".
85761         * modules/yesno: Add lib/yesno.h.
85762         * modules/backupfile: Remove lib/addext.c.
85763         * modules/euidaccess: Add stat-macros.h.
85764         * modules/canonicalize, modules/euidaccess,
85765         modules/filemode, modules/lchown, modules/makepath,
85766         modules/rmdir, modules/stat: Likewise.
85767
85768 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         Merge from tar.
85771         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85772         SIZE_MAX is a valid preprocessor constant.
85773         (__argp_basename): Change from "#ifndef _LIBC"
85774         to "#ifndef __argp_short_program_name", so that
85775         we don't compile these functions for tar.
85776
85777         More merges from coreutils.
85778         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85779         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85780         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85781         * lib/addext.c: Remove; no longer needed.
85782         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85783         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85784         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85785         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85786         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85787         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85788         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85789         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85790         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85791         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85792         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85793         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85794         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85795         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85796         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85797         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85798         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85799         Import changes from coreutils.
85800
85801 2004-08-05  Simon Josefsson  <jas@extundo.com>
85802
85803         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85804
85805 2004-08-05  Simon Josefsson  <jas@extundo.com>
85806
85807         * m4/getsubopt.m4: New file.
85808
85809 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85810
85811         Merge from coreutils.
85812
85813         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85814         * m4/getcwd-path-max.m4: New files.
85815
85816         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85817         FILESYSTEM_PREFIX_LEN ->
85818         FILE_SYSTEM_PREFIX_LEN.
85819         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85820         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85821         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85822         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85823
85824         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85825         prerequisite modules now handle the DOS stuff.
85826         Don't check for unistd.h.
85827
85828 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         Merge from coreutils.
85831
85832         * lib/.gdb-history: Remove; this doesn't belong here.
85833
85834         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85835         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85836         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85837         * lib/getcwd.c: New files.
85838
85839         * lib/dirname.h: Include <stdbool.h>.
85840         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85841         for consistency with POSIX terminology.  All uses changed.
85842         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85843         (strip_trailing_slashes): Use bool for booleans.
85844         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85845
85846         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85847         sometimes returns a positive errno value even when it succeeds.
85848         (print_errno_message) [!LIBC]: Fall back on strerror if
85849         __strerror_r fails.
85850
85851         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85852         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85853         (longest_relative_suffix): New function.
85854         (path_concat): Use it.  Assume first argument is not NULL.
85855         Port to DOS.  Omit redundant separators.
85856         Report an error instead of returning NULL.
85857         Use mempcpy instead of memcpy.
85858         (xpath_concat): Remove: not declared or used.
85859
85860         * lib/same.h: Include <stdbool.h>
85861         (same_name): Return bool, not int.
85862         * lib/same.c (same_name): Likewise.
85863         (errno): Don't declare; we assume C89 or better now.
85864
85865         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85866         if not already defined.
85867
85868         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85869         * lib/dup-safer.c (errno): Likewise.
85870
85871 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         Merge from coreutils.
85874         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85875         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85876         * modules/path-concat: Don't depend on strdup.
85877
85878 2004-08-03  Simon Josefsson  <jas@extundo.com>
85879
85880         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85881         * lib/progname.h: Don't include stdbool.h.
85882
85883 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85886         * MODULES.html.sh (func_all_modules): Remove fatal.
85887
85888 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85889
85890         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85891
85892 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85893
85894         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85895         working.
85896
85897 2004-08-02  Simon Josefsson  <jas@extundo.com>
85898
85899         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85900         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85901         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85902
85903 2004-08-01  Simon Josefsson  <jas@extundo.com>
85904
85905         * lib/xgetdomainname.c: Include stdlib.h, for free().
85906
85907 2004-07-19  Bruno Haible  <bruno@clisp.org>
85908
85909         * MODULES.html.sh (func_all_modules): Add dummy.
85910
85911 2004-07-16  Simon Josefsson  <jas@extundo.com>
85912
85913         * modules/dummy: New file.
85914
85915 2004-07-16  Simon Josefsson  <jas@extundo.com>
85916
85917         * lib/dummy.c: New file.
85918
85919 2004-07-16  Bruno Haible  <bruno@clisp.org>
85920
85921         * lib/backupfile.h: Add extern "C" for C++.
85922         * lib/closeout.h: Likewise.
85923         * lib/copy-file.h: Likewise.
85924         * lib/findprog.h: Likewise.
85925         * lib/full-write.h: Likewise.
85926         * lib/pathname.h: Likewise.
85927         * lib/progname.h: Likewise.
85928         * lib/stpcpy.h: Likewise.
85929         * lib/stpncpy.h: Likewise.
85930         * lib/strcase.h: Likewise.
85931         * lib/strstr.h: Likewise.
85932         * lib/xalloc.h: Likewise.
85933
85934         * lib/mbswidth.h: Add extern "C" for C++.
85935         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85936
85937 2004-07-13  Robert Millan  <robertmh@gnu.org>
85938
85939         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85940
85941 2004-07-09  Simon Josefsson  <jas@extundo.com>
85942
85943         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85944         failed without this.)
85945
85946 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85947
85948         * modules/chown (Files): Add lib/fchown-stub.c, since
85949         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85950
85951 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         * lib/fchown-stub.c: New file.
85954
85955 2004-06-24  Jim Meyering  <jim@meyering.net>
85956
85957         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85958
85959 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         * modules/argz: Omit "#include".
85962
85963         * MODULES.html.sh (func_all_modules): Add calloc, to match
85964         2004-06-01 addition of calloc module.
85965
85966 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85967
85968         * m4/argz.m4: New file, which is autoupdated from libtool.
85969
85970 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85973         libtool.
85974
85975 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * config/srclist-update: Don't insist on "USA." before the
85978         close-comment, as libtool omits the period and puts the */ on a
85979         separate line.
85980         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85981         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85982
85983 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85984
85985         * modules/argz: New file.
85986         * MODULES.html.sh (func_all_modules): Add argz.
85987
85988 2004-06-12  Jim Meyering  <jim@meyering.net>
85989         and  Paul Eggert  <eggert@cs.ucla.edu>
85990
85991         * modules/hash (Files): Add lib/xalloc.h.
85992         * modules/pipe (Depends-on): Add wait-process.
85993         * modules/stat (Depends-on): Add xalloc.
85994         * modules/userspec (Files): Add lib/userspec.h.
85995         * modules/xstrto
85996
85997         Upgrade from gettext-0.13.
85998         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85999         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86000         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86001
86002 2004-06-10  Jim Meyering  <jim@meyering.net>
86003
86004         * lib/calloc.c: New file.
86005
86006 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         * lib/getdate.y (yylex): Allow space between sign and number.
86009         Problem reported by Dan Jacobson.
86010
86011 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86012
86013         Merge from coreutils CVS.
86014
86015         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86016         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86017         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86018         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86019         xstrtol.m4: Fix copyright date and/or serial number.
86020
86021         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86022         See if we need an fchown replacement.
86023         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86024         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86025         and use the replacement function if we detect either defect.
86026
86027         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86028         gl_UTIMECMP.
86029
86030 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86031         and  Jim Meyering  <jim@meyering.net>
86032
86033         Merge from coreutils CVS.
86034
86035         * lib/stat-macros.h: New file, with contents from file-type.h
86036         and coreutils' system.h.
86037         * lib/file-type.c: Include "stat-macros.h".
86038         * lib/file-type.h (file_type): Move all macro definitions to new file,
86039         stat-macros.h.
86040
86041         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86042         Wrap old code with this conditional.
86043         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86044         function that does not dereference symlinks.
86045         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86046
86047         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86048         dependency problems.
86049         (xreadlink): Accept new arg SIZE, for efficiency.
86050         All decls and uses changed.
86051         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86052
86053         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86054         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86055
86056         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86057         sysexits.h.
86058
86059 2004-06-01  Jim Meyering  <jim@meyering.net>
86060
86061         * m4/calloc.m4: New file.
86062
86063 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86066         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86067         Also, fix a typo in a diagnostic.
86068
86069 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86070
86071         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86072         or AC_FUNC_REALLOC.
86073
86074 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86075
86076         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86077         macros to be defined.
86078         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86079         the allocator returns NULL because the requested size is zero.
86080
86081 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86084         var.  Add comment explaining why libc still defines it.  This
86085         merges the following patch from glibc:
86086         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86087
86088 2004-05-20  Andreas Schwab  <schwab@suse.de>
86089
86090         * m4/free.m4: Replace free if it not known to work, not the other
86091         way round.
86092
86093 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86096         present in glibc since revision 1.1 of this file.
86097         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86098         obstack_alignment_mask, obstack_alloc, obstack_base,
86099         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86100         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86101         obstack_grow0, obstack_init, obstack_int_grow,
86102         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86103         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86104         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86105         nonexistent functions.
86106
86107 2004-05-18  Karl Berry  <karl@gnu.org>
86108
86109         * config/srclist.txt: break link for vasnprintf.c.
86110
86111 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86112
86113         Port obstack to the AS/400, where pointers are 16 bytes wide and
86114         you cannot cast an integer to a valid pointer.  This patch is
86115         currently waiting to be integrated into glibc; see
86116         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86117
86118         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86119         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86120         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86121         (struct obstack): temp member is now a union of a pointer and
86122         an integer, instead of an integer.  All integer uses changed.
86123         This does not affect the physical layout of struct obstack,
86124         except on hosts (like the AS/400) where the size or alignment of
86125         void * is greater than that of ptrdiff_t.
86126         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86127         __STDC__)]: Store temporary in pointer member of union, not
86128         integer member.
86129         * lib/obstack.c: Include <stddef.h>, for offsetof.
86130         (struct fooalign): Remove; it doesn't need a name.
86131         (union fooround): Change double to long double, and add void *.
86132         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86133         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86134         not a macro.  Hence the values are always int; so remove all
86135         casts-to-int in uses.
86136
86137 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86140         we can get this patch merged into glibc.
86141
86142 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86143             Paul Eggert  <eggert@cs.ucla.edu>
86144
86145         * m4/argp: Depend on alloca.
86146
86147 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86148             Paul Eggert  <eggert@cs.ucla.edu>
86149
86150         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86151         freecoding.
86152
86153 2004-05-17  Bruno Haible  <bruno@clisp.org>
86154
86155         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86156         precision that consists of a '.' followed by an empty digit string.
86157         Patch by Tor Lillqvist <tml@iki.fi>.
86158
86159 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86160
86161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86162         for backward compatibility with older code.  We need our own
86163         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86164         it under some other name, and our alloca.h will define it.
86165
86166 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86167             Derek Price  <derek@ximbiot.com>
86168
86169         * lib/alloca.c: Include <alloca.h>, to get our interface.
86170         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86171         include <alloca.h> first.  Use C89 prototype for alloca; this
86172         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86173         Use #elif for simplicity, since we can assume C89 now.
86174         Don't try to source the system alloca.h since it will not be found
86175         and to prevent recursively including its replacement.
86176         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86177         * lib/regex.c: Likewise.
86178
86179 2004-05-16  Derek Price  <derek@ximbiot.com>
86180             Paul Eggert  <eggert@cs.ucla.edu>
86181
86182         getline cleanup.  This changes the getndelim2 API: both order of
86183         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86184         no delimiter).
86185
86186         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86187         interface does that.
86188         (getline): Always use getdelim, so that we don't have two
86189         copies of this code.
86190         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86191         if available.
86192         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86193         (GETNDELIM2_MAXIMUM): New macro.
86194         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86195         instead of the old practice of delim2==0.  All callers changed.
86196         Return -1 on overflow, instead of returning junk.
86197         Do not set *linesize unless allocation succeeds.
86198         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86199         that we include sys/types.h.
86200         * lib/getnline.h: Likewise.
86201         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86202         (getndelim2): Reorder arguments.
86203         * lib/getnline.c (getnline, getndelim):
86204         Don't discard the NMAX argument.
86205         (getnline): Invoke getndelim, to avoid code duplication.
86206         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86207         of (size_t) -1 by callers of the getnline family.
86208
86209 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86210
86211         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86212         Check for gettimeofday.
86213         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86214         Check for settimeofday, stime.
86215
86216 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86217
86218         * lib/nanosleep.c (suspended): Change its type from int to
86219         sig_atomic_t volatile.
86220         (first_call): Make it private to rpl_nanosleep, and have it
86221         be zero initially as that's a bit faster.
86222         (my_usleep): Round up fractional times instead of truncating them,
86223         as this is the usual meaning for 'sleep'.
86224
86225         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86226         doesn't work.
86227         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86228         (ENOSYS): Define if not defined.
86229         (settime): Fall back on stime if it exists and settimeofday fails.
86230         But don't bother with fallbacks if a method fails with errno == EPERM.
86231
86232 2004-05-11  Jim Meyering  <jim@meyering.net>
86233
86234         Prior to this change, the save_cwd caller required read access to the
86235         current directory on most systems (ones with the fchdir function).
86236
86237         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86238         fails, try write-only, and finally, resort to using xgetcwd.
86239
86240 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * lib/obstack.c, obstack.h: Import changes from libc.
86243
86244 2004-04-28  Bruno Haible  <bruno@clisp.org>
86245
86246         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86247         also implicitly appends .exe to executables.
86248         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86249         accepts Windows pathnames.
86250         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86251         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86252         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86253         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86254         Reported by Derek Robert Price <derek@ximbiot.com>.
86255
86256 2004-04-21  Karl Berry  <karl@gnu.org>
86257
86258         * config/srclist.txt (localcharset.c): break sync.
86259
86260 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86261
86262         * m4/host-os.m4: Add a copyright notice.
86263
86264 2004-04-20  Jim Meyering  <jim@meyering.net>
86265
86266         Change UTILS_ to gl_ in AC_DEFINE'd names.
86267         Change utils_- and jm_-prefixed variables, too.
86268         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86269         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86271
86272         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86273         Don't emit trailing blanks.
86274         Also rename jm_-prefixed variables to have gl_ prefix.
86275
86276         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86277         Also rename jm_-prefixed variables to have gl_ prefix.
86278
86279         * m4/jm-macros.m4: Reflect the renamings.
86280         * m4/prereq.m4: Likewise.
86281
86282 2004-04-20  Jim Meyering  <jim@meyering.net>
86283
86284         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86285         memory.
86286
86287 2004-04-20  Jim Meyering  <jim@meyering.net>
86288             Bruno Haible  <bruno@clisp.org>
86289
86290         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86291         memory when realloc fails.
86292
86293 2004-04-19  Jim Meyering  <jim@meyering.net>
86294
86295         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86296         now that readutmp.c may call `free (0)'.
86297
86298 2004-04-19  Bruno Haible  <bruno@clisp.org>
86299
86300         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86301         * m4/inttypes_h.m4: Likewise.
86302         * m4/stdint_h.m4: Likewise.
86303         * m4/intmax_t.m4: Likewise.
86304         * m4/uintmax_t.m4: Likewise.
86305
86306 2004-04-18  Jim Meyering  <jim@meyering.net>
86307
86308         * m4/prereq.m4: Don't forbid jm_ prefix.
86309
86310         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86311         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86312         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86313         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86314         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86315         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86316         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86317         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86318         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86319         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86320         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86321         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86322         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86323         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86324         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86325         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86326         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86327         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86328         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86329
86330 2004-04-18  Jim Meyering  <jim@meyering.net>
86331
86332         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86333         failure, don't leak memory and do call END_UTMP_ENT.
86334
86335 2004-04-16  Jim Meyering  <jim@meyering.net>
86336
86337         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86338         coreutils' stat program.
86339         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86340
86341 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86342
86343         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86344         C89.
86345         (CHAR_BIT): Remove, since we assume C89.
86346         Include <stdint.h> if available, as per current Autoconf CVS advice.
86347
86348 2004-03-31  Jim Meyering  <jim@meyering.net>
86349
86350         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86351         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86352         * m4/xalloc.m4: Likewise.
86353
86354 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86355
86356         Merge from coreutils.
86357
86358         * m4/inttostr.m4: New file.
86359         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86360         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86361         Require gl_CLOCK_TIME.
86362         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86363
86364 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86365
86366         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86367         not bool, to be more consistent with Unix conventions.
86368         Suggested by Bruno Haible.
86369
86370         Merge from coreutils.
86371
86372         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86373         * lib/umaxtostr.c: New files.
86374
86375         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86376         the usual <time.h> dance.
86377         (get_date): Change signature to support fractional time stamps.
86378         All callers changed.
86379         * lib/getdate.y: Include "getdate.h" first, as we can now
86380         assume C89 and don't need to worry about 'const'.
86381         Similarly, include "unlocked-io.h" near start, not in middle.
86382         Include <limits.h>.
86383         (textint.value): Use long int rather than int.
86384         (textint.digits): Use size_t rather than int.
86385         (BILLION, LOG10_BILLION): New constants.
86386         (parser_control): New member rel_ns.  Members day_ordinal,
86387         time_zone, month, day, hour, minutes, rel_year, rel_month,
86388         rel_day, rel_hour, rel_minutes, rel_seconds
86389         are now long int, not int.  Member seconds is now struct timespec,
86390         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86391         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86392         not int.
86393         (%union.intval): Now long int, not int.
86394         New member timespec.
86395         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86396         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86397         (spec): Now is a timespec or an item list.
86398         (timespec, items): New nonterminals.
86399         (time, rel, relunit, number, get_date):
86400         Add support for fractional seconds.
86401         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86402         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86403         (to_hour): First arg is now long int, not int.
86404         (to_year): Returns long int, not int.
86405         Don't treat year -70 like 70.
86406         (tm_diff): Returns long int, not int.
86407         (lookup_word): Use bool instead of int when appropriate.
86408         (yylex): Use size_t for count, not int.
86409         Detect overflow when parsing large integer constants.
86410         Add support for fractions.
86411         (get_date): Make pointers 'const' if possible.
86412         Use more-portable code to detect integer overflow.
86413         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86414         Don't use ctime; it's not reliable if the year has >4 digits.
86415
86416         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86417         This is for compatibility with BSD.
86418
86419         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86420         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86421         From coreutils' system.h.
86422
86423         * lib/userspec.c: Don't include "posixver.h".
86424         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86425         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86426         compatible extension.  Simplify code by removing a boolean int
86427         that was always nonzero if a string was nonnull.
86428
86429 2004-03-30  Jim Meyering  <jim@meyering.net>
86430
86431         Merge from coreutils.
86432
86433         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86434         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86435         on some systems one must include <grp.h> before it.
86436         Reported by Christian Krackowizer.
86437
86438 2004-03-30  Jim Meyering  <jim@meyering.net>
86439
86440         Merge from coreutils.
86441
86442         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86443
86444         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86445         an empty input stream.
86446
86447         * lib/readtokens.c: Include <stdbool.h>.
86448         (readtoken): Use `size_t' rather than int/long.
86449         All callers adjusted.
86450         Use `bool' rather than `int' where appropriate.
86451         Use memset rather than an explicit loop.
86452         Use x2nrealloc rather than xrealloc.
86453         Allow the use of `\0' as a delimiter.
86454         (readtokens): Likewise.
86455         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86456
86457 2004-03-30  Jim Meyering  <jim@meyering.net>
86458
86459         * m4/realloc.m4: Remove file, since now it does no more than
86460         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86461         the `configure.ac' section of module/realloc.
86462         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86463
86464 2004-03-30  Bruno Haible  <bruno@clisp.org>
86465
86466         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86467         nonnull.
86468
86469 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86470
86471         Merge changes to getloadavg.c from coreutils and Emacs.
86472
86473         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86474         Define to an expression, not to the empty string.
86475         Include cloexec.h and xalloc.h.
86476         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86477         Use set_cloexec_flag rather than rolling our own.
86478         * lib/cloexec.c, lib/cloexec.h: New files.
86479
86480 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86481
86482         * m4/cloexec.m4: New file.
86483
86484 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86485
86486         * lib/getopt.h: Sync with libc CVS.
86487
86488 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86489             Bruno Haible  <bruno@clisp.org>
86490
86491         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86492         mbswidth.
86493
86494 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86495             Bruno Haible  <bruno@clisp.org>
86496
86497         * lib/mbswidth.h: Include <wchar.h> only if
86498         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86499         <wchar.h>.
86500         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86501
86502 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86503
86504         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86505         Sync with libc CVS.
86506         * lib/getopt_int.h: New file, also synced from libc.
86507
86508 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86509
86510         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86511         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86512         Bring back getopt.c, getopt.h, getopt1.c.
86513
86514 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86515
86516         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86517         All uses changed.  Check for sa_sigaction member; this fixes
86518         a bug first reported by Jason Andrade in
86519         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86520
86521 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86522
86523         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86524         '#if' expressions.  Unlike the code it replaces, it does not
86525         depend on (defined _SC_PAGESIZE).  However, it does depend on
86526         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86527         first reported by Jason Andrade in
86528         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86529
86530 2004-02-25  Simon Josefsson  <jas@extundo.com>
86531
86532         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86533
86534 2004-02-25  Simon Josefsson  <jas@extundo.com>
86535
86536         * lib/strdup.h: New file.
86537         * lib/strdup.c: Include it.
86538         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86539         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86540
86541 2004-02-23  Karl Berry  <karl@gnu.org>
86542
86543         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86544         (from fencepost.gnu.org:/gd/gnuorg).
86545
86546 2004-02-23  Karl Berry  <karl@gnu.org>
86547
86548         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86549         * config/srclist.txt: add maintain/standards documents.
86550
86551 2004-02-18  Bruno Haible  <bruno@clisp.org>
86552
86553         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86554         Reported by Derek Robert Price <derek@ximbiot.com>.
86555
86556 2004-02-16  Karl Berry  <karl@gnu.org>
86557
86558         * config/mkinstalldirs, install-sh: update from automake.
86559
86560 2004-02-06  Karl Berry  <karl@gnu.org>
86561
86562         * m4/po.m4: update from gettext 0.14.1.
86563
86564 2004-02-06  Karl Berry  <karl@gnu.org>
86565
86566         * lib/config.charset: update from gettext 0.14.1.
86567
86568 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86569
86570         Add comments and code, prompted by suggestions from Bruno Haible
86571         for sh-quote.
86572         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86573         describing the enum quoting_style values.
86574         * lib/quotearg.c (quotearg_alloc): New function.
86575         (quotearg_buffer_restyled): Treat lone { and } as special.
86576         Treat = as special.  Work around bug with older shells
86577         that "see" a '\' that is really the 2nd byte of a multibyte char.
86578         Quote empty string with shell_quoting_style.
86579
86580 2004-02-03  Bruno Haible  <bruno@clisp.org>
86581
86582         * m4/pipe.m4: New file, from GNU gettext.
86583
86584 2004-02-03  Bruno Haible  <bruno@clisp.org>
86585
86586         * lib/pipe.h: New file, from GNU gettext.
86587         * lib/pipe.c: New file, from GNU gettext.
86588
86589 2004-01-27  Bruno Haible  <bruno@clisp.org>
86590
86591         * m4/execute.m4: New file, from GNU gettext.
86592
86593 2004-01-27  Bruno Haible  <bruno@clisp.org>
86594
86595         * lib/execute.h: New file, from GNU gettext.
86596         * lib/execute.c: New file, from GNU gettext.
86597         * lib/w32spawn.h: New file, from GNU gettext.
86598
86599 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86600
86601         Merge from diffutils.
86602
86603         * lib/file-type.c (file_type): Add typed memory objects.
86604         * lib/file-type.h (S_TYPEISTMO): New macro.
86605
86606         * lib/c-stack.h (c_stack_action): Remove argv argument.
86607         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86608         (die): Don't calculate message unless segv_action returns.
86609         (get_stack_location, min_address_from_argv, max_address_from_argv,
86610         volatile stack_base, volatile_stack_size): Remove.
86611         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86612         that every segmentation violation is a stack overflow.  (Ouch!)
86613         See Debian bug 136249 (still outstanding) for more info about why
86614         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86615
86616 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86617
86618         Exit-status fix from coreutils.
86619
86620         Use exit_failure consistently in place of EXIT_FAILURE,
86621         so that program exit statuses are consistent on failure.
86622
86623         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86624         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86625         * lib/argmatch.h: Comment fix to match the above.
86626         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86627         Now a macro referring to exit_failure, instead of a separate
86628         variable.  Include "exitfail.h" to get it.
86629         * lib/xstrtol.h: Include "exitfail.h".
86630         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86631
86632         * lib/long-options.c (parse_long_options): Use prototype
86633         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86634         for clarity.
86635
86636 2004-01-21  Jim Meyering  <jim@meyering.net>
86637
86638         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86639         so as not to conflict with a different-sized __mktime_internal
86640         function in GNU libc.
86641         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86642         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86643
86644 2004-01-20  Karl Berry  <karl@gnu.org>
86645
86646         * config/config.guess: update from config.
86647
86648         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86649
86650 2004-01-20  Bruno Haible  <bruno@clisp.org>
86651
86652         Safer stack allocation.
86653         * lib/setenv.c: Include allocsa.h.
86654         (alloca): Remove fallback definition.
86655         (freea): Remove macro.
86656         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86657         instead of freea.
86658
86659 2004-01-20  Bruno Haible  <bruno@clisp.org>
86660
86661         * m4/eealloc.m4: New file, from GNU gettext.
86662
86663 2004-01-20  Bruno Haible  <bruno@clisp.org>
86664
86665         * m4/allocsa.m4: New file, from GNU gettext.
86666
86667 2004-01-20  Bruno Haible  <bruno@clisp.org>
86668
86669         * lib/xallocsa.h: New file, from GNU gettext.
86670         * lib/xallocsa.c: New file, from GNU gettext.
86671
86672 2004-01-20  Bruno Haible  <bruno@clisp.org>
86673
86674         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86675
86676 2004-01-20  Bruno Haible  <bruno@clisp.org>
86677
86678         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86679         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86680         specially.
86681
86682 2004-01-20  Bruno Haible  <bruno@clisp.org>
86683
86684         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86685         patch.
86686
86687 2004-01-20  Bruno Haible  <bruno@clisp.org>
86688
86689         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86690
86691 2004-01-20  Bruno Haible  <bruno@clisp.org>
86692
86693         * lib/eealloc.h: New file.
86694
86695 2004-01-20  Bruno Haible  <bruno@clisp.org>
86696
86697         * lib/binary-io.h: Avoid warnings on Cygwin.
86698
86699 2004-01-20  Bruno Haible  <bruno@clisp.org>
86700
86701         * lib/allocsa.h: New file, from GNU gettext.
86702         * lib/allocsa.c: New file, from GNU gettext.
86703
86704 2004-01-18  Karl Berry  <karl@gnu.org>
86705
86706         * doc/gpl.texi, doc/lgpl.texi: new files.
86707
86708 2004-01-18  Karl Berry  <karl@gnu.org>
86709
86710         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86711         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86712
86713 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86714
86715         Merge from coreutils.
86716
86717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86718         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86719         (gl_DEFAULT_POSIX2_VERSION): Move
86720         the documentation from 'configure' into 'config.hin',
86721         so that 'configure --help' isn't burdened by it and
86722         we don't have to worry about its formatting there.
86723         Reword the documentation so that it's more succinct
86724         and can be run together into a single paragraph.
86725         * m4/same.m4 (gl_SAME): Check for pathconf.
86726
86727 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86728
86729         Merge from coreutils.
86730
86731         * lib/posixver.c: Include posixver.h.
86732
86733         * lib/same.c: Include <stdbool.h>, <limits.h>.
86734         (_POSIX_NAME_MAX): Define if not defined.
86735         (MIN): New macro.
86736         (same_name): If file names are silently truncated, report
86737         that the file names are the same if they are the same after
86738         the silent truncation.
86739
86740         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86741         conversion function.
86742         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86743         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86744         longer needed.
86745
86746 2004-01-15  Jim Meyering  <jim@meyering.net>
86747
86748         Merge from coreutils.
86749
86750         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86751         if no library is required.
86752         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86753         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86754         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86755         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86756         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86757         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86758         value, $ac_cv_search_crypt, if it's "none required".
86759         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86760         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86761         not gl_FUNC_GETLOADAVG.
86762         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86763         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86764
86765 2004-01-15  Jim Meyering  <jim@meyering.net>
86766
86767         Merge from coreutils.
86768
86769         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86770         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86771         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86772
86773         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86774         optional configure-time default.
86775
86776         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86777
86778         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86779
86780 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86781
86782         Merge from coreutils.
86783
86784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86785         value, $ac_cv_search_nanosleep, if it's "none required".
86786
86787 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86788
86789         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86790         with like-named macro in fnmatch.c.
86791         (EXT): Use an internal constant instead.
86792
86793         Merge fnmatch patches from glibc.
86794         * lib/fnmatch.c (mbsinit): Remove define.
86795         Add libc_hidden_ver (__fnmatch, fnmatch).
86796         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86797         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86798
86799 2004-01-14  Karl Berry  <karl@gnu.org>
86800
86801         * config/install-sh: update from automake.
86802
86803 2004-01-13  Karl Berry  <karl@gnu.org>
86804
86805         * config/install-sh: update from automake.
86806
86807 2004-01-09  Karl Berry  <karl@gnu.org>
86808
86809         * config/install-sh: update from automake.
86810
86811 2004-01-05  Karl Berry  <karl@gnu.org>
86812
86813         * config/config.{sub,guess}: update from config.
86814
86815 2003-12-31  Karl Berry  <karl@gnu.org>
86816
86817         * config/depcomp: update from automake.
86818
86819 2003-12-14  Karl Berry  <karl@gnu.org>
86820
86821         * lib/config.charset: update from gettext-runtime.
86822
86823 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86824
86825         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86826         Bug reported by Alfred M. Szmidt.
86827
86828 2003-12-03  Bruno Haible  <bruno@clisp.org>
86829
86830         * m4/gettext.m4: Upgrade from gettext-0.13.
86831         * m4/po.m4: Upgrade from gettext-0.13.
86832         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86833         * m4/intmax.m4: New file, from gettext-0.13.
86834         * m4/printf-posix.m4: New file, from gettext-0.13.
86835
86836 2003-11-29  Karl Berry  <karl@gnu.org>
86837
86838         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86839
86840 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86841             Bruno Haible  <bruno@clisp.org>
86842
86843         * lib/printf-parse.h: Don't include sys/types.h.
86844         (ARG_NONE): New macro.
86845         (char_directive): Change type of *arg_index fields to size_t.
86846         * lib/printf-parse.c: Don't include sys/types.h.
86847         (SSIZE_MAX): Remove macro.
86848         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86849         Remove unnecessary overflow check.
86850         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86851         fields.
86852
86853 2003-11-25  Bruno Haible  <bruno@clisp.org>
86854
86855         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86856
86857 2003-11-25  Bruno Haible  <bruno@clisp.org>
86858
86859         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86860         gt_TYPE_SSIZE_T.
86861
86862 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86863
86864         * modules/alloca: Remove dependency on xalloc.
86865
86866 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86867
86868         * lib/alloca.c: Remove dependency on xalloc module.
86869         (xalloc_die): Remove.
86870         (memory_full) [!defined emacs]: New macro.
86871         [!defined emacs]: Don't include xalloc.h.
86872         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86873         address arithmetic overflows.  Change datatypes a bit to avoid
86874         unnecessary casts.
86875
86876 2003-11-22  Jim Meyering  <jim@meyering.net>
86877
86878         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86879         s/size/size_t/.
86880
86881 2003-11-21  Karl Berry  <karl@gnu.org>
86882
86883         * config/config.{sub,guess}: update from config.
86884
86885 2003-11-18  Karl Berry  <karl@gnu.org>
86886
86887         * config/config.{sub,guess}: update from config.
86888
86889         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86890
86891 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86892
86893         * README: Mention that S+T cannot overflow if S is the size of
86894         an existing object and T is sufficiently small.
86895
86896 2003-11-17  Jim Meyering  <jim@meyering.net>
86897
86898         On systems without utime and without a utimes function capable of
86899         dealing with a NULL struct utimbuf* argument, this utime replacement
86900         could -- in unusual circumstances -- leak a file descriptor.
86901         * lib/utime.c: Include <unistd.h> and <errno.h>.
86902         (utime_null): Be sure to close `fd' and to preserve errno.
86903         Reported by Geoff Collyer via Arnold Robbins.
86904
86905 2003-11-17  Bruno Haible  <bruno@clisp.org>
86906
86907         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86908         (Depends-on): Add xsize.
86909
86910 2003-11-17  Bruno Haible  <bruno@clisp.org>
86911
86912         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86913
86914 2003-11-17  Bruno Haible  <bruno@clisp.org>
86915
86916         * lib/vasnprintf.c (alloca): Remove fallback definition.
86917         (freea): Remove definition.
86918         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86919         Reported by Paul Eggert.
86920
86921 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86922             Bruno Haible  <bruno@clisp.org>
86923
86924         Protect against address arithmetic overflow.
86925         * lib/printf-args.h: Include stddef.h.
86926         (arguments): Change type of field 'count' to size_t.
86927         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86928         'unsigned int' where appropriate.
86929         * lib/printf-parse.h: Include sys/types.h.
86930         (char_directive): Change type of *arg_index fields to ssize_t.
86931         (char_directives): Change type of fields 'count', max_*_length to
86932         size_t.
86933         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86934         (SSIZE_MAX): Define fallback value.
86935         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86936         instead of 'int' where appropriate. Check a_allocated, d_allocated
86937         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86938         * lib/vasnprintf.c: Include xsize.h.
86939         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86940         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86941         overflow. Avoid wraparound when converting a width or precision from
86942         decimal to binary.
86943
86944 2003-11-16  Bruno Haible  <bruno@clisp.org>
86945
86946         Update from GNU gettext.
86947         * lib/printf-parse.c: Generalize to it can be compiled for wide
86948         strings.
86949         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86950         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86951         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86952         SNPRINTF): New macros.
86953         Don't include <alloca.h> if the file is used inside libintl.
86954         (local_wcslen): New function, for Solaris 2.5.1.
86955         (VASNPRINTF): Use it instead of wcslen.
86956
86957 2003-11-16  Bruno Haible  <bruno@clisp.org>
86958
86959         * lib/xsize.h (xmax): New function.
86960         (xsum, xsum3, xsum4): Declare as "pure" functions.
86961
86962 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86963
86964         * modules/xalloc (Files): Undo latest change, since xalloc.h
86965         no longer needs SIZE_MAX or PTRDIFF_MAX.
86966
86967 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86968
86969         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86970         gl_PTRDIFF_MAX.
86971
86972 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86973
86974         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86975         "return", to pacify some unknown compiler.  Problem reported
86976         by Joerg Schilling.
86977
86978 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86979
86980         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86981         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86982         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86983         heuristic is just as accurate as far as we know, and it removes a
86984         dependency on size_max.m4 and ptrdiff_max.m4.
86985
86986 2003-11-11  Bruno Haible  <bruno@clisp.org>
86987
86988         * modules/xsize (Files): Add m4/size_max.m4.
86989         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86990
86991 2003-11-11  Bruno Haible  <bruno@clisp.org>
86992
86993         * m4/size_max.m4: New file.
86994         * m4/ptrdiff_max.m4: New file.
86995         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86996         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86997         (gl_XALLOC): Invoke it.
86998
86999 2003-11-11  Bruno Haible  <bruno@clisp.org>
87000
87001         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87002         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87003         defined.
87004
87005 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87006
87007         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87008         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87009         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87010         From Bruno Haible.
87011         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87012         not (size_t) -1, since it's defined here.
87013
87014 2003-11-09  Karl Berry  <karl@gnu.org>
87015
87016         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87017
87018 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87019
87020         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87021         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87022         Reject sizes of exactly SIZE_MAX bytes.
87023         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87024         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87025
87026 2003-11-05  Bruno Haible  <bruno@clisp.org>
87027
87028         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87029         SIZE_MAX defined in <limits.h> on Solaris.
87030
87031 2003-11-04  Jim Meyering  <jim@meyering.net>
87032
87033         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87034         variable names, rather than @VAR@.
87035         * modules/poll: Likewise.
87036
87037 2003-11-04  Bruno Haible  <bruno@clisp.org>
87038
87039         * modules/xsize: New file.
87040         * modules/linebreak: Depend on xsize.
87041         * MODULES.html.sh (func_all_modules): Add xsize.
87042
87043 2003-11-04  Bruno Haible  <bruno@clisp.org>
87044
87045         * m4/xsize.m4: New file.
87046
87047 2003-11-04  Bruno Haible  <bruno@clisp.org>
87048
87049         * lib/xsize.h: New file.
87050         * lib/linebreak.c: Include xsize.h.
87051         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87052         argument for overflow.
87053         Suggested by Paul Eggert.
87054
87055 2003-11-03  Karl Berry  <karl@gnu.org>
87056
87057         * config/config.{guess,sub}: update from config.
87058
87059 2003-11-03  Jim Meyering  <jim@meyering.net>
87060
87061         * modules/userspec (lib_SOURCES): Add userspec.h.
87062         (Include): Add "userspec.h".
87063         Improve description.
87064
87065 2003-11-03  Jim Meyering  <jim@meyering.net>
87066
87067         * lib/userspec.c: Include "userspec.h".
87068         * lib/userspec.h: New file.
87069
87070 2003-11-03  Bruno Haible  <bruno@clisp.org>
87071
87072         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87073
87074 2003-11-03  Bruno Haible  <bruno@clisp.org>
87075
87076         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87077         available, to avoid (extremely rare) race condition.
87078         Suggested by Paul Eggert.
87079
87080 2003-11-02  Karl Berry  <karl@gnu.org>
87081
87082         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87083
87084 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87085
87086         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87087         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87088         (read_filesystem_list): Set and use me_type_malloced.
87089         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87090         whatever the type happens to be), for brevity and consistency.
87091         Check for size calculation overflow on Alphas running OSF/1.
87092
87093 2003-10-31  Jim Meyering  <jim@meyering.net>
87094
87095         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87096
87097         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87098
87099 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87100             Bruno Haible  <bruno@clisp.org>
87101
87102         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87103         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87104
87105 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87106
87107         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87108         netbsd*-gnu*.  Suggested by Robert Millan.
87109
87110 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87111
87112         * modules/group-member: Depend on stdbool.
87113
87114 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87115
87116         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87117
87118 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87119
87120         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87121         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87122         after the 'gnu' in these cases.  This fixes some bugs in the
87123         previous change, and is based on suggestions by Robert Millan.
87124
87125 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87126
87127         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87128         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87129         no longer needed.
87130         * lib/quotearg.c (quotearg_n_options): Use it.
87131         * lib/group-member.c: Include <stdbool.h>.
87132         (free_group_info): Arg is now const *; don't free arg.
87133         (get_group_info): Now returns bool and accepts struct group_info *,
87134         rather than returning a malloc'ed struct group_info *.
87135         All uses changed.  Check for overflow in internal size calculation.
87136
87137         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87138         rather than xmalloc/xrealloc.
87139         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87140         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87141         conformance bug: the old code used a pointer after freeing the
87142         storage that it addressed.
87143         * lib/hash.c (hash_initialize): Simplify the code by using
87144         xalloc_oversized rather than doing it by hand.
87145         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87146         the buffer preserved.  Use free and xmalloc instead.
87147         * lib/quotearg.c (quotearg_n_options): Likewise.
87148         Use a simpler test for size overflow.  Don't use xalloc_oversized
87149         because unsigned int might be wider than size_t (!); this suggests
87150         that we should switch from unsigned int to size_t for slot numbers.
87151
87152 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87153
87154         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87155         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87156         NetBSD kernels.  Requested by Richard Stallman.
87157
87158 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87159
87160         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87161         to allocate the returned structure.  Do not allocate a subarray,
87162         as x2nrealloc will do that.
87163         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87164         instead of xnrealloc.
87165         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87166
87167 2003-10-27  Bruno Haible  <bruno@clisp.org>
87168
87169         * lib/stdbool_.h: Better support for BeOS.
87170
87171 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87172
87173         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87174         now uses inline.
87175
87176 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87177
87178         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87179         callers that want to do their own size-overflow checking.  Include
87180         <stdbool.h>, since xalloc_oversized returns bool.
87181         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87182         to use xalloc_oversized.
87183
87184         Add two functions x2realloc, x2nrealloc, for programs that grow
87185         arrays dynamically by doubling their sizes.
87186         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87187         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87188         New functions.
87189
87190         Port to C99 semantics for 'inline' of external functions.
87191         Bug reported by Bruno Haible.
87192         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87193         with the old contents of xnmalloc.
87194         (xnmalloc, xmalloc): Use it.
87195         (xnrealloc_inline): New static inline function,
87196         with the old contents of xnrealloc.
87197         (xnrealloc, xrealloc): Use it.
87198
87199         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87200         that.
87201
87202 2003-10-26  Karl Berry  <karl@gnu.org>
87203
87204         * config/srclist.txt (COPYING.DOC): no longer available from
87205         /gd/gnuorg; don't know where the ultimate source is.
87206
87207 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87208
87209         Fix several address-calculation bugs in the hash modules,
87210         plus some minor code cleanup.
87211
87212         * lib/hash.h: Include <stdbool.h>, for bool.
87213         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87214         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87215         hash_get_n_entries, hash_get_max_bucket_length,
87216         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87217         hash_rehash): Use size_t rather than unsigned.
87218         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87219         hash_get_n_buckets_used, hash_get_n_entries,
87220         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87221         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87222         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87223         Likewise.
87224         (SIZE_MAX): Define if not defined.
87225         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87226         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87227         hash_print):
87228         Use const * when possible.
87229         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87230         (check_tuning): Fix bug: if tuning parameters were very close to
87231         0 or 1, rounding errors could have caused subscript violations.
87232         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87233         (hash_initialize): Add 'fail:' label
87234         to free table and return NULL, and use it to simplify code.
87235         Use calloc rather than clearing the storage ourself.
87236         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87237         buffer size calculations.
87238         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87239         Include <stddef.h>, for size_t.
87240         * lib/hash-pjw.c (hash_pjw): Likewise.
87241         Switch to method described by Bruno Haible.
87242         Include <limits.h>, for CHAR_BIT.
87243         (SIZE_BITS): New macro.
87244
87245 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87246
87247         * m4/getline.m4 (AM_FUNC_GETLINE):
87248         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87249         hosts.  Problem reported by Derek Robert Price in
87250         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87251         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87252         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87253
87254 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87255
87256         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87257         ceiling the allocation at NMAX bytes rather than silently
87258         discarding input bytes before NMAX is reached.  This makes
87259         a difference only if NMAX exceeds SIZE_MAX / 2.
87260
87261         * lib/obstack.c: Merge from glibc.
87262         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87263         Add libc_hidden_def (_obstack_newchunk).
87264         (_obstack_free) [! defined _LIBC]: Remove.
87265         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87266         a clone of the function body.
87267         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87268         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87269
87270         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87271         glibc.
87272         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87273         arg to memcpy.
87274
87275         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87276         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87277         Don't use lvalue casts, as GCC plans to remove support for them
87278         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87279         was also present in the non-GCC version, indicating that this
87280         code had always been buggy and had never been widely used.
87281         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87282         Use the fast variant of each macro, rather than copying the
87283         definiens of the fast variant; that way, we'll be more likely to
87284         catch future bugs in the fast variants.
87285
87286 2003-10-20  Bruno Haible  <bruno@clisp.org>
87287
87288         * modules/wait-process: New file.
87289         * MODULES.html.sh (func_all_modules): Add wait-process.
87290
87291 2003-10-20  Bruno Haible  <bruno@clisp.org>
87292
87293         * m4/wait-process.m4: New file.
87294
87295 2003-10-20  Bruno Haible  <bruno@clisp.org>
87296
87297         * lib/wait-process.h: New file, from GNU gettext.
87298         * lib/wait-process.c: New file, from GNU gettext.
87299
87300 2003-10-19  Jim Meyering  <jim@meyering.net>
87301
87302         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87303         HPUX 10.20.
87304
87305 2003-10-18  Karl Berry  <karl@gnu.org>
87306
87307         * config/config.guess: update from config.
87308
87309 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87310
87311         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87312         (getgroups): First arg is int, not size_t.
87313         Don't let 'free' mangle errno.
87314
87315 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87316
87317         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87318
87319 2003-10-16  Karl Berry  <karl@gnu.org>
87320
87321         * config/config.{guess,sub}: update from config.
87322
87323 2003-10-16  Jim Meyering  <jim@meyering.net>
87324
87325         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87326         memcpy.
87327
87328 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87329
87330         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87331         (SIZE_MAX): Remove.
87332         (new_exclude, add_exclude_file): Initial size no longer needs to
87333         be a power of 2.
87334         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87335         our own address arithmetic overflow checking.
87336
87337         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87338         (fnmatch): Do not alloca more than 2000 wide characters;
87339         instead, use malloc for large buffers.
87340         Check for address arithmetic overflow, and return -1
87341         with errno set to ENOMEM in that case.
87342         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87343         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87344         instead, return -1.  Check for address arithmetic overflow.
87345
87346 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87347
87348         Handle invalid suffixes and overflow independently, so that
87349         callers can treat them independently as needed.  Fix some bugs in
87350         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87351         suffix for a human-readable blocksize.  The major caller-visible
87352         change is the addition of a new
87353         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87354         that both overflow and suffix chars were found.
87355
87356         * lib/human.c (humblock): Don't check separately for invalid suffix
87357         char; that is xstrtoumax's job (now that its bug is fixed).
87358         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87359         INTMAX_MAX]: New macros.
87360         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87361         TYPE_MAXIMUM): New macros.
87362         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87363         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87364         if overflow occurs, as it's what __strtol does and it's more useful
87365         in practice.
87366         (__xstrtol): If __strtol reports some error other than ERANGE,
87367         reflect it to the caller as LONGINT_INVALID.  If it reports
87368         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87369         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87370         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87371         value.
87372         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87373         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87374         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87375         [defined UINTMAX_MAX]: New macros.
87376
87377 2003-10-14  Bruno Haible  <bruno@clisp.org>
87378
87379         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87380
87381 2003-10-14  Bruno Haible  <bruno@clisp.org>
87382
87383         * m4/sig_atomic_t: New file, from GNU gettext.
87384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87385
87386 2003-10-14  Bruno Haible  <bruno@clisp.org>
87387
87388         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87389         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87390         Also use volatile where needed.
87391
87392 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87393
87394         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87395         Change maintainer from Bruno Haible to 'all'.
87396
87397 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87398
87399         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87400
87401 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87402
87403         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87404         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87405         and define in terms of the other primitives.
87406         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87407         (SIZE_MAX): Define if not already defined.
87408         (array_size_overflow): New function.
87409         (xalloc_die): Abort instead of exiting if 'error' returns.
87410         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87411         (xmalloc, xrealloc): Use them.
87412         (xcalloc): Check for address arithmetic overflow.
87413         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87414         a bit faster than strcpy.
87415
87416 2003-10-10  Simon Josefsson  <jas@extundo.com>
87417
87418         * modules/argp (Depends-on): Add restrict and strcase.
87419
87420 2003-10-10  Simon Josefsson  <jas@extundo.com>
87421
87422         * m4/argp.m4: Add AC_C_INLINE.
87423
87424 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87425
87426         Merge getpass from libc, plus a few fixes.
87427
87428         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87429         Include <stdbool.h>.
87430         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87431         __fsetlocking to empty.
87432         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87433         do include <bits/libc-lock.h>.
87434         Do not include <fcntl.h>; not needed.
87435         [_LIBC]: Include <wchar.h>.
87436         (NOTCANCEL_MODE): New macro.
87437         (flockfile, funlockfile) [_LIBC]: New macros.
87438         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87439         [!_LIBC]: New macros.
87440         (call_fclose): New function.
87441         (getpass): Use it.  Save tty stream separately; this simplifies the
87442         code and makes it more reliable if stdin happens to equal stdout.
87443         Invoke __fsetlocking on tty.
87444         Handle thread cancellation if needed.
87445         Namespace cleanup (use __tcgetattr, __getline).
87446         Use bool for Booleans.
87447         [USE_IN_LIBIO]: Handle wide streams.
87448         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87449         stream might go where.
87450
87451         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87452         doesn't have to include <stdio.h> before us.
87453         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87454         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87455         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87456         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87457         if not declared, so that we can use getpass.c code from libc without
87458         rewriting it.
87459         (flockfile, ftrylockfile, funlockfile): New macros.
87460
87461 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87462
87463         * modules/getpass: Depend on stdbool.
87464
87465 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87466
87467         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87468
87469 2003-10-07  Karl Berry  <karl@gnu.org>
87470
87471         * config/config.{guess,sub}: update from config.
87472
87473 2003-10-06  Jim Meyering  <jim@meyering.net>
87474             Bruno Haible  <bruno@clisp.org>
87475
87476         This lets translators provide better translations for the
87477         "Written by ..." part of --version output.
87478         * lib/version-etc.h: Include stdarg.h.
87479         (version_etc_copyright): Declare as readonly.
87480         (version_etc): Make this function variadic with a NULL-terminated list
87481         of author name strings.
87482         (version_etc_va): New declaration.
87483         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87484         (version_etc_copyright): Declare as readonly.
87485         (version_etc_va): New function. Provide a different translatable string
87486         for each possible number of authors < 10. Abbreviate when there are 10
87487         authors or more.
87488         (version_etc): Make this function variadic. Call version_etc_va.
87489         Suggestion from Gary V. Vaughan.
87490
87491         * lib/long-options.h (parse_long_options): Change prototype: the
87492         authors string is moved to the end and becomes variadic.
87493         * lib/long-options.c: Include stdarg.h.
87494         (parse_long_options): Make this function variadic, too.
87495         Call version_etc_va, not version_etc.
87496
87497 2003-10-06  Bruno Haible  <bruno@clisp.org>
87498
87499         * modules/version-etc-2: Remove file.
87500         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87501
87502 2003-10-06  Bruno Haible  <bruno@clisp.org>
87503
87504         * modules/fatal-signal: New file.
87505         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87506
87507 2003-10-06  Bruno Haible  <bruno@clisp.org>
87508
87509         * m4/fatal-signal.m4: New file.
87510         * m4/signalblocking.m4: New file, from GNU gettext.
87511
87512 2003-10-06  Bruno Haible  <bruno@clisp.org>
87513
87514         * lib/version-etc-2.h: Remove file.
87515         * lib/version-etc-2.c: Remove file.
87516
87517 2003-10-06  Bruno Haible  <bruno@clisp.org>
87518
87519         * lib/fatal-signal.h: New file, from GNU gettext.
87520         * lib/fatal-signal.c: New file, from GNU gettext.
87521
87522 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87523
87524         * README: Rework advice for preventing empty .o files.
87525         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87526         not <sys/types.h>.
87527
87528 2003-10-04  Karl Berry  <karl@gnu.org>
87529
87530         * lib/argp*: update from libc.
87531
87532 2003-10-04  Karl Berry  <karl@gnu.org>
87533
87534         * config/config.{guess,sub}: update from config.
87535
87536 2003-10-02  Bruno Haible  <bruno@clisp.org>
87537
87538         * modules/lchown (Include): Add lchown.h.
87539         * modules/time_r (Include): Use "..." syntax.
87540         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87541
87542 2003-10-01  Simon Josefsson  <jas@extundo.com>
87543
87544         * MODULES.html.sh (func_all_modules): Move gethostname from section
87545         'based on' to section 'lacking' POSIX:2001.
87546
87547 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87548
87549         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87550         to output mode on the same stream.
87551
87552 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87553
87554         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87555         Fix arg typo in previous patch.
87556
87557 2003-09-28  Jim Meyering  <jim@meyering.net>
87558
87559         * lib/error.c: Correct cpp indentation.
87560
87561 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87562
87563         * modules/free: New file.
87564
87565 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87566
87567         * m4/free.m4: New file.
87568
87569 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87570
87571         * lib/minmax.h (MIN, MAX)
87572         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87573         Omit the special code that used __typeof__, since we worry that
87574         it could be more trouble than it's worth.  See:
87575         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87576         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87577
87578         * lib/free.c: New file.
87579
87580 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87581
87582         Trivial fixes to Makefile.am parts of module listings.
87583         * modules/strstr: Append strstr.h to lib_SOURCES.
87584         * modules/strcase: Likewise, for strcase.h.
87585
87586 2003-09-27  Karl Berry  <karl@gnu.org>
87587
87588         * config/mkinstalldirs: update from automake.
87589
87590 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87591
87592         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87593         (error_tail): Do not loop, reallocating temporary buffer, since
87594         the output cannot contain more wide characters than the input
87595         contains bytes, the size must be big enough already.  This avoids
87596         one potential size overflow calculation.  Check for size overflow
87597         when calculating temporary buffer size.  Free temporary buffer
87598         when done, if it was allocated with malloc; this plugs a memory
87599         leak.  Remove casts from void * to pointers, that are no longer
87600         needed now that we're assuming C89 or better.
87601
87602         Merge error changes from glibc.
87603
87604         * lib/error.c, error.h: Update copyright notice header to match glibc.
87605         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87606         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87607         Disable cancellation while printing error.
87608         * lib/error.h: Prepend __ to parameter names.
87609
87610 2003-09-26  Jim Meyering  <jim@meyering.net>
87611
87612         * lib/error.c (error_tail): Move some declarations
87613         into inner scope where the local variables are used.
87614
87615 2003-09-26  Bruno Haible  <bruno@clisp.org>
87616
87617         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87618         stpncpy().
87619         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87620
87621 2003-09-26  Bruno Haible  <bruno@clisp.org>
87622
87623         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87624         (stpncpy): Define as alias for gnu_stpncpy.
87625         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87626
87627 2003-09-25  Simon Josefsson  <jas@extundo.com>
87628
87629         * lib/xgetdomainname.h: New file.
87630         * lib/xgetdomainname.c: New file.
87631
87632 2003-09-25  Simon Josefsson  <jas@extundo.com>
87633             Bruno Haible  <bruno@clisp.org>
87634
87635         * modules/getdomainname: New file.
87636         * modules/xgetdomainname: New file.
87637         * MODULES.html.sh (func_all_modules): Add getdomainname,
87638         xgetdomainname.
87639
87640 2003-09-25  Simon Josefsson  <jas@extundo.com>
87641             Bruno Haible  <bruno@clisp.org>
87642
87643         * m4/getdomainname.m4: New file.
87644
87645 2003-09-25  Simon Josefsson  <jas@extundo.com>
87646             Bruno Haible  <bruno@clisp.org>
87647
87648         * lib/getdomainname.h: New file.
87649         * lib/getdomainname.c: New file.
87650
87651 2003-09-25  Karl Berry  <karl@gnu.org>
87652
87653         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87654
87655 2003-09-25  Karl Berry  <karl@gnu.org>
87656
87657         * config/install-sh: update from automake.
87658
87659 2003-09-25  Bruno Haible  <bruno@clisp.org>
87660
87661         * modules/version-etc-2: New file, from modules/version-etc with
87662         modifications.
87663         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87664
87665 2003-09-25  Bruno Haible  <bruno@clisp.org>
87666
87667         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87668         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87669
87670 2003-09-24  Simon Josefsson  <jas@extundo.com>
87671
87672         * modules/xgethostname: Add xgethostname.h.
87673
87674 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87675
87676         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87677         the buffer associated with the argument.  Bug reported by
87678         Simon Josefsson.
87679
87680 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87681
87682         * README: Document assumptions that 'int' is at least 32 bits
87683         wide, that integer arithmetic is 2's complement without overflow,
87684         that there are no holes in integer values, that adding sizes of
87685         two nonoverlapping objects can't overflow, and that all-bits-zero
87686         yields scalar zero.  Fix spelling and capitalization typos.
87687
87688 2003-09-19  Karl Berry  <karl@gnu.org>
87689
87690         * lib/argp.h: update from libc.
87691
87692 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87693
87694         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87695         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87696         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87697
87698 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87699
87700         * gnulib-tool: Use "test -h", not "test -L", for portability
87701         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87702         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87703         (sed_extract_prog): Issue s commands one-by-one, rather than
87704         using \| in one s command.
87705
87706 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87707
87708         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87709         input error, instead of returning NULL the next time we are called
87710         (and therefore losing track of errno).
87711
87712 2003-09-16  Bruno Haible  <bruno@clisp.org>
87713
87714         * gnulib-tool (func_create_testdir): Warn about duplicated
87715         dependencies.
87716
87717 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87718
87719         * modules/argmatch, modules/fatal, modules/obstack,
87720         modules/xalloc, modules/xgethostname: Sort dependencies by
87721         importance, not alphabetically.
87722
87723 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87724
87725         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87726         fails, so that the caller gets the proper errno.
87727
87728         * lib/readutmp.c (read_utmp): Likewise.
87729         Check for fstat error.  Close stream and free storage
87730         when failing.
87731
87732 2003-09-14  Karl Berry  <karl@gnu.org>
87733
87734         * config/srclist.txt (strdup.c): disable for c89 changes.
87735
87736 2003-09-14  Jim Meyering  <jim@meyering.net>
87737
87738         * lib/getloadavg.c: Correct cpp indentation.
87739         * lib/strdup.c: Likewise.
87740         * lib/vasnprintf.c: Likewise.
87741
87742 2003-09-14  Bruno Haible  <bruno@clisp.org>
87743
87744         * modules/fwriteerror: New file.
87745         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87746
87747 2003-09-14  Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/fwriteerror.h: New file.
87750         * lib/fwriteerror.c: New file.
87751
87752 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87753
87754         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87755         modules/xgethostname, modules/xalloc: Depend on exit.
87756
87757 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87758
87759         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87760
87761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87762         and AC_MINIX, too, so that their extensions are available.
87763
87764         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87765         This macro has been superseded by gl_BACKUPFILE.
87766
87767         More patches to assume C89 or better.
87768
87769         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87770
87771         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87772         unconditionally.
87773         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87775         Include <string.h>, <stdlib.h> unconditionally.
87776         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87777         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87778         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87779         headers or for string.h.
87780         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87781         or strtoul.
87782
87783         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87784         headers.
87785         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87786         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87787         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87788         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87789         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87790         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87791         memcpy, memset.
87792         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87793         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87794         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87795         strtol.
87796         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87797         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87798         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87799         strtoul.
87800
87801 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87802
87803         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87804         * lib/obstack.c [!defined _LIBC]: Likewise.
87805         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87806         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87807         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87808
87809         More changes to assume C89 or better.
87810
87811         * lib/error.c (error_tail): Assume vprintf.
87812
87813         * lib/argmatch.c (getenv): Remove decl.
87814         * lib/progreloc.c (get_full_program_name): Define via prototype.
87815         * lib/setenv.c (clearenv): Likewise.
87816         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87817         needed.
87818         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87819         (malloc, memcpy): Remove decls.
87820         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87821         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87822         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87823         (memcpy): Remove macro.
87824         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87825         (__P): Remove.  All uses removed.
87826         (PTR): Remove.  All uses changed to void *.
87827         (CHAR_BIT, NULL): Remove.
87828         (spaces, zeros, memset_space, memset_zero)
87829         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87830         Remove.
87831         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87832         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87833         Define with prototype.
87834         Remove now-unnecessary prototype decl.
87835         (extra_args_spec): Assume ANSI C.  All uses changed.
87836         (extra_args_spec_iso): Remove.
87837         (my_strftime, emacs_strftimeu): Define via prototype.
87838         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87839         unconditionally.
87840         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87841         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87842         (strtoul, strtol): Remove decls.
87843         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87844         LONG_MAX): Remove.
87845         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87846         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87847         (LOCALE_PARAM_PROTO): New macro.
87848         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87849         (INTERNAL (strtol), strtol): Define with a prototype.
87850         (PARAMS): Remove.  All uses removed.
87851         * lib/tempname.c: Include <string.h> unconditionally.
87852         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87853         * lib/xgethostname.c (main): Define with a prototype.
87854         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87855         Include <stdlib.h> unconditionally.
87856         (calloc, malloc, realloc, free): Remove decls.
87857         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87858         Include <stdlib.h> unconditionally.  Sort include file names.
87859         (strtod): Remove.
87860         (xstrtod): Define with a prototype.
87861         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87862         (strtol, strtoul): Remove decls.
87863
87864 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87865
87866         More patches to assume C89 or better.
87867         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87868         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87869         string.h, memchr, STDC_HEADERS.
87870
87871 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87872
87873         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87874         Include <stdlib.h>, <string.h> unconditionally.
87875         Remove now-unnecessary cast to char *.
87876         * lib/strnlen.c: Include <string.h> unconditionally.
87877         * lib/yesno.c (yesno): Define with a prototype.
87878
87879 2003-09-11  Bruno Haible  <bruno@clisp.org>
87880
87881         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87882
87883 2003-09-10  Jim Meyering  <jim@meyering.net>
87884
87885         * lib/error.c: Correct indentation of cpp directives.
87886
87887 2003-09-10  Bruno Haible  <bruno@clisp.org>
87888
87889         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87890         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87891         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87892         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87893         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87894         <stdlib.h> and <string.h> checks.
87895         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87896         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87897
87898 2003-09-10  Bruno Haible  <bruno@clisp.org>
87899
87900         * lib/strcspn.c: Include <string.h> unconditionally.
87901         * lib/strpbrk.c: Include <string.h> unconditionally.
87902         * lib/strstr.c: Include <string.h> unconditionally.
87903         * lib/unicodeio.c: Include <string.h> unconditionally.
87904         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87905         * lib/unsetenv.c: Likewise.
87906         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87907         * lib/yesno.c: Include <stdlib.h> unconditionally.
87908         (rpmatch): Add prototype.
87909
87910 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87911
87912         More patches to assume C89 or better.
87913         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87914         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87915         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87916         or for string.h.
87917         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87918         stdlib.h.
87919         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87920         C headers.
87921         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87922         string.h.
87923         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87924         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87925         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87926         or for string.h.
87927         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87928         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87929         C headers.
87930         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87931         memcpy.
87932         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87933         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87934         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87935         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87936         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87937         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87938         string.h, free.
87939         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87940         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87941         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87942         C headers, or for string.h.
87943         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87944         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87945         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87946         headers, memory.h, stdlib.h, string.h, strings.h.
87947         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87948         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87949         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87950         strchr.
87951         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87952         headers, memory.h, string.h.
87953         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87954         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87955         free.
87956         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87957         headers.
87958         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87959         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87960         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87961         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87962         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87963
87964 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87965
87966         More K&R removal.
87967
87968         * lib/acosl.c (main): Use a prototype.
87969         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87970         tanl.c: Likewise.
87971
87972         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87973
87974         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87975         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87976         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87977         with a prototype.
87978         * lib/getopt.c (const): Remove macro.
87979         Include <string.h> unconditionally.
87980         (my_index): Remove; all uses changed to strchr.
87981         (strlen): Remove decl.
87982         (exchange): Remove forward decl; no longer needed.
87983         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87984         Define with prototype.
87985         * lib/getopt1.c (const): Remove macro.
87986         (getopt_long, getopt_long_only, main): Define with prototype.
87987
87988         * lib/getugroups.c: Include <string.h> unconditionally.
87989
87990         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87991         (getusershell, setusershell, endusershell, readname, main):
87992         Define with prototypes.
87993
87994         * lib/group-member.c: Include group-member.h first.
87995         Include <stdlib.h> unconditionally.
87996
87997         * lib/hard-locale.c: Include hard-locale.h first.
87998         Include <stdlib.h>, <string.h> unconditionally.
87999
88000         * lib/hash.c (free, malloc): Remove decls.
88001         Include <stdlib.h> unconditionally.
88002
88003         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88004         (getenv): Do not declare.
88005
88006         * lib/idcache.c: Include <string.h> unconditionally.
88007
88008         * lib/long-options.c: Include long-options.h first, to test interface.
88009         Include <stdlib.h> unconditionally.
88010
88011         * lib/makepath.c: Include makepath.h first, to test interface.
88012         Include <stdlib.h> and <string.h> unconditionally.
88013
88014         * lib/linebuffer.c: Include <stdlib.h>.
88015         (free): Remove decl.
88016
88017         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88018         stddef.h. rpl_malloc returns void *, not char *.
88019         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88020         prototype.
88021
88022         * lib/md5.h: Include <limits.h> unconditionally.
88023         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88024         (__P): Remove; all uses removed.
88025         * lib/md5.c: Include "md5.h" first.
88026         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88027         md5_buffer, md5_process_bytes, md5_process_block):
88028         Define with prototypes.
88029         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88030         * lib/sha.c: Include "sha.h" first.
88031         Include <stdlib.h>, <string.h> unconditionally.
88032
88033         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88034         * lib/memcmp.c (__ptr_t): Likewise.
88035         * lib/memrchr.c (__ptr_t): Likewise.
88036         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88037         Include <string.h> unconditionally.
88038         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88039         * lib/memchr.c: Include <stdlib.h> unconditionally.
88040         * lib/memchr.c (LONG_MAX): Remove.
88041         * lib/memrchr.c (LONG_MAX): Likewise.
88042         * lib/memchr.c (__memchr): Define via a prototype.
88043         * lib/memrchr.c (__memrchr): Likewise.
88044         * lib/memcmp.c (__P): Remove, and remove all uses.
88045         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88046         Remove forward decls; no longer needed.
88047         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88048         Use types required by C89 in prototype.
88049
88050         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88051         * lib/savedir.c: Likewise.
88052         * lib/mkdir.c (free): Remove decl.
88053         * lib/rmdir.c (rmdir): Define with a prototype.
88054         * lib/savedir.c: Include savedir.h first, to test interface.
88055
88056         * lib/mktime.c (STDC_HEADERS): Remove.
88057         Include <stdlib.h>, <string.h> unconditionally.
88058
88059         * lib/modechange.c: Include <stdlib.h> unconditionally.
88060         (malloc): Remove decl.
88061
88062         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88063         (free): Remove decl.
88064
88065         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88066         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88067         (This type really should be intptr_t, but that's a C99ism.)
88068         (_obstack_memcpy): Remove: all uses changed to memcpy.
88069         Include <string.h> unconditionally.
88070         (struct obstack): Assume __STDC__ for types of members
88071         chunkfun, freefun, extra_arg.
88072         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88073         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88074         obstack_begin, obstack_specify_allocation,
88075         obstack_specify_allocation_with_arg, obstack_chunkfun,
88076         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88077         Remove unprototyped decls and the macros that use them.
88078         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88079         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88080         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88081         (defined __STDC__ && __STDC__)]:
88082         Remove nonprototyped code.
88083         Include <stdlib.h> unconditionally.
88084         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88085         _obstack_allocated_p, _obstack_free, obstack_free,
88086         _obstack_memory_used, print_and_abort):
88087         Define using prototypes.
88088         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88089         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88090         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88091         obstack_next_free, obstack_object_size, obstack_room) [0]:
88092         Remove unused, unprototyped code.
88093
88094         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88095
88096         * lib/physmem.c (physmem_total, physmem_available, main): Define
88097         with prototypes.
88098
88099         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88100         (main): Define with a prototype.
88101
88102         * lib/posixver.c (getenv): Remove decl.
88103
88104         * lib/putenv.c (malloc): Returns void *, not char *.
88105         Include <string.h> unconditionally.
88106         (strchr, memcpy, NULL): Do not define.
88107
88108         * lib/readtokens.c: Include readtokens.h first, to test interface.
88109         Include <stdlib.h>, <string.h> unconditionally.
88110         (init_tokenbuffer): Define with a prototype.
88111
88112         * lib/regex.c (PARAMS): Remove.  All uses removed.
88113         All uses of _RE_ARGS removed, too.
88114         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88115         unconditionally.
88116         (bzero): Assume memset exists.
88117         (memcmp, memcpy, NULL): Remove.
88118         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88119         char, or assignments to local vars of type signed char.
88120         (init_syntax_once, PREFIX(extract_number_and_incr),
88121         PREFIX(print_partial_compiled_pattern),
88122         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88123         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88124         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88125         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88126         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88127         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88128         wcs_compile_range, byte_compile_range, truncate_wchar,
88129         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88130         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88131         count_mbs_length, wcs_re_match_2_internal,
88132         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88133         PREFIX(alt_match_null_string_p),
88134         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88135         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88136         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88137         now-unnecessary declaration, if any.
88138         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88139         regcomp, regexec):
88140         Remove now-unnecessary casts among pointer types.
88141         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88142
88143         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88144         (free): Remove decl.
88145
88146         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88147
88148         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88149         (free): Remove decl.
88150
88151         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88152         * lib/xgetcwd.c: Likewise.
88153
88154         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88155         (free): Remove decl.
88156
88157         * lib/strchrnul.c (strchrnul): Define with a prototype.
88158         Fix bug: c_in was not converted to char before searching.
88159
88160         The following changes are not K&R related:
88161
88162         * lib/group-member.h: Include <sys/types.h>, so that this file is
88163         self-contained.
88164         * lib/makepath.h: Likewise.
88165
88166         * lib/getusershell.c (readname, default_index, line_size, readname):
88167         Use size_t, not int, for sizes.
88168         (readname): If the size overflows, report an error instead of
88169         looping forever.
88170
88171 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88172
88173         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88174         libc.
88175
88176 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88177
88178         * README: New section: portability guidelines.
88179
88180 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88181
88182         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88183         C89 spec.
88184
88185 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88186
88187         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88188
88189 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88190
88191         Assume C89 or better; remove K&R cruft.
88192         A few of these changes were first proposed by Derek Robert Price
88193         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88194
88195         * lib/addext.c: Include <string.h> unconditionally.
88196         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88197         Don't declare getenv or malloc.
88198
88199         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88200         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88201         (NULL): Remove.
88202         (find_stack_direction, alloca): Use prototypes.
88203
88204         * lib/atexit.c (atexit): Define using a prototype.
88205
88206         * lib/basename.c, dirname.c, stripslash.c:
88207         Include <string.h> unconditionally.
88208
88209         * lib/bcopy.c: Include <stddef.h>.
88210         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88211
88212         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88213
88214         * lib/error.h (error, error_at_line, error_print_progname)
88215         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88216         * lib/error.c: Include error.h first, to check interface.
88217         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88218         (VA_START): Remove; all uses changeed to va_start.
88219         (exit, strerror): Remove decls.
88220         (error_print_progname): Prototype uncondionally.
88221         Don't include <errno.h>; no longer needed.
88222         (private_strerror): Remove.
88223         (error_tail): Always define.
88224         (error, error_at_line): Assume C89 or better; always use prototypes.
88225         * lib/fatal.c: Include "fatal.h" first, to test interface.
88226         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88227         (VA_START): Remove; all uses changed to va_start.
88228         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88229         this case.
88230         (exit): Remove decl.
88231         (fatal): Prototype unconditionally.  Assume va_start works.
88232         Abort at end, to pacify gcc.
88233
88234         * lib/euidaccess.c (main): Define with a prototype.
88235
88236         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88237
88238         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88239
88240         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88241         prototypes.
88242         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88243         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88244         (getenv): Remove decl.
88245         (fnmatch): Define using a prototype.
88246         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88247         (FCT): Define using a prototype.
88248
88249         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88250
88251         * lib/gethostname.c: Include <stddef.h>.
88252         (gethostname): Define with prototype.  Length is size_t, not int.
88253
88254 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88255
88256         Assume C89 or better; remove K&R cruft.
88257         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88258         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88259         string.h, getenv, malloc.
88260         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88261         headers.
88262         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88263         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88264         do not check for strerror.
88265         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88266         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88267         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88268         do not check for doprnt or vprintf.
88269         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88270         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88271
88272 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88273
88274         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88275         getversion.c should have been removed then, but was accidentally
88276         preserved.
88277
88278         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88279         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88280
88281 2003-09-08  Karl Berry  <karl@gnu.org>
88282
88283         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88284                 config, forget about prep.
88285
88286         * config/depcomp, missing: update from automake.
88287
88288 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88289
88290         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88291         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88292
88293 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88294
88295         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88296         copy_tm_result.  Bug reported by Simon Josefsson in
88297         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88298
88299 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88300
88301         * m4/time_r.m4: New file.
88302         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88303         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88304         is. Check for timegm declaration.
88305         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88306         Do not check for gmtime_r.
88307         Replace mktime if __mktime_internal does not exist and if mktime
88308         hasn't been replaced already.
88309
88310 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88311
88312         * lib/time_r.c, lib/time_r.h: New files.
88313
88314         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88315         __localtime_r.
88316         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88317         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88318
88319         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88320         __gmtime_r.
88321         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88322         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88323         Include <time_r.h>.
88324
88325         * lib/timegm.c: Switch to glibc implementation, with the following
88326         changes:
88327         [defined HAVE_CONFIG_H]: Include <config.h>.
88328         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88329         (__mktime_internal) [!defined _LIBC]: New decl.
88330         (__gmtime_r) [!defined _LIBC]: New macro and function.
88331         (timegm): Use a prototype, since gnulib assumes C89.
88332         Do not bother declaring tmp to be const, as it's not really usefu.
88333         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88334         (timegm): Declare only if HAVE_DECL_TIMEGM.
88335
88336 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88337
88338         * MODULES.html.sh (func_all_modules): Add time_r.
88339         * modules/time_r: New file.
88340         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88341         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88342
88343 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88344
88345         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88346         Bug reported by Lute Kamstra in
88347         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88348
88349         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88350         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88351         course with correspondingly smaller numbers for tomorrow and
88352         yesterday.  From Tadayoshi Funaba.  Originally installed into
88353         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88354         coreutils merge?).
88355
88356 2003-08-31  Simon Josefsson  <jas@extundo.com>
88357
88358         * modules/timegm: New file.
88359         * MODULES.html.sh (func_all_modules): Add timegm.
88360
88361 2003-08-31  Simon Josefsson  <jas@extundo.com>
88362
88363         * m4/timegm.m4: New file.
88364
88365 2003-08-31  Simon Josefsson  <jas@extundo.com>
88366
88367         * lib/timegm.h: New file.
88368         * lib/timegm.c: New file.  Based on
88369         wget-1.8.2/src/http.c:mktime_from_utc.
88370
88371 2003-08-31  Karl Berry  <karl@gnu.org>
88372
88373         * lib/argp.h: update from libc.
88374
88375 2003-08-28  Bruno Haible  <bruno@clisp.org>
88376
88377         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88378         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88379         followed by '#define fnmatch fnmatch_posix' gives an error.
88380
88381 2003-08-28  Bruno Haible  <bruno@clisp.org>
88382
88383         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88384         warning on QNX, which defines O_BINARY to 000000.
88385
88386 2003-08-27  Jim Meyering  <jim@meyering.net>
88387
88388         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88389         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88390         would fail after 32.  Reported by Danny Levinson.  Details here:
88391         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88392
88393 2003-08-24  Bruno Haible  <bruno@clisp.org>
88394
88395         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88396         MSVC7 <stdio.h> is included later.
88397
88398 2003-08-22  Simon Josefsson  <jas@extundo.com>
88399
88400         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88401
88402 2003-08-20  Karl Berry  <karl@gnu.org>
88403
88404         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88405
88406 2003-08-20  Bruno Haible  <bruno@clisp.org>
88407
88408         * modules/progname: New file.
88409         * MODULES.html.sh (func_all_modules): Add progname.
88410
88411 2003-08-20  Bruno Haible  <bruno@clisp.org>
88412
88413         * lib/progname.h: New file, from GNU gettext.
88414         * lib/progname.c: New file, from GNU gettext.
88415         * lib/progreloc.c: New file, from GNU gettext.
88416
88417 2003-08-19  Jim Meyering  <jim@meyering.net>
88418
88419         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88420         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88421
88422 2003-08-19  Bruno Haible  <bruno@clisp.org>
88423
88424         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88425         more.
88426
88427 2003-08-19  Bruno Haible  <bruno@clisp.org>
88428
88429         * lib/xstrdup.c: Assume <string.h> exists.
88430
88431 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88432
88433         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88434         in makefile rules.
88435
88436 2003-08-18  Jim Meyering  <jim@meyering.net>
88437
88438         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88439         * m4/lib-ld.m4: Likewise.
88440
88441 2003-08-18  Jim Meyering  <jim@meyering.net>
88442
88443         * lib/setenv.h: Indent nested cpp directive.
88444         * lib/vasnprintf.c: Remove trailing blanks.
88445
88446 2003-08-17  Simon Josefsson  <jas@extundo.com>
88447
88448         * modules/xstrndup: New file.
88449         * MODULES.html.sh (func_all_modules): Add xstrndup.
88450
88451 2003-08-17  Simon Josefsson  <jas@extundo.com>
88452
88453         * modules/argp: Fix autoconf macro name. Add more dependencies.
88454
88455 2003-08-17  Simon Josefsson  <jas@extundo.com>
88456
88457         * m4/xstrndup.m4: New file.
88458
88459 2003-08-17  Simon Josefsson  <jas@extundo.com>
88460
88461         * m4/argp.m4: New file.
88462
88463 2003-08-17  Simon Josefsson  <jas@extundo.com>
88464             Bruno Haible  <bruno@clisp.org>
88465
88466         * lib/xstrndup.h: New file.
88467         * lib/xstrndup.c: New file.
88468
88469 2003-08-17  Bruno Haible  <bruno@clisp.org>
88470
88471         * modules/strndup (Files, Include): Add lib/strndup.h.
88472
88473 2003-08-17  Bruno Haible  <bruno@clisp.org>
88474
88475         * modules/euidaccess (Files): Add lib/euidaccess.h.
88476
88477 2003-08-17  Bruno Haible  <bruno@clisp.org>
88478
88479         * lib/strndup.h: New file.
88480
88481 2003-08-17  Bruno Haible  <bruno@clisp.org>
88482
88483         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88484         like AC_GNU_SOURCE.
88485         * modules/extensions (configure.ac): Comment out the invocation of
88486         gl_USE_SYSTEM_EXTENSIONS.
88487
88488 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88489
88490         Merges from coreutils, etc.
88491         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88492         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88493         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88494         fixing a typo.
88495         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88496         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88497
88498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88499
88500         Document merge from coreutils.
88501         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88502         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88503         * modules/utime: Add m4/utimes-null.m4.
88504
88505 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88506
88507         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88508         space, undoing this 2003-08-12 change:
88509         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88510
88511 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88512
88513         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88514         strtoul.c from libc, undoing this 2003-08-12 change:
88515         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88516
88517 2003-08-16  Jim Meyering  <jim@meyering.net>
88518
88519         Merges from coreutils.
88520         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88521         prefix.  Adjust cache variables similarly.  Create 500 rather than
88522         just 300 files, to exercise bug on Darwin6.5, too.
88523         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88524         $missing_dir.
88525         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88526         AM_SYS_POSIX_TERMIOS.
88527         Reported by mkc@mathdogs.com.
88528         Also change use of $am_cv_sys_posix_termios
88529         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88530         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88531         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88532         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88533         in /proc/mounts until it finds one with matching device number.  This
88534         is unnecessary when the FILE argument *is* a mount point.  No stat call
88535         is necessary in that case.  So, disable the statvfs-testing code on
88536         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88537         as RedHat bug# 84846.
88538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88539         to 1MB, so as not to render systems with no stack size limit (e.g.,
88540         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88541         Include <unistd.h>.  On some systems,
88542         it is required for the definition of _SC_PAGESIZE.
88543
88544 2003-08-16  Jim Meyering  <jim@meyering.net>
88545
88546         Merge from coreutils.
88547         * lib/xstrtoimax.c: #else #if -> #elif.
88548         * lib/xstrtoumax.c: Likewise.
88549
88550 2003-08-16  Jim Meyering  <jim@meyering.net>
88551
88552         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88553         * m4/utimes.m4: Removed.
88554         * m4/utimes-null.m4: Renamed from utimes.m4.
88555
88556         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88557         to 1MB, so as not to render systems with no stack size limit (e.g.,
88558         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88559         Include <unistd.h>.  On some systems,
88560         it is required for the definition of _SC_PAGESIZE.
88561
88562 2003-08-16  Jim Meyering  <jim@meyering.net>
88563         and Paul Eggert  <eggert@cs.ucla.edu>
88564
88565         Merges from coreutils, etc.
88566
88567         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88568         using the latest version from cvs.  This avoids problems with #line
88569         directives using a vendor (Sun) compiler.
88570         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88571         Don't set GETGROUPS_LIB here; now it's
88572         done via getgroups.m4's wrapper function.
88573         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88574         rather than just in sh-util/configure.in, so that the
88575         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88576         same.
88577         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88578         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88579         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88580         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88581         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88582         Remove code that is now done by the newly-required macros.
88583         Append $(EXEEXT) to DF_PROG.
88584         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88585         Do not invoke or require the following here,
88586         since prereq.m4 or some gnulib .m4 now does this for us:
88587         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88588         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88589         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88590         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88591         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88592         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88593         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88594         AC_FUNC_OBSTACK.
88595         Do not replace the following functions, as this is now the job
88596         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88597         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88598         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88599         atexit getpass, strdup, getpagesize.
88600         Replace 'raise'.
88601         Do not check for the following functions, as this is now the job
88602         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88603         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88604         setregid.
88605         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88606         Check for sys/sysctl.h.
88607         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88608         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88609         of checking for ssize_t ourselves.
88610
88611         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88612         Require every macro that gnulib/modules/* suggests for us.
88613         (jm_PREREQ_ADDEXT): New macro.
88614         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88615         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88616
88617         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88618         (gl_PHYSMEM): Use it.
88619         Also check for `table' function.
88620         Check for new headers and functions.
88621         Add check for sys/sysmp.h.
88622         With suggestions from Kaveh Ghazi.
88623         Ignore headers that are present but cannot be compiled.  This
88624         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88625         C 5.4.
88626
88627 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88628
88629         Document merge from coreutils.
88630         * modules/userspec: Depend on posixver.
88631         * modules/strftime: Depend on tzset.
88632
88633 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88634
88635         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88636         rather than tab, after '#' in shell-script copyright notices.
88637         Suggested by Bruno Haible.
88638
88639 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88640
88641         * config/srclist-update: Use three spaces, rather than tab, after '#'
88642         in shell-script copyright notices.  Suggested by Bruno Haible.
88643         Remove unnecessary parenthesization in regular expression.
88644
88645 2003-08-15  Jim Meyering  <jim@meyering.net>
88646
88647         Merge from coreutils.
88648         * lib/xgethostname.c: Include <stdlib.h>.
88649         (xghostname): Don't exit for anything other than memory-related
88650         failure; just return NULL.
88651         * lib/userspec.c: Include "posixver.h".
88652         (parse_user_spec): Accept `.' as a separator only
88653         in pre-POSIX-200112 mode.
88654         * lib/strtoimax.c: Use #elif rather than #else #if.
88655         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88656         Remove function, now that we can rely on a working tzset function.
88657         [!_LIBC]: Ensure that the required autoconf test has been run.
88658         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88659         Use underlying_strftime for %r.
88660         * lib/sha.c: Merge in some clean-up and optimization changes from
88661         glibc.
88662         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88663         Ensure that it is a multiple of 64.
88664         Rearrange loop exit tests so as to avoid performing an
88665         additional fread after encountering an error or EOF.
88666         * lib/realloc.c: Update copyright date.
88667
88668 2003-08-15  Jim Meyering  <jim@meyering.net>
88669         and Paul Eggert  <eggert@twinsun.com>
88670
88671         Merge from coreutils.
88672         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88673         member but strut utmpx does not.  Needed for AIX 4.3.3.
88674         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88675
88676 2003-08-15  Jim Meyering  <jim@meyering.net>
88677         and Paul Eggert  <eggert@cs.ucla.edu>
88678
88679         Merges from coreutils, etc.
88680         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88681         Require gl_FUNC_TZSET_CLOBBER.
88682         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88683         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88684         members.
88685
88686 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88687
88688         Help the merge from coreutils.
88689         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88690         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88691         * m4/tzset.m4: Use it too.
88692
88693 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88694
88695         * modules/tzset: New file.
88696
88697 2003-08-14  Jim Meyering  <jim@meyering.net>
88698
88699         Merges from coreutils.
88700         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88701         variable names, rather than @FNMATCH_H@.
88702         * modules/alloca: Likewise for $(ALLOCA_H).
88703
88704         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88705         the three copies of the literal target, `fnmatch.h'.
88706         * modules/alloca (alloca.h): Likewise.
88707
88708 2003-08-14  Jim Meyering  <jim@meyering.net>
88709
88710         Merge from coreutils.
88711         * m4/tzset.m4: New file.
88712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88713         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88714         otherwise, AIX 5.1 systems would end up using the latter.
88715         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88716         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88717         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88718         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88719
88720 2003-08-14  Jim Meyering  <jim@meyering.net>
88721
88722         Merge from coreutils.
88723         * lib/obstack.h: Whitespace changes.
88724         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88725         and xcalloc return values.
88726         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88727         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88728         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88729         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88730         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88731         error from mntctl.
88732         Use mntctl's return value to drive the entry-processing loop, since
88733         we can't rely on the value of the vmt_length member in the last
88734         entry.  On some systems doing so could result in exhausting
88735         virtual memory.  Based in part on a patch from Mike Jetzer.
88736
88737 2003-08-14  Jim Meyering  <jim@meyering.net>
88738         and Paul Eggert  <eggert@twinsun.com>
88739
88740         Merges from coreutils, plus other fixes.
88741         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88742         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88743         for credits and details.  Thanks to Kaveh Ghazi for helping
88744         to keep these files in sync.
88745         (ARRAY_SIZE): Define it.
88746         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88747         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88748         (memcasecmp): Don't assume size_t fits in unsigned int.
88749         Remove casts and duplicate code.
88750         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88751         (memcpy): Remove definition.
88752         Merge in some clean-up and optimization changes from glibc.
88753         [BLOCKSIZE]: Move definition to top of file.
88754         Ensure that it is a multiple of 64.
88755         Rearrange loop exit tests so as to avoid performing an
88756         additional fread after encountering an error or EOF.
88757         * lib/md5.h (md5_uintptr): Define.
88758         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88759         return to the initial working directory.  Preserve errno
88760         for caller.
88761         * lib/idcache.c: Include "xalloc.h".
88762         (xmalloc, xrealloc): Remove decls.
88763         (getuser): Remove casts no longer required in C89.
88764         * lib/human.c: Include stdio.h, for sprintf.
88765         * lib/group-member.c: Include "xalloc.h".
88766         (xmalloc, xrealloc): Remove decls.
88767         (get_group_info): Remove casts no longer required in C89.
88768         * lib/getusershell.c (readname): Remove casts no longer required in
88769         C89.
88770         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88771         * lib/getline.c: Whitespace fix, from coreutils.
88772
88773 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88774
88775         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88776         Check for isascii.
88777
88778         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88779         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88780         Undo previous (whitespace-only) change.
88781
88782 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88783
88784         * lib/exclude.c: Include <ctype.h>
88785         (IN_CTYPE_DOMAIN): New macro.
88786         (is_space): New fn.
88787         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88788         and empty lines.
88789
88790         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88791         Undo previous (whitespace-only) change.
88792
88793 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88794
88795         * config/srclist-update: Change update back to the old behavior,
88796         leaving whitespace alone.  Use one 'sed' command rather than a
88797         pipeline.
88798         (fixlicense): Now a variable, not a function.
88799         (remove_trailing_blanks): Remove.
88800         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88801         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88802         Undo previous (whitespace-only) change.
88803
88804 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88805
88806         Merge from coreutils.
88807         * modules/euidaccess: Add lib_SOURCES, include for new
88808         file euidaccess.h
88809
88810 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88811
88812         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88813         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88814         Normalize leading white space and remove trailing white space.
88815
88816         Merge from coreutils
88817         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88818
88819         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88820         0.12.1.  These files are now being upgraded automatically by
88821         ../config/srclist-update.
88822
88823 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88824
88825         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88826         Normalize leading white space and remove trailing white space.
88827         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88828         notice, as per ../config/srclist-update.
88829
88830         Merge from coreutils.
88831         * lib/euidaccess.h: New file.
88832         * lib/euidaccess.c: Include it.
88833         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88834         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88835         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88836
88837 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88838
88839         * config/srclist-update: Add copyright notice.
88840         (remove_id_lines, remove_trailing_blanks): New constants.
88841         (fixfile): Use them to normalize spacing a bit in copied files.
88842         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88843         Normalize leading white space and remove trailing white space.
88844
88845         * config/texinfo.tex: Sync with texinfo.
88846
88847         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88848         strtoul.c from libc, to merge coreutils whitespace changes.
88849
88850         * config/srclist.txt: Get the following m4 files from gettext:
88851         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88852         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88853         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88854         wint_t.m4.
88855
88856 2003-08-12  Karl Berry  <karl@gnu.org>
88857
88858         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88859         been made.
88860
88861 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88862
88863         * modules/gnu-source, m4/gnu-source.m4:
88864         Remove; we're assuming Autoconf 2.54 or later now.
88865         Suggested by Bruno Haible.
88866         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88867
88868 2003-08-11  Bruno Haible  <bruno@clisp.org>
88869
88870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88871
88872 2003-08-11  Bruno Haible  <bruno@clisp.org>
88873
88874         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88875         (vasnprintf): Use it instead of wcslen.
88876
88877 2003-08-11  Bruno Haible  <bruno@clisp.org>
88878
88879         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88880         value to ensure that _Bool promotes to int. Use #define for _Bool when
88881         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88882
88883 2003-08-10  Karl Berry  <karl@gnu.org>
88884
88885         * lib/regex.h: update from libc (whitespace fix).
88886
88887 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88888
88889         Merge some files from coreutils.  These changes were
88890         originally made by Jim Meyering.
88891         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88892         many older Unixes require this.
88893         * lib/alloca.c (alloca): Remove cast to argument of free;
88894         no longer needed in C89.
88895         * lib/alloca_.h, regex.h: Fix white space to match
88896         what GNU indent does.
88897
88898 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88899
88900         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88901         apparently Emacs's Unicode mode got confused before my 2003-08-05
88902         checkin.
88903
88904 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88905
88906         * m4/extensions.m4: New file.
88907         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88908         Require gl_USE_SYSTEM_EXTENSIONS.
88909         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88910         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88911
88912 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88913
88914         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88915         * modules/extensions, modules/gnu-source: New files.
88916         * modules/timespec, modules/unlocked-io: Depend on extensions.
88917
88918 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88919
88920         * modules/restrict: New file.
88921         * MODULES.html.sh (func_all_modules): Add restrict.
88922         * modules/regex: Depend on restrict.
88923
88924 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88925
88926         * m4/restrict.m4: New file.
88927         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88928
88929 2003-08-07  Bruno Haible  <bruno@clisp.org>
88930
88931         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88932         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88933
88934 2003-08-07  Bruno Haible  <bruno@clisp.org>
88935
88936         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88937         makes the module 'getndelim2' compatible with the module 'getline'.
88938
88939 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88940
88941         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88942         byte with "\201" to avoid glitches when editing that source file
88943         with multi-gnome-terminal.
88944
88945 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88946
88947         * lib/bumpalloc.h: Remove.
88948
88949 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88950
88951         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88952         * modules/bumpalloc: Remove.
88953
88954 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88955
88956         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88957         GNU coding style.
88958
88959         Merge from coreutils.
88960         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88961         1. From glibc.
88962         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88963         from Karl Berry, implemented by Jim Meyering.
88964         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88965         from Dmitry V. Levin.
88966         Remove anachronistic cast of xrealloc.
88967         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88968         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88969         type. Otherwise, it wouldn't compile with at least /bin/cc on
88970         ymp-cray-unicos9.0.2.X.
88971         Combine two mostly-identical uses of alloca into one.
88972         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88973
88974 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88975
88976         [From Emacs.]
88977
88978         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88979         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88980         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88981         obsolete NLIST_NAME_UNION.
88982         [__GNU__]: Undef BSD and FSCALE.
88983         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88984
88985 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88986
88987         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88988         an enum type, so that it's guaranteed to promote to int.  See:
88989         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88990
88991 2003-08-03  Karl Berry  <karl@gnu.org>
88992
88993         * config/depcomp: update from automake.
88994
88995 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88996
88997         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88998         (strerror): Don't assume that a printable int fits in 14 bytes.
88999
89000 2003-07-31  Bruno Haible  <bruno@clisp.org>
89001
89002         * modules/getpass-gnu: New file.
89003         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89004
89005 2003-07-31  Bruno Haible  <bruno@clisp.org>
89006
89007         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89008
89009 2003-07-24  Karl Berry  <karl@gnu.org>
89010
89011         * config/missing: update from automake.
89012
89013 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89014             Bruno Haible  <bruno@clisp.org>
89015
89016         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89017         * lib/getline.c (getline, getdelim): Likewise.
89018         Remove _GNU_SOURCE define; now it's defined in config.h through
89019         m4/getline.m4.
89020
89021 2003-07-23  Karl Berry  <karl@gnu.org>
89022
89023         * config/config.sub: update from prep.
89024
89025 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89026
89027         * modules/xalloc (Depends-on): Add exitfail.
89028         * modules/xmemcoll: Likewise.
89029
89030 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89031
89032         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89033         over-parenthesization in macros.
89034
89035         Sync with coreutils.
89036
89037         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89038         required by C99.
89039
89040         Use `exit_failure' for xalloc and xmemcoll instead of their own
89041         private exit-failure variables.
89042         * lib/xalloc.h (xalloc_exit_failure): Remove.
89043         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89044         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89045         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89046         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89047         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89048
89049 2003-07-20  Jim Meyering  <jim@meyering.net>
89050
89051         * modules/closeout (Depends-on): Add exitfail.
89052         Suggestion from Bruno Haible.
89053
89054 2003-07-19  Karl Berry  <karl@gnu.org>
89055
89056         * config/config.sub: update from prep.
89057
89058 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89059
89060         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89061         Remove.
89062         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89063         to test that it can stand by itself.  Include "exitfail.h".
89064         Clients should set exit_failure instead.
89065         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89066
89067 2003-07-18  Bruno Haible  <bruno@clisp.org>
89068
89069         * modules/getndelim2: New file.
89070         * modules/getline: Share files with module getndelim2.
89071         * modules/getnline: Depend on getndelim2 instead of sharing files with
89072         it. Add getnline.c to lib_SOURCES.
89073         * MODULES.html.sh (func_all_modules): Add getndelim2.
89074
89075 2003-07-18  Bruno Haible  <bruno@clisp.org>
89076
89077         * m4/getndelim2.m4: New file.
89078         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89079         invoke gl_PREREQ_GETNDELIM2.
89080         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89081         gl_PREREQ_GETNDELIM2.
89082         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89083         gl_GETNDELIM2.
89084
89085 2003-07-18  Bruno Haible  <bruno@clisp.org>
89086
89087         * lib/getndelim2.h: New file.
89088         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89089         getndelim2.h.
89090         (getndelim2): Make non-static. Change return type to ssize_t.
89091         * lib/getline.h: Change argument names.
89092         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89093         * lib/getnline.c: Include getndelim2.h.
89094
89095 2003-07-18  Andreas Schwab  <schwab@suse.de>
89096
89097         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89098
89099 2003-07-17  Karl Berry  <karl@gnu.org>
89100
89101         * config/config.sub: update from prep.
89102
89103 2003-07-17  Bruno Haible  <bruno@clisp.org>
89104
89105         * modules/getnline: New file.
89106         * modules/getline: Add lib/getndelim2.c to source file list.
89107         * MODULES.html.sh (func_all_modules): Add getnline.
89108
89109 2003-07-17  Bruno Haible  <bruno@clisp.org>
89110
89111         * m4/getnline.m4: New file.
89112
89113 2003-07-17  Bruno Haible  <bruno@clisp.org>
89114
89115         * m4/Makefile.am.in: Remove file.
89116         * m4/Makefile.am: Remove file.
89117         * m4/Makefile.in: Remove file.
89118
89119 2003-07-17  Bruno Haible  <bruno@clisp.org>
89120
89121         * lib/getnline.h: New file.
89122         * lib/getnline.c: New file.
89123         * lib/getndelim2.c: New file, extracted from getline.c.
89124         (getndelim2): Renamed from getdelim2, with added nmax argument.
89125         * lib/getline.c: Include getndelim2.c.
89126         (getdelim2): Moved out to getndelim2.c.
89127         (getline, getdelim): Update.
89128
89129 2003-07-17  Bruno Haible  <bruno@clisp.org>
89130
89131         * lib/Makefile.am: Remove file.
89132         * lib/Makefile.in: Remove file.
89133
89134 2003-07-17  Bruno Haible  <bruno@clisp.org>
89135
89136         * configure.in: Remove file.
89137         * Makefile.in: Remove file.
89138
89139 2003-07-17  Bruno Haible  <bruno@clisp.org>
89140
89141         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89142
89143 2003-07-16  Karl Berry  <karl@gnu.org>
89144
89145         * config/srclist-update: was running fixlicense twice, which caused
89146                 texinfo.tex to be nullified for some reason.  Simplify,
89147                 $gplsrc is no longer needed as far as I can see?
89148
89149 2003-07-16  Jim Meyering  <jim@meyering.net>
89150
89151         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89152
89153 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89154
89155         * config/srclist.txt: Get the following files from gettext-runtime/intl
89156         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89157         ref-del.sin.  From Bruno Haible.
89158         * config/srclist-update (fixfile): Change grep pattern again, since the
89159         previous fix didn't work (there was another trailing $).  Use
89160         '[$]' to escape the $s.
89161
89162 2003-07-15  Karl Berry  <karl@gnu.org>
89163
89164         * lib/vasnprintf.c: update from gettext.
89165
89166 2003-07-15  Karl Berry  <karl@gnu.org>
89167
89168         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89169         gets expanded when surrounded by '$'.
89170
89171 2003-07-15  Jim Meyering  <jim@meyering.net>
89172
89173         * modules/save-cwd: Don't depend on error.  From Derek Price.
89174
89175 2003-07-15  Jim Meyering  <jim@meyering.net>
89176
89177         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89178
89179 2003-07-14  Simon Josefsson  <jas@extundo.com>
89180
89181         * modules/mempcpy: New file.
89182         * MODULES.html.sh (func_all_modules): Add mempcpy.
89183
89184 2003-07-14  Simon Josefsson  <jas@extundo.com>
89185
89186         * m4/mempcpy.m4: New file.
89187
89188 2003-07-14  Simon Josefsson  <jas@extundo.com>
89189
89190         * lib/mempcpy.h: New file.
89191         * lib/mempcpy.c: New file.
89192
89193 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89194
89195         * modules/getdate, modules/posixtm: Depend on mktime.
89196
89197 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89198
89199         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89200         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89201         unicodeio.c, unicodeio.h, unlocked-io.h:
89202         Switch from LGPL to GPL.
89203
89204 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89205
89206         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89207         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89208         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89209         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89210         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89211         updated automatically by ../config/srclist-update.  This changes
89212         their license from LPGL to GPL.
89213
89214 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89215
89216         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89217         assumed to refer to the root of the most recent stable gettext version.
89218         * config/srclistvars.sh: Add defaults for eggert.
89219         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89220         Match "This program" as well as "The program".  This is needed
89221         for gettext.
89222
89223 2003-07-14  Jim Meyering  <jim@meyering.net>
89224
89225         Don't emit diagnostics.  Let callers do that.
89226         * lib/save-cwd.c: Don't include "error.h".
89227         (save_cwd): Don't call error.  Ensure that errno is valid
89228         when returning nonzero.
89229
89230         * lib/save-cwd.h (restore_cwd): Update prototype.
89231         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89232         Simplify.  Don't call error upon failure.  Let callers do that.
89233         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89234         when auditing is enabled.  But don't bother updating the #if.
89235
89236 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89237
89238         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89239         it breaks C++ compilation.
89240         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89241
89242 2003-07-10  Simon Josefsson  <jas@extundo.com>
89243
89244         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89245
89246 2003-07-10  Jim Meyering  <jim@meyering.net>
89247
89248         * m4/clock_time.m4: Remove trailing blank.
89249         * m4/intmax_t.m4: Likewise.
89250
89251 2003-07-10  Jim Meyering  <jim@meyering.net>
89252
89253         * lib/vasnprintf.c: Remove trailing blanks.
89254         Make cpp indentation consistent.
89255
89256 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89257
89258         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89259         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89260         Switch from LGPL to GPL.
89261
89262 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89263
89264         * config/srclist.txt: Sort sublists.  Add
89265         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89266         that differ from gnulib for one reason or another; we'd like this list
89267         to be smaller but for now let's document what we have.
89268
89269 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89270
89271         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89272         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89273         and sweeter "eval x=$x".
89274         * config/srclist.txt: Get lib/argp* from glibc.
89275
89276 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89277
89278         * lib/mktime.c: Fix some boundary cases and remove need for floating
89279         point.
89280
89281         Issue a compile-time diagnostic if time_t is floating point, or if
89282         two's complement arithmetic is not in effect, or if arithmetic
89283         right shift does not propagate the sign.  These assumptions were
89284         all in the original code but they weren't checked.
89285
89286         (TIME_T_MIDPOINT, verify): New macros.
89287         (__isleap): Remove; it has integer overflow problems.
89288         (leapyear): New function, without those problems.
89289         (ydhms_tm_diff): Remove; splitting into two parts.
89290         (ydhms_diff): New function, containing the arithmetic part of
89291         the old ydhms_tm_diff function.  Issue a compile-time
89292         diagnostic if we are not using C99 integer division.
89293         Avoid casts when possible.
89294         (guess_time_tm): New function, containing the checking part of
89295         the old ydhms_tm_diff function.  Return the new value, rather than
89296         the difference between it and the old.  Accept a new argument T
89297         so that *T specifies the old value.  Check for overflow in the result.
89298
89299         (__mktime_internal): Use a time_t offset, not a long int offset.
89300         This undoes the 2003-06-04 change, which is no longer needed now
89301         that we have better overflow checking.
89302         (localtime_offset): Likewise.
89303
89304         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89305         and long are 64-bit but int is only 32-bit.
89306         (ydhms_diff): Use long int to store year1 and yday1.
89307         Issue a compile-time diagnostic if long int is not wide enough.
89308
89309         (__mktime_internal): Use long int to store adjusted year and yday.
89310         Use plain C rather than preprocessor commands, if that doesn't
89311         affect efficiency.
89312         Check for overflow (and try to repair) after each probe
89313         rather than checking only at the very end.  This avoids some bugs
89314         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89315         does not equal GMT offset at maximum time).
89316         Use integer to check for overflow rather than floating point; this
89317         is more portable to non-IEEE hosts, and is a tad faster.
89318         When we detect that we are oscillating between two values,
89319         don't check whether tm_isdst has the requested value, since
89320         we already know the answer.  When tm_isdst has the wrong value,
89321         use a different heuristic to find the right one, based on the
89322         extreme values actually observed in practice in tz2003a,
89323         rather than the (overly optimistic) "previous 3 calendar quarters".
89324
89325         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89326         "T const" to accommodate glibc style.
89327         (check_result): Use less-confusing report format.  "long" -> "long int.
89328         (main): Likewise.
89329         Don't loop if the iteration overflows time_t.
89330         Allow a negative step in the iteration.
89331
89332 2003-07-06  Karl Berry  <karl@gnu.org>
89333
89334         * config/depcomp: update from automake.
89335         * config/config.sub: update from prep.
89336
89337 2003-07-03  Karl Berry  <karl@gnu.org>
89338
89339         * config/config.guess: update from prep.
89340
89341 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89342
89343         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89344         xreadlink.c now includes it unconditionally.
89345
89346 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89347
89348         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89349         having it depend on HAVE_SYS_TYPES_H.
89350
89351 2003-07-01  Bruno Haible  <bruno@clisp.org>
89352
89353         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89354         <sys/types.h> should be sufficient.
89355         Reported by Paul Eggert.
89356
89357 2003-06-26  Karl Berry  <karl@gnu.org>
89358
89359         * config/depcomp: update from automake.
89360
89361 2003-06-26  Bruno Haible  <bruno@clisp.org>
89362
89363         * modules/human: Depend on module stdbool.
89364
89365 2003-06-25  Bruno Haible  <bruno@clisp.org>
89366
89367         * modules/readlink: New file.
89368         * modules/xreadlink: Depend on it.
89369         * MODULES.html.sh (func_all_modules): Add readlink.
89370
89371 2003-06-25  Bruno Haible  <bruno@clisp.org>
89372
89373         * m4/readlink.m4: New file.
89374
89375 2003-06-25  Bruno Haible  <bruno@clisp.org>
89376
89377         * lib/readlink.c: New file.
89378
89379 2003-06-22  Karl Berry  <karl@gnu.org>
89380
89381         * config/srclist.txt: update mkinstalldirs from automake.
89382         * config/mkinstalldirs: update.
89383
89384 2003-06-22  Bruno Haible  <bruno@clisp.org>
89385
89386         Portability to mingw32.
89387         * m4/ssize_t.m4: New file, from GNU gettext.
89388         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89389         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89390
89391 2003-06-22  Bruno Haible  <bruno@clisp.org>
89392
89393         * modules/safe-read: Add m4/ssize_t.m4.
89394         * modules/xreadlink: Add m4/ssize_t.m4.
89395
89396 2003-06-20  Bruno Haible  <bruno@clisp.org>
89397
89398         Assume C89, so PARAMS isn't needed.
89399         * lib/unicodeio.h (PARAMS): Remove.
89400         * lib/unicodeio.c: Don't use PARAMS.
89401
89402 2003-06-18  Karl Berry  <karl@gnu.org>
89403
89404         * config/config.{guess,sub}: update from prep.
89405
89406 2003-06-18  Jim Meyering  <jim@meyering.net>
89407
89408         Merge changes from coreutils.
89409         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89410         Remove explicit declarations of xmalloc and realloc.
89411         Include xalloc.h.
89412         (read_utmp): Remove anachronistic cast of xmalloc.
89413
89414 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89415
89416         Assume C89, so PARAMS isn't needed.
89417         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89418         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89419         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89420         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89421         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89422         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89423         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89424         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89425         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89426         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89427         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89428         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89429         no longer needed. Anyway, config.h should always be included before any
89430         other file.
89431
89432 2003-06-11  Simon Josefsson  <jas@extundo.com>
89433
89434         * modules/sysexits: New file.
89435         * MODULES.html.sh (func_all_modules): Add sysexits.
89436
89437 2003-06-11  Simon Josefsson  <jas@extundo.com>
89438
89439         * lib/sysexit_.h: New file.
89440
89441 2003-06-11  Derek Price  <derek@ximbiot.com>
89442
89443         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89444         necessary.
89445
89446 2003-06-11  Bruno Haible  <bruno@clisp.org>
89447
89448         * m4/sysexits.m4: New file.
89449
89450 2003-06-10  Simon Josefsson  <jas@extundo.com>
89451
89452         * lib/argp.h: New file, from glibc.
89453         * lib/argp-ba.c: New file, from glibc.
89454         * lib/argp-eexst.c: New file, from glibc.
89455         * lib/argp-fmtstream.c: New file, from glibc.
89456         * lib/argp-fmtstream.h: New file, from glibc.
89457         * lib/argp-fs-xinl.c: New file, from glibc.
89458         * lib/argp-help.c: New file, from glibc.
89459         * lib/argp-namefrob.h: New file, from glibc.
89460         * lib/argp-parse.c: New file, from glibc.
89461         * lib/argp-pv.c: New file, from glibc.
89462         * lib/argp-pvh.c: New file, from glibc.
89463         * lib/argp-xinl.c: New file, from glibc.
89464
89465 2003-06-10  Simon Josefsson  <jas@extundo.com>
89466
89467         * modules/strchrnul: New file.
89468
89469 2003-06-10  Simon Josefsson  <jas@extundo.com>
89470
89471         * modules/argp: New file.
89472
89473 2003-06-10  Simon Josefsson  <jas@extundo.com>
89474
89475         * m4/strchrnul.m4: New file.
89476
89477 2003-06-10  Simon Josefsson  <jas@extundo.com>
89478
89479         * lib/strchrnul.h: New file.
89480         * lib/strchrnul.c: New file.
89481
89482 2003-06-10  Bruno Haible  <bruno@clisp.org>
89483
89484         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89485
89486 2003-06-07  Karl Berry  <karl@gnu.org>
89487
89488         * config/config.{guess,sub}: update from prep.
89489
89490 2003-06-07  Jim Meyering  <jim@meyering.net>
89491
89492         * modules/strtod: Use $(...) notation, not @...@ for
89493         AC_REPLACE'd variables.
89494         * modules/localcharset: Likewise.
89495
89496 2003-06-07  Jim Meyering  <jim@meyering.net>
89497
89498         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89499         in place of my name in the copyright comment.
89500         Remove definition and uses of __P.
89501
89502         From coreutils.
89503         * lib/stat.c: Don't declare xmalloc explicitly.
89504         Instead, include "xalloc.h".
89505         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89506         xrealloc, and xcalloc return values.
89507         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89508         Improve comment.
89509         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89510
89511 2003-06-07  Bruno Haible  <bruno@clisp.org>
89512
89513         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89514         avoid AC_CONFIG_LINKS.
89515         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89516         fnmatch.h, to avoid AC_CONFIG_LINKS.
89517         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89518
89519 2003-06-07  Bruno Haible  <bruno@clisp.org>
89520
89521         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89522         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89523         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89524         directory.
89525         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89526         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89527         directory.
89528
89529 2003-06-06  Jim Meyering  <jim@meyering.net>
89530
89531         Merge from coreutils.
89532         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89533         Consolidate declarations and initializations of *_base* locals.
89534
89535         Merge from coreutils.
89536         This avoids a core dump on systems without GNU putenv,
89537         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89538         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89539         (unsetenv): New static function, from GNU libc.
89540         (rpl_putenv): Use it.
89541
89542         * lib/modechange.c: Remove trailing blanks.
89543
89544         Merge from coreutils.
89545         * lib/fsusage.c: Remove declaration of statfs.
89546         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89547
89548         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89549
89550 2003-06-06  Jim Meyering  <jim@meyering.net>
89551
89552         * lib/stdbool_.h: Renamed from stdbool.h.in.
89553
89554 2003-06-06  Jim Meyering  <jim@meyering.net>
89555             Bruno Haible  <bruno@clisp.org>
89556
89557         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89558         Adjust Makefile.am snippet not to redirect directly to target.
89559         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89560
89561 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89562
89563         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89564         mismatch, look in future quarters as well as past.  This fixes a
89565         bug when processing fall-backwards gaps immediately after a long
89566         period of daylight-saving time.
89567
89568         * lib/mktime.c: Assume freestanding C89 or better.
89569         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89570         (__P): Remove; not used.
89571         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89572         (mktime, not_equal_tm, print_tm, check_result,
89573         main): Use prototypes.  Use const * where appropriate.
89574         (main): Fix typo in testing code that uncovered by above changes.
89575         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89576
89577 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89578
89579         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89580         locale.h, localeconv.  This merges changes from coreutils.
89581
89582         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89583         It can be removed after the next Autoconf is released.
89584         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89585         needed.
89586
89587 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89588
89589         * lib/mktime.c: Fix Debian bug 177940
89590         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89591         (localtime_offset): Now long int, not time_t, because we want it
89592         to be guaranteed to be signed.  All uses changed.
89593         (__mktime_internal): If overflow would occur when adding offset,
89594         don't add it.
89595
89596         Merge 'human' changes from coreutils.  Rewrite to support
89597         locale-specific notations like thousands separators.
89598         * lib/human.c: Simplify authorship notice.
89599         Include human.h immediately after config.h.
89600         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89601         <limits.h>: Do not include, since human.h does.
89602         (SIZE_MAX, UINTMAX_MAX): New macros.
89603         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89604         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89605         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89606         (power_letter): Renamed from suffixes.
89607         (generate_suffix_backwards): Remove.
89608         (adjust_value): Now takes int style (because of human.h changes)
89609         and long double value (for greater precision on some platforms).
89610         (group_number): New function.
89611         (human_readable): Use it.  Use integer options, not enum.
89612         Put the options before the sizes in the arg list.
89613         Support all the new options.
89614         The old human_readable function has been removed;
89615         use inttostr.h instead.
89616         (human_readable, default_block_size, humblock):
89617         Use uintmax_t, not int, for block sizes.
89618         (human_readable_inexact, block_size_types): Remove.
89619         (block_size_opts): New constant.
89620         (human_options): Renamed from human_block_size, with new signature
89621         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89622         * lib/human.h: Add copyright and authorship notice.
89623         Include <limits.h> and <stdbool.h> unconditionally.
89624         (PARAMS): Remove.  All uses removed.
89625         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89626         (enum human_inexact_style): Remove tag; now a nameless enum.
89627         (human_floor, human_ceiling, human_round_to_even): Now have
89628         values 2, 0, 1 rather than -1, 1, 0.
89629         (human_group_digits, human_suppress_point_zero, human_autoscale,
89630         human_base_1024, human_SI, human_B): New constants.
89631         (human_readable_inexact, human_block_size): Remove.
89632         (human_readable): Size args are now uintmax_t, not int.
89633         (human_options): New decl.
89634
89635         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89636         unnecessary now that we assume C89 or better.  This change
89637         imported from coreutils.
89638
89639         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89640         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89641         in the 2003-05-30 sync from glibc.
89642
89643         .h files should stand alone, but we shouldn't include <sys/types.h>
89644         if we can get away with just <stddef.h>.
89645
89646         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89647         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89648         rather than <sys/types.h>, as we merely need size_t.
89649         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89650         to get size_t.
89651         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89652         Include <stdio.h>, to get FILE.
89653         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89654         memcasecmp.h has included <stddef.h> and all we need is size_t.
89655         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89656         our interface, instead of including <sys/types.h>
89657
89658 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89659
89660         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89661         now, as glibc mktime is buggy on non-glibc systems.
89662
89663 2003-06-03  Karl Berry  <karl@gnu.org>
89664
89665         * config/config.sub: update from prep.
89666
89667 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89668
89669         [from coreutils]
89670         Fix some minor time-related bugs with POSIX time arguments.
89671         Some valid time stamps were being rejected (notably -1, and
89672         time stamps before 1900 on 64-bit hosts).  And some invalid
89673         time stamps were being accepted, e.g. September 31.
89674
89675         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89676         that we can return (time_t) -1 successfully.
89677         * lib/posixtm.c: Likewise.
89678         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89679         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89680         (t): Remove static var.
89681         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89682         of static var.  All uses changed.
89683         (year): Do not reject years before 1900; they can occur with
89684         64-bit time_t.
89685         (posix_time_parse): Do not check for out-of-range components;
89686         that is now the caller's responsibility, since our checks were
89687         only approximations.
89688         (posixtime): Use mktime to check for out-of-range components,
89689         since it knows them exactly.
89690         If mktime returns (time_t) -1, check whether an error actually occurred
89691         by invoking localtime on -1.
89692         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89693         posixtime failures better.
89694         Improve the test data (in comments only).
89695
89696 2003-06-02  Karl Berry  <karl@gnu.org>
89697
89698         * config/mkinstalldirs (version): new variable.
89699         (--version): new option.
89700         (usage): improve message.
89701
89702 2003-05-30  Karl Berry  <karl@gnu.org>
89703
89704         * lib/mktime.c: update from libc.
89705
89706 2003-05-30  Bruno Haible  <bruno@clisp.org>
89707
89708         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89709         * config/config.rpath: Upgrade to gettext-0.12.1.
89710
89711 2003-05-30  Bruno Haible  <bruno@clisp.org>
89712
89713         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89714         * m4/nls.m4: New file, from gettext-0.12.1.
89715         * m4/po.m4: New file, from gettext-0.12.1.
89716         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89717
89718 2003-05-30  Bruno Haible  <bruno@clisp.org>
89719
89720         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89721         * lib/localcharset.h: Likewise.
89722         * lib/localcharset.c: Likewise.
89723
89724 2003-05-29  Karl Berry  <karl@gnu.org>
89725
89726         * config/config.rpath: update from gettext.
89727
89728 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89729
89730         Assume the headers required for C89 freestanding compilers.
89731         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89732         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89733         * m4/human.m4 (gl_HUMAN): Likewise.
89734         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89735         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89736         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89737         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89738         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89739         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89740
89741 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89742
89743         Assume the headers required for C89 freestanding compilers.
89744         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89745         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89746         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89747         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89748         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89749         define, since <limits.h> is guaranteed to do that.
89750         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89751         * lib/exclude.c: Include <stdbool.h> unconditionally.
89752         * lib/tempname.c: Include <stddef.h> unconditionally.
89753         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89754         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89755         <stddef.h> does that.
89756         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89757         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89758         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89759         needed.
89760         * lib/xstrtol.c: Likewise.
89761         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89762         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89763
89764         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89765         warnings on some platforms.
89766
89767         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89768         arbitrarily.
89769
89770 2003-05-26  Jim Meyering  <jim@meyering.net>
89771
89772         Merge in a change from coreutils:
89773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89774         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89775         that condition, rather than `-1' which is slightly misleading.
89776         Change the name of the cache variable to have the gl_ prefix.
89777         Prompted by a patch from Richard Dawe for DJGPP.
89778
89779 2003-05-24  Karl Berry  <karl@gnu.org>
89780
89781         * config/config.guess: update from prep.
89782
89783 2003-05-22  Karl Berry  <karl@gnu.org>
89784
89785         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89786
89787 2003-05-20  Karl Berry  <karl@gnu.org>
89788
89789         * config/config.guess: update from prep.
89790
89791 2003-05-18  Karl Berry  <karl@gnu.org>
89792
89793         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89794         might actually be set by the user.
89795
89796         * config/depcomp, install-sh, mdate-sh: update from automake.
89797
89798 2003-05-17  Bruno Haible  <bruno@clisp.org>
89799
89800         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89801         invalid expansion for AC_EGREP_CPP.
89802         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89803         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89804         Suggested by Akim Demaille <akim@epita.fr> in
89805         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89806
89807 2003-05-12  Jim Meyering  <jim@meyering.net>
89808
89809         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89810         the space-padded-by-default conversion specifiers, %e, %k, %l.
89811
89812 2003-05-12  Bruno Haible  <bruno@clisp.org>
89813
89814         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89815         the string is longer than 4 KB.
89816
89817 2003-05-11  Karl Berry  <karl@gnu.org>
89818
89819         * config/config.{guess,sub}: update from prep.
89820
89821 2003-05-09  Bruno Haible  <bruno@clisp.org>
89822
89823         * modules/error: Add m4/strerror_r.m4 to file list.
89824
89825 2003-05-03  Bruno Haible  <bruno@clisp.org>
89826
89827         Upgrade to Unicode-4.0.
89828         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89829         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89830         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89831         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89832         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89833         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89834         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89835         Change width of U+E0100..U+E01EF from 1 to 0.
89836
89837 2003-04-25  Jim Meyering  <jim@meyering.net>
89838
89839         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89840         of type size_t, not int.
89841
89842 2003-04-25  Bruno Haible  <bruno@clisp.org>
89843
89844         * lib/copy-file.c: Include <stddef.h>, for size_t.
89845
89846 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89847
89848         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89849         code which expansion is under static control.  Patch imported from
89850         Akim Demaille's patch to Bison; see
89851         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89852
89853 2003-04-14  Bruno Haible  <bruno@clisp.org>
89854
89855         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89856
89857 2003-04-11  Jim Meyering  <jim@meyering.net>
89858
89859         Merge changes from Coreutils.
89860
89861         2003-03-22  Jim Meyering  <jim@meyering.net>
89862
89863         * lib/strftime.c (widen): Cast alloca return value to proper type.
89864
89865         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89866
89867         From GNU libc.
89868         * lib/strftime.c (my_strftime): Handle very large width
89869         specifications for numeric values correctly.  Improve checks for
89870         overflow.
89871
89872         2003-01-19  Jim Meyering  <jim@meyering.net>
89873
89874         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89875         definitions.
89876         (nl_get_alt_digit) [! defined my_strftime]: Define.
89877         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89878         _nl_get_alt_digit and _nl_get_walt_digit.
89879
89880         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89881         libc. These changes have no effect outside of _LIBC.
89882
89883 2003-04-10  Bruno Haible  <bruno@clisp.org>
89884
89885         * modules/findprog: New file.
89886         * MODULES.html.sh (func_all_modules): Add it.
89887
89888 2003-04-10  Bruno Haible  <bruno@clisp.org>
89889
89890         * m4/findprog.m4: New file.
89891         * m4/eaccess.m4: New file.
89892
89893 2003-04-10  Bruno Haible  <bruno@clisp.org>
89894
89895         * lib/findprog.h: New file, from GNU gettext.
89896         * lib/findprog.c: New file, from GNU gettext.
89897
89898 2003-04-05  Jim Meyering  <jim@meyering.net>
89899
89900         Merge changes from Coreutils.
89901
89902         * lib/exclude.h (PARAMS): Remove definition and uses.
89903         * lib/exclude.c: Remove uses of `PARAMS'.
89904
89905         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89906         Add test-cases for DOS filenames. Declare program_name.
89907         (main): Set up program_name.  Patch by Rich Dawe.
89908
89909         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89910         error from mntctl.
89911         Use mntctl's return value to drive the entry-processing loop, since
89912         we can't rely on the value of the vmt_length member in the last
89913         entry.  On some systems doing so could result in exhausting
89914         virtual memory.  Based in part on a patch from Mike Jetzer.
89915
89916 2003-04-04  Bruno Haible  <bruno@clisp.org>
89917
89918         * modules/linebreak: New file.
89919         * MODULES.html.sh (func_all_modules): Add it.
89920
89921 2003-04-04  Bruno Haible  <bruno@clisp.org>
89922
89923         * m4/linebreak.m4: New file.
89924
89925 2003-04-04  Bruno Haible  <bruno@clisp.org>
89926
89927         * lib/linebreak.h: New file, from GNU gettext.
89928         * lib/linebreak.c: New file, from GNU gettext with slight
89929         modifications.
89930         * lib/lbrkprop.h: New file, from GNU gettext.
89931
89932 2003-04-03  Bruno Haible  <bruno@clisp.org>
89933
89934         * modules/utf8-ucs4: New file.
89935         * modules/utf16-ucs4: New file.
89936         * modules/ucs4-utf8: New file.
89937         * modules/ucs4-utf16: New file.
89938         * MODULES.html.sh (func_all_modules): Add them.
89939
89940 2003-04-03  Bruno Haible  <bruno@clisp.org>
89941
89942         * m4/utf-ucs4.m4: New file.
89943         * m4/ucs4-utf.m4: New file.
89944
89945 2003-04-03  Bruno Haible  <bruno@clisp.org>
89946
89947         * lib/utf8-ucs4.h: New file, from GNU gettext.
89948         * lib/utf16-ucs4.h: New file, from GNU gettext.
89949         * lib/ucs4-utf8.h: New file, from GNU gettext.
89950         * lib/ucs4-utf16.h: New file, from GNU gettext.
89951
89952 2003-04-02  Bruno Haible  <bruno@clisp.org>
89953
89954         * modules/binary-io: New file.
89955         * MODULES.html.sh (func_all_modules): Add it.
89956
89957 2003-04-02  Bruno Haible  <bruno@clisp.org>
89958
89959         * lib/binary-io.h: New file, from GNU gettext.
89960
89961 2003-04-01  Bruno Haible  <bruno@clisp.org>
89962
89963         * modules/pathname: New file.
89964         * MODULES.html.sh (func_all_modules): Add it.
89965
89966 2003-04-01  Bruno Haible  <bruno@clisp.org>
89967
89968         * lib/pathname.h: New file, from GNU gettext.
89969         * lib/concatpath.c: New file, from GNU gettext.
89970
89971 2003-03-30  Bruno Haible  <bruno@clisp.org>
89972
89973         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89974
89975 2003-03-30  Bruno Haible  <bruno@clisp.org>
89976
89977         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89978         function chown() doesn't exist.
89979
89980 2003-03-28  Bruno Haible  <bruno@clisp.org>
89981
89982         * modules/copy-file: New file.
89983         * MODULES.html.sh (func_all_modules): Add it.
89984
89985 2003-03-28  Bruno Haible  <bruno@clisp.org>
89986
89987         * m4/copy-file.m4: New file.
89988
89989 2003-03-28  Bruno Haible  <bruno@clisp.org>
89990
89991         * lib/copy-file.h: New file, from GNU gettext.
89992         * lib/copy-file.c: New file, from GNU gettext.
89993
89994 2003-03-18  Jim Meyering  <jim@meyering.net>
89995
89996         * lib/quote.c (quote_n): Fix typo in comment.
89997
89998 2003-03-18  Bruno Haible  <bruno@clisp.org>
89999
90000         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90001         checking.
90002         * m4/onceonly_2_57.m4: Likewise.
90003
90004 2003-03-17  Bruno Haible  <bruno@clisp.org>
90005
90006         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90007         (m4_quote): Remove macro.
90008         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90009
90010 2003-03-14  Jim Meyering  <jim@meyering.net>
90011
90012         Merge changes from Coreutils.
90013         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90014         to be const, in order to avoid warnings.
90015         (obstack_room): Likewise.
90016         (obstack_empty_p): Likewise.
90017
90018 2003-03-14  Bruno Haible  <bruno@clisp.org>
90019
90020         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90021         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90022
90023 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90024
90025         Merge changes from Bison.
90026         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90027         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90028         when compiling Bison 1.875's `bitset bset = obstack_alloc
90029         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90030         * lib/hash.c: Include <stdbool.h> unconditionally.
90031
90032 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90033
90034         * m4/onceonly.m4 (m4_quote): New macro.
90035         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90036         Quote AC_FOREACH variable-expansions properly.
90037
90038 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90039
90040         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90041
90042 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90043
90044         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90045         Reported by Bruce Becker; see:
90046         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90047
90048 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90049             Bruno Haible  <bruno@clisp.org>
90050
90051         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90052         Reported by John Hughes, see
90053         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90054
90055 2003-02-20  Bruno Haible  <bruno@clisp.org>
90056
90057         * MODULES.html.sh (func_all_modules): Add poll.
90058
90059 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90060
90061         * modules/poll: New file.
90062
90063 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90064
90065         * lib/poll_.h: New file.
90066         * lib/poll.c: New file.
90067
90068 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90069
90070         * m4/poll.m4: New file.
90071
90072 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90073
90074         * modules/mathl: New file.
90075
90076 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90077
90078         * lib/mathl.h: New file.
90079         * lib/acosl.c: New file.
90080         * lib/asinl.c: New file.
90081         * lib/atanl.c: New file.
90082         * lib/ceill.c: New file.
90083         * lib/cosl.c: New file.
90084         * lib/expl.c: New file.
90085         * lib/floorl.c: New file.
90086         * lib/frexpl.c: New file.
90087         * lib/ldexpl.c: New file.
90088         * lib/logl.c: New file.
90089         * lib/sincosl.c: New file.
90090         * lib/sinl.c: New file.
90091         * lib/sqrtl.c: New file.
90092         * lib/tanl.c: New file.
90093         * lib/trigl.c: New file.
90094         * lib/trigl.h: New file.
90095
90096 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90097
90098         * m4/mathl.m4: New file.
90099
90100 2003-02-18  Bruno Haible  <bruno@clisp.org>
90101
90102         * MODULES.html.sh (func_all_modules): Add mathl.
90103
90104 2003-02-17  Bruno Haible  <bruno@clisp.org>
90105
90106         * modules/mkdtemp: New module.
90107         * MODULES.html.sh (func_all_modules): Add it.
90108
90109 2003-02-17  Bruno Haible  <bruno@clisp.org>
90110
90111         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90112
90113 2003-02-17  Bruno Haible  <bruno@clisp.org>
90114
90115         * lib/mkdtemp.h: New file, from GNU gettext.
90116         * lib/mkdtemp.c: New file, from GNU gettext.
90117
90118 2003-02-02  Jim Meyering  <jim@meyering.net>
90119
90120         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90121         e.g. glibc-2.2.93.
90122
90123 2003-01-31  Bruno Haible  <bruno@clisp.org>
90124
90125         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90126         'rpl_rename'.
90127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90128         'rpl_strnlen'.
90129         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90130         'rpl_strtod'.
90131         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90132         'rpl_utime'.
90133
90134 2003-01-31  Bruno Haible  <bruno@clisp.org>
90135
90136         * lib/rename.c: #undef rename before defining rpl_rename.
90137         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90138
90139 2003-01-30  Bruno Haible  <bruno@clisp.org>
90140
90141         * modules/vasnprintf, modules/vasprintf: New modules.
90142         * MODULES.html.sh (func_all_modules): Add them.
90143
90144 2003-01-30  Bruno Haible  <bruno@clisp.org>
90145
90146         * m4/signed.m4: New file, from GNU gettext.
90147         * m4/longdouble.m4: New file, from GNU gettext.
90148         * m4/wchar_t.m4: New file, from GNU gettext.
90149         * m4/wint_t.m4: New file, from GNU gettext.
90150         * m4/vasnprintf.m4: New file.
90151         * m4/vasprintf.m4: New file.
90152
90153 2003-01-30  Bruno Haible  <bruno@clisp.org>
90154
90155         * lib/printf-args.h: New file, from GNU gettext.
90156         * lib/printf-args.c: New file, from GNU gettext.
90157         * lib/printf-parse.h: New file, from GNU gettext.
90158         * lib/printf-parse.c: New file, from GNU gettext.
90159         * lib/vasnprintf.h: New file, from GNU gettext.
90160         * lib/vasnprintf.c: New file, from GNU gettext.
90161         * lib/asnprintf.c: New file, from GNU gettext.
90162         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90163         * lib/vasprintf.c: New file, from GNU gettext.
90164         * lib/asprintf.c: New file, from GNU gettext.
90165
90166 2003-01-29  Bruno Haible  <bruno@clisp.org>
90167
90168         * modules/stpncpy: New module.
90169         * MODULES.html.sh (func_all_modules): Add it.
90170
90171 2003-01-29  Bruno Haible  <bruno@clisp.org>
90172
90173         * m4/stpncpy.m4: New file.
90174
90175 2003-01-29  Bruno Haible  <bruno@clisp.org>
90176
90177         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90178         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90179
90180 2003-01-28  Bruno Haible  <bruno@clisp.org>
90181
90182         * modules/c-ctype: New module.
90183         * MODULES.html.sh (func_all_modules): Add it.
90184
90185 2003-01-28  Bruno Haible  <bruno@clisp.org>
90186
90187         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90188         Paul Eggert.
90189         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90190         Paul Eggert.
90191
90192 2003-01-27  Bruno Haible  <bruno@clisp.org>
90193
90194         * modules/xsetenv: New module.
90195         * MODULES.html.sh (func_all_modules): Add it.
90196
90197 2003-01-27  Bruno Haible  <bruno@clisp.org>
90198
90199         * lib/xsetenv.h: New file, from GNU gettext.
90200         * lib/xsetenv.c: New file, from GNU gettext.
90201
90202 2003-01-23  Jim Meyering  <jim@meyering.net>
90203
90204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90205         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90206
90207 2003-01-23  Bruno Haible  <bruno@clisp.org>
90208
90209         * modules/minmax: New module.
90210         * MODULES.html.sh (func_all_modules): Add it.
90211
90212 2003-01-23  Bruno Haible  <bruno@clisp.org>
90213
90214         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90215         Eggert.
90216
90217 2003-01-22  Bruno Haible  <bruno@clisp.org>
90218
90219         * modules/exit: New module.
90220         * MODULES.html.sh (func_all_modules): Add it.
90221
90222 2003-01-22  Bruno Haible  <bruno@clisp.org>
90223
90224         * lib/exit.h: New file, from GNU gettext.
90225
90226 2003-01-19  Bruno Haible  <bruno@clisp.org>
90227
90228         * gnulib-tool: Recognize option --extract-maintainer.
90229         (func_get_maintainer): New function.
90230         * modules/*: Add Maintainer entry.
90231
90232 2003-01-16  Jim Meyering  <jim@meyering.net>
90233
90234         * m4/regex.m4: The `regex' struct is both input and output.
90235         Initialize it before each use.  Patch by Tim Waugh.
90236
90237 2003-01-16  Bruno Haible  <bruno@clisp.org>
90238
90239         * MODULES.html.sh: Add a table of contents. Add the module name as
90240         leftmost column. Add hyperlinks.
90241
90242 2003-01-15  Bruno Haible  <bruno@clisp.org>
90243
90244         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90245
90246 2003-01-15  Bruno Haible  <bruno@clisp.org>
90247
90248         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90249         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90250         suffix.
90251
90252 2003-01-15  Bruno Haible  <bruno@clisp.org>
90253
90254         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90255
90256 2003-01-15  Bruno Haible  <bruno@clisp.org>
90257
90258         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90259         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90260
90261 2003-01-14  Jim Meyering  <jim@meyering.net>
90262
90263         * lib/same.c (same_name): Tweak a comment.
90264
90265 2003-01-14  Bruno Haible  <bruno@clisp.org>
90266
90267         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90268         when a string comparison is sufficient.
90269
90270 2003-01-14  Bruno Haible  <bruno@clisp.org>
90271
90272         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90273         'unsigned int'.
90274
90275 2003-01-14  Bruno Haible  <bruno@clisp.org>
90276
90277         * lib/hash-pjw.c: Add comment about low quality of this function.
90278
90279 2003-01-13  Bruno Haible  <bruno@clisp.org>
90280
90281         * modules/stpcpy: Distribute lib/stpcpy.h.
90282         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90283
90284 2003-01-13  Bruno Haible  <bruno@clisp.org>
90285
90286         * modules/*: Add a description.
90287         * modules/strpbrk: Fix Makefile.am snippet.
90288         * modules/strtoimax: Fix dependencies.
90289         * modules/strtoumax: Likewise.
90290
90291 2003-01-13  Bruno Haible  <bruno@clisp.org>
90292
90293         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90294         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90295         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90296
90297 2003-01-13  Bruno Haible  <bruno@clisp.org>
90298
90299         * gnulib-tool (func_create_testdir): Store config/* files in the main
90300         directory.
90301         * config.rpath: Move to ...
90302         * config/config.rpath: ... here.
90303         * modules/gettext: Contains config/config.rpath, not config.rpath.
90304         * modules/iconv: Likewise.
90305
90306 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90307
90308         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90309         to avoid collisions with libcurses and libreadline.
90310
90311         * m4/getstr.m4: Remove.
90312         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90313
90314 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90315
90316         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90317         to avoid collisions with libcurses and libreadline.
90318
90319         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90320         * lib/getstr.h, getstr.c: Remove.
90321         * lib/getline.c: Include "getline.h", to check interface.
90322         Move body of old getstr.c here: this defines MIN_CHUNK and
90323         declares getdelim2, which is renamed from getstr.
90324         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90325
90326         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90327         All uses changed.
90328         * lib/linebuffer.h: Likewise.
90329         (readline): Remove backward-compatibility macro.
90330
90331 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90332
90333         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90334         to avoid collisions with libcurses and libreadline.
90335         * getstr: Remove.
90336         * MODULES.html.sh: Remove getstr.
90337         * modules/getline: Depend on unlocked-io, not getstr.
90338
90339 2003-01-12  Jim Meyering  <jim@meyering.net>
90340
90341         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90342
90343 2003-01-10  Bruno Haible  <bruno@clisp.org>
90344
90345         * modules/alloca: Change Makefile.am requirements. Simplify Include
90346         requirements. Add lib/alloca_.h to file list.
90347
90348 2003-01-10  Bruno Haible  <bruno@clisp.org>
90349
90350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90351
90352 2003-01-10  Bruno Haible  <bruno@clisp.org>
90353
90354         * lib/alloca_.h: New file.
90355         * lib/getdate.y: Unconditionally include alloca.h.
90356         * lib/makepath.c: Likewise.
90357         * lib/setenv.c: Likewise.
90358         * lib/userspec.c: Likewise.
90359
90360 2003-01-09  Karl Berry  <karl@gnu.org>
90361
90362         * MODULES.html.sh: include `dirname $0` in PATH, to find
90363         gnulib-tool.
90364
90365 2003-01-09  Bruno Haible  <bruno@clisp.org>
90366
90367         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90368         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90369
90370 2003-01-09  Bruno Haible  <bruno@clisp.org>
90371
90372         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90373
90374 2003-01-09  Bruno Haible  <bruno@clisp.org>
90375
90376         * lib/stdbool.h.in: New file.
90377
90378 2003-01-09  Bruno Haible  <bruno@clisp.org>
90379
90380         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90381         * MODULES.html.sh: Likewise.
90382
90383 2003-01-08  Jim Meyering  <jim@meyering.net>
90384
90385         * lib/full-write.c: Undefine and define-away `const' after inclusion
90386         of errno.h, not before.  Suggestion from Bruno Haible.
90387
90388 2003-01-08  Bruno Haible  <bruno@clisp.org>
90389
90390         * modules/full-read: Depend on full-write.
90391
90392 2003-01-08  Bruno Haible  <bruno@clisp.org>
90393
90394         * lib/safe-read.c: Include specification header first, to ensure its
90395         selfcontainedness.
90396         * lib/full-write.c: Likewise.
90397
90398 2003-01-07  Jim Meyering  <jim@meyering.net>
90399
90400         * lib/full-write.c: Rework so that it may serve to define full_read,
90401         too.
90402         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90403
90404 2003-01-07  Bruno Haible  <bruno@clisp.org>
90405
90406         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90407         <inttypes.h>.
90408         * lib/xstrtol.h: Likewise.
90409         * lib/xstrtoimax.c: Likewise.
90410         * lib/xstrtoumax.c: Likewise.
90411         * lib/human.h: Likewise.
90412
90413         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90414         on systems that have <inttypes.h> but not <stdint.h>.
90415
90416 2003-01-07  Bruno Haible  <bruno@clisp.org>
90417
90418         * MODULES.html.sh: Add copyright notice.
90419         (missed_files): Omit CVS directory entries.
90420         (func_module): Make it work with sed-3.02.
90421         * MODULES.txt: Remove file.
90422
90423 2003-01-06  Jim Meyering  <jim@meyering.net>
90424
90425         * lib/version-etc.c: Update year in translatable copyright string.
90426
90427 2003-01-03  Karl Berry  <karl@gnu.org>
90428
90429         * config/config.{guess,sub}: update from prep.
90430
90431 2003-01-02  Karl Berry  <karl@gnu.org>
90432
90433         * doc/COPYING.DOC: belatedly updated to 1.2.
90434
90435 2003-01-01  Karl Berry  <karl@gnu.org>
90436
90437         * gnulib-tool (func_verify_module): report module name $module in
90438         error message, not $1.
90439         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90440         be created, only if it doesn't exist.
90441         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90442
90443 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90444
90445         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90446
90447 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90448
90449         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90450         memcmp if strcoll doesn't work.
90451
90452 2002-12-31  Bruno Haible  <bruno@clisp.org>
90453
90454         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90455         nonempty.
90456
90457 2002-12-31  Bruno Haible  <bruno@clisp.org>
90458
90459         * lib/memcoll.c (STRCOLL): New macro.
90460         (memcoll): Use it.
90461
90462 2002-12-31  Bruno Haible  <bruno@clisp.org>
90463
90464         * lib/localcharset.h: New file.
90465         * lib/localcharset.c: Include it.
90466         * lib/unicodeio.c: Likewise.
90467
90468 2002-12-31  Bruno Haible  <bruno@clisp.org>
90469
90470         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90471         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90472
90473 2002-12-31  Bruno Haible  <bruno@clisp.org>
90474
90475         * lib/getline.h: Include <stddef.h>, for size_t.
90476
90477         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90478         * lib/unicodeio.c: Don't include <stddef.h>.
90479
90480 2002-12-31  Bruno Haible  <bruno@clisp.org>
90481
90482         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90483         HAVE_TM_ZONE.
90484
90485 2002-12-24  Karl Berry  <karl@gnu.org>
90486
90487         * config/config.guess: update from prep.
90488
90489 2002-12-24  Bruno Haible  <bruno@clisp.org>
90490
90491         General infrasructure.
90492         * m4/README: Rewritten.
90493         * m4/onceonly.m4: New file.
90494         * m4/onceonly_2_57.m4: New file.
90495
90496         Module atexit.
90497         * m4/atexit.m4: New file.
90498
90499         Module strtod.
90500         * m4/strtod.m4: New file.
90501
90502         Module strtol.
90503         * m4/strtol.m4: New file.
90504
90505         Module strtoul.
90506         * m4/strtoul.m4: New file.
90507
90508         Module memchr.
90509         * m4/memchr.m4: New file.
90510
90511         Module memcmp.
90512         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90513         (jm_FUNC_MEMCMP): Invoke it.
90514
90515         Module memcpy.
90516         * m4/memcpy.m4: New file.
90517
90518         Module memmove.
90519         * m4/memmove.m4: New file.
90520
90521         Module memset.
90522         * m4/memset.m4: New file.
90523
90524         Module strcspn.
90525         * m4/strcspn.m4: New file.
90526
90527         Module strpbrk.
90528         * m4/strpbrk.m4: New file.
90529
90530         Module strstr.
90531         * m4/strstr.m4: New file.
90532
90533         Module strerror.
90534         * m4/strerror.m4: New file.
90535
90536         Module mktime.
90537         * m4/mktime.m4: Renamed from jm-mktime.m4.
90538         (gl_PREREQ_MKTIME): New macro.
90539         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90540
90541         Module malloc.
90542         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90543         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90544         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90545
90546         Module realloc.
90547         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90548         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90549         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90550
90551         Module strftime.
90552         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90553         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90554         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90555         gl_TM_GMTOFF.
90556         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90557
90558         Module xalloc.
90559         * m4/xalloc.m4: New file.
90560
90561         Module alloca.
90562         * m4/alloca.m4: New file.
90563
90564         Module putenv.
90565         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90566         (jm_FUNC_PUTENV): Invoke it.
90567
90568         Module setenv.
90569         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90570         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90571         when invoked twice.
90572         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90573         gt_FUNC_SETENV.
90574
90575         Module memrchr.
90576         * m4/memrchr.m4: New file.
90577
90578         Module stpcpy.
90579         * m4/stpcpy.m4: New file.
90580
90581         Module strcase.
90582         * m4/strcase.m4: New file.
90583
90584         Module strdup.
90585         * m4/strdup.m4: New file.
90586
90587         Module strnlen.
90588         * m4/strnlen.m4: New file.
90589
90590         Module strndup.
90591         * m4/strndup.m4: New file.
90592
90593         Module xstrtod.
90594         * m4/xstrtod.m4: New file.
90595
90596         Module xstrtol.
90597         * m4/xstrtol.m4: New file.
90598
90599         Module getdate.
90600         * m4/getdate.m4: New file.
90601
90602         Module unlocked-io.
90603         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90604         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90605         * m4/jm-glibc-io.m4n: Remove file.
90606
90607         Module long-options.
90608         * m4/long-options.m4: New file.
90609
90610         Module md5.
90611         * m4/md5.m4: New file.
90612
90613         Module sha.
90614         * m4/sha.m4: New file.
90615
90616         Module getstr.
90617         * m4/getstr.m4: New file.
90618
90619         Module getline.
90620         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90621         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90622         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90623         simply getline. Infoke gl_PREREQ_GETLINE.
90624
90625         Module obstack.
90626         * m4/obstack.m4: New file.
90627
90628         Module hash.
90629         * m4/hash.m4: New file.
90630
90631         Module readtokens.
90632         * m4/readtokens.m4: New file.
90633
90634         Module strverscmp.
90635         * m4/strverscmp.m4: New file.
90636
90637         Module stdbool.
90638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90639         OSF/1.
90640
90641         Module strtoll.
90642         * m4/strtoll.m4: New file.
90643
90644         Module strtoull.
90645         * m4/strtoull.m4: New file.
90646
90647         Module strtoimax.
90648         * m4/strtoimax.m4: New file.
90649
90650         Module strtoumax.
90651         * m4/strtoumax.m4: New file.
90652
90653         Module xstrtoimax.
90654         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90655         jm_AC_PREREQ_XSTRTOIMAX.
90656         Moved the strtol prerequisites to strtol.m4.
90657         Moved the strtoll prerequisites to strtoll.m4.
90658         Moved the strtoimax prerequisites to strtoimax.m4.
90659
90660         Module xstrtoumax.
90661         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90662         jm_AC_PREREQ_XSTRTOUMAX.
90663         Moved the strtoul prerequisites to strtoul.m4.
90664         Moved the strtoull prerequisites to strtoull.m4.
90665         Moved the strtoumax prerequisites to strtoumax.m4.
90666
90667         Module chown.
90668         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90669         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90670
90671         Module dup2.
90672         * m4/dup2.m4: New file.
90673
90674         Module ftruncate.
90675         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90676         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90677
90678         Module getgroups.
90679         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90680         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90681
90682         Module gettimeofday.
90683         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90684         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90685         gl_PREREQ_GETTIMEOFDAY.
90686
90687         Module mkdir.
90688         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90689         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90690
90691         Module mkstemp.
90692         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90693         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90694         jm_AC_TYPE_UINTMAX_T.
90695         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90696
90697         Module stat.
90698         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90699         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90700
90701         Module lstat.
90702         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90703         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90704
90705         Module timespec.
90706         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90707         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90708         * m4/st_mtim.m4: Indentation.
90709
90710         Module nanosleep.
90711         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90712         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90713         gl_PREREQ_NANOSLEEP.
90714
90715         Module regex.
90716         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90717         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90718         (gl_REGEX): New macro.
90719
90720         Module rename.
90721         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90722         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90723
90724         Module rmdir.
90725         * m4/rmdir.m4: New file.
90726
90727         Module utime.
90728         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90729         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90730         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90731
90732         Module dirname.
90733         * m4/dirname.m4: New file.
90734
90735         Module getopt.
90736         * m4/getopt.m4: New file.
90737
90738         Module unistd-safer.
90739         * m4/unistd-safer.m4: New file.
90740
90741         Module fnmatch.
90742         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90743         declaration.
90744         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90745         (gl_FUNC_FNMATCH_POSIX): New macro.
90746         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90747         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90748         simply fnmatch.
90749
90750         Module exclude.
90751         * m4/exclude.m4: New file.
90752
90753         Module human.
90754         * m4/human.m4: New file.
90755
90756         Module acl.
90757         * m4/acl.m4: Nop.
90758
90759         Module backupfile.
90760         * m4/backupfile.m4: New file.
90761         * m4/d-ino.m4: Indentation.
90762
90763         Module fsusage.
90764         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90765         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90766         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90767
90768         Module dirfd.
90769         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90770         requirements.
90771
90772         Module euidaccess.
90773         * m4/euidaccess.m4: New file.
90774
90775         Module file-type.
90776         * m4/file-type.m4: New file.
90777
90778         Module fileblocks.
90779         * m4/fileblocks.m4: New file.
90780
90781         Module filemode.
90782         * m4/filemode.m4: New file.
90783
90784         Module isdir.
90785         * m4/isdir.m4: New file.
90786
90787         Module lchown.
90788         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90789         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90790
90791         Module makepath.
90792         * m4/makepath.m4: New file.
90793
90794         Module modechange.
90795         * m4/modechange.m4: New file.
90796
90797         Module mountlist.
90798         * m4/mountlist.m4: New file.
90799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90800         Indentation.
90801
90802         Module path-concat.
90803         * m4/path-concat.m4: New file.
90804
90805         Module pathmax.
90806         * m4/pathmax.m4: New file.
90807
90808         Module same.
90809         * m4/same.m4: New file.
90810
90811         Module save-cwd.
90812         * m4/save-cwd.m4: New file.
90813
90814         Module savedir.
90815         * m4/savedir.m4: New file.
90816
90817         Module xgetcwd.
90818         * m4/xgetcwd.m4: New file.
90819         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90820
90821         Module xreadlink.
90822         * m4/xreadlink.m4: New file.
90823
90824         Module safe-read.
90825         * m4/safe-read.m4: New file.
90826
90827         Module safe-write.
90828         * m4/safe-write.m4: New file.
90829
90830         Module closeout.
90831         * m4/closeout.m4: New file.
90832
90833         Module stdio-safer.
90834         * m4/stdio-safer.m4: New file.
90835
90836         Module getpass.
90837         * m4/getpass.m4: New file.
90838
90839         Module getugroups.
90840         * m4/getugroups.m4: New file.
90841
90842         Module group-member.
90843         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90844         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90845
90846         Module idcache.
90847         * m4/idcache.m4: New file.
90848
90849         Module userspec.
90850         * m4/userspec.m4: New file.
90851
90852         Module gettime.
90853         * m4/clock_time.m4: New file.
90854         * m4/gettime.m4: New file.
90855
90856         Module settime.
90857         * m4/settime.m4: New file.
90858
90859         Module posixtm.
90860         * m4/posixtm.m4: New file.
90861
90862         Module gethostname.
90863         * m4/gethostname.m4: New file.
90864
90865         Module canon-host.
90866         * m4/canon-host.m4: New file.
90867
90868         Module gettext.
90869         * m4/codeset.m4: New file, from gettext-0.11.5.
90870         * m4/gettext.m4: New file, from gettext-0.11.5.
90871         * m4/glibc21.m4: New file, from gettext-0.11.5.
90872         * m4/iconv.m4: New file, from gettext-0.11.5.
90873         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90874         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90875         * m4/inttypes.m4: New file, from gettext-0.11.5.
90876         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90877         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90878         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90879         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90880         * m4/lib-link.m4: New file, from gettext-0.11.5.
90881         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90882         * m4/progtest.m4: New file, from gettext-0.11.5.
90883         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90884         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90885         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90886
90887         Module localcharset.
90888         * m4/localcharset.m4: New file.
90889
90890         Module hard-locale.
90891         * m4/hard-locale.m4: New file.
90892
90893         Module mbswidth.
90894         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90895         onceonly macros.
90896         * m4/mbrtowc.m4: Add comment.
90897
90898         Module memcasecmp.
90899         * m4/memcasecmp.m4: New file.
90900
90901         Module memcoll.
90902         * m4/memcoll.m4: New file.
90903
90904         Module unicodeio.
90905         * m4/unicodeio.m4: New file.
90906
90907         Module rpmatch.
90908         * m4/rpmatch.m4: New file.
90909
90910         Module yesno.
90911         * m4/yesno.m4: New file.
90912
90913         Module exitfail.
90914         * m4/exitfail.m4: New file.
90915
90916         Module c-stack.
90917         * m4/c-stack.m4 (gl_C_STACK): New macro.
90918         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90919
90920         Module error.
90921         * m4/error.m4 (gl_ERROR): New macro.
90922         (jm_PREREQ_ERROR): Use onceonly macros.
90923
90924         Module fatal.
90925         * m4/fatal.m4: New file.
90926
90927         Module getloadavg.
90928         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90929         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90930
90931         Module getpagesize.
90932         * m4/getpagesize.m4: New file.
90933
90934         Module getusershell.
90935         * m4/getusershell.m4: New file.
90936
90937         Module physmem.
90938         * m4/physmem.m4: New file.
90939
90940         Module posixver.
90941         * m4/posixver.m4: New file.
90942
90943         Module quotearg.
90944         * m4/quotearg.m4: New file.
90945
90946         Module quote.
90947         * m4/quote.m4: New file.
90948
90949         Module readutmp.
90950         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90951
90952         Module sig2str.
90953         * m4/sig2str.m4: New file.
90954
90955         Other.
90956         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90957         ulonglong.m4.
90958         * m4/intmax_t.m4: New file.
90959         * m4/d-type.m4: Indentation.
90960         * m4/jm-macros.m4: Update.
90961         * m4/prereq.m4 (jm_PREREQ): Update.
90962         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90963         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90964         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90965         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90966         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90967         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90968         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90969         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90970         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90971         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90972         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90973         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90974         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90975         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90976         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90977         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90978         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90979         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90980         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90981
90982 2002-12-24  Bruno Haible  <bruno@clisp.org>
90983
90984         * MODULES.txt: Update according to m4/ changes.
90985
90986         Module gettext.
90987         * config.rpath: New file, from gettext-0.11.5.
90988
90989         * modules/*: New module descriptions.
90990         * gnulib-tool: New file.
90991         * MODULES.html.sh: New file.
90992
90993 2002-12-21  Karl Berry  <karl@gnu.org>
90994
90995         * doc/fdl.texi: update to version 1.2.
90996
90997 2002-12-19  Karl Berry  <karl@gnu.org>
90998
90999         * config/config.guess: update from prep.
91000
91001 2002-12-18  Bruno Haible  <bruno@clisp.org>
91002
91003         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91004         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91005
91006 2002-12-17  Bruno Haible  <bruno@clisp.org>
91007
91008         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91009         stdlib.h, string.h.
91010
91011 2002-12-17  Bruno Haible  <bruno@clisp.org>
91012
91013         * lib/canon-host.c (strdup): Remove unused declaration.
91014
91015         * lib/fsusage.c: Include full_read.h.
91016         (get_fs_usage): Use full_read instead of safe_read.
91017
91018         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91019
91020 2002-12-12  Karl Berry  <karl@gnu.org>
91021
91022         * config/config.guess: update from prep.
91023
91024 2002-12-11  Bruno Haible  <bruno@clisp.org>
91025
91026         * m4/setenv.m4: New file, from gettext-0.11.5.
91027
91028 2002-12-11  Bruno Haible  <bruno@clisp.org>
91029
91030         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91031         not unsetenv().
91032         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91033         modifications:
91034
91035         2002-12-11  Bruno Haible  <bruno@clisp.org>
91036
91037                 * setenv.c (alloca): Fall back to malloc.
91038                 (freea): New macro.
91039                 (setenv): Use freea() to free memory allocated with alloca().
91040
91041         2002-11-13  Bruno Haible  <bruno@clisp.org>
91042
91043                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91044                 function declarations.
91045                 * unsetenv.c (unsetenv): Likewise.
91046
91047         2002-03-04  Bruno Haible  <bruno@clisp.org>
91048
91049                 Portability to AIX 4.3.3.
91050                 * unsetenv.c: New file, extracted from setenv.c.
91051                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91052
91053         2001-12-20  Bruno Haible  <bruno@clisp.org>
91054
91055                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91056                 use malloc instead. For SunOS 4.
91057
91058         2001-12-11  Bruno Haible  <bruno@clisp.org>
91059
91060                 * setenv.c: Declare alloca.
91061                 (compar_fn_t): New typedef.
91062                 (KNOWN_VALUE, STORE_VALUE): Use it.
91063
91064         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91065         setenv.h.
91066
91067 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91068
91069         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91070         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91071         Choose values that are less likely to collide with system fnmatch
91072         options.
91073         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91074         defined (e.g., a pure POSIX system).
91075         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91076         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91077
91078 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91079
91080         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91081         a pain in practice to deal with generated m4 files.  This change
91082         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91083
91084         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91085         and jm-glibc-io.m4, as they are no longer a special case.
91086         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91087         kludge and the auto-generation stuff.  Check only whether the
91088         functions are declared, not whether they exist, since older hosts
91089         that don't declare the functions can't use the optimization anyway.
91090
91091 2002-12-06  Jim Meyering  <jim@meyering.net>
91092
91093         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91094
91095         Merge in changes from libc's misc/error.c, in preparation
91096         for the merge of gnulib's changes back into libc.
91097
91098         * lib/error.c (_): Define only if not already defined.
91099         Move definition to follow all #include directives.
91100         Include unlocked-io.h only if !_LIBC.
91101         [_LIBC]: Include <libio/libioP.h>.
91102         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91103         (fflush): Tweak definition to use INTUSE.
91104         (putc): Define.
91105
91106 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91107
91108         * lib/alloca.c [defined emacs]: Include "lisp.h".
91109         (xalloc_die) [defined emacs]: New macro.
91110         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91111         [! defined emacs]: Include <xalloc.h>.
91112         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91113         (pointer): Typedef to POINTER_TYPE *.
91114         (malloc): Remove decl; we now always use xmalloc.
91115         (alloca): Use old-style definition, since Emacs needs this.
91116         Check for arithmetic overflow when computing combined size.
91117
91118 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91119
91120         Do not generate unlocked-io.h automatically, since it's easier to
91121         maintain it by hand.
91122
91123         * lib/unlocked-io.h: New file, from GNU diffutils,
91124         but with proper copyright notice and attribution.
91125         * lib/gen-uio: Remove.
91126         * lib/Makefile.am: Add copyright notice.
91127         (libfetish_a_SOURCES): Add unlocked-io.h.
91128         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91129         (DISTCLEANFILES, io_functions): Remove macros.
91130         (EXTRA_DIST): Remove gen_uio.
91131         (unlocked-io.h): Remove rule.
91132
91133 2002-12-04  Jim Meyering  <jim@meyering.net>
91134
91135         Reflect the fact that stat.c and lstat.c are no longer generated.
91136         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91137         (DISTCLEANFILES): Likewise.
91138         (EXTRA_DIST): Likewise.
91139         (all_local): Don't depend on stat.c or lstat.c.
91140         (stat.c, lstat.c): Remove rules.
91141         (EXTRA_DIST): Remove xstat.in.
91142
91143         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91144         * lib/stat.c: New file.  Contents mostly from xstat.in.
91145         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91146         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91147
91148         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91149         too.
91150         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91151
91152 2002-12-03  Jim Meyering  <jim@meyering.net>
91153
91154         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91155         but not semantics, to minimize the differences between these two files.
91156         (safe_read): Change comment to mention SAFE_READ_ERROR.
91157
91158         * lib/safe-read.c (IS_EINTR): Define.
91159         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91160
91161 2002-12-02  Jim Meyering  <jim@meyering.net>
91162
91163         * lib/safe-read.c (EINTR): Define.
91164         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91165         (INT_MAX): Provide fallback.
91166         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91167
91168         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91169
91170 2002-12-02  Bruno Haible  <bruno@clisp.org>
91171
91172         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91173         Define, taken from safe-read.c.
91174         (INT_MAX): Provide fallback.
91175         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91176         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91177
91178         * lib/safe-read.c (EINTR): Remove definition.
91179         (safe_read): Don't use EINTR if it is absent.
91180
91181 2002-12-01  Jim Meyering  <jim@meyering.net>
91182
91183         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91184         zero.
91185         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91186
91187 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91188
91189         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91190         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91191         with `if (! (value < limit)) abort ();', for readability.
91192
91193 2002-11-26  Karl Berry  <karl@gnu.org>
91194
91195         * lib/strdup.c: copy from libc again, with jim's ok.
91196         * lib/.cppi-disable: re-add strdup.c
91197
91198 2002-11-25  Karl Berry  <karl@gnu.org>
91199
91200         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91201         instead of "strtol.c".
91202
91203 2002-11-25  Karl Berry  <karl@gnu.org>
91204
91205         * config/install-sh: update from automake for variable quoting, $0 in
91206         error msgs, etc.
91207
91208         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91209         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91210         entry.
91211
91212 2002-11-25  Jim Meyering  <jim@meyering.net>
91213
91214         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91215
91216 2002-11-24  Karl Berry  <karl@gnu.org>
91217
91218         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91219         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91220
91221 2002-11-24  Jim Meyering  <jim@meyering.net>
91222
91223         Update from coreutils:
91224
91225         * lib/mktime.c: Merge in changes from libc.
91226
91227         Avoid a link-time failure on some Linux systems.
91228         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91229         (otherwise).
91230         (__mon_yday): Declare with the STATIC attribute.
91231         (__mktime_internal): Likewise.
91232         Based on a report from Greg Schafer.
91233
91234 2002-11-23  Jim Meyering  <jim@meyering.net>
91235
91236         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91237         Use `unsigned', not `int', as type of index.
91238
91239         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91240
91241         * lib/fsusage.c: Remove unneeded parentheses around operands of
91242         `defined'.
91243
91244 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91245
91246         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91247         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91248         so that we can be included first.
91249         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91250         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91251         No need to include stddef.h or sys/types.h any more.
91252         Surround local include files with "", not "<>".
91253         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91254         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91255         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91256         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91257         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91258         (ISPRINT): Remove; no longer needed now that we assume C89.
91259
91260         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91261         Preserve errno.
91262
91263         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91264         quotearg_char): Use SIZE_MAX rather than
91265         (size_t) -1 when we are talking about "infinity".
91266
91267         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91268
91269 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91270
91271         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91272         hint that one should use `if (! x) abort ();' rather than `assert
91273         (x);', and anyway it's one less thing to worry about configuring.
91274         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91275         hash_rehash, hash_insert): Use abort rather than assert.
91276
91277 2002-11-22  Bruno Haible  <bruno@clisp.org>
91278
91279         * lib/safe-read.h: Assume C89. Add comments.
91280         (safe_read): Change return type to size_t.
91281         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91282         byte counts > SSIZE_MAX correctly.
91283         * lib/safe-write.h: New file.
91284         * lib/safe-write.c: New file.
91285         * lib/full-read.h: New file.
91286         * lib/full-read.c: New file.
91287         * lib/full-write.h: Assume C89. Add comments.
91288         * lib/full-write.c: Include safe-write.h.
91289         (full_write): Rewritten to use safe_write.
91290         Suggested by Jim Meyering and Paul Eggert.
91291
91292 2002-11-21  Jim Meyering  <jim@meyering.net>
91293
91294         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91295
91296         Merge in changes from the coreutils.
91297
91298         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91299         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91300         <stdint.h>.
91301         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91302         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91303         int.  Work more efficiently if X is the same width as uintmax_t.
91304         Do not compare X to -1, to avoid bogus compiler warning.
91305         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91306         Don't assume that f_frsize and f_bsize are the same type.
91307
91308         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91309         warning on FreeBSD.
91310
91311         * lib/makepath.c (make_path): Restore umask *before* creating the final
91312         component.
91313         (make_path): Minor reformatting.
91314
91315         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91316         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91317         HAVE_MALLOC/HAVE_REALLOC.
91318
91319         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91320         dummy ones.  At least on GNU/Linux systems, `auto' means something
91321         else.
91322         From Michael Stone.
91323
91324 2002-11-21  Bruno Haible  <bruno@clisp.org>
91325
91326         Remove case insensitive option matching.
91327         * lib/argmatch.h (argcasematch): Remove declaration.
91328         (ARGCASEMATCH): Remove macro.
91329         (__xargmatch_internal): Remove case_sensitive argument.
91330         (XARGMATCH): Update.
91331         (XARGCASEMATCH): Remove macro.
91332         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91333         case_sensitive argument.
91334         (argcasematch): Remove function.
91335         (__xargmatch_internal): Remove case_sensitive argument.
91336         (main): Use XARGMATCH instead of XARGCASEMATCH.
91337
91338         * lib/xmalloc.c: Change compile-time error message. Add comment about
91339         required autoconf version.
91340
91341 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91342
91343         Merge argmatch cleanups from Bison.  Assume C89.
91344
91345         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91346         Include stdlib.h, for EXIT_FAILURE.
91347         Always include <string.h>, since we assume C89.
91348         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91349         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91350         Include <stddef.h> instead, since it's all we need for size_t.
91351         (PARAMS): Remove.  All uses removed.
91352         (ARRAY_CARDINALITY): Do not bother to #undef.
91353         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91354         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91355         Remove unnecessary parentheses.
91356         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91357         Insert necessary parentheses.
91358         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91359         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91360
91361 2002-11-19  Bruno Haible  <bruno@clisp.org>
91362
91363         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91364         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91365
91366         * lib/mbswidth.h (PARAMS): Remove macro.
91367         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91368         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91369
91370         * lib/gcd.h (PARAMS): Remove macro.
91371         (gcd): Use ANSI C function declarations.
91372         * lib/gcd.c (gcd): Likewise.
91373
91374 2002-11-15  Bruno Haible  <bruno@clisp.org>
91375
91376         * lib/strcspn.c: Include <stddef.h>.
91377         (strcspn): Use ANSI C function declaration. Change return type to
91378         size_t. Use NULL.
91379         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91380         (strpbrk): Use NULL.
91381         * lib/strpbrk.h (PARAMS): Remove macro.
91382         (strpbrk): Use ANSI C function declaration.
91383         * lib/strstr.c: Don't include <sys/types.h>.
91384         * lib/strstr.h (PARAMS): Remove macro.
91385         (strstr): Use ANSI C function declarations.
91386
91387 2002-11-14  Karl Berry  <karl@gnu.org>
91388
91389         * config/mkinstalldirs: `do' on separate line, instead of
91390         `for var; do'.
91391
91392 2002-11-06  Bruno Haible  <bruno@clisp.org>
91393
91394         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91395         * lib/gcd.c (gcd): Likewise.
91396
91397 2002-11-05  Bruno Haible  <bruno@clisp.org>
91398
91399         * lib/gcd.h: New file, from gettext-0.11.5.
91400         * lib/gcd.c: New file, from gettext-0.11.5.
91401
91402 2002-11-05  Bruno Haible  <bruno@clisp.org>
91403
91404         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91405         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91406         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91407         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91408
91409         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91410         <libintl.h>.
91411         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91412         <libintl.h>.
91413
91414         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91415         * lib/human.c: Include gettext.h instead of <libintl.h>.
91416         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91417         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91418         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91419         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91420         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91421         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91422         (textdomain): Remove definition.
91423         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91424
91425         * lib/long-options.c: Remove include of <libintl.h> and definition of
91426         _.
91427         * lib/same.c: Remove include of <libintl.h> and definition of _.
91428
91429 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91430
91431         * lib/config.charset: A few additions for Solaris.
91432
91433 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91434
91435         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91436         * lib/localcharset.c (locale_charset): Declare as extern "C".
91437
91438 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91439
91440         * lib/config.charset: msdos in uk_UA uses CP1125.
91441
91442 2002-11-04  Bruno Haible  <bruno@clisp.org>
91443
91444         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91445         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91446         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91447         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91448         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91449
91450 2002-11-04  Bruno Haible  <bruno@clisp.org>
91451
91452         * lib/localcharset.c (locale_charset): Don't return an empty string.
91453
91454 2002-11-04  Bruno Haible  <bruno@clisp.org>
91455
91456         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91457         aliases.
91458
91459 2002-11-04  Bruno Haible  <bruno@clisp.org>
91460
91461         * lib/config.charset: Update for newest glibc. Add canonical names
91462         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91463
91464 2002-11-04  Bruno Haible  <bruno@clisp.org>
91465
91466         * lib/config.charset: Add support for NetBSD.
91467
91468 2002-11-04  Bruno Haible  <bruno@clisp.org>
91469
91470         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91471
91472 2002-11-01  Bruno Haible  <bruno@clisp.org>
91473
91474         * configure.in: Add AC_CONFIG_AUX_DIR call.
91475         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91476         test/Makefile.
91477         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91478
91479 2002-09-28  Karl Berry  <karl@gnu.org>
91480
91481         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91482         installed automake until the next release, since changes have been
91483         made.
91484
91485 2002-09-25  Karl Berry  <karl@gnu.org>
91486
91487         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91488         * lib/getopt*: copy from libc/posix.
91489         * lib/gettext.h: copy from gettext.
91490         * lib/.cppi-disable: add strdup.c, gettext.h.
91491
91492 2002-09-25  Karl Berry  <karl@gnu.org>
91493
91494         * config/srclist.txt: enable gettext.h check.
91495         * config/config.{guess,sub}: update from prep.
91496         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91497                 from automake 1.6.3.
91498         See srclist*.
91499
91500 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91501
91502         * regex.c (PATFETCH): Remove the translating fetch.
91503         (PATFETCH_RAW): Rename to PATFETCH.
91504         (set_image_of_range): New fun.
91505         (SET_RANGE_TABLE_WORK_AREA): Use it.
91506         (regex_compile): Don't translate the pattern chars so eagerly.
91507         Only do it when inserting an `exactn' bytecode or when handling
91508         a char-range.
91509         (mutually_exclusive_p): Avoid empty statement.
91510
91511 2002-07-06  Jim Meyering  <meyering@lucent.com>
91512
91513         * m4/README: Don't mention Makefile.am.in.
91514         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91515
91516 2002-07-01  Jim Meyering  <meyering@lucent.com>
91517
91518         * lib/c-stack.c: Include sys/time.h.
91519         From Volker Borchert.
91520
91521 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91522
91523         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91524
91525 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91526
91527         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91528         New macro.  Use it uniformly instead of
91529         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91530         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91531         reported by Vin Shelton.
91532
91533 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91534
91535         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91536         Do not assume SA_SIGINFO behavior.
91537         Bug reported by Jim Meyering on NetBSD 1.5.2.
91538
91539 2002-06-22  Jim Meyering  <meyering@lucent.com>
91540
91541         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91543
91544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91545         now that configure.ac uses AC_GNU_SOURCE.
91546         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91547         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91548
91549         Update to latest tools.  Suggestions from Paul Eggert.
91550         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91551         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91552         * m4/fnmatch.m4: Likewise.
91553         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91554         to AC_HEADER_STDBOOL
91555
91556 2002-06-22  Jim Meyering  <meyering@lucent.com>
91557
91558         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91559         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91560
91561 2002-06-22  Jim Meyering  <meyering@lucent.com>
91562
91563         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91564
91565         * lib/exitfail.c, exitfail.h: Likewise.
91566         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91567
91568         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91569         of fnmatch.h.
91570         (EXTRA_DIST): Add fnmatch_loop.c.
91571         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91572
91573         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91574         * lib/fnmatch.c: Update from diffutils-2.8.2.
91575         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91576         * lib/fnmatch.h: Remove file.
91577
91578 2002-06-21  Jim Meyering  <meyering@lucent.com>
91579
91580         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91581         * m4/mbrtowc.m4: Likewise.
91582
91583         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91584         * m4/mbswidth.m4: Reflect name change:
91585         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91586         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91587
91588         * m4/lib-link.m4: Update from gettext-0.11.2.
91589         * m4/gettext.m4: Likewise.
91590
91591         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91592         From Alfred M. Szmidt.
91593
91594 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91595
91596         * lib/file-type.h: Report an error if neither S_ISREG nor
91597         S_IFREG is defined, instead of using a test specific to glibc
91598         2.2.  This should be safe, since POSIX requires S_ISREG and
91599         Unix Version 7 had S_IFREG.  We don't need to check for
91600         <sys/types.h> since we don't use any symbols that it defines.
91601
91602 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91603
91604         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91605         $@-t, so that each temporary file name is unique and valid in the first
91606         8 characters, for operation under DOS.
91607
91608 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91609
91610         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91611
91612 2002-06-15  Jim Meyering  <meyering@lucent.com>
91613
91614         Work even with DJGPP 2.03, which lacks support for symlinks.
91615         From Richard Dawe.
91616         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91617         is defined.
91618         * lib/lchown.c (S_ISLNK): Likewise.
91619
91620 2002-06-15  Jim Meyering  <meyering@lucent.com>
91621
91622         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91623         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91624         have been included before this file.
91625
91626 2002-06-14  Jim Meyering  <meyering@lucent.com>
91627
91628         * lib/file-type.h: Use the version from diffutils-2.8.2.
91629         * lib/file-type.c: Likewise.
91630
91631 2002-06-07  Jim Meyering  <meyering@lucent.com>
91632
91633         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91634         They're needed at least for NetBSD 1.5.2.
91635         ($statxfs_includes): Include those same headers.
91636         ($statxfs_includes): Include sys/vfs.h if available.
91637         ($statxfs_includes): Likewise for sys/statvfs.h.
91638         Check for the following members in both structs statfs and statvfs:
91639         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91640
91641 2002-06-01  Jim Meyering  <meyering@lucent.com>
91642
91643         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91644         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91645
91646 2002-05-28  Jim Meyering  <meyering@lucent.com>
91647
91648         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91649         Reported by Volker Borchert.
91650
91651 2002-05-27  Jim Meyering  <meyering@lucent.com>
91652
91653         Fix a problem seen only on nonconforming systems whereby ls.c's
91654         use of localtime, and then of gettimeofday would cause trouble:
91655         the localtime call used to initialize rpl_gettimeofday's save
91656         mechanism would clobber ls's current local time information so
91657         that in any long listing the first file would always be listed
91658         with date 1970-01-01.  Analysis by Volker Borchert.
91659
91660         * lib/gettimeofday.c (localtime): Undefine.
91661         (rpl_localtime): New function.
91662
91663 2002-05-27  Jim Meyering  <meyering@lucent.com>
91664
91665         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91666         localtime.
91667
91668         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91669         use the replacement function; it wouldn't resolve at link time.
91670         Reported by Volker Borchert.
91671
91672 2002-05-22  Jim Meyering  <meyering@lucent.com>
91673
91674         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91675         file-type.h.
91676         * lib/file-type.h: New file.
91677         * lib/file-type.c (file_type): New file/function.  Extracted from
91678         diffutils.
91679
91680 2002-04-30  Jim Meyering  <meyering@lucent.com>
91681
91682         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91683
91684 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91685
91686         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91687
91688 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91689
91690         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91691         Do not check for alloca.h (no longer used) or stdbool.h (was never
91692         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91693
91694 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91695
91696         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91697
91698 2002-04-29  Jim Meyering  <meyering@lucent.com>
91699
91700         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91701         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91702         Use AC_FUNC_STRNLEN here instead.
91703
91704         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91705         With autoconf-2.53a, it's part of AC_PROG_CC.
91706
91707 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91708
91709         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91710         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91711
91712 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91713
91714         * lib/sig2str.h, lib/sig2str.c: New files.
91715         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91716
91717 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91718
91719         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91720         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91721         of 127, since 64 is the largest conceivable number for ancient
91722         nonstandard hosts.
91723         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91724
91725 2002-04-28  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91728
91729 2002-04-24  Jim Meyering  <meyering@lucent.com>
91730
91731         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91732         (jm_PREREQ): Use it.
91733
91734         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91735         mach/mach.h fcntl.h.
91736         Check for this function: setlocale.
91737
91738 2002-04-24  Jim Meyering  <meyering@lucent.com>
91739
91740         * lib/gettext.h: New file, from Gettext.
91741         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91742         (libfetish_a_SOURCES): Add gettext.h.
91743
91744 2002-04-16  Jim Meyering  <meyering@lucent.com>
91745
91746         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91747         ut_pid, ut_id, ut_exit.
91748
91749 2002-04-16  Jim Meyering  <meyering@lucent.com>
91750
91751         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91752         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91753         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91754
91755 2002-04-12  Jim Meyering  <meyering@lucent.com>
91756
91757         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91758         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91759         existence of the getmntinfo function.  Needed for Darwin 5.3.
91760
91761         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91762         This is necessary at least on Darwin 5.3.
91763
91764         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91765         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91766         strnlen.o in the library, and that makes some versions of ranlib
91767         object.
91768
91769 2002-04-12  Jim Meyering  <meyering@lucent.com>
91770
91771         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91772
91773 2002-04-09  Jim Meyering  <meyering@lucent.com>
91774
91775         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91776         to be more precise.  Rather than saying we're checking whether the
91777         function `works', say what we're testing.
91778         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91779         Reported by Bruno Haible.
91780
91781 2002-03-10  Jim Meyering  <meyering@lucent.com>
91782
91783         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91784         Suggestion from Santiago Vila.
91785
91786 2002-03-08  Jim Meyering  <meyering@lucent.com>
91787
91788         * lib/rename.c: Mention that this wrapper is needed also on
91789         mips-dec-ultrix4.4 systems.
91790
91791 2002-03-02  Jim Meyering  <meyering@lucent.com>
91792
91793         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91794         not HAVE_CLOCK_SETTIME.
91795
91796 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91797
91798         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91799         Check for clock_settime.
91800
91801 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91802
91803         * lib/nanosleep.h: Rename to....
91804         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91805
91806         * lib/gettime.c: New file.
91807         * lib/settime.c: New file.
91808         * lib/stime.c: Remove.
91809
91810         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91811         timespec.h.  Remove nanosleep.h.
91812
91813 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91814
91815         * m4/acl.m4: New file.
91816         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91817         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91818
91819 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91820
91821         * lib/acl.c, lib/acl.h: New files.
91822         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91823
91824 2002-02-24  Jim Meyering  <meyering@lucent.com>
91825
91826         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91827         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91828         cause trouble.  Reported by Nelson Beebe.
91829
91830 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91831
91832         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91833         compilers that don't know that xalloc_die never returns.
91834
91835 2002-02-20  Jim Meyering  <meyering@lucent.com>
91836
91837         * lib/getdate.c: Regenerate using bison-1.33.
91838
91839 2002-02-17  Jim Meyering  <meyering@lucent.com>
91840
91841         * config/config.guess (main): Don't use `head -1'; it's no longer
91842         portable. Use `sed 1q' instead.
91843
91844 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91845
91846         * m4/codeset.m4: Upgrade to gettext-0.11.
91847         * m4/gettext.m4: Upgrade to gettext-0.11.
91848         * m4/glibc21.m4: Upgrade to gettext-0.11.
91849         * m4/iconv.m4: Upgrade to gettext-0.11.
91850         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91851         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91852         * m4/lib-ld.m4: New file, from gettext-0.11.
91853         * m4/lib-link.m4: New file, from gettext-0.11.
91854         * m4/lib-prefix.m4: New file, from gettext-0.11.
91855         * m4/progtest.m4: Upgrade to gettext-0.11.
91856
91857 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91858
91859         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91860         (jm_PREREQ): Use it.
91861
91862 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91863
91864         * lib/posixver.c, lib/posixver.h: New files.
91865         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91866
91867 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91868             Bruno Haible  <bruno@clisp.org>
91869
91870         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91871         (fwrite_success_callback): New declaration.
91872         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91873         print_unicode_char. Call failure callback instead of error.
91874         (fwrite_success_callback): New function.
91875         (exit_failure_callback): New function.
91876         (fallback_failure_callback): New function.
91877         (print_unicode_char): Call unicode_to_mb.
91878
91879 2002-01-26  Jim Meyering  <meyering@lucent.com>
91880
91881         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91882         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91883
91884 2002-01-26  Jim Meyering  <meyering@lucent.com>
91885
91886         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91887
91888 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91889
91890         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91891
91892 2002-01-22  Jim Meyering  <meyering@lucent.com>
91893
91894         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91895         Otherwise, some versions of automake would omit the rule that makes
91896         Makefile from Makefile.in.
91897
91898 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91899
91900         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91901         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91902         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91903         (memcoll): Set errno to zero if there is no error.
91904
91905         * lib/quotearg.c (quotearg_buffer_restyled):
91906         Fix bug with quoting buffers containing NUL when backslashing escapes.
91907         This bug was exposed by the other changes in this patch.
91908         (quotearg_n_options): New arg ARGSIZE.
91909         All callers changed.
91910         (quoting_options_from_style): New function.
91911         (quotearg_n_style): Use it.
91912         (quotearg_n_style_mem): New function.
91913
91914         * lib/quotearg.h (quotearg_n_style_mem): New function.
91915
91916 2002-01-19  Jim Meyering  <meyering@lucent.com>
91917
91918         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91919         Remove useless quotes: DF_PROG="df".
91920         * m4/strnlen.m4: New file.
91921
91922 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91923
91924         * lib/backupfile.c (ISDIGIT): Comment fix.
91925         * lib/getdate.y (ISDIGIT): Likewise.
91926         * lib/posixtm.c (ISDIGIT, year): Likewise.
91927         * lib/strverscmp.c (ISDIGIT): Likewise.
91928         * lib/userspec.c (ISDIGIT): Likewise.
91929
91930 2002-01-16  Jim Meyering  <meyering@lucent.com>
91931
91932         * lib/getdate.y: Add three semicolons, each just before a closing
91933         brace. Bison (as of version 1.31) no longer papers over that mistake.
91934
91935 2002-01-05  Jim Meyering  <meyering@lucent.com>
91936
91937         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91938
91939 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91940
91941         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91942         not silently exit merely because the output buffer happens to
91943         have nothing pending.
91944
91945 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91946
91947         See the big note in ../ChangeLog.
91948         * lib/human.c (suffixes): Prefer K to k for 1024.
91949         (generate_suffix_backwards): New function.
91950         (human_readable_inexact): Use it.
91951         * lib/xstrtol.c (__xstrtol): If there is no number but there
91952         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91953         Accept 'K' as well as 'k'.
91954
91955 2001-12-15  Jim Meyering  <meyering@lucent.com>
91956
91957         * lib/regex.h (__restrict_arr): Update from libc.
91958
91959         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91960         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91961         (STREQ): Define.
91962
91963 2001-12-14  Jim Meyering  <meyering@lucent.com>
91964
91965         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91966         Suggestion from Bruno Haible.
91967
91968 2001-12-10  Jim Meyering  <meyering@lucent.com>
91969
91970         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91971         xrealloc, Instead, include "xalloc.h".
91972         (initbuffer): Don't cast xmalloc return value to char*.
91973         (readline): Reword comment.
91974         Don't cast xrealloc return value to char*
91975         Return NULL, not 0.
91976
91977 2001-12-09  Jim Meyering  <meyering@lucent.com>
91978
91979         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91980         about `signed and unsigned type in conditional expression'.
91981         * lib/posixtm.c (posix_time_parse): Likewise.
91982
91983         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91984
91985         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91986         to avoid a pedantic warning.
91987
91988         * lib/getstr.c: Don't include assert.h.
91989         (getstr): Remove warning-evoking assertions.
91990         Return -1 if offset parameter is out of bounds.
91991         Change the type of a local from int to size_t.
91992
91993         * lib/strftime.c (my_strftime_localtime_r): Include this function
91994         definition in the `#if ! HAVE_TM_GMTOFF' block.
91995
91996         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91997         Include xalloc.h instead.
91998
91999 2001-12-02  Jim Meyering  <meyering@lucent.com>
92000
92001         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92002         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92003         included.
92004
92005         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92006         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92007
92008 2001-11-30  Akim Demaille  <akim@epita.fr>
92009
92010         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92011         before being defined.
92012
92013 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92014
92015         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92016         First arg is int, not unsigned.
92017         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92018         (SIZE_MAX, UINT_MAX): New macros.
92019         (quotearg_n_options): Abort if N is negative.
92020         Avoid overflow check on hosts where size_t is 64 bits and int
92021         is 32 bits, as overflow is impossible there.
92022         Fix off-by-one typo that caused unnecessary reallocation.
92023
92024 2001-11-27  Jim Meyering  <meyering@lucent.com>
92025
92026         * lib/tempname.c: Merge with version from libc.
92027         * lib/regex.c: Likewise.
92028
92029         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92030         systems for which STDC_HEADERS is 0, it was not included, resulting in
92031         a warning about an integer-to-pointer conversion problem with getenv.
92032         Reported by Volker Borchert.
92033
92034 2001-11-26  Jim Meyering  <meyering@lucent.com>
92035
92036         * lib/gtod.h: Remove file.
92037         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92038         * lib/gettimeofday.c: Don't include gtod.h.
92039         (GTOD_init): Remove function.
92040         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92041         Suggestion from Volker Borchert.
92042
92043 2001-11-23  Jim Meyering  <meyering@lucent.com>
92044
92045         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92046         it.
92047         * lib/hash.c (struct hash_table): Define it here instead.
92048
92049 2001-11-22  Jim Meyering  <meyering@lucent.com>
92050
92051         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92052
92053 2001-11-20  Jim Meyering  <meyering@lucent.com>
92054
92055         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92056         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92057
92058 2001-11-19  Jim Meyering  <meyering@lucent.com>
92059
92060         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92061         directory.  Use "conftestXXXXXX" as the template.
92062         Suggestion from Paul Eggert.
92063
92064         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92065         immediately, so the test doesn't mistakenly hit the max-open-files
92066         limit.
92067
92068 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92069
92070         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92071         (TEMPORARIES): New macro.
92072         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92073         removes an artificial limitation (e.g. HP-UX 10.20, where
92074         TMP_MAX is 17576).
92075
92076 2001-11-18  Jim Meyering  <meyering@lucent.com>
92077
92078         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92079
92080 2001-11-18  Jim Meyering  <meyering@lucent.com>
92081
92082         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92083         on SunOS 4.
92084
92085         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92086         files will be created before anything else.
92087
92088 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92089
92090         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92091         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92092
92093 2001-11-17  Jim Meyering  <meyering@lucent.com>
92094
92095         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92096         Prompted by a report from Bob Proulx.
92097
92098         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92099         Instead, require UTILS_FUNC_MKSTEMP.
92100
92101 2001-11-17  Jim Meyering  <meyering@lucent.com>
92102
92103         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92104         Now, that's done as part of AC_FUNC_STRTOD.
92105
92106 2001-11-17  Jim Meyering  <meyering@lucent.com>
92107
92108         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92109         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92110         rather than group writable.  Patch by Juan F. Codagnone.
92111
92112         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92113         xrealloc, Instead, include "xalloc.h".
92114
92115         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92116         Remove explicit declarations of xmalloc, xrealloc,
92117         and xstrdup.  Instead, include "xalloc.h".
92118
92119         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92120         unlocked-io.h.
92121         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92122         Likewise.
92123         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92124
92125         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92126         Reported by Padraig Brady.
92127
92128         * lib/mkstemp.c: #undef mkstemp.
92129         Include config.h.
92130         (rpl_mkstemp): Rename from mkstemp.
92131         Protoize.
92132
92133 2001-11-16  Jim Meyering  <meyering@lucent.com>
92134
92135         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92136         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92137         determine the amount of total physical memory, use pstat_getstatic.
92138         HPUX-11 doesn't define _SC_PHYS_PAGES.
92139         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92140         If sysconf couldn't be used to determine the amount of available
92141         physical memory, use both pstat_getstatic and pstat_getdynamic.
92142         Based on a patch from Bob Proulx.
92143
92144 2001-11-10  Jim Meyering  <meyering@lucent.com>
92145
92146         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92147         (jm_PREREQ): Use it.
92148
92149 2001-11-09  Jim Meyering  <meyering@lucent.com>
92150
92151         * m4/jm-macros.m4: Require autoconf-2.52f.
92152         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92153         Use these AC_-prefixed names, not the AM_-prefixed ones.
92154
92155         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92156
92157 2001-11-05  Jim Meyering  <meyering@lucent.com>
92158
92159         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92160
92161 2001-11-04  Jim Meyering  <meyering@lucent.com>
92162
92163         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92164         $DEFS.
92165
92166 2001-11-03  Jim Meyering  <meyering@lucent.com>
92167
92168         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92169         of AC_DEFUN.
92170
92171         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92172         know the name of the variable in the macro definition.
92173
92174 2001-11-03  Jim Meyering  <meyering@lucent.com>
92175
92176         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92177         in argmatch_to_argument call.
92178
92179         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92180         argument.
92181
92182         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92183         e.g., a fault due to an attempt to free a NULL pointer.
92184
92185 2001-11-01  Jim Meyering  <meyering@lucent.com>
92186
92187         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92188         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92189
92190 2001-11-01  Jim Meyering  <meyering@lucent.com>
92191
92192         * lib/dirfd.c, lib/dirfd.h: New files.
92193         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92194
92195         * lib/hash.c (hash_print) [TESTING]: Clean up.
92196
92197 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92198
92199         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92200         to avoid a warning if -Wall.
92201
92202 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92203
92204         * README: New file
92205         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92206         (per RMS's instructions, this is now the canonical source)
92207         * lgpl/, gpl/: New directories.
92208
92209 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92210
92211         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92212
92213 2001-10-21  Jim Meyering  <meyering@lucent.com>
92214
92215         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92216         this code would end up calling gettext even in packages built
92217         with --disable-nls.
92218         * lib/getopt.c (_): Likewise.
92219         * lib/regex.c (_): Likewise.
92220
92221 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92222
92223         * m4/error.m4 (jm_PREREQ_ERROR):
92224         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92225         AC_FUNC_STRERROR_R does that.
92226         Check for strerror declaration.
92227
92228         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92229         are supposed to have them these days.
92230         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92231         Merge changes from latest Autoconf CVS.
92232         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92233         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92234         POSIX decided to standardize on the int flavor of strerror_r.
92235
92236 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92237
92238         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92239         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92240         Use strerror_r that is only a macro, even if it is not a function.
92241         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92242         (private_strerror): Use prototypes, not old-style function definition.
92243         (print_errno_message): New function.
92244         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92245         char*-flavored one.
92246         (error_tail, error, error_at_line): Use it.
92247
92248 2001-10-11  Jim Meyering  <meyering@lucent.com>
92249
92250         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92251         and quote_n (1, ... to avoid clobbering a buffer.
92252
92253 2001-10-05  Jim Meyering  <meyering@lucent.com>
92254
92255         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92256         hash-pjw.h.
92257         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92258         * lib/hash-pjw.h: New file.
92259
92260 2001-09-30  Jim Meyering  <meyering@lucent.com>
92261
92262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92263         `struct fsstat' has the `f_fstypename' member.
92264         Use that to define FS_TYPE, which is now used to make
92265         the getfsstat link test tighter.
92266
92267 2001-09-30  Jim Meyering  <meyering@lucent.com>
92268
92269         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92270         Include <sys/ucred.h>, for Apple Darwin.
92271         Include sys/mount.h and sys/fs_types.h only if available.
92272         (FS_TYPE): Define.
92273         (read_filesystem_list): Use FS_TYPE.
92274
92275 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92276
92277         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92278         a boolean context.
92279
92280 2001-09-29  Jim Meyering  <meyering@lucent.com>
92281
92282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92283         [one-argument getmntent function]): Include stdio.h before mntent.h.
92284         SunOS 4.1.x needs it for the declaration of `FILE'.
92285         Patch by Volker Borchert.
92286
92287         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92288         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92289         sys/fs_types.h, and make the link-test for getfsstat guard #include
92290         directives with appropriate #if HAVE_*_H tests so that we can
92291         detect getfsstat on Apple Darwin1.3.7 systems.
92292         Reported by Nelson Beebe.
92293         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92294
92295 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92296
92297         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92298         #defines strtoimax.  Also treat the other strto* functions
92299         like strtoimax.
92300
92301         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92302         Check for strtoul and strtoumax,
92303         as those declarations are made even in the signed case.
92304         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92305         Likewise, for strtol and strtoimax.
92306
92307 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92308
92309         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92310         #defines strtoimax.  Also treat the other strto* functions
92311         like strtoimax.
92312
92313         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92314         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92315         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92316
92317 2001-09-26  Jim Meyering  <meyering@lucent.com>
92318
92319         Most macros in unlocked-io.h had the wrong number of arguments.
92320         * lib/gen-uio: New script.
92321         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92322         * lib/unlocked-io.hin: Remove file.
92323         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92324         rather than trying to embed it here.
92325         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92326         Reported by Padraig Brady.
92327
92328 2001-09-25  Volker Borchert  <bt@teknon.de>
92329
92330         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92331         `result'.
92332
92333 2001-09-24  Jim Meyering  <meyering@lucent.com>
92334
92335         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92336
92337 2001-09-23  Jim Meyering  <meyering@lucent.com>
92338
92339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92340         instead of the mere test for existence of mntent.h.  The latter
92341         would get a false-positive on AIX 3.4 systems.
92342         In the outer getmntent if-block, don't die if neither of the getmntent
92343         tests succeeds.  Instead, just fall through and continue with the
92344         remaining tests.
92345
92346 2001-09-23  Jim Meyering  <meyering@lucent.com>
92347
92348         * lib/mountlist.c: Remove useless parentheses in #if directives.
92349         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92350         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92351
92352 2001-09-22  Jim Meyering  <meyering@lucent.com>
92353
92354         * m4/gettext.m4: New file.  From gettext.
92355         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92356         * m4/progtest.m4: Likewise
92357         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92358         * m4/glibc21.m4: Likewise.
92359
92360         * m4/libintl.m4: Remove.  No longer used.
92361
92362 2001-09-22  Jim Meyering  <meyering@lucent.com>
92363
92364         * lib/localcharset.c: Update from latest gettext.
92365         * lib/config.charset: Likewise.
92366
92367 2001-09-20  Jim Meyering  <meyering@lucent.com>
92368
92369         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92370         strtoimax.
92371         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92372         strtoumax.
92373
92374 2001-09-20  Jim Meyering  <meyering@lucent.com>
92375
92376         * lib/xstrtol.c (strtoimax): Guard declaration with
92377         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92378         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92379         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92380         (strtoumax): Likewise, for completeness (it wasn't necessary).
92381
92382 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92383
92384         * lib/strtoimax.c (HAVE_LONG_LONG):
92385         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92386         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92387         to work around bug in IBM C compiler.
92388
92389 2001-09-17  Jim Meyering  <meyering@lucent.com>
92390
92391         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92392         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92393         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92394         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92395         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92396         whenever the right hand side need not be expanded by the shell.
92397
92398 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92399
92400         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92401         library.  It's not correct, as some older glibcs are buggy.
92402         fnmatch wasn't fixed until glibc 2.2.
92403
92404         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92405         special shell magic here.
92406
92407 2001-09-16  Jim Meyering  <meyering@lucent.com>
92408
92409         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92410         * m4/jm-macros.m4: Require it.
92411
92412 2001-09-16  Jim Meyering  <meyering@lucent.com>
92413
92414         * lib/mkdir.c: New file.
92415
92416 2001-09-15  Jim Meyering  <meyering@lucent.com>
92417
92418         * m4/jm-macros.m4: Check for help2man.
92419
92420 2001-09-11  Jim Meyering  <meyering@lucent.com>
92421
92422         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92423         The body, by Paul Eggert, was moved here from configure.in.
92424         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92425
92426 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92427
92428         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92429         (jm_PREREQ): Use it.
92430
92431 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92432
92433         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92434         Use ssize_t, not int, to store result of readlink.
92435         Check for ssize_t overflow as well as size_t overflow,
92436         as POSIX says the result of readlink is implementation-defined
92437         when ssize_t overflows.
92438         Remove unnecessary cast to char*.
92439         Use free+malloc instead of realloc, as the storage doesn't need
92440         to be preserved and it's clearer and can be more efficient that way.
92441         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92442         * lib/xreadlink.h (xreadlink): Update prototype.
92443
92444 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92445
92446         * lib/xgetcwd.c: Revert some of the previous change; intead,
92447         fix the HAVE_GETCWD_NULL code to behave more like the
92448         !HAVE_GETCWD_NULL code used to.
92449
92450         Include "xalloc.h".
92451         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92452         invoke xalloc_die.
92453
92454 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92455
92456         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92457         sys/param.h, as pathmax.h includes them.
92458
92459 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92460
92461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92462         (jm_PREREQ_XGETCWD): New macro.
92463
92464         * m4/getcwd.m4: New file.
92465
92466 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92467
92468         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92469         like the HAVE_GETCWD_NULL code.
92470         Include pathmax.h if not HAVE_GETCWD.
92471         Do not include xalloc.h.
92472         (INITIAL_BUFFER_SIZE): New symbol.
92473         Do not use xmalloc / xrealloc, since the caller is responsible for
92474         handling errors.  Preserve errno around `free' during failure.
92475         Do not overrun buffer when using getwd.
92476
92477 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92478
92479         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92480         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92481         getcwd (NULL, 0).
92482
92483 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92484
92485         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92486         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92487         spotted by Jim Meyering.
92488
92489 2001-09-03  Jim Meyering  <meyering@lucent.com>
92490
92491         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92492         failure.
92493
92494 2001-09-02  Jim Meyering  <meyering@lucent.com>
92495
92496         * lib/error.c: Update from GNU libc.
92497
92498 2001-09-01  Jim Meyering  <meyering@lucent.com>
92499
92500         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92501         Used by df.
92502
92503 2001-09-01  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/xreadlink.c: New file.
92506         * lib/xreadlink.h: New file.
92507         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92508         xreadlink.h.
92509
92510         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92511         doesn't conflict with sparc Solaris 7's definition in
92512         /usr/include/sys/int_types.h.
92513
92514         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92515         files.
92516         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92517         and strncasecmp as r-values.  Unixware didn't have declarations.
92518
92519 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92520
92521         * lib/xstrtol.h: Add copyright notice.
92522         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92523         LONGINT_INVALID_SUFFIX_CHAR.
92524
92525 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92526
92527         * lib/xstrtol.c (strtoimax): New decl.
92528
92529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92530
92531         * lib/xgetcwd.c: Don't include pathmax.h.
92532         Include stdlib.h and unistd.h if available.
92533         Include xalloc.h.
92534         (xmalloc, xstrdup, free): Remove decls.
92535         (xgetcwd): Don't assume sizes fit in unsigned.
92536         Check for overflow when computing sizes.
92537         Simplify reallocation code.
92538
92539 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92540
92541         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92542         a directory's st_size can have an arbitrary value, so the old
92543         usage could waste an arbitrary amount of memory.  All uses
92544         changed.
92545         * lib/savedir.h: Update prototype.
92546
92547 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92548
92549         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92550
92551         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92552         old strtoimax.c.
92553
92554         Also, make the following further changes to make this file's
92555         configuration more similar to that of strtol.c:
92556         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92557         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92558         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92559         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92560         changed to signed values.
92561
92562         And make the following changes as well:
92563         Fix copyright notice, as 1999 was missing.
92564         (verify): New macro.
92565         (strtoimax): Check sizes at compile-time, not run-time.
92566         Prefer strtol to strtoll if both work.
92567         (main): Remove; it was not that useful and was a pain to maintain.
92568
92569         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92570
92571 2001-08-31  Jim Meyering  <meyering@lucent.com>
92572
92573         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92574         Use an initial, malloc'd, buffer of length 128 rather than
92575         a statically allocated one of length 1024.
92576
92577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92578
92579         Simplify code, partly by assuming autoconf 2.52 semantics.
92580
92581         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92582
92583         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92584         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92585         All uses removed.
92586         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92587         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92588         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92589         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92590         jm_AC_HEADER_INTTYPES_H.
92591         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92592
92593         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92594
92595         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92596         Quote first arg of AC_DEFUN.
92597         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92598         since they are needed to parse the include file even if we need
92599         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92600         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92601         but with opposite signedness.
92602
92603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92604
92605         Merge 'exclude' changes from tar 1.13.22.
92606         This fixes one or two unlikely storage allocation overflow bugs,
92607         but doesn't change user-visible behavior otherwise.
92608
92609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92610
92611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92612         (jm_PREREQ_EXCLUDE): New macro.
92613
92614 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92615
92616         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92617         tm to be declared.
92618
92619 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92620
92621         * lib/hash.c: Remove '2001' from copyright notice.
92622
92623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92624
92625         * lib/full-write.h: New file.
92626         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92627         * lib/full-write.c: Correct credits, as cccp.c no longer
92628         exists and anyway it was so heavily changed from the old cccp
92629         code as to be unrecognizable.  Include full-write.h.
92630         (full_write): Return size_t, with short writes meaning failure.
92631         All callers changed.  This fixes a bug with large buffers
92632         on 64-bit hosts.
92633         * lib/utime.c: Include full-write.h.
92634
92635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92636
92637         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92638         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92639         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92640         Include if available.
92641         (<xalloc.h>): Include
92642         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92643         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92644         collide with FNM macros.
92645         (struct patopts): New struct.
92646         (struct exclude): Use it, as exclude patterns now come with options.
92647         (new_exclude): Support above changes.
92648         (new_exclude, add_exclude_file):
92649         Initial size must now be a power of two to simplify overflow checking.
92650         (free_exclude, fnmatch_no_wildcards): New function.
92651         (excluded_filename): No longer requires options arg, as the options
92652         are determined by add_exclude.  Now returns bool, not int.
92653         (excluded_filename, add_exclude):
92654         Add support for the fancy new exclusion options.
92655         (add_exclude, add_exclude_file): Now takes int options arg.
92656         Check for arithmetic overflow when computing sizes.
92657         (add_exclude_file): xrealloc might modify errno, so don't
92658         realloc until after errno might be used.
92659
92660         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92661         New macros.
92662         (free_exclude): New decl.
92663         (add_exclude, add_exclude_file): Now takes int options arg.
92664         (excluded_filename): No longer requires options arg, as the options
92665         are determined by add_exclude.  Now returns bool, not int.
92666
92667 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92668
92669         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92670
92671 2001-08-27  Jim Meyering  <meyering@lucent.com>
92672
92673         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92674
92675         * lib/version-etc.c (N_): Remove definition.
92676         Revert most of last change.
92677         Instead, simply don't mark the `Copyright...' string for translation.
92678         Based on advice from Paul Eggert.
92679
92680         * lib/strtoxmax.c: Tweak comment.
92681
92682 2001-08-26  Jim Meyering  <meyering@lucent.com>
92683
92684         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92685
92686         * m4/xstrtoimax.m4: New file.
92687         * m4/xstrtoumax.m4: Add comments explaining why we
92688         AC_REPLACE_FUNCS(strtol).
92689
92690 2001-08-26  Jim Meyering  <meyering@lucent.com>
92691
92692         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92693         of copyright with `%s' so translators don't get an untranslated
92694         message in 2002.
92695         (COPYRIGHT_YEAR): Define.
92696         (version_etc): Use fprintf rather than fputs.
92697         Suggestion from Ulrich Drepper.
92698
92699         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92700
92701         * lib/strtoll.c: New file, from GNU libc.
92702         * lib/xstrtoimax.c: New file.
92703
92704         * lib/xstrtol.h: Add xstrtoimax.
92705         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92706         * lib/strtoimax.c: New file.  Likewise, but first define
92707         STRTOUXMAX_SIGNED.
92708
92709         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92710         ...
92711         * lib/strtoxmax.c: ... then renamed to this.
92712
92713 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92714
92715         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92716         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92717         (jm_AC_TYPE_INTMAX_T): New macro.
92718         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92719
92720         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92721
92722         * m4/longlong.m4: Renamed from ulonglong.m4.
92723         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92724         * m4/uintmax_t.m4: Removed.
92725
92726 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92727
92728         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92729         Port to Solaris 8, where 'sed' requires a space after the 'r'
92730         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92731         Redirect output to $tmp just once.
92732
92733 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92734
92735         * lib/addext.c (<errno.h>): Include.
92736         (errno): Declare if not defined.
92737         (addext): Work correctly when pathconf returns -1 and leaves
92738         errno alone because there is no limit.  Also, work even if
92739         pathconf returns a value greater than SIZE_MAX.
92740
92741 2001-08-12  Jim Meyering  <meyering@lucent.com>
92742
92743         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92744         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92745         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92746         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92747         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92748         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92749         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92750         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92751         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92752         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92753         utime.m4, utimes.m4, xstrtoumax.m4:
92754         Quote the first argument in each use of AC_DEFUN.
92755
92756 2001-08-12  Jim Meyering  <meyering@lucent.com>
92757
92758         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92759         Simply `return getcwd (NULL, 0);'.
92760         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92761         Use 1300 as initial value for length, not PATH_MAX.
92762
92763         * lib/pathmax.h: Clean up cpp syntax.
92764
92765 2001-08-12  Jim Meyering  <meyering@lucent.com>
92766
92767         * lib/gettimeofday.c: New file.
92768         * lib/gtod.h: New file.
92769         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92770
92771 2001-08-05  Jim Meyering  <meyering@lucent.com>
92772
92773         * m4/jm-macros.m4: Require autoconf-2.52.
92774
92775 2001-08-04  Jim Meyering  <meyering@lucent.com>
92776
92777         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92778         stmt, to get in sync with glibc.
92779
92780 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92781
92782         The following changes are from gettext 0.10.39 as maintained by
92783         Bruno Haible.
92784
92785         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92786         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92787         with inverted sense.  All uses changed.
92788
92789         * lib/mbswidth.c: Don't include <limits.h>.
92790         Include <stdlib.h> and <string.h> unconditionally.
92791         (iswcntrl, mbsinit, ISCNTRL): New macros.
92792         (mbsnwidth): Use K&R style function declarations.
92793         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92794         can optimize it when MB_CUR_MAX == 1.
92795         The width of control characters is zero, not 1.
92796
92797 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92798
92799         The following changes are from gettext 0.10.39 as maintained by
92800         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92801
92802         * m4/codeset.m4: Upgrade to serial AM1.
92803         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92804         all uses changed.  Quote first arg of AC_DEFUN.
92805         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92806
92807         * m4/iconv.m4: Upgrade to serial AM2.
92808         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92809         Add --with-libconv-prefix.
92810         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92811         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92812         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92813         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92814         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92815
92816         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92817         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92818         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92819         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92820         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92821         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92822         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92823         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92824         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92825
92826         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92827         string.h any more.
92828
92829         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92830         not the default value.
92831
92832         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92833         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92834         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92835         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92836         Also check for iswcntrl, used for wcwidth fallback.
92837         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92838         to Autoconf 2.13.
92839
92840 2001-08-03  Jim Meyering  <meyering@lucent.com>
92841
92842         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92843         as it was in the original.  Reported by Paul Eggert.
92844
92845 2001-07-16  Jim Meyering  <meyering@lucent.com>
92846
92847         * m4/gettimeofday.m4: New file.
92848         Prompted by a report from Bernhard Baehr.
92849
92850 2001-07-15  Jim Meyering  <meyering@lucent.com>
92851
92852         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92853         stuff. Now it's in ../Makefile.cfg.
92854
92855 2001-07-15  Jim Meyering  <meyering@lucent.com>
92856
92857         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92858         (BUILT_SOURCES): Add unlocked-io.h.
92859         (io_functions): Define.
92860         (unlocked-io.h): New rule.
92861         (DISTCLEANFILES): Add unlocked-io.h.
92862         (all-local): Depend on unlocked-io.h, to ensure it is created.
92863
92864         * lib/unlocked-io.hin: New file
92865
92866         * lib/regex.c: Update from glibc.
92867
92868 2001-07-05  Jim Meyering  <meyering@lucent.com>
92869
92870         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92871         recommendation.
92872         (libfetish_a_SOURCES): Put all .h files here instead.
92873         Remove a thus-exposed (better checks in automake) duplicate and
92874         two unnecessary .h files.
92875
92876 2001-07-04  Jim Meyering  <meyering@lucent.com>
92877
92878         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92879         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92880         distcheck failure.
92881
92882 2001-07-02  Jim Meyering  <meyering@lucent.com>
92883
92884         The following changes were prompted by suggestions from Bruno Haible.
92885
92886         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92887         is now generated.
92888         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92889         definition of EXTRA_DIST.
92890         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92891         ensure that the generated file is created/updated whenever the list
92892         of $(unlocked_functions) is changed.
92893         (jm-glibc-io.m4): New rule.
92894         (unlocked-io.h): New rule -- currently unused.
92895
92896 2001-06-24  Jim Meyering  <meyering@lucent.com>
92897
92898         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92899         unmatched right bracket, rather than kludging it with an extra,
92900         falsely-matching quote in a comment.  Patch by Akim Demaille.
92901
92902 2001-06-11  Jim Meyering  <meyering@lucent.com>
92903
92904         * lib/regex.c: Update from GNU libc.
92905
92906 2001-05-27  Jim Meyering  <meyering@lucent.com>
92907
92908         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92909         Check for ut_type in struct utmp.
92910
92911 2001-05-27  Jim Meyering  <meyering@lucent.com>
92912
92913         * lib/readutmp.h (UT_TYPE): Define.
92914
92915 2001-05-24  Jim Meyering  <meyering@lucent.com>
92916
92917         * lib/argmatch.c: Include "quote.h".
92918         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92919         quote function.  Reported by Göran Uddeborg.
92920
92921 2001-05-22  Jim Meyering  <meyering@lucent.com>
92922
92923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92924         now that we use the package-supplied version unconditionally.
92925         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92926
92927 2001-05-21  Jim Meyering  <meyering@lucent.com>
92928
92929         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92930         shell syntax errors.
92931
92932 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92933
92934         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92935
92936 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92937
92938         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92939         Don't bother to check library strftime, since
92940         we'll be using our own my_strftime function anyway.
92941         Define my_strftime instead of strftime.
92942
92943 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92944
92945         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92946         which is not yet declared.
92947
92948 2001-05-15  Jim Meyering  <meyering@lucent.com>
92949
92950         * m4/regex.m4: Use proper quoting so brackets appear in the test
92951         program.
92952         Reported by, and with help from, Bruno Haible.
92953
92954 2001-05-13  Jim Meyering  <meyering@lucent.com>
92955
92956         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92957         undefined.
92958
92959 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92960
92961         dirname code cleanup.  base_name now behaves more compatibly
92962         with POSIX basename when given file names that have trailing
92963         slashes, and similarly for dir_name.  Add new primitives
92964         base_len and dir_len.  Put the directory-name-related decls
92965         into dirname.h.
92966
92967         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92968         * lib/backupfile.c (base_name): Likewise.
92969         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92970         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92971         * lib/makepath.c (strip_trailing_slashes): Likewise.
92972         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92973         ISSLASH): Likewise.
92974         * lib/rename.c (strip_trailing_slashes): Likewise.
92975         * lib/same.c (base_name): Likewise.
92976         * lib/stripslash.c (ISSLASH): Likewise.
92977
92978         * lib/addext.c: Include <dirname.h> after size_t is defined.
92979         * lib/backupfile.c: Likewise.
92980
92981         * lib/addext.c (addext): Use base_len to trim redundant
92982         trailing slashes instead of doing it ourselves.
92983         But do not trim the last slash if it is not redundant.
92984
92985         * lib/backupfile.c (find_backup_file_name,
92986         max_backup_version): Use base_len instead of rolling it ourselves.
92987         Handle the case of "" and (on DOS) "C:" correctly.
92988
92989         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92990         needed. Include <string.h>, <dirname.h>.
92991         (base_name): Allow file names ending in slashes, other than names
92992         that are all slashes.  In this case, return the basename followed
92993         by the slashes.  This is more general, and can be used in places
92994         where the original base_name purposely had an assertion failure.
92995         (base_len): New function.
92996
92997         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92998         Do not include <assert.h>; no longer needed.
92999         Include xalloc.h.
93000         (memrchr): Remove decl.
93001         (dir_name_r): Remove.
93002         (dir_len): Renamed from dirlen.  All callers changed.
93003         Rewrite in terms of base_name, for simplicity and consistency.
93004         (dir_name): Never return NULL.  All callers changed.
93005         Do not include <stdlib.h> in test program; no longer needed.
93006         return 0; is fine for test program.
93007
93008         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93009         New macros.
93010         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93011
93012         * lib/path-concat.c (path_concat): Use base_len to compute
93013         base length, not strlen; this means we cannot rely on memcpy
93014         to null-terminate.
93015
93016         * lib/same.c (STREQ): Remove.
93017         (same_name): Handle the case where the basename ends in trailing '/'.
93018
93019         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93020         a slash was stripped.  Do not strip the last slash after a
93021         file system prefix.
93022
93023 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93024
93025         * lib/Makefile.am (libfetish_a_SOURCES):
93026         Add strftime.c, since we now compile it on all hosts.
93027
93028         * lib/strftime.c (my_strftime):
93029         Define to nstrftime if emacs, but only if my_strftime is not defined.
93030         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93031         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93032         Add one more extra argument: a nanoseconds value.
93033         All uses changed.
93034         (ns): New macro.
93035         (my_strftime function): Add %N format.
93036         (emacs_strftimeu): Renamed from emacs_strftime,
93037         with extra ut argument.
93038
93039 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93040
93041         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93042
93043 2001-04-21  Jim Meyering  <meyering@lucent.com>
93044
93045         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93046         doesn't interfere.
93047
93048 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93049
93050         * m4/ftruncate.m4: Check for chsize.
93051         Link with ftruncate.o unconditionally if ftruncate is missing.
93052         This was required when cross-compiling to i586-mingw32msvc.
93053
93054 2001-04-08  Jim Meyering  <meyering@lucent.com>
93055
93056         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93057         recomputed; that's necessary when the offset spans a DST transition.
93058         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93059
93060 2001-04-02  Jim Meyering  <meyering@lucent.com>
93061
93062         * lib/regex.h, regex.c: Update from GNU libc.
93063
93064 2001-03-24  Jim Meyering  <meyering@lucent.com>
93065
93066         * m4/jm-macros.m4: Require autoconf-2.49d.
93067
93068 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93069
93070         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93071
93072 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93073
93074         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93075
93076 2001-03-17  Jim Meyering  <meyering@lucent.com>
93077
93078         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93079         now that the version in autoconf is equivalent.
93080         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93081
93082         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93083         Suggestion from Akim Demaille.
93084
93085         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93086         (jm_PREREQ_TEMPNAME): New function.
93087
93088 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93089
93090         * lib/tempname.c (uint64_t): Define to uintmax_t if
93091         not defined, and if UINT64_MAX is not defined.
93092         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93093         Reported by John David Anglin.
93094
93095 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93096
93097         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93098         resolve alias if codeset is empty.
93099         * lib/config.charset (BeOS): Use wildcard syntax.
93100
93101 2001-03-13  Jim Meyering  <meyering@lucent.com>
93102
93103         * lib/path-concat.c (path_concat)
93104         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93105         concatenating e.g., `C:' and `foo'.
93106         From Bruno Haible.
93107
93108 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93109
93110         * lib/localcharset.c (locale_charset): Don't use
93111         setlocale(LC_CTYPE,NULL). Don't return NULL.
93112         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93113
93114 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93115
93116         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93117         support for DOS/DJGPP.
93118
93119 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93120
93121         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93122         lacks mkstemp.  Compile our own tempname.c if we compile our own
93123         mkstemp.c, as mkstemp relies on tempname.
93124
93125 2001-03-01  Jim Meyering  <meyering@lucent.com>
93126
93127         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93128         AH_VERBATIM really does output its argument verbatim.
93129
93130 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93131
93132         * lib/Makefile.am (libfetish_a_SOURCES):
93133         Add dup-safer.c, fopen-safer.c.
93134         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93135
93136         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93137         * lib/unistd-safer.h: New files.
93138
93139 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93140
93141         The mkstemp replacement is taken from glibc 2.2.2, with some
93142         portability fixes for use outside glibc, as follows:
93143
93144         * lib/tempname.c (struct_stat64): New macro.
93145         (direxists, __gen_tempname): Use it.
93146         This avoids a portability problem with Solaris 8.
93147
93148         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93149         (<stddef.h>, <stdint.h>, <string.h>):
93150         Include only if STDC_HEADERS || _LIBC.
93151         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93152         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93153         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93154         (__set_errno): Define this macro if <errno.h> doesn't.
93155         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93156         Define these macros if <stdio.h> doesn't.
93157         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93158         Define these macros if <sys/stat.h>
93159         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93160         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93161         __xstat64): Define if not _LIBC.
93162         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93163         (__gen_tempname): Invoke gettimeofday only if
93164         HAVE_GETTIMEOFDAY || _LIBC;
93165         otherwise, fall back on plain "time".
93166         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93167
93168         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93169
93170         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93171
93172 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93173
93174         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93175
93176 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93177
93178         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93179         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93180         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93182
93183 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93184
93185         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93186         Remove workaround macros for hosts that have mbrtowc but not
93187         mbstate_t, as we now insist on proper declarations for both
93188         before using mbrtowc.
93189
93190 2001-02-17  Jim Meyering  <meyering@lucent.com>
93191
93192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93193         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93194         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93195         UnixWare 7.1.1.
93196
93197         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93198         rather than AC_CACHE_VAL.
93199
93200 2001-02-17  Jim Meyering  <meyering@lucent.com>
93201
93202         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93203         around included file name.
93204
93205         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93206
93207         * lib/strftime.c: Update from GNU libc (the only changes were to
93208         comments).
93209
93210 2001-02-17  Jim Meyering  <meyering@lucent.com>
93211
93212         * lib/regex.c: Update from libc.
93213
93214 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93215
93216         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93217         clash.
93218
93219 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93220
93221         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93222         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93223         Reported by Mark Hounschell via Paul Eggert.
93224
93225 2001-02-07  Jim Meyering  <meyering@lucent.com>
93226
93227         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93228
93229 2001-02-05  Jim Meyering  <meyering@lucent.com>
93230
93231         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93232         it includes the patch required for `large file' support with at least
93233         HP-UX's 10.20 /bin/cc.
93234
93235 2001-02-03  Jim Meyering  <meyering@lucent.com>
93236
93237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93238         AS_IF, now that it works once again (mysteriously).
93239         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93240
93241 2001-01-30  Jim Meyering  <meyering@lucent.com>
93242
93243         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93244         * m4/chown.m4: Rename conftestchown to conftest.chown.
93245         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93246         s/conftestdir2/conftest.d2/.
93247         * m4/utimes.m4: s/conftestdata/conftest.data/
93248         Inspired by Pavel Roskin's change in autoconf.
93249
93250 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93251
93252         * lib/config.charset: Update for FreeBSD 4.2.
93253
93254 2001-01-27  Jim Meyering  <meyering@lucent.com>
93255
93256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93257         a use of AS_IF.
93258         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93259
93260 2001-01-26  Jim Meyering  <meyering@lucent.com>
93261
93262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93263         quotearg.c includes it.
93264
93265 2001-01-26  Jim Meyering  <meyering@lucent.com>
93266
93267         * lib/quotearg.c: Include stddef.h.
93268         * lib/quote.c: Include stddef.h.
93269         Reported by Axel Kittenberger.
93270
93271         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93272         line in double quotes so that it evokes a better diagnostic.
93273         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93274         Reported by Axel Kittenberger.
93275
93276 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93277
93278         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93279         as if it was a `charset'.
93280
93281 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93282
93283         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93284         has const.
93285
93286 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93287
93288         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93289         to avoid a warning.  Add back 'const' to inptr.
93290
93291 2001-01-20  Jim Meyering  <meyering@lucent.com>
93292
93293         Be sure that headers are checked before used in code compiled
93294         for the type checks.
93295         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93296         In place of that, invoke jm_CHECK_ALL_TYPES.
93297         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93298         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93299         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93300         The check for ssize_t was mistakenly run before the test for unistd.h.
93301
93302         The configure-time check for stdbool.h was missing.
93303         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93304         (jm_PREREQ_HASH): New function.
93305
93306 2001-01-17  Jim Meyering  <meyering@lucent.com>
93307
93308         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93309         for autoconf-2.49c.
93310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93311
93312 2001-01-16  Jim Meyering  <meyering@lucent.com>
93313
93314         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93315         From Bruno Haible.
93316
93317 2001-01-14  Jim Meyering  <meyering@lucent.com>
93318
93319         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93320         foo and bar.  Create conftestdir/ in the script, not in the C code.
93321         Remove directories in the script, not in the C code.
93322         Remove conftestdir{,2} before trying to create the directory.
93323         Make the entire configure script fail if the mkdir fails.
93324
93325 2001-01-14  Jim Meyering  <meyering@lucent.com>
93326
93327         * lib/rename.c: New file.  From Volker Borchert.
93328         Include stdlib.h, string.h or strings.h, and xalloc.h.
93329         Use strip_trailing_slashes rather than open-coding it.
93330
93331 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93332
93333         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93334
93335 2001-01-03  Jim Meyering  <meyering@lucent.com>
93336
93337         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93338         of local `inptr' to avoid warning with some system declarations of
93339         iconv.
93340
93341 2001-01-02  Volker Borchert  <bt@teknon.de>
93342
93343         * m4/rename.m4: New file.
93344         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93345
93346 2001-01-01  Jim Meyering  <meyering@lucent.com>
93347
93348         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93349         even on systems with utmpx.h.  It's necessary for the declaration of
93350         utmp's ut_user member.  Reported by Andreas Jaeger.
93351
93352         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93353         available. They are required for the declarations of getgrgid and
93354         getpwuid resp.
93355         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93356         Reported by Andreas Jaeger.
93357
93358 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93359
93360         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93361         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93362         so `make install' also works in VPATH builds.
93363
93364 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93365
93366         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93367         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93368         can be used in subdirectories.
93369
93370 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93371
93372         * lib/modechange.c: Do not assume that mode_t uses the
93373         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93374         the other-execute bit of FOO even if S_IXOTH != 1.
93375
93376         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93377         WOTH, XOTH, ALLM): New macros.
93378         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93379          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93380         Use them.
93381         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93382         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93383         (mode_compile):
93384         No need to use uintmax_t; unsigned long is long enough.
93385         Don't bother to get suffix since we don't use it.
93386
93387 2000-12-26  Jim Meyering  <meyering@lucent.com>
93388
93389         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93390         better with autoheader.
93391
93392 2000-12-24  Jim Meyering  <meyering@lucent.com>
93393
93394         * lib/hash.c (is_prime): Return explicit boolean values.
93395         (hash_get_first): Return NULL to appease Irix5.6's 89.
93396         Reported by Nelson Beebe.
93397
93398 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93399
93400         * lib/localcharset.c (locale_charset): Add support for Win32.
93401
93402 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93403
93404         * lib/physmem.h, lib/physmem.c: New files.
93405
93406         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93407         (noinst_HEADERS): Add physmem.h.
93408
93409         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93410         't' for compatibility with Solaris 8 sort.
93411
93412 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93413
93414         * lib/config.charset: Add support for BeOS.
93415
93416 2000-12-17  Jim Meyering  <meyering@lucent.com>
93417
93418         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93419         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93420
93421 2000-12-16  Jim Meyering  <meyering@lucent.com>
93422
93423         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93424         N and M) would have treated it like `chown N:N FILE'.
93425
93426         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93427
93428 2000-12-16  Jim Meyering  <meyering@lucent.com>
93429
93430         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93431         SHELLS_FILE to a file name that's useful on djgpp systems.
93432         Include stdlib.h.
93433         (ADDITIONAL_DEFAULT_SHELLS): Define.
93434         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93435         Based mostly on a patch from Prashant TR.
93436
93437 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93438
93439         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93440         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93441         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93442
93443 2000-12-08  Andreas Schwab  <schwab@suse.de>
93444
93445         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93446         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93447
93448 2000-12-07  Jim Meyering  <meyering@lucent.com>
93449
93450         * lib/stripslash.c (ISSLASH): Define.
93451         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93452         `/'.
93453         From Prashant TR.
93454
93455         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93456         (dir_name_r): Declare this function as static.
93457         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93458         manifest itself on a name containing a mix of slashes and
93459         backslashes.
93460         Make this function work with names starting with a DOS-style
93461         drive letter and colon prefix.
93462         (dir_name): Append `.' if necessary.
93463         Based mostly on patches from Prashant TR and Eli Zaretskii.
93464
93465         * lib/dirname.h (dir_name_r): Remove prototype.
93466
93467 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93468
93469         * m4/off_t-format.m4: Remove this file.
93470         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93471
93472 2000-12-06  Jim Meyering  <meyering@lucent.com>
93473
93474         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93475         replacement strtoull, we may well need the replacement strtoul, too.
93476         Check for declarations of strtoul and strtoull.
93477         Check for strtol.  Mainly as a cue to cause automake to include
93478         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93479         Check for limits.h -- strtol.c needs it.
93480
93481 2000-12-05  Jim Meyering  <meyering@lucent.com>
93482
93483         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93484
93485 2000-12-04  Jim Meyering  <meyering@lucent.com>
93486
93487         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93488         Also include memory.h, stdlib.h, unistd.h if appropriate.
93489         Reported by Andreas Jaeger (conflicting declaration of malloc).
93490
93491 2000-12-02  Jim Meyering  <meyering@lucent.com>
93492
93493         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93494         * m4/jm-macros.m4 (jm_MACROS): require it.
93495
93496 2000-12-02  Jim Meyering  <meyering@lucent.com>
93497
93498         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93499
93500 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93501
93502         * lib/memrchr.c: Include <config.h> before any system include file.
93503
93504 2000-11-30  Jim Meyering  <meyering@lucent.com>
93505
93506         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93507
93508 2000-11-30  Jim Meyering  <meyering@lucent.com>
93509
93510         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93511
93512 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93513
93514         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93515
93516 2000-11-26  Jim Meyering  <meyering@lucent.com>
93517
93518         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93519
93520 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93521
93522         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93523         size of (size_t) -1; it's not portable.
93524
93525 2000-11-17  Jim Meyering  <meyering@lucent.com>
93526
93527         * lib/strstr.c: Update from GNU libc.
93528
93529 2000-11-17  Akim Demaille  <akim@epita.fr>
93530
93531         * lib/obstack.h: Formatting changes.
93532         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93533         prevent type checking.
93534         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93535         cast the value to (void *): assigning a `foo *' to a `void *'
93536         variable is valid.
93537         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93538
93539 2000-11-16  Jim Meyering  <meyering@lucent.com>
93540
93541         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93542
93543 2000-11-11  Jim Meyering  <meyering@lucent.com>
93544
93545         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93546
93547 2000-11-10  Jim Meyering  <meyering@lucent.com>
93548
93549         * lib/obstack.h: Update from GNU libc.
93550         * lib/obstack.c: Likewise.
93551
93552 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93553
93554         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93555
93556 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93557
93558         * lib/getusershell.c (setusershell): Use rewind rather than
93559         fseek/fseeko, to avoid configuration hassles with fseeko.
93560         Don't bother opening SHELLS_FILE if shellstream is NULL;
93561         it's not necessary.
93562
93563 2000-11-05  Jim Meyering  <meyering@lucent.com>
93564
93565         * lib/makepath.h (make_dir): Declare.
93566         * lib/makepath.c (make_dir): Remove `static' attribute.
93567         Tweak a comment.
93568
93569 2000-11-04  Jim Meyering  <meyering@lucent.com>
93570
93571         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93572
93573 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93574
93575         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93576         last one in a bucket, advance to the next bucket.
93577
93578 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93579
93580         * lib/fnmatch.c: Do not comment out all the code if we are using
93581         the GNU C library, because in some cases we are replacing buggy
93582         code in the GNU C library itself.
93583
93584 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93585
93586         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93587         (regex_compile): Catch bogus \(\1\).
93588
93589 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93590
93591         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93592         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93593         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93594
93595 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93596
93597         * lib/error.h, getline.h, modechange.h:
93598         Remove "2000" from Copyright line, as the file hasn't been
93599         changed this year other than in the copyright notice.
93600
93601         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93602         was changed this year.
93603
93604 2000-10-29  Jim Meyering  <meyering@lucent.com>
93605
93606         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93607         renaming.
93608         * m4/ls-mntd-fs.m4: Likewise
93609
93610 2000-10-29  Jim Meyering  <meyering@lucent.com>
93611
93612         * lib/xstat.in: Fix grammar in comment.
93613
93614 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93615
93616         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93617         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93618         doesn't define __restrict_arr.
93619
93620 2000-10-28  Jim Meyering  <meyering@lucent.com>
93621
93622         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93623         (jm_PREREQ_MEMCHR): New function.
93624
93625 2000-10-28  Jim Meyering  <meyering@lucent.com>
93626
93627         * lib/memchr.c: Update from libc.
93628         Adjust for portability:
93629         [HAVE_STDLIB_H]: Include stdlib.h.
93630         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93631         Undef __memchr, too.
93632         [!weak_alias]: Define __memchr to memchr.
93633
93634         * lib/regex.c: Update from libc.
93635         * lib/regex.h: Likewise.
93636         * lib/getopt1.c: Likewise.
93637         * lib/memcmp.c: Likewise.
93638
93639         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93640         Avoid using fseek, when possible -- it's broken by design.
93641         Patch by Ulrich Drepper.
93642
93643 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93644
93645         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93646         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93647         Giving in to popular pressure to shut up the compiler with casts.
93648
93649 2000-10-26  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/strftime.c: Update from libc.
93652
93653 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93654
93655         * regex.c: More `unsigned char' -> `re_char' changes.
93656         Also change several `int' into `re_wchar_t'.
93657         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93658         (PUSH_FAILURE_POINTER): Don't cast any more.
93659         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93660         We want GCC to complain, since this piece of code makes
93661         re_match non-reentrant, which *should* be fixed.
93662         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93663         (EXTEND_BUFFER): Use RETALLOC.
93664         (SET_LIST_BIT): Don't cast.
93665         (re_wchar_t): New type.
93666         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93667         that those two functions will always properly return.
93668         (IMMEDIATE_QUIT_CHECK): Cast to void.
93669         (analyse_first): Use recursion rather than an explicit stack.
93670         (re_compile_fastmap): Can't fail anymore.
93671         (re_search_2): Don't check re_compile_fastmap for failure.
93672         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93673         Now also sets the new value (passed in a new argument).
93674         (re_match_2_internal): Use it.
93675         Also, use a new var `reg' of type size_t when looping through regs
93676         rather than reuse the inappropriate `mcnt'.
93677
93678 2000-10-25  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/obstack.c: Update from libc.
93681
93682 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93683
93684         * regex.c (regex_compile): Change the way of handling a range from
93685         a char less than 256 to a char not less than 256.
93686
93687 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93688
93689         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93690         NT-Emacs only.
93691         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93692         so that re_search functions only quit when callers expect them to.
93693
93694 2000-10-23  Jim Meyering  <meyering@lucent.com>
93695
93696         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93697         wrong.  That set_locale call must not have any side effects.
93698         From Paul Eggert.
93699
93700 2000-10-22  Jim Meyering  <meyering@lucent.com>
93701
93702         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93703         [CYCLIC]: Remove now-unused definition.
93704
93705         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93706         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93707         Suggestion from Ulrich Drepper.
93708
93709 2000-10-21  Jim Meyering  <meyering@lucent.com>
93710
93711         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93712         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93713         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93714
93715 2000-10-21  Jim Meyering  <meyering@lucent.com>
93716
93717         * lib/dirname.c (memrchr): Declare if necessary.
93718         (dir_name): Remove the restriction that there be no
93719         trailing slashes.  Now, this code skips past them, effectively
93720         ignoring them.
93721         [TEST_DIRNAME] (main): New unit tests.
93722
93723         * lib/memrchr.c: New file from GNU libc.
93724         Undef __memrchr, too.
93725         [!weak_alias]: Define __memrchr to memrchr.
93726         Guard weak_alias use with `#ifdef weak_alias'.
93727
93728 2000-10-21  Jim Meyering  <meyering@lucent.com>
93729
93730         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93731         (dir_name): Use dir_name_r.
93732         * lib/dirname.h (dir_name_r): Declare it.
93733
93734 2000-10-17  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/quote.h (PARAMS): Define and use.
93737         Reported by Akim Demaille.
93738
93739         * lib/getopt.c: Update from libc.
93740
93741 2000-10-16  Jim Meyering  <meyering@lucent.com>
93742
93743         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93744         setlocale.
93745         From Jan Fedak.
93746
93747 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93748
93749         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93750
93751 2000-09-25  Jim Meyering  <meyering@lucent.com>
93752
93753         * lib/md5.h (rol): Define (from GnuPG).
93754
93755         * lib/sha.c: Give credit (GnuPG) where due.
93756         (M): Use rol rather than open-coding it.
93757         Add a FIXME comment.
93758
93759 2000-09-21  Jim Meyering  <meyering@lucent.com>
93760
93761         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93762         Reported by Michael Stone.
93763
93764 2000-09-20  Jim Meyering  <meyering@lucent.com>
93765
93766         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93767         (noinst_HEADERS): Add sha.h.
93768         Based on code from Scott G. Miller and from GnuPG.
93769
93770 2000-09-18  Jim Meyering  <meyering@lucent.com>
93771
93772         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93773         LIBS. Otherwise, everyone ends up linking with -lelf for some
93774         configurations.
93775         Reported by Mike Stone.
93776
93777 2000-09-15  Jim Meyering  <meyering@lucent.com>
93778
93779         * lib/regex.c: Update from libc.
93780
93781 2000-09-10  Jim Meyering  <meyering@lucent.com>
93782
93783         * lib/getopt.c (_getopt_internal): Update from glibc.
93784
93785 2000-09-09  Jim Meyering  <meyering@lucent.com>
93786
93787         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93788         think it should be used as a general replacement for isascii.
93789         * lib/fnmatch.c: Likewise.
93790         * lib/mbswidth.c: Likewise
93791         * lib/regex.c: Likewise.
93792
93793         Don't use atoi.
93794         * lib/userspec.c: Include sys/param.h and limits.h.
93795         Include xstrtol.h.
93796         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93797         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93798         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93799         UID, GID.  Check range.
93800
93801 2000-09-06  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/getopt.c (_getopt_internal): Update from glibc.
93804
93805 2000-08-30  Jim Meyering  <meyering@lucent.com>
93806
93807         * lib/strftime.c: Merge in changes from GNU libc.
93808
93809 2000-08-26  Jim Meyering  <meyering@lucent.com>
93810
93811         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93812         * m4/fpending.m4: New file.
93813
93814 2000-08-26  Jim Meyering  <meyering@lucent.com>
93815
93816         * lib/closeout.c: Include "__fpending.h".
93817         (close_stdout_status): Return right away if there's nothing to flush.
93818
93819         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93820         * lib/__fpending.c: New file.
93821         * lib/__fpending.h: New file.
93822
93823 2000-08-20  Jim Meyering  <meyering@lucent.com>
93824
93825         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93826         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93827         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93828
93829 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93830
93831         Improve fileutils installation on systems where running
93832         programs (like install) can't be unlinked.
93833         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93834         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93835
93836 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93837
93838         Standardize on "memory exhausted" instead of "Memory exhausted"
93839         or "virtual memory exhausted".
93840         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93841         "virtual memory exhausted".
93842         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93843         our own message.
93844         * lib/userspec.c (parse_user_spec): Likewise.
93845         * lib/bumpalloc.h: comment fix
93846         * lib/same.c, userspec.c: Include xalloc.h.
93847
93848         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93849         not char *const and pointing to a constant array.
93850         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93851         (xrealloc): Comment fix.
93852
93853         * lib/userspec.c (parse_user_spec):
93854         Don't translate a message until just before returning,
93855         to avoid unnecessary translation.
93856
93857 2000-08-07  Jim Meyering  <meyering@lucent.com>
93858
93859         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93860         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93861         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93862         getgroups.c, gethostname.c, getopt.h, group-member.c,
93863         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93864         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93865         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93866         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93867         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93868         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93869         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93870         yesno.c: Back out Copyright date changes for each file with no change
93871         this year.  This eases coordination with other programs using the same
93872         source code modules.  From Paul Eggert.
93873
93874 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93875
93876         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93877         not char, for compatibility with glibc 2.1.3 strftime.c.
93878
93879 2000-08-03  Greg McGary  <greg@mcgary.org>
93880
93881         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93882         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93883         (EXTEND_BUFFER): Use them.
93884
93885 2000-08-01  Jim Meyering  <meyering@lucent.com>
93886
93887         * lib/dirname.c (ISSLASH): Define.
93888         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93889         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93890         both `\' and `/' may be use as path separators.
93891         Based on a patch from Prashant TR.
93892
93893 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93894
93895         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93896         slot vector a constant, since it might get modified.
93897
93898 2000-07-31  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/xmalloc.c: Use `virtual memory exhausted', not
93901         `Memory exhausted'.
93902         * lib/obstack.c (print_and_abort): Likewise.
93903
93904 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93905
93906         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93907         buffer, so that the caller can always quote one small
93908         component of a "memory exhausted" message in slot 0.
93909         From a suggestion by Jim Meyering.
93910
93911 2000-07-30  Jim Meyering  <meyering@lucent.com>
93912
93913         * lib/makepath.c (make_path): Quote the other instance, too.
93914
93915         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93916         (STATIC_BUF_SIZE): Define.
93917         (quotearg_n_options): Use only statically allocated storage when
93918         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93919         than STATIC_BUF_SIZE.
93920
93921 2000-07-29  Jim Meyering  <meyering@lucent.com>
93922
93923         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93924         * lib/dirname.c (dir_name): Likewise.
93925
93926         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93927         `/'.
93928
93929         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93930         (dir_name): Assert that there are no trailing slashes.
93931
93932 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93933
93934         * lib/mbswidth.h (mbswidth): Add a flags argument.
93935         (mbswidth): New declaration.
93936         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93937         * lib/mbswidth.c (mbswidth): Add a flags argument.
93938         (mbsnwidth): New function.
93939
93940 2000-07-24  Jim Meyering  <meyering@lucent.com>
93941
93942         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93943
93944 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93945
93946         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93947
93948 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93949
93950         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93951         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93952         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93953         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93954         invoke multibyte primitives.
93955
93956 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93957
93958         * lib/quotearg.c:
93959         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93960         so that mbstate_t is always defined.
93961
93962         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93963         be 1 in at least one GCC installation, and this configuration
93964         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93965         performance on hosts that have mbrtowc but have only unibyte
93966         locales, but I assume these hosts are rare.
93967
93968 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93969
93970         * lib/mbswidth.c (_XOPEN_SOURCE):
93971         Don't define; this causes problems on Solaris 7.
93972         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93973
93974 2000-07-23  Jim Meyering  <meyering@lucent.com>
93975
93976         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93977         too: getgrgid, getpwuid, getuid.
93978
93979 2000-07-23  Jim Meyering  <meyering@lucent.com>
93980
93981         * lib/basename.c (base_name): Add an assertion.
93982
93983 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93984
93985         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93986         shadow its mbsinit function.
93987
93988 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93989
93990         * lib/mbswidth.h: New file.
93991         * lib/mbswidth.c: New file.
93992         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93993         (noinst_HEADERS): Add mbswidth.h.
93994
93995 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93996
93997         * lib/config.charset: Add support for FreeBSD. Improve support for
93998         HP-UX and IRIX 6.
93999
94000 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94001
94002         * m4/mbswidth.m4: New file.
94003         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94004
94005 2000-07-15  Jim Meyering  <meyering@lucent.com>
94006
94007         * lib/makepath.c: Include quote.h.
94008         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94009         corresponding argument in a `quote (...)' call.
94010         Give better diagnostics.
94011
94012         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94013         (noinst_HEADERS): Add quote.h.
94014
94015         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94016         from tar's src/misc.c.
94017         * lib/quote.h: New file.  Prototypes for same.
94018
94019 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94020
94021         From a suggestion by Bruno Haible.
94022         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94023         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94024         to decide whether to define the BeOS workaround macro;
94025         this adjusts to the change to AC_MBSTATE_T.
94026
94027 2000-07-14  Jim Meyering  <meyering@lucent.com>
94028
94029         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94030         jm_AC_TYPE_UINTMAX_T.
94031
94032 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94033
94034         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94035
94036         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94037         quotearg_buffer_restyled): Add support for
94038         clocale_quoting_style.  Undo previous change to
94039         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94040         and "{RIGHT QUOTATION MARK}" msgids.
94041
94042 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94043
94044         From a suggestion by Bruno Haible.
94045         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94046         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94047         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94048         and mbstate_t, to a single-part test that simply defines mbstate_t.
94049         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94050         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94051
94052 2000-07-10  Jim Meyering  <meyering@lucent.com>
94053
94054         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94055
94056         * m4/gnu-source.m4: Output to confdefs.h directly.
94057         Suggestion from Akim Demaille.
94058
94059 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94060
94061         The old behavior of quoting `like this' doesn't look good with
94062         newer, ISO-style fonts.  See:
94063         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94064
94065         Instead, quote "like this" by default.  Let the translator
94066         tailor the locale-specific quoting behavior by providing
94067         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94068
94069         * lib/quotearg.c (N_): New macro.
94070         (gettext_default): New function.
94071         (quotearg_buffer_restyled): Use
94072         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94073         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94074
94075 2000-07-09  Jim Meyering  <meyering@lucent.com>
94076
94077         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94078         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94079
94080         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94082
94083 2000-07-09  Jim Meyering  <meyering@lucent.com>
94084
94085         * lib/Most files: Update copyright dates to include 2000.
94086
94087 2000-07-08  Jim Meyering  <meyering@lucent.com>
94088
94089         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94090         if not defined.
94091         (xgethostname): Remove now-unnecessary #ifdef.
94092         Move declaration of `err' into loop where it's used.
94093
94094 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94095         and Bruno Haible  <haible@clisp.cons.org>
94096
94097         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94098         only if the test for an object-type mbstate_t fails.  This
94099         prevents us from mistakenly reporting that mbstate_t is a
94100         system object type after we "#define mbstate_t int" to work
94101         around its lack.
94102
94103 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94104         and Bruno Haible  <haible@clisp.cons.org>
94105
94106         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94107
94108 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94109
94110         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94111         to strerror_r.
94112         Include <ctype.h> for use of isalpha.
94113
94114 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94115
94116         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94117         by allocating a larger buffer. Test the gethostname return value for
94118         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94119         returns an error and ENAMETOOLONG isn't defined.
94120
94121 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94122
94123         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94124         dimension.
94125
94126 2000-07-04  Jim Meyering  <meyering@lucent.com>
94127
94128         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94129         of the deprecated AC_CHECKING.
94130
94131 2000-07-04  Jim Meyering  <meyering@lucent.com>
94132
94133         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94134         Reported by Bruno Haible.
94135
94136 2000-07-04  Jim Meyering  <meyering@lucent.com>
94137
94138         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94139         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94140         lacks mbrtowc.
94141
94142 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94143
94144         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94145         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94146
94147 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94148         and Bruno Haible  <haible@clisp.cons.org>
94149
94150         * lib/quotearg.c (mbrtowc):
94151         Assign to *pwc, and return 1 only if result is nonzero.
94152         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94153
94154 2000-07-03  Jim Meyering  <meyering@lucent.com>
94155
94156         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94157
94158 2000-07-03  Jim Meyering  <meyering@lucent.com>
94159
94160         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94161         This is necessary to get a definition of e.g., UTMP_FILE on
94162         HP-UX 10.20.
94163         From Bob Proulx.
94164
94165 2000-07-02  Jim Meyering  <meyering@lucent.com>
94166
94167         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94168
94169         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94170         AC_LIBOBJ(function_name).
94171         * m4/chown.m4: Likewise.
94172         * m4/fnmatch.m4: Likewise.
94173         * m4/ftruncate.m4: Likewise.
94174         * m4/getgroups.m4: Likewise.
94175         * m4/getline.m4: Likewise.
94176         * m4/group-member.m4: Likewise.
94177         * m4/jm-macros.m4: Likewise.
94178         * m4/lstat.m4: Likewise.
94179         * m4/malloc.m4: Likewise.
94180         * m4/memcmp.m4: Likewise.
94181         * m4/nanosleep.m4: Likewise.
94182         * m4/putenv.m4: Likewise.
94183         * m4/realloc.m4: Likewise.
94184         * m4/regex.m4: Likewise.
94185         * m4/stat.m4: Likewise.
94186         * m4/strftime.m4: Likewise.
94187
94188 2000-07-02  Jim Meyering  <meyering@lucent.com>
94189
94190         * lib/quotearg.c (mbstate_t): Don't define here.
94191
94192 2000-07-02  Jim Meyering  <meyering@lucent.com>
94193
94194         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94195
94196 2000-07-01  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94199
94200 2000-07-01  Jim Meyering  <meyering@lucent.com>
94201
94202         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94203         problem.
94204
94205 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94206
94207         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94208         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94209
94210 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94211
94212         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94213         per change in ../m4/ls-mntd-fs.m4.
94214         (read_filesystem_list): Ignore symbolic links.
94215
94216 2000-06-29  Jim Meyering  <meyering@lucent.com>
94217
94218         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94219         for declaration of strcmp.
94220
94221         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94222
94223         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94224         Avoid warning by casting result to `char *' to remove `const'.
94225
94226 2000-06-28  Jim Meyering  <meyering@lucent.com>
94227
94228         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94229         included by quotearg.c, for which we perform this test.  From
94230         Bruno Haible.
94231
94232 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94233
94234         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94235         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94236         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94237
94238 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94239
94240         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94241
94242 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94243
94244         savedir now sets errno on failure and invokes xmalloc to get memory.
94245         Fix a couple of other minor bugs while we're at it.
94246
94247         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94248         (NAMLEN): Remove macro.
94249         (malloc, realloc): Remove decls.
94250         (stpcpy): Likewise.
94251         ("xalloc.h"): Include.
94252         (NAME_SIZE_DEFAULT): New macro.
94253         (savedir): Use xmalloc / xrealloc to allocate memory.
94254         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94255         Skip "" directory entries.
94256         Use strlen to calculate directory entry length, since the old method
94257         is rarely used these days and isn't worth supporting.
94258         Don't use a pointer after freeing it.
94259         Check for integer overflow when calculating allocation size.
94260         Use memcpy to copy entries, instead of stpcpy.
94261         Set errno properly when returning NULL.
94262         Check for readdir error.
94263
94264 2000-06-26  Jim Meyering  <meyering@lucent.com>
94265
94266         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94267
94268 2000-06-25  Jim Meyering  <meyering@lucent.com>
94269
94270         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94271         Linux header bug when _XOPEN_SOURCE is defined to 500.
94272
94273 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94274
94275         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94276         deficiency.
94277
94278 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94279
94280         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94281         Include xalloc.h.
94282         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94283
94284 2000-06-24  Jim Meyering  <meyering@lucent.com>
94285
94286         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94287         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94288         for which strerror does return char*, but which lacks a conveniently
94289         accessible declaration of the function.  If the compile-test says
94290         strerror_r doesn't work, then resort to a `run'-test that works on
94291         BeOS and segfaults on DEC Unix.
94292
94293 2000-06-24  Jim Meyering  <meyering@lucent.com>
94294
94295         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94296
94297 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94298
94299         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94301
94302 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94303
94304         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94305         (mbrtowc, mbstate_t): Define substitutes if
94306         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94307         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94308         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94309
94310 2000-06-23  Jim Meyering  <meyering@lucent.com>
94311
94312         * m4/afs.m4: Add missing AC_MSG_RESULT.
94313         Reported by Bruno Haible.
94314
94315         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94316         Suggestion from Bruno Haible.
94317
94318 2000-06-23  Jim Meyering  <meyering@lucent.com>
94319
94320         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94321
94322 2000-06-21  Jim Meyering  <meyering@lucent.com>
94323
94324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94325
94326 2000-06-21  Jim Meyering  <meyering@lucent.com>
94327
94328         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94329         (noinst_HEADERS): Add getstr.h.
94330
94331         * lib/getline.c (getstr): Move into a separate file.
94332         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94333         the following changes: new parameter, delim2; both delim[12]
94334         parameters have type `int', not `char'.  The latter would lose
94335         with 8-bit delimiters.
94336         * lib/getstr.h: New file.
94337
94338 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94339
94340         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94341         than 1024, return a memory chunk of least possible size, instead
94342         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94343         Use free/xmalloc instead of xrealloc to avoid copying for very long
94344         paths.
94345
94346 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94347
94348         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94349         the empty string.
94350
94351 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94352
94353         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94354         address, not strdup.  Include <stdlib.h> and don't declare free().
94355
94356 2000-06-19  Jim Meyering  <meyering@lucent.com>
94357
94358         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94359
94360 2000-06-18  Jim Meyering  <meyering@lucent.com>
94361
94362         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94363
94364         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94365         `checking whether...' message to be consistent with that of the
94366         lstat test.
94367
94368 2000-06-18  Jim Meyering  <meyering@lucent.com>
94369
94370         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94371         Besides, these days every porting target provides a mkdir function.
94372
94373         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94374         needed. (this snippet comes from src/system.h).
94375
94376 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94377
94378         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94379
94380 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94381
94382         * lib/human.c (adjust_value): New function.
94383         (human_readable_inexact): Apply rounding style even when
94384         printing approximate values.
94385
94386 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94387
94388         * lib/human.c (human_readable_inexact): Allow an input block
94389         size that is not a multiple of the output block size, and vice versa.
94390         Reported by Piergiorgio Sartor.
94391
94392 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94393
94394         * lib/getdate.y (get_date): Apply relative times after time
94395         zone indicator, not before.  Reported by Todd A. Jacobs.
94396
94397 2000-06-13  Jim Meyering  <meyering@lucent.com>
94398
94399         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94400
94401         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94402
94403 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94404
94405         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94406
94407 2000-06-12  Jim Meyering  <meyering@lucent.com>
94408
94409         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94410         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94411         optional argument.
94412         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94413         the optional argument, `lib'.
94414
94415 2000-06-08  Jim Meyering  <meyering@lucent.com>
94416
94417         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94418
94419 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94420
94421         Rewrite largefile configuration so that we don't need to run
94422         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94423         AC_CANONICAL_HOST in configure.in -- jmm]
94424
94425         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94426         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94427         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94428         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94429         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94430         All uses changed.
94431         Instead of inspecting the output of getconf, try to compile the
94432         test program without and with the macro definition.
94433         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94434         for getconf.  Instead, check for the needed flags by compiling
94435         test programs.
94436
94437 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94438
94439         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94440
94441 2000-06-04  Jim Meyering  <meyering@lucent.com>
94442
94443         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94444         SunOS 4.1.4 for which gid_t is an unsigned type.
94445
94446 2000-06-03  Jim Meyering  <meyering@lucent.com>
94447
94448         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94449         now that autoconf requires that.
94450
94451         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94452         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94453         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94454
94455 2000-06-03  Jim Meyering  <meyering@lucent.com>
94456
94457         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94458
94459 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94460
94461         * m4/glibc21.m4: New file.
94462         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94463
94464 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94465
94466         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94467         newer, don't install charset.alias.
94468         * lib/config.charset: Change the Linux/glibc rules so they become empty
94469         on glibc-2.1 or newer.
94470
94471 2000-06-02  Jim Meyering  <meyering@lucent.com>
94472
94473         * lib/mountlist.c: Back out last change.  Instead, do this...
94474         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94475         me_dummy member using the same `ignore'-testing code.
94476         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94477         fs_type strings.
94478         From Mark D. Roth.
94479
94480 2000-05-29  Jim Meyering  <meyering@lucent.com>
94481
94482         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94483         mounts with the `ignore' attribute.  Based on a patch from
94484         Mark D. Roth.
94485
94486 2000-05-28  Jim Meyering  <meyering@lucent.com>
94487
94488         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94489         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94490         * m4/stat.m4: Likewise.
94491         * m4/lstat.m4: Likewise.
94492         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94493
94494         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94495         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94496
94497 2000-05-26  Jim Meyering  <meyering@lucent.com>
94498
94499         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94500
94501 2000-05-24  Jim Meyering  <meyering@lucent.com>
94502
94503         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94504         autoconf requires that.
94505         * m4/lib-check.m4: Likewise.
94506         * m4/jm-macros.m4: Likewise.
94507         * m4/strftime.m4: Likewise.
94508
94509         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94510         AC_CHECK_DECLS, now that autoconf requires that.
94511
94512 2000-05-22  Jim Meyering  <meyering@lucent.com>
94513
94514         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94515         * m4/lstat.m4: Likewise.
94516
94517 2000-05-22  Jim Meyering  <meyering@lucent.com>
94518
94519         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94520
94521 2000-05-20  Jim Meyering  <meyering@lucent.com>
94522
94523         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94524         (jm_PREREQ): Use it.
94525
94526 2000-05-18  Jim Meyering  <meyering@lucent.com>
94527
94528         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94529         back, too, since it may have been modified by allocate_entry.
94530         (hash_delete): Rewrite to use neither the assignment operator
94531         nor the comma operator in an if-expression.
94532
94533 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94534
94535         * lib/closeout.c:
94536         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94537         Remove; no longer needed.
94538         "quotearg.h": Add include.
94539         (file_name): Do not bother to explicitly initialize to NULL; it's less
94540         efficient on some hosts.
94541         (close_stdout_status): Remove test as to whether stdout was already
94542         closed; it breaks for the case "echo x | sort >&-".
94543         Quote file name colons.
94544         Do not assume that _("write error") lacks format strings.
94545
94546 2000-05-15  Jim Meyering  <meyering@lucent.com>
94547
94548         * lib/version-etc.c (version_etc_copyright): Update the copyright
94549         string used in all --version output.
94550
94551 2000-05-14  Jim Meyering  <meyering@lucent.com>
94552
94553         * lib/closeout.c (close_stdout_set_file_name): New function.
94554         (close_stdout_status): Use new file-scoped global.
94555         Return right away if fstat says the stdout file descriptor is invalid.
94556         * lib/closeout.h (close_stdout_set_file_name): Declare.
94557
94558 2000-05-10  Jim Meyering  <meyering@lucent.com>
94559
94560         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94561         (close_stdout_set_status): New function.
94562         * lib/closeout.h (close_stdout_set_status): Declare.
94563
94564 2000-05-09  Jim Meyering  <meyering@lucent.com>
94565
94566         * m4/gettext.m4: Rename this...
94567         * m4/libintl.m4: ...to this.
94568
94569 2000-05-08  Jim Meyering  <meyering@lucent.com>
94570
94571         * lib/long-options.c: Don't include closeout.h.
94572         (parse_long_options): Don't call close_stdout for --version.
94573
94574 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94575
94576         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94577         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94578         2.1.3 bug.  This avoids a clash when files like regex.c define
94579         _GNU_SOURCE.
94580
94581 2000-05-06  Jim Meyering  <meyering@lucent.com>
94582
94583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94584         (AC_REPLACE_FUNCS): Add strnlen.
94585
94586         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94587         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94588
94589         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94590         AC_SEARCH_LIBS call for nanosleep.
94591         (LIB_NANOSLEEP): Set and AC_SUBST.
94592
94593 2000-05-06  Jim Meyering  <meyering@lucent.com>
94594
94595         * lib/strnlen.c: Undefine __strnlen and strnlen.
94596         [!weak_alias]: Define __strnlen to strnlen.
94597
94598         * lib/atexit.c: New file, from libiberty.
94599
94600 2000-05-06  Jim Meyering  <meyering@lucent.com>
94601
94602         * lib/closeout.c (close_stdout_status): Also check for errors on the
94603         stderr stream.
94604
94605 2000-05-05  Jim Meyering  <meyering@lucent.com>
94606
94607         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94608         AC_SEARCH_LIBS call for clock_gettime.
94609         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94610
94611         * m4/search-libs.m4: Update from autoconf.
94612
94613         su doesn't work on Solaris 2.6.
94614         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94615         <shadow.h>.  Reported by Dragos Harabor.
94616
94617 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94618
94619         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94620         memcpy instead of xmalloc, xrealloc, path_concat.
94621         (locale_charset): Treat empty environment variables as absent.
94622         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94623
94624 2000-05-04  Jim Meyering  <meyering@lucent.com>
94625
94626         * lib/getopt.c: Update from glibc.
94627         * lib/obstack.c: Likewise.
94628         * lib/obstack.h: Likewise.
94629         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94630         file
94631
94632         * lib/regex.h: Likewise.
94633         * lib/strndup.c: Likewise.
94634         * lib/strnlen.c: New file, from glibc.
94635
94636 2000-05-03  Jim Meyering  <meyering@lucent.com>
94637
94638         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94639
94640 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94641
94642         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94643         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94644         compile-time test, rather than inspecting host and OS, to
94645         decide whether to define _LARGEFILE_SOURCE.
94646
94647 2000-05-01  Jim Meyering  <meyering@lucent.com>
94648
94649         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94650
94651         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94652         Based on a patch from Bruno Haible.
94653
94654 2000-05-01  Jim Meyering  <meyering@lucent.com>
94655
94656         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94657
94658 2000-04-29  Jim Meyering  <meyering@lucent.com>
94659
94660         * lib/path-concat.c: Declare strdup only if it's not defined.
94661         * lib/canon-host.c: Likewise.
94662
94663 2000-04-28  Jim Meyering  <meyering@lucent.com>
94664
94665         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94666         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94667         is included first, then limits.h is included by locale.h by libintl.h.
94668         From John David Anglin.
94669
94670 2000-04-25  Jim Meyering  <meyering@lucent.com>
94671
94672         * lib/makepath.c (S_IRWXUGO): Define.
94673         (make_path): Always perform explicit chmod if MODE specifies any
94674         of the `special' permission bits.  Prompted by a bug report against
94675         install from Mate Wierdl and Joost van Baal.
94676
94677 2000-04-18  Jim Meyering  <meyering@lucent.com>
94678
94679         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94680         (jm_PREREQ): Use it.
94681
94682 2000-04-18  Jim Meyering  <meyering@lucent.com>
94683
94684         * lib/README: New file.
94685
94686         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94687         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94688
94689 2000-04-17  Jim Meyering  <meyering@lucent.com>
94690
94691         Get it right :-)
94692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94693         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94694         Suggestion from Akim Demaille.
94695
94696 2000-04-17  Jim Meyering  <meyering@lucent.com>
94697
94698         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94699         the definition of it to rpl_strftime also defined-away the system's
94700         declaration.
94701
94702 2000-04-15  Jim Meyering  <meyering@lucent.com>
94703
94704         Use `C' to denote so-called `contiguous' files, the same way
94705         that tar does.
94706         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94707         (ftypelet): Use S_ISCTG.
94708         From Michael Deutschmann.
94709
94710 2000-04-14  Jim Meyering  <meyering@lucent.com>
94711
94712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94713         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94714         clobbered.
94715
94716 2000-04-14  Jim Meyering  <meyering@lucent.com>
94717
94718         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94719
94720 2000-04-13  Jim Meyering  <meyering@lucent.com>
94721
94722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94723         AH_VERBATIM to insert required #ifndef into config.h.in.
94724         Suggestion from Akim Demaille.
94725
94726 2000-04-12  Jim Meyering  <meyering@lucent.com>
94727
94728         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94729         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94730         Christian Krackowizer.
94731
94732         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94733         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94734         (AC_SYS_LARGEFILE): Require.
94735         (AM_C_PROTOTYPES): Require.
94736
94737 2000-04-08  Jim Meyering  <meyering@lucent.com>
94738
94739         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94740         names don't conflict.  Reported by Eli Zaretskii.
94741
94742 2000-04-07  Jim Meyering  <meyering@lucent.com>
94743
94744         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94745         sys/types.h, to work around system header problems on AIX 3.2.5.
94746         From Bruno Haible.
94747
94748 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94749
94750         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94751         bug.  Deal with the different error behavior of Irix iconv.
94752
94753 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94754
94755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94756         IRIX if the installer said otherwise.
94757
94758 2000-04-05  Jim Meyering  <meyering@lucent.com>
94759
94760         Portability tweaks required for ultrix4.3.
94761         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94762         (jm_CHECK_DECLS): Add getutent to the list of functions.
94763         (_jm_DECL_HEADERS): Add utmpx.h.
94764         From John David Anglin.
94765
94766         * m4/strftime.m4: Back out the 2000-04-02 change.
94767         Instead of that change, simply undefine putenv in the test program.
94768
94769 2000-04-05  Jim Meyering  <meyering@lucent.com>
94770
94771         Portability tweaks required for ultrix4.3.
94772         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94773         getutent.
94774         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94775         * lib/canon-host.c: Declare strdup.
94776         * lib/path-concat.c: Likewise.
94777         From John David Anglin.
94778
94779 2000-04-04  Jim Meyering  <meyering@lucent.com>
94780
94781         Be more DOS 8.3-friendly.
94782         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94783         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94784         * lib/Makefile.am: Reflect renaming.
94785         Reported by Eli Zaretskii.
94786
94787         Use a temporary file name that won't clash with `charset.alias'
94788         in the DOS 8.3 name space.
94789         * lib/Makefile.am (charset_tmp): Define.
94790         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94791         (uninstall-local): Likewise.
94792         Reported by Eli Zaretskii.
94793
94794 2000-04-03  Jim Meyering  <meyering@lucent.com>
94795
94796         * m4/gettext.m4: Fix typo in comment.
94797
94798         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94799         textutils/configure.in).  Suggestion from Paul Eggert.
94800         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94801
94802 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94803
94804         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94805         variable in the shell rather than using putenv, which isn't
94806         portable.  This avoids the configure-time inter-test dependency
94807         on the potentially-renamed putenv function.
94808
94809 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94810
94811         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94812         before checking struct stat.st_blksize, so that
94813         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94814
94815 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94816
94817         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94818         since strftime.c uses HAVE_STRFTIME to decide whether to use
94819         the underlying strftime.
94820
94821 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94822
94823         * lib/time/strftime.c (my_strftime): Make sure we call the system
94824         strftime, not ourselves, when invoking the underlying strftime.
94825
94826 2000-03-24  Jim Meyering  <meyering@lucent.com>
94827
94828         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94829         (charset_alias): Define.
94830         (install-exec-local): Factor out common code.
94831         (uninstall-local): Split lines longer than 80.
94832         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94833         (SUFFIXES): Define.
94834         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94835         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94836
94837 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94838
94839         * lib/config.charset: Output a line containing "Packages using this
94840         file".
94841         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94842         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94843         ref-del.sed): New rules.
94844
94845 2000-03-17  Jim Meyering  <meyering@lucent.com>
94846
94847         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94848         Otherwise, include <strings.h>
94849
94850 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94851
94852         * lib/unicodeio.c (utf8_wctomb): New function.
94853         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94854         format instead of in UCS-4 with platform dependent endianness.
94855
94856 2000-03-10  Jim Meyering  <meyering@lucent.com>
94857
94858         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94859         From Marco Franzen.
94860
94861 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94862
94863         * lib/savedir.c (savedir): Work even if directory size is
94864         negative; this can happen with some screwy NFS configurations.
94865
94866 2000-03-06  Jim Meyering  <meyering@lucent.com>
94867
94868         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94869         if it's NULL (because we ran out of memory).  From Bruno Haible.
94870
94871 2000-03-05  Jim Meyering  <meyering@lucent.com>
94872
94873         * lib/localcharset.c ("path-concat.h"): Include.
94874         (get_charset_aliases): Use path_concat instead of ANSI string
94875         concatenation.
94876
94877         * lib/unicodeio.h (PARAMS): Define.
94878         Use it to guard prototype.
94879
94880 2000-03-04  Jim Meyering  <meyering@lucent.com>
94881
94882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94883         for lib/localcharset.c.
94884
94885 2000-03-04  Jim Meyering  <meyering@lucent.com>
94886
94887         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94888         installing into it.
94889         (uninstall-local): Uncomment this rule so `make distcheck' works
94890         once again.
94891
94892         * lib/unicodeio.c (<errno.h>): Include it.
94893         (errno): Declare if not defined.
94894
94895         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94896
94897         * lib/config.charset: New version, incorporating remarks from a linux
94898         i18n mailing list.  From Bruno Haible.
94899
94900 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94901
94902         * m4/codeset.m4: New file.
94903         * m4/iconv.m4: New file.
94904         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94905
94906 2000-03-03  Jim Meyering  <meyering@lucent.com>
94907
94908         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94909
94910 2000-03-02  Jim Meyering  <meyering@lucent.com>
94911
94912         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94913         the messages come out on separate lines.
94914
94915         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94916         rather than jm_CHECK_DECLARATIONS.
94917         * m4/decl.m4: Remove now-unused file.
94918
94919         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94920         geteuid.
94921
94922 2000-03-02  Jim Meyering  <meyering@lucent.com>
94923
94924         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94925
94926 2000-03-01  Jim Meyering  <meyering@lucent.com>
94927
94928         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94929         * lib/unicodeio.c: Likewise.
94930
94931 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94932
94933         * lib/config.charset: New file.
94934         * lib/localcharset.c: New file.
94935         * lib/unicodeio.h, lib/unicodeio.c: New files.
94936         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94937         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94938         (noinst_HEADERS): Add unicodeio.h.
94939         (all-local, install-exec-local, charset.alias): New targets.
94940
94941 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94942
94943         * lib/quotearg.c (ALERT_CHAR): New macro.
94944         (quotearg_buffer_restyled): Use it.
94945
94946 2000-02-27  Jim Meyering  <meyering@lucent.com>
94947
94948         * m4/check-decl.m4: Add getenv to the list.
94949
94950 2000-02-27  Jim Meyering  <meyering@lucent.com>
94951
94952         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94953         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94954
94955         * lib/backupfile.c: Guard inclusion of stdlib.h with
94956         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94957         Declare malloc if needed.
94958
94959         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94960         `#ifndef HAVE_DECL..'
94961         now that autoconf always defines the HAVE_DECL_ symbols.
94962         * lib/human.c: Likewise.
94963         * lib/same.c: Likewise.
94964         * lib/strtoumax.c: Likewise.
94965
94966         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94967         declaration check was not run.
94968         * lib/hash.c: Likewise.
94969         * lib/human.c: Likewise.
94970         * lib/same.c: Likewise.
94971         * lib/strtoumax.c: Likewise.
94972
94973         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94974         `.', then first look up the entire `.'-containing string as a login
94975         name.
94976
94977 2000-02-23  Jim Meyering  <meyering@lucent.com>
94978
94979         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94980         in place of my hack.
94981
94982 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94983
94984         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94985         (textint): New typedef.
94986         (parser_control): Member year changed from int to textint.
94987         All uses changed.
94988         (YYSTYPE): Removed; replaced by %union with int and textint members.
94989         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94990         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94991         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94992         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94993         (date, number, to_year): Use width of number in digits, not its value,
94994         to determine whether it's a 2-digit year, or a 2-digit time.
94995         (yylex): Store number of digits of numeric tokens.
94996         Reported by John Kendall.
94997
94998         (parser_control): Changed from struct parser_control to typedef (for
94999         consistency).  All uses changed.
95000
95001         (tID): Removed; not used.
95002         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95003
95004 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95005
95006         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95007         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95008
95009 2000-02-12  Jim Meyering  <meyering@lucent.com>
95010
95011         * lib/userspec.c (ISDIGIT): Define it.
95012         (isdigit): Remove definition.
95013         (is_number): Use ISDIGIT, not isdigit.
95014         <libintl.h>: Include.
95015         (_ and N_): Define.
95016         (parse_user_spec): Mark translatable strings.
95017
95018 2000-02-10  Jim Meyering  <meyering@lucent.com>
95019
95020         With these changes, nanosleep.[ch] are finally enough like the other
95021         lib/* replacement files to compile on a few more losing systems.
95022
95023         * lib/nanosleep.h: Don't include config.h.
95024         Remove prototype from declaration of nanosleep.
95025         (PARAMS): Remove now-unneeded definition.
95026         * lib/nanosleep.c: #undef nanosleep.
95027         (rpl_nanosleep): Rename from nanosleep.
95028
95029 2000-02-10  Jim Meyering  <meyering@lucent.com>
95030
95031         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95032         gnu_nanosleep to rpl_nanosleep.
95033
95034 2000-02-09  Jim Meyering  <meyering@lucent.com>
95035
95036         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95037         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95038
95039 2000-02-08  Akim Demaille  <akim@epita.fr>
95040
95041         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95042         `[' and `]' and remove uses of `changequote'.
95043         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95044         (AC_SYS_LARGEFILE): Likewise.
95045         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95046         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95047         of changequote.
95048         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95049         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95050         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95051         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95052
95053 2000-02-05  Jim Meyering  <meyering@lucent.com>
95054
95055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95056         Remove explicit use of AC_HEADER_TIME.  It is required by
95057         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95058         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95059         in autoconf whereby the expansion of the latter ended up preceding
95060         the expansion of its prerequisite, AC_HEADER_TIME.
95061         Reported by Volker Borchert.
95062
95063 2000-02-03  Jim Meyering  <meyering@lucent.com>
95064
95065         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95066
95067 2000-02-03  Jim Meyering  <meyering@lucent.com>
95068
95069         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95070         rather than with `#if HAVE_UTMPNAME'.
95071
95072 2000-02-02  Jim Meyering  <meyering@lucent.com>
95073
95074         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95075         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95076         Reported by Eli Zaretskii.
95077
95078 2000-02-01  Jim Meyering  <meyering@lucent.com>
95079
95080         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95081
95082 2000-01-31  Jim Meyering  <meyering@lucent.com>
95083
95084         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95085         functions.  Add the time.h and sys/time.h headers along with the
95086         AC_REQUIRE'ment of AC_HEADER_TIME.
95087
95088 2000-01-31  Jim Meyering  <meyering@lucent.com>
95089
95090         * lib/nanosleep.h (nanosleep): Guard declaration with
95091         `#if ! HAVE_DECL_NANOSLEEP'.
95092         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95093         the declaration in that vendor's sys/timers.h.
95094         Reported by Christian Krackowizer.
95095
95096         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95097         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95098         (ISPRINT): Likewise.
95099         Reported by Tom Tromey.
95100
95101 2000-01-30  Jim Meyering  <meyering@lucent.com>
95102
95103         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95104
95105         * m4/prereq.m4 (utmp_includes): Define.
95106         Check for ut_user and ut_name members in both struct utmpx
95107         and struct utmp.
95108
95109 2000-01-30  Jim Meyering  <meyering@lucent.com>
95110
95111         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95112         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95113         header files where only utmpx.ut_user is declared.
95114
95115         * lib/readutmp.h (UT_USER): Define.
95116
95117 2000-01-29  Jim Meyering  <meyering@lucent.com>
95118
95119         * m4/lib-check.m4: New file containing library-related checks from
95120         fileutils and sh-utils (textutils had none).
95121
95122 2000-01-28  Jim Meyering  <meyering@lucent.com>
95123
95124         * m4/perl.m4: Change format of warning message to look more like that
95125         from the missing script.  Suggestion from François Pinard.
95126
95127 2000-01-25  Jim Meyering  <meyering@lucent.com>
95128
95129         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95130         well as time.h in the compile check.
95131         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95132         Fix typo in cross-compiling case: s/yes/no/.
95133
95134 2000-01-23  Jim Meyering  <meyering@lucent.com>
95135
95136         * m4/jm-macros.m4: Move df-related tests here from
95137         fileutils/configure.in
95138
95139         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95140         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95141
95142         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95143         s/space/ac_fsusage_space/.
95144         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95145
95146         * m4/ftruncate.m4: New file (derived from part of
95147         fileutils/configure.in).
95148         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95149         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95150
95151         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95152         AC_SUBST these here, rather than just in sh-util/configure.in, so
95153         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95154         all the same.
95155         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95156         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95157         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95158         (AC_SUBST(POW_LIBM)): Likewise.
95159         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95160
95161 2000-01-23  Jim Meyering  <meyering@lucent.com>
95162
95163         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95164         obstack.c.
95165
95166 2000-01-22  Jim Meyering  <meyering@lucent.com>
95167
95168         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95169
95170         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95171
95172         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95173         configure.in
95174         (AC_CHECK_HEADERS): Likewise for sh-utils.
95175         (AC_CHECK_HEADERS): Likewise for textutils.
95176         Merge the three lists of headers.
95177
95178         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95179         from fileutils' configure.in.
95180
95181         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95182         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95183         check-decl.m4.
95184
95185         * m4/check-decl.m4: Use #if rather than #ifdef.
95186         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95187         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95188         (_jm_DECL_HEADERS): Define new function.
95189         (jm_CHECK_DECLARATIONS): Require it.
95190
95191 2000-01-22  Jim Meyering  <meyering@lucent.com>
95192
95193         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95194         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95195         Required for some AIX systems.  Reported by Christian Krackowizer.
95196         [TESTING] (main): New function.
95197
95198         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95199         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95200         letters.
95201
95202         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95203         iswprint.
95204
95205         * lib/strverscmp.c (ISDIGIT): Define.
95206         (strverscmp): Use ISDIGIT, not isdigit.
95207
95208 2000-01-19  Jim Meyering  <meyering@lucent.com>
95209
95210         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95211         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95212         defines `struct timespec' in <sys/time.h>
95213
95214         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95215         Thanks to Akim for explaining.
95216
95217 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95218
95219         * lib/nanosleep.c (nanosleep):
95220         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95221         POSIX.1 doesn't require SA_INTERRUPT and some systems
95222         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95223         it's been part of POSIX.1 since day 1 (in 1988).
95224
95225 2000-01-17  Jim Meyering  <meyering@lucent.com>
95226
95227         * lib/interlock: Remove unused file.  Reported by François Pinard.
95228
95229 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95230
95231         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95232         alert, backslash, formfeed, and vertical tab unnecessarily in
95233         shell quoting style.
95234
95235 2000-01-16  Jim Meyering  <meyering@lucent.com>
95236
95237         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95238         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95239         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95240         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95241
95242 2000-01-16  Jim Meyering  <meyering@lucent.com>
95243
95244         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95245         because the latter didn't work.
95246
95247 2000-01-15  Jim Meyering  <meyering@lucent.com>
95248
95249         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95250         (AC_REPLACE_FUNCS): Add memcpy and memset.
95251         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95252         Add strpbrk.
95253         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95254
95255 2000-01-12  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95258         (jm_PREREQ): Use it.
95259         (jm_PREREQ_READUTMP): New macro.
95260         (jm_PREREQ): Use it.
95261
95262 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95263
95264         Quote multibyte characters correctly.
95265         * m4/c-bs-a.m4: New file.
95266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95267         (jm_PREREQ): Use it.
95268
95269 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95270
95271         * m4/uintmax_t.m4: Port to autoconf 2.13.
95272
95273 2000-01-08  Jim Meyering  <meyering@ascend.com>
95274
95275         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95276         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95277
95278 2000-01-04  Jim Meyering  <meyering@ascend.com>
95279
95280         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95281         jm_STRUCT_DIRENT_D_TYPE.
95282         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95283         jm_STRUCT_DIRENT_D_INO.
95284         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95285         jm_STRUCT_UTIMBUF.
95286         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95287         renamings.
95288         * m4/utime.m4: Likewise.
95289
95290         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95291         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95292
95293 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95294
95295         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95296         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95297
95298 2000-01-02  Jim Meyering  <meyering@ascend.com>
95299
95300         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95301         remember if this is necessary.
95302
95303 1999-12-26  Jim Meyering  <meyering@ascend.com>
95304
95305         * m4/jm-macros.m4: Use it here.
95306         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95307
95308 1999-12-23  Jim Meyering  <meyering@ascend.com>
95309
95310         * m4/jm-macros.m4: Check for clock_gettime (moved from
95311         fileutils/configure.in)
95312         Check for gettimeofday.
95313
95314 1999-12-20  Jim Meyering  <meyering@ascend.com>
95315
95316         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95317         autoconf-2.14a-1999-12-20.
95318
95319 1999-12-19  Jim Meyering  <meyering@ascend.com>
95320
95321         * m4/lstat-slash.m4: New file.
95322         * m4/jm-macros.m4: Use the new macro:
95323         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95324
95325 1999-12-07  Jim Meyering  <meyering@ascend.com>
95326
95327         * m4/perl.m4: Require that File::Compare be available, too.
95328         Too many systems seem to lack it.
95329
95330         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95331         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95332
95333 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95334
95335         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95336         problem with the QNX 4.25 shell, which doesn't propagate exit
95337         status of failed commands inside shell assignments.
95338
95339 1999-11-17  Jim Meyering  <meyering@ascend.com>
95340
95341         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95342
95343 1999-11-07  Jim Meyering  <meyering@ascend.com>
95344
95345         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95346
95347 1999-11-06  Jim Meyering  <meyering@ascend.com>
95348
95349         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95350         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95351
95352 1999-11-05  Jim Meyering  <meyering@ascend.com>
95353
95354         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95355         configure.in of textutils, fileutils, and sh-utils into this one
95356         (shared between those packages) file.
95357         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95358         AC_STRUCT_ST_BLKSIZE.
95359
95360 1999-11-03  Jim Meyering  <meyering@ascend.com>
95361
95362         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95363         of AC_CHECK_TYPE checks includes unistd.h.
95364         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95365         Suggestion from Akim Demaille.
95366
95367 1999-10-30  Jim Meyering  <meyering@ascend.com>
95368
95369         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95370         m4-quoted string.
95371         * m4/ls-mntd-fs.m4: Likewise.
95372         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95373         * m4/jm-winsz1.m4: Likewise.
95374
95375         * m4/const.m4: Remove file, since the fix made it into the experimental
95376         version of autoconf.
95377         * m4/mktime.m4: Likewise.
95378
95379         * m4/check-type.m4: Remove file, now that the latest version of
95380         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95381
95382         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95383         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95384         AC_CHECK_TYPE.
95385
95386 1999-10-04  Jim Meyering  <meyering@ascend.com>
95387
95388         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95389
95390 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95391
95392         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95393         2.95.1 bug with HP-UX 10.20.
95394
95395 1999-09-17  Jim Meyering  <meyering@ascend.com>
95396
95397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95398         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95399         due to missing strdup (against sh-utils-2.0).
95400
95401 1999-08-29  Jim Meyering  <meyering@ascend.com>
95402
95403         * m4/jm-macros.m4: Require jm_BISON.
95404         * m4/bison.m4: New file.
95405
95406 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95407
95408         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95409         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95410
95411 1999-08-05  Jim Meyering  <meyering@ascend.com>
95412
95413         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95414         to avoid conflicts with `conftest' on 8+3 filesystems.
95415         Suggestion from Eli Zaretskii.
95416
95417 1999-08-04  Jim Meyering  <meyering@ascend.com>
95418
95419         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95420         fileutils and sh-utils (textutils's getline test was inadequate).
95421         (AM_FUNC_GETLINE): Run this test.
95422         (AC_CHECK_FUNCS): Check for getdelim.
95423         Reported by Bob Proulx.
95424
95425 1999-08-02  Jim Meyering  <meyering@ascend.com>
95426
95427         * m4/jm-macros.m4: Add a comment.
95428
95429 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95430
95431         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95432         <inttypes.h> defines strtoumax as a macro (and not as a
95433         function).
95434
95435 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95436
95437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95438         that we can shift, multiply and divide unsigned long long
95439         values; Ultrix cc can't do it.
95440
95441 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95442
95443         * m4/mktime.m4: New file, which is a preview of what should appear
95444         in the next public autoconf release.
95445
95446 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95447
95448         * m4/lfs.m4: Remove this file.
95449         * m4/largefile.m4: New file.  It contains the old contents of
95450         lfs.m4, except that all names with prefix AC_LFS have been
95451         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95452         compatible with future autoconf versions.  Also, some minor m4
95453         quoting problems have been fixed.
95454
95455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95456
95457         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95458         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95459         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95460         and simplify the shell code.
95461
95462 1999-08-01  Jim Meyering  <meyering@ascend.com>
95463
95464         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95465         m4.
95466
95467 1999-07-20  Jim Meyering  <meyering@ascend.com>
95468
95469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95470
95471 1999-07-15  Jim Meyering  <meyering@ascend.com>
95472
95473         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95474
95475 1999-05-22  Jim Meyering  <meyering@ascend.com>
95476
95477         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95478
95479 1999-05-20  Jim Meyering  <meyering@ascend.com>
95480
95481         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95482         Add a colon after each `then' in case $4 is empty.
95483
95484 1999-05-16  Jim Meyering  <meyering@ascend.com>
95485
95486         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95487
95488 1999-05-10  Jim Meyering  <meyering@ascend.com>
95489
95490         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95491
95492         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95493         AC_FUNC_MKTIME.
95494
95495 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95496
95497         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95498
95499 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95500
95501         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95502         not CPPFLAGS, so that linking works correctly in IRIX.
95503
95504 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95505
95506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95507
95508 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95509
95510         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95511         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95513         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95514         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95515
95516         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95517
95518 1999-04-20  Jim Meyering  <meyering@ascend.com>
95519
95520         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95521         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95522         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95523
95524 1999-04-18  Jim Meyering  <meyering@ascend.com>
95525
95526         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95527         * m4/jm-macros.m4: Use it.
95528
95529 1999-04-06  Jim Meyering  <meyering@ascend.com>
95530
95531         * m4/strftime.m4: Remove test for %f.
95532
95533 1999-03-29  Jim Meyering  <meyering@ascend.com>
95534
95535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95536         superset of the AC_TYPE_* checks in the textutils, fileutils,
95537         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95538         AC_TYPE_PID_T.
95539
95540 1999-03-28  Jim Meyering  <meyering@ascend.com>
95541
95542         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95543         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95544         replaced e.g., in the *.sh files of the sh-utils.
95545
95546 1999-03-20  Jim Meyering  <meyering@ascend.com>
95547
95548         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95549         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95550         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95551
95552 1999-03-19  Jim Meyering  <meyering@ascend.com>
95553
95554         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95555
95556 1999-03-12  Jim Meyering  <meyering@ascend.com>
95557
95558         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95559
95560 1999-03-07  Jim Meyering  <meyering@ascend.com>
95561
95562         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95563         declared.
95564
95565 1999-02-17  Jim Meyering  <meyering@ascend.com>
95566
95567         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95568         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95569
95570 1999-02-07  Jim Meyering  <meyering@ascend.com>
95571
95572         * m4/group-member.m4: New file -- extracted from sh-utils'
95573         configure.in.
95574
95575         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95576         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95577
95578 1999-02-06  Jim Meyering  <meyering@ascend.com>
95579
95580         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95581         * m4/fnmatch.m4: Likewise.
95582         * m4/getgroups.m4: Likewise.
95583         * m4/lstat.m4: Likewise.
95584         * m4/malloc.m4: Likewise.
95585         * m4/putenv.m4: Likewise.
95586         * m4/realloc.m4: Likewise.
95587         * m4/regex.m4: Likewise.
95588         * m4/stat.m4: Likewise.
95589         * m4/strftime.m4: Likewise.
95590         Suggestion from Alain Magloire.
95591
95592         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95593         * m4/fnmatch.m4: Likewise.
95594         * m4/getgroups.m4: Likewise.
95595         * m4/getline.m4: Likewise.
95596         * m4/lstat.m4: Likewise.
95597         * m4/malloc.m4: Likewise.
95598         * m4/memcmp.m4: Likewise.
95599         * m4/putenv.m4: Likewise.
95600         * m4/realloc.m4: Likewise.
95601         * m4/regex.m4: Likewise.
95602         * m4/stat.m4: Likewise.
95603         * m4/strftime.m4: Likewise.
95604         Suggestion from Alain Magloire.
95605
95606         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95607         an argument.
95608
95609         * m4/regex.m4: Add a run-time Test for proper operation of
95610         re_compile_pattern.
95611
95612 1999-01-31  Jim Meyering  <meyering@ascend.com>
95613
95614         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95615
95616 1999-01-30  Jim Meyering  <meyering@ascend.com>
95617
95618         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95619
95620         * m4/jm-mktime.m4: Make this a wrapper around the official
95621         AM_FUNC_MKTIME rather than my private copy, now that the official one
95622         is up to date.
95623         * m4/mktime.m4: Remove file.
95624
95625         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95626         * m4/uptime.m4: Likewise.
95627         * m4/uintmax_t.m4: Likewise.
95628
95629 1999-01-28  Jim Meyering  <meyering@ascend.com>
95630
95631         * m4/jm-macros.m4: Use jm_AFS.
95632         * m4/afs.m4: New file (from fileutils' configure.in).
95633
95634         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95635         * m4/chown.m4: Likewise.
95636         * m4/d-ino.m4: Likewise.
95637         * m4/d-type.m4: Likewise.
95638         * m4/fnmatch.m4: Likewise.
95639         * m4/getgroups.m4: Likewise.
95640         * m4/gettext.m4: Likewise.
95641         * m4/jm-mktime.m4: Likewise.
95642         * m4/jm-winsz2.m4: Likewise.
95643         * m4/lcmessage.m4: Likewise.
95644         * m4/ls-mntd-fs.m4: Likewise.
95645         * m4/malloc.m4: Likewise.
95646         * m4/memcmp.m4: Likewise.
95647         * m4/putenv.m4: Likewise.
95648         * m4/realloc.m4: Likewise.
95649         * m4/st_mtim.m4: Likewise.
95650         * m4/strftime.m4: Likewise.
95651
95652 1999-01-16  Jim Meyering  <meyering@ascend.com>
95653
95654         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95655         (ARGMATCH_DIE_DECL): Define.
95656
95657 1999-01-12  Jim Meyering  <meyering@ascend.com>
95658
95659         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95660         Reported by Lars Hecking.
95661
95662 1999-01-10  Jim Meyering  <meyering@ascend.com>
95663
95664         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95665         gross kludge.
95666         * m4/inttypes_h.m4: Likewise.
95667         * m4/lstat.m4: Likewise.
95668         * m4/malloc.m4: Likewise.
95669         * m4/readdir.m4: Likewise.
95670         * m4/realloc.m4: Likewise.
95671         * m4/st_dm_mode.m4: Likewise.
95672         * m4/stat.m4: Likewise.
95673         * m4/utimbuf.m4: Likewise.
95674         * m4/utimes.m4: Likewise.
95675
95676         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95677         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95678         comments in config.h.in are meaningful.
95679
95680         * m4/jm-macros.m4: Require autoconf-2.13 here.
95681
95682         * m4/regex.m4: By default, don't use the included regex.c on systems
95683         with glibc 2.  Suggestion from Uli Drepper.
95684
95685 1999-01-02  Jim Meyering  <meyering@ascend.com>
95686
95687         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95688
95689 1998-12-18  Jim Meyering  <meyering@ascend.com>
95690
95691         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95692         Based on a suggestion from Lars Hecking.
95693
95694 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95695
95696         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95697
95698 1998-11-16  Jim Meyering  <meyering@ascend.com>
95699
95700         * m4/lfs.m4: Double-quote the `uname...` expression.
95701
95702 1998-11-14  Jim Meyering  <meyering@ascend.com>
95703
95704         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95705         * m4/stat.m4: Likewise.
95706
95707 1998-11-03  Jim Meyering  <meyering@ascend.com>
95708
95709         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95710         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95711
95712 1998-10-18  Jim Meyering  <meyering@ascend.com>
95713
95714         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95715
95716 1998-10-17  Jim Meyering  <meyering@ascend.com>
95717
95718         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95719         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95720         calls for those previously hard-coded headers.  Instead, take a new
95721         parameter.
95722         (jm_CHECK_DECLARATIONS): Reflect interface change.
95723         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95724         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95725
95726         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95727
95728 1998-10-14  Jim Meyering  <meyering@ascend.com>
95729
95730         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95731         instead of "TZ=America/Vancouver".  From Paul Eggert.
95732
95733 1998-10-11  Jim Meyering  <meyering@ascend.com>
95734
95735         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95736         This adds a test for a recently added compatibility fix for mktime.c.
95737         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95738
95739 1998-09-27  Jim Meyering  <meyering@ascend.com>
95740
95741         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95742
95743         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95744         ../configure.in, including a change from Gordon Matzigkeit to allow
95745         cross-compiling for the Hurd.
95746
95747         * m4/glibc.m4: New file/macro to test for the GNU C Library
95748         versions 1 and 2.  From Gordon Matzigkeit.
95749         Indent.
95750
95751 1998-09-21  Jim Meyering  <meyering@ascend.com>
95752
95753         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95754
95755 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95756
95757         Port nanosecond-resolution times to UnixWare 2.1.2 and
95758         pedantic Solaris 2.6.
95759
95760         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95761         AC_STRUCT_ST_MTIM.
95762         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95763         Generate name of ns member, instead of just 1 or undef.
95764         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95765
95766 1998-08-15  Jim Meyering  <meyering@ascend.com>
95767
95768         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95769         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95770         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95771         instead of jm_TYPE_SSIZE_T.
95772
95773 1998-08-12  Jim Meyering  <meyering@ascend.com>
95774
95775         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95776
95777 1998-08-02  Jim Meyering  <meyering@ascend.com>
95778
95779         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95780         in acconfig.h manually.
95781
95782 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95783
95784         * m4/st_mtim.m4: New file.
95785
95786 1998-07-28  Jim Meyering  <meyering@ascend.com>
95787
95788         * m4/utimes.m4: Undef stat.
95789
95790 1998-07-25  Jim Meyering  <meyering@ascend.com>
95791
95792         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95793         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95794
95795 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95796
95797         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95798         uid and gid actually remain unchanged.
95799
95800 1998-07-07  Jim Meyering  <meyering@ascend.com>
95801
95802         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95803
95804 1998-07-04  Jim Meyering  <meyering@ascend.com>
95805
95806         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95807         to prove that this macro can be used in packages without regex.c.
95808
95809 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95810
95811         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95812         is to be used.
95813
95814 1998-07-03  Jim Meyering  <meyering@ascend.com>
95815
95816         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95817
95818         * m4/gettext.m4: New file -- from gettext-0.10.35.
95819         * m4/lcmessage.m4: Likewise.
95820         * m4/progtest.m4: Likewise.
95821
95822         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95823         * m4/jm-macros.m4: Require the new macro.
95824
95825 1998-06-29  Jim Meyering  <meyering@ascend.com>
95826
95827         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95828         for the definition of NGROUPS (used in a system header included
95829         by sys/mount.h).
95830
95831 1998-06-28  Jim Meyering  <meyering@ascend.com>
95832
95833         * m4/ls-mntd-fs.m4: New file.
95834         * m4/fstypename.m4: New file.
95835
95836         * m4/jm-macros.m4: Require the new macro.
95837         * m4/jm-glibc-io.m4: New file.
95838
95839 1998-05-19  Jim Meyering  <meyering@ascend.com>
95840
95841         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95842         * m4/lchown.m4: New file.
95843
95844         * m4/Makefile.am.in: New file.
95845         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95846
95847 1998-05-14  Jim Meyering  <meyering@ascend.com>
95848
95849         * m4/Makefile.am (EXTRA_DIST): Add them.
95850         * m4/jm-macros.m4: New file.
95851         * m4/utimbuf.m4: New file.
95852
95853 1998-05-12  Jim Meyering  <meyering@ascend.com>
95854
95855         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95856
95857 1998-05-11  Jim Meyering  <meyering@ascend.com>
95858
95859         * m4/isc-posix.m4: New file.
95860
95861 1998-05-10  Jim Meyering  <meyering@ascend.com>
95862
95863         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95864
95865 1998-05-09  Jim Meyering  <meyering@ascend.com>
95866
95867         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95868         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95869         with automake.
95870
95871         * m4/ssize_t.m4: New file.
95872         * m4/mktime.m4: Remove file -- the new automake has this now.
95873
95874 1998-04-26  Jim Meyering  <meyering@ascend.com>
95875
95876         * m4/assert.m4: New file.
95877         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95878
95879 1998-04-05  Jim Meyering  <meyering@ascend.com>
95880
95881         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95882         (jm_PREREQ): Use it here.
95883
95884 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95885
95886         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95887         in acconfig.h.
95888
95889 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95890
95891         * m4/prereq.m4: New file.
95892         * m4/error.m4: New file.
95893         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95894
95895 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95896
95897         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95898         cache-check for the same variable -- that defeated the purpose of
95899         the test; the test program was never run.  This was a problem only
95900         on systems with losing getline functions -- HP-UX 10.20 is one.
95901         Reported by Bjorn Helgaas.
95902
95903 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95904
95905         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95906
95907 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95908
95909         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95910
95911         * m4/const.m4: New file.  Use an initializer in this declaration
95912         typedef int charset[2]; const charset x;
95913         Reported by Bob Glickstein.
95914
95915 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95916
95917         * m4/chown.m4: Fix reversed types on -1 args to chown.
95918         From Kaveh Ghazi.
95919
95920 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95921
95922         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95923         Add lseek and memchr.
95924
95925         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95926         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95927         have a 20-character limit on names.
95928
95929 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95930
95931         * m4/inttypes_h.m4: New file.
95932         * m4/uintmax_t.m4: New file.
95933         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95934
95935
95936         -----
95937
95938         Local Variables:
95939         coding: utf-8
95940         End:
95941
95942         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95943
95944         Copying and distribution of this file, with or without
95945         modification, are permitted provided the copyright notice
95946         and this notice are preserved.